Ubuntu16.04 完全配置教程(各类软件安装、配置、界面美化等)

Ubuntu16.04 完全配置教程(各类软件安装、配置、界面美化等)
【其他版本的Ubuntu应该也可以参考
1.安装谷歌浏览器:
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
2.卸载火狐浏览器:
# dpkg - - get - selections |grep 为查找安装包内容的指令,后面加上安装包名称。
dpkg --get-selections |grep firefox
#sudo apt-get purge 为卸载安装小包的指令,后面要加上安装小包的名称。
sudo apt-get purge firefox firefox-locale-en unity-scope-firefoxbookmarks
3.更换国内源,安装搜狗输入法
设置-软件更新-下载自-选择其他服务器,中国-mirrors.aliyun.com
#先安装小企鹅输入法平台,然后去搜狗输入法官网下载 linux 版本安装
sudo apt install fcitx
#安装好搜狗输入法后,在小企鹅配置中将英语(美国)放在第一行,搜狗输入法放在第二行
#(顺序似乎很重要)
4.安装显卡驱动,anaconda、vscode(在网上一搜就有,这里就不再赘述了);建立 anaconda
虚拟环境(用来跑 pytorch);vscode 使用 anaconda 环境
安装显卡驱动可参考 https://blog.csdn.net/qq_39248298/article/details/107823324
可前往 https://www.nvidia.cn/Download/index.aspx?lang=cn 下载查询你的显卡对应的
驱动版本 (在安装的过程中有个 kernel 内核相关的内容,默认是选择 no,但是我选择 no
安装会失败,建议选择 yes)
#创建 conda 虚拟环境,3.8.3 可以自行替换成 anconda 的 python 版本或其他需要的版本
conda create -n torch python=3.8.3
conda activate torch
前往 https://pytorch.org/get-started/locally/获取安装 pytorch 的命令
会连带 cuda 等一起安装(只要显卡驱动安装好了就行,不用再单独安装 cuda,cudnn)
conda install pytorch torchvision torchaudio cudatoolkit=10.2 -c pytorch
#vscode 使用 anaconda 中的虚拟环境 torch:
1.安装 python 插件(必需插件),安装 code runner 插件(为了方便运行)
2.在文件-首选项-设置-右上角第二个符号打开设置中配置://Python
"python.pythonPath": "***",
//code-runner
"code-runner.runInTerminal": true,
"code-runner.fileDirectoryAsCwd": true,
"code-runner.executorMap": {
"python": "***",
}
//***部分需要替换成 torch 的 python 环境所在的目录,可以在终端激活 torch 虚拟环境,
然后输入 which python 查看其所在的目录。
5.允许 windows 远程桌面访问(不能穿透内网),
https://www.cnblogs.com/xuliangxing/p/7642650.html
6.使用 xftp6 和 xshell6:
xftp 可以传输文件,xshell6 可以用来输入命令行控制远程 linux
(需要先在远程 ubuntu 开启 xtfp 协议和 ssh 协议,未安装需要先安装,这部分可自行搜索)
7.任务栏居中、图标仿 mac 等美化教程:
https://www.noobslab.com/2016/04/macbuntu-1604-transformation-pack-for.html
8.删除不需要的软件:
删除 libreoffice:
sudo apt-get remove unity-webapps-common
删除 Amazon 的链接
sudo apt-get remove unity-webapps-common
删除一些不常用软件
sudo apt-get remove thunderbird totem rhythmbox empathy brasero simple-scan
gnome-mahjongg aisleriot gnome-mines cheese transmission-common gnome-orca
webbrowser-app gnome-sudoku







您可能还会对下面的文章感兴趣:

QQ在线咨询
售前咨询
4006886185
售后服务
0731-85553175