Ubuntu18.04前期配置
一、管理员权限
1.创建管理员root用户
su -
su root # 设置密码,确认密码
2.切换用户
su root #切换为root用户——root用户用#表示
su lzj #切换为普通用户——普通用户用$表示
3.使用root权限
方法1:切换到root用户
方法2:命令前面加上sudo
二、更换为阿里云
1.备份下载源配置文件sources.list
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
2.使用root权限打开source.list
sudo gedit /etc/apt/sources.list #用自带文本编辑器打开
sudo vim /etc/apt/sources.list #或者用vim打开,需要先安装vim
3.删除sources.list内全部内容,添加如下内容,保存
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
4.更新软件列表
sudo apt-get update
三、安装chrome
#1.添加依赖
sudo wget http://repo.fdzh.org/chrome/google-chrome.list -P /etc/apt/sources.list.d/
#2.添加公钥
wget -q -O - http://dl.google.com/linux/linux_signing_key.pub |sudo apt-key add -
#3.更新安装包
sudo apt update
#4.安装稳定版chrome
sudo apt install google-chrome-stable
四、安装搜狗输入法
1.安装依赖fcitx
sudo apt-get install fcitx-bin
sudo apt-get install fcitx-bin
sudo apt-get install fcitx-table
2.配置fcitx——设置中键盘输入方式选择fcitx
3.安装搜狗输入法——下载deb文件,直接点击安装
4.重启,屏幕右上角小键盘图标配置输入法
五、界面优化
1.安装美化插件管理器Tweaks中文名优化,装好打开Tweaks选择自己喜欢的设置
sudo apt install gnome-tweak-tool
sudo apt install chrome-gnome-shell
2.用自带的软件商店下载插件, 安装完到Tweaks的扩展程序中开启
Dash to Dock #优化任务栏,可设置到下面中间
TopIcons Plus #起到了任务栏的作用,一些程序的图标会显示出来
User Themes #允许从用户目录加载主题,原来主题放在user/share/themes,现在可以在.local/share/themes建立三个文件夹themes、fonts、icons,分别放置主题、字体、图标。
3.到https://www.gnome-look.org/网站对应目录下载主题(GTK3 Themes栏)图标(Icons Thems)
下载后解压到以上三个对应目录,然后到Tweaks的外观中进行设置
我的搭配
#主题——Mojave-light.tar.xz 、Mojave-dark.tar.xz
#shell——(菜单栏):上面主题内置的shell
#图标——McMojave-circle
六、其他已安装软件:vim
七、其他
#1.更新软件列表:访问下载源里的每个网址,并读取软件列表,然后保存在本地电脑
sudo apt-get update
#2.更新软件:把本地已安装的软件与刚的软件列表对比,已安装软件版本太低就会提示你更新
sudo apt-get upgrade