ubuntu镜像源修改及使用

参考阿里ubuntu镜像源修改

阿里ubuntu镜像

修改镜像源
  1. 找到source.list文件

lzd@ubuntu:~$ cd /etc/aptlzd@ubuntu:/etc/apt$ lsapt.conf.d sources.bak sources.list.d trusted.gpg.dpreferences.d sources.list trusted.gpg

  1. 备份source.list文件

lzd@ubuntu:/etc/apt$ sudo cp sources.list sources.list.bak

  1. gedit打开source.list进行修改

lzd@ubuntu:/etc/apt$ sudo gedit sources.list

ubuntu系统完整安装(ubuntu安装下)(1)

更新软件
  1. 更新软件源列表

lzd@ubuntu:/etc/apt$ sudo apt update

  1. 更新所有应用为最新软件

lzd@ubuntu:/etc/apt$ sudo apt upgrade

ubuntu系统完整安装(ubuntu安装下)(2)

VMwareTools安装及使用
  1. 配置共享文件夹

ubuntu系统完整安装(ubuntu安装下)(3)

  1. 挂载共享文件夹

sudo vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other

2.2. 自动挂载

修改/etc/fstab,加入如下内容

.host:/ /mnt/hgfs fuse.vmhgfs-fuse allow_other,defaults 0 0

  1. 验证共享文件夹

@ubuntu:/mnt/hgfs/03-share$ touch 1.clzd@ubuntu:/mnt/hgfs/03-share$ echo helloworld >> 1.c

ubuntu系统完整安装(ubuntu安装下)(4)

vimconfig配置及使用
  1. 安装vim

lzd@ubuntu:/mnt/hgfs/03-share$ sudo apt-get install vim

  1. 拷贝vim

ubuntu系统完整安装(ubuntu安装下)(5)

3.安装vimconfig

lzd@ubuntu:/mnt/hgfs/03-share/03-vimconfig/vimconfig$ ./config.sh Bakup your vimconfig file...cp: cannot stat '/home/lzd/.vim': No such file or directorycp: cannot stat '/home/lzd/.vimrc': No such file or directoryConfig your vim now !Make tags in /usr/includesudo: unable to execute /bin/ctags: No such file or directory./config.sh: line 19: 2858 Hangup sudo ctags -I __THROW -I __THROWNL -I __nonnull -R --c-kinds= p --fields= iaS --extra= q

vscode 安装及使用
  1. 打开火狐浏览器,进入vscode官网

ubuntu系统完整安装(ubuntu安装下)(6)

  1. 下载完毕后进行安装

ubuntu系统完整安装(ubuntu安装下)(7)

ubuntu系统完整安装(ubuntu安装下)(8)

  1. 验证安装

lzd@ubuntu:/mnt/hgfs/03-share$ code 1.c

  1. 下载vscode开发所需插件

ubuntu系统完整安装(ubuntu安装下)(9)

ubuntu系统完整安装(ubuntu安装下)(10)

安装搜狗输入法
  1. 打开火狐浏览器,进入搜狗官网

ubuntu系统完整安装(ubuntu安装下)(11)

ubuntu系统完整安装(ubuntu安装下)(12)

  1. 下载完毕后进行安装
  2. 配置键盘输入模式
  1. 退出系统重新登录
,