Ubuntu 16.04 个性化配置

系统: Ubuntu 16.04 \text{Ubuntu 16.04} Ubuntu 16.04

1. apt 源的更换与更新

System Settings->Software & updates->Download from->Other...->china->aliyun.com \text{System Settings->Software \& updates->Download from->Other...->china->aliyun.com} System Settings->Software & updates->Download from->Other...->china->aliyun.com 后保存会自动更新源,然后打开命令行输入:

sudo apt upgrade

2. 安装 nvidia \text{nvidia} nvidia 显卡驱动

sudo apt install nvidia-384

3. 安装一些乱七八糟但是有用的工具

sudo apt install wget curl git htop rar unrar
sudo apt install tsocks jq guake
sudo apt install snapd-xdg-open tree
sudo apt install shutter

4. 卸载一些乱七八糟并且没用的工具

sudo apt remove unity-webapps-common
sudo apt remove thunderbird totem rhythmbox
sudo apt remove empathy brasero simple-scan gnome-mahjongg aisleriot
sudo apt remove gnome-mines cheese transmission-common
sudo apt remove gnome-orca webbrowser-app gnome-sudoku
sudo apt remove landscape-client-ui-install
sudo apt remove onboard deja-dup
sudo apt remove libreoffice-common
sudo apt remove firefox*

5. 安装 Google Chrome \text{Google Chrome} Google Chrome 浏览器

cd $HOME/Downloads
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google *.deb

6. 安装并配置 vim + spf13-vim \text{vim + spf13-vim} vim + spf13-vim

sudo apt install vim
cd $HOME/Dowloads
# 安装 spf13-vim 时需要键入一些 Git 相关参数:账号与用户名之类的
curl https://j.mp/spf13-vim3 -L > spf13-vim.sh && sh spf13-vim.sh

7. 安装并配置 zsh + oh-my-zsh \text{zsh + oh-my-zsh} zsh + oh-my-zsh

sudo apt install zsh
cash # 键入密码后再输入 /bin/zsh 重启后生效
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

cd $HOME/.oh-my-zsh/custom/plugins
git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
git clone git://github.com/joelthelion/autojump.git
cd autojump
./install.py # 复制执行最后给出的命令

修改 .zshrc \text{.zshrc} .zshrc 文件,将

plugins=(...)

替换成

plugins=(
git z zsh-autosuggestions extract web-search zsh-syntax-highlighting
)

在末尾添加

alias open="xdg-open"

接着将刚才复制的命令也添加到文件尾,如:

[[ -s $HOME/.autojump/etc/profile.d/autojump.sh ]] && source $HOME/.autojump/etc/profile.d/autojump.sh
autoload -U compinit && compinit -u

重启操作可以放到最后一步一起进行。

8. 安装 Ros \text{Ros} Ros

sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
sudo apt-get update
sudo apt-get install ros-kinetic-desktop-full
sudo rosdep init
rosdep update
echo "source /opt/ros/kinetic/setup.zsh" >> ~/.zshrc
sudo apt install python-rosinstall python-rosinstall-generator python-wstool build-essential

9. 安装 Sogou \text{Sogou} Sogou(搜狗)输入法

sudo apt install fcitx fcitx-config-gtk

System Setting->Language Support->Keyboard input method system->fcitx \text{System Setting->Language Support->Keyboard input method system->fcitx} System Setting->Language Support->Keyboard input method system->fcitx 后下载 搜狗输入法安装包,并安装:

cd $HOME/Downloads
sudo dpkg -i sogoupinyin_*.deb

如果安装失败继续运行:

sudo apt install -f

接着重新启动电脑然后点击右上角小键盘图标 config \text{config} config 添加输入法即可(记住添加时要勾掉打勾项,不然无法找到搜狗输入法)。

10. 安装 VSCode \text{VSCode} VSCode

下载 VSCode \text{VSCode} VSCode 安装包,并安装:

cd $HOME/Downloads
sudo dpkg -i code-*.deb

11. 安装 PyCharm \text{PyCharm} PyCharm

下载 PyCharm \text{PyCharm} PyCharm 安装包,并解压安装:

cd $HOME/Downloads
x pycharm-*.tar.gz
rm pycharm-*.tar.gz
sudo mv pycharm-* /opt
cd /opt/pycharm-*/bin
./pycharm.sh

Launcher \text{Launcher} Launcher 中右键 PyCharm \text{PyCharm} PyCharm 选择 Lock to Launcher \text{Lock to Launcher} Lock to Launcher 即可。

12. 安装 Python 3.5 \text{Python 3.5} Python 3.5 pip3 \text{pip3} pip3 并修改源

sudo apt install python3.5-dev # 系统自带的 3.5 版本在通过 pip3 安装模块时容易出问题
sudo apt install python3-pip
mkdir ~/.pip
vim ~/.pip/pip.conf

vim \text{vim} vim 打开的文本中输入如下内容:

[global] 
index-url = http://mirrors.aliyun.com/pypi/simple/ 
[install] 
trusted-host = mirrors.aliyun.com

13. 安装 ssh \text{ssh} ssh 并且生成 ssh-key \text{ssh-key} ssh-key

sudo apt install ssh
ssh-keygen -t rsa # 一路回车
cat $HOME/.ssh/id_rsa.pub

将打印出来的内容复制粘贴到 GitHub or GitLab \text{GitHub or GitLab} GitHub or GitLab settings->SSH Keys \text{settings->SSH Keys} settings->SSH Keys 中即可。

14. 安装 Docker \text{Docker} Docker 并拉取 Ubuntu \text{Ubuntu} Ubuntu 镜像

sudo apt install docker docker.io
sudo docker pull ubuntu:16.04

可以自己尝试搞一个 Docker \text{Docker} Docker 服务器用来存放自己封装好的一些 Docker \text{Docker} Docker 镜像方便日后拉取下来进行开发测试。

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值