ubuntu17.04新安装之后的软件准备
以下是亲自试验可用的
1.最简化安装ubuntu17.04之后,没有安装wifi驱动。
此时可以先添加一些软件源
网易源地址:
deb http://mirrors.163.com/ubuntu/ zesty main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ zesty-security main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ zesty-updates main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ zesty-proposed main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ zesty-backports main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ zesty main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ zesty-security main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ zesty-updates main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ zesty-proposed main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ zesty-backports main restricted universe multiverse
清华源地址:https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释 deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ zesty main restricted universe multiverse # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ zesty main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ zesty-updates main restricted universe multiverse # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ zesty-updates main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ zesty-backports main restricted universe multiverse # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ zesty-backports main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ zesty-security main restricted universe multiverse # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ zesty-security main restricted universe multiverse
将以上地址添加到/etc/apt/sourcelist里面,然后执行sudo apt-get update更新一下源
再打开设置中心的software&update,选择additional drivers,选择对应的显卡或者网卡驱动,点击应用即可。
2.使用vpn
我用的是l2tp协议的vpn,所以要安装l2tp
先安装必要的环境:
sudo apt install intltool libtool network-manager-dev libnm-util-dev libnm-glib-dev libnm-glib-vpn-dev libnm-gtk-dev libnm-dev libnma-dev ppp-dev libdbus-glib-1-dev libsecret-1-dev libgtk-3-dev libglib2.0-dev xl2tpd strongswan
从github上下载l2tp包:
git clone https://github.com/nm-l2tp/network-manager-l2tp.git
运行:
cd network-manager-l2tp autoreconf -fi intltoolize ./configure --disable-static --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib/x86_64-linux-gnu --libexecdir=/usr/lib/NetworkManager --localstatedir=/var --with-pppd-plugin-dir=/usr/lib/pppd/2.4.7
编译:
make -j 24 sudo make install sudo apparmor_parser -R /etc/apparmor.d/usr.lib.ipsec.charon sudo apparmor_parser -R /etc/apparmor.d/usr.lib.ipsec.stroke sudo apt remove xl2tpd sudo apt install libpcap0.8-dev wget https://github.com/xelerance/xl2tpd/archive/v1.3.6/xl2tpd-1.3.6.tar.gz tar xvzf xl2tpd-1.3.6.tar.gz cd xl2tpd-1.3.6 make -j 24 sudo make install
执行完以上命令:系统设置–>网络–>添加vpn–>l2tp
3.安装chrome浏览器和flash插件
安装Google Chrome浏览器官方PPA,打开终端然后运行下面的命令,下载签名密钥: wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' sudo apt-get update sudo apt-get install google-chrome 或者sudo apt-get install google-chrome-stable
接下来安装flash插件,先去flash官网下载对应chrome的flash tar.gz包,解压之后将
libpepflashplayer.so和manifest.json两个文件复制到/opt/google/chrome/PepperFlash文件夹下面
然后打开/usr/share/applications
另开一个终端,执行sudo gedit,将上面文件夹里的chrome图标拖到gedit中
大约是在108行,%U后面添加如下内容:--ppapi-flash-path=/opt/google/chrome/PepperFlash/libpepflashplayer.so 记住%U后面有一个空格重启或者注销一下就好了
4.安装搜狗输入法
(1)添加fcitx的键盘输入法系统,因为sogou是基于fcitx的,而系统默认的是iBus
(2)安装sogou输入法
(3)设置系统参数及一些注意点
sudo add-apt-repository ppa:fcitx-team/nightly sudo apt-get update sudo apt-get install fcitx sudo apt-get install fcitx-config-gtk sudo apt-get install fcitx-table-all sudo apt-get install im-switch 检查fcitx是否安装完成,win键搜索fcitx 去搜狗官网下载linux版本的deb包 sudo dpkg -i 安装包.deb 在系统设置里面点击语言支持,将输入法从ibus改为fcitx 注销一次 找到fcitx的配置,将sougou chinese设为默认即可
5.安装vim和vimplus
参照另一篇文章
6.安装网易云音乐
下载linux版本的客户端,在下载目录下打开终端执行sudo dpkg -i 客户端名称即可
http://music.163.com/#/download
Happy Ending Every Day