1、VIM及zsh配置记录
xvim_tools.rar 是别人已经搭建好的环境,下文仅为对其配置过程中的一些记录,无通用性参考价值。
使用步骤:
1.拷贝xvim_tools.rar软件到ubuntu系统中
2.解压需要用到unrar软件
sudo apt-get install unrar
3.解压 xvim_tools.rar
unrar x xvim_tools.rar
4.安装vim软件
sudo apt-get install vim
5.查看环境变量
echo $PATH
6.设置环境变量
将该路径设置到环境变量中~/.vim/tools,
设置方法在当前用户环境变量文件中设置
export PATH=~/.vim/tools:$PATH,
设置环境变量有三种方法,
临时设置export PATH=~/.vim/tools:$PATH ,
当前用户全局设置,打开~/.bashrc,在最后增加
export PATH=~/.vim/tools:$PATH
使生效
source .bashrc
7.安装cscope以及ctags
sudo apt-get install cscope
sudo apt-get install ctags
8.安装zsh
sudo apt-get install zsh
9.切换终端zsh
chsh -s /bin/zsh
重启
出现zsh tmux plugin: tmux not found. Please install tmux before using this plugin.
10.安装tmux
sudo apt-get install tmux
完成配置
2、Ubuntu 配置FTP服务器
1、安装ftp服务
sudo apt-get install vsftpd
2、连接
使用FileZilla
3、Ubuntu 配置SSH服务器
1、安装ssh服务
sudo apt-get install openssh-server
2、ifconfig获取ubuntu IP地址
3、xshell配置ssh协议
4、Ubuntu 更换软件源
1. 使用命令lsb_release -c获取ubuntu系统的别名
2. 进入 sources.list所在目录,并进行备份
cd /etc/apt
sudo cp sources.list sources.list.backup
3. 修改source.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、应用软件源
5、更新源
sudo apt-get update
6、更新软件