ubuntu 开发环境配置记录

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、更新软件
	
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值