文章目录
前言
`Ubuntu新系统需要装些什么软件呢。
一、Ubuntu下载安装更换国内源
UBuntu默认安装的是US的源,下载慢,链接失败等问题,建议换成国内源。国内主流的清华源,科大源,阿里源。
1.备份原有源文件
cd /etc/apt #切换到apt源文件
sudo mv sources.list sources.list_bak #备份源文件
2.更换源文件(阿里源)
新建源文件
sudo vim sources.list
拷贝一下内容到这个文件中
# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted
deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb http://mirrors.aliyun.com/ubuntu/ xenial multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-properties
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse
保存退出,更新源文件
sudo apt-get update
二、启动栏设置
设置启动栏在窗口下方
gsettings set com.canonical.Unity.Launcher launcher-position Bottom
设置启动栏在窗口左边
gsettings set com.canonical.Unity.Launcher launcher-position Left
三、中文帮助文件安装
a. 打开终端,输入以下命令安装中文 man 手册
sudo apt-get install manpages-zh
b. 查看man 手册安装到哪里
dpkg -L manpages-zh | less
查看到安装在/usr/share/man/zh_CN
c. 设一个中文man别名 修改 /etc/bash.bashrc 添加一个alias :
alias cman='man -M /usr/share/man/zh_CN'
重启一个终端就可以用cman查看中文man手册了,当然查英文手册还是用man。
四、桌面、文档等目录替换
a. 打开用户桌面文件
vim ~/.config/user-dirs.dirs
b. 增加目标文件
将$HOME/ 后面增加文件夹名称
c. 重启系统
五、终端只显前缀修改
计算机名修改
sudo gedit /etc/hostname
重启系统生效
终端显示修改
sudo gedit ~/.bashrc
将文件第60行的小写w改为大写W,第62行不用动
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\W\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
然后再更新一下
source ~/.bashrc
还是觉得太长?比如计算机名太长,把hostname显示也去掉(@\h),改成
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u\[\033[00m\]:\[\033[01;34m\]\W\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
然后再source一下,重启系统
六、终端shell Terminator安装
sudo apt-get install terminator
常用快捷键
Ctrl+Shift+E 垂直分割窗口
Ctrl+Shift+O 水平分割窗口
F11 全屏
Ctrl+Shift+C 复制
Ctrl+Shift+V 粘贴
Ctrl+Shift+N 粘贴
Ctrl+Tab 在分割的各窗口之间切换
Ctrl+Shift+X 将窗口放大至全屏
Ctrl+Shift+Z 从全屏窗口回到多窗格界面
七、输入法
下载地址
https://pinyin.sogou.com/linux?r=pinyin
点击下载后,出现搜狗安装指南,按照指南安装即可
总结
还有非常多好用的软件,后续更新