VScode C、C++不用管配置文件
先把
sudo get-apt install g++
sudo get-apt install gcc
sudo get-apt install gdb
RBase:
sudo echo "deb http://cran.rstudio.com/bin/linux/ubuntu xenial/" | sudo tee -a /etc/apt/sources.list
gpg --keyserver keyserver.ubuntu.com --recv-key 51716619E084DAB9
gpg -a --export 51716619E084DAB9 | sudo apt-key add -
sudo apt-get update
sudo apt-get install r-base r-base-dev
Rstudio:
sudo apt-get install gdebi-core
wget https://download1.rstudio.org/desktop/xenial/amd64/rstudio-1.4.1106-amd64.deb
sudo gdebi rstudio-1.4.1106-amd64.deb
rm rstudio-1.4.1106-amd64.deb
解决网络问题:
sudo service network-manager stop
sudo rm /var/lib/NetworkManager/NetworkManager.state
sudo gedit /etc/NetWorkManager/NetworkManager.conf,将其中的managed=false改为managed=true
sudo service network-manager restart
解决Ubuntu系统下VSCODE只会出现汉字的情况
(1.卸载snap版本2.获取更新VScode的安装包3.重新安装)
sudo snap remove code
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
sudo install -o root -g root -m 644 packages.microsoft.gpg /usr/share/keyrings/
sudo sh -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install code # or code-insiders