只是记录下来方便自己以后可能会出现的复用。

配置 Debian 软件包库

echo deb http://deb.debian.org/debian stretch main contrib non-free >> /etc/apt/sources.list
echo deb-src http://deb.debian.org/debian stretch main contrib non-free >> /etc/apt/sources.list
echo deb http://deb.debian.org/debian stretch-updates main contrib non-free >> /etc/apt/sources.list
echo deb-src http://deb.debian.org/debian stretch-updates main contrib non-free >> /etc/apt/sources.list
echo deb http://security.debian.org/debian-security/ stretch/updates main contrib non-free >> /etc/apt/sources.list
echo deb-src http://security.debian.org/debian-security/ stretch/updates main contrib non-free >> /etc/apt/sources.list

添加非官方库

echo deb http://dl.google.com/linux/chrome/deb/ stable main >> /etc/apt/sources.list
echo deb http://www.deb-multimedia.org stable main non-free >> /etc/apt/sources.list
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list

cat /etc/apt/sources.list

安装 iwlwifi 内核驱动

lspci -nn | grep Network
apt-get update && apt-get install firmware-iwlwifi
modprobe -r iwlwifi ; modprobe iwlwifi

安装需要的软件包

apt-get install \
  apt-transport-https \
  aria2 \
  deb-multimedia-keyring \
  expect \
  gimp \
  google-chrome-stable \
  gpick \
  ibus-libpinyin \
  mpv \
  rdesktop \
  sublime-text \
  vlc \
  youtube-dl -y

# Nutstore
dpkg -i https://www.jianguoyun.com/static/exe/installer/debian/nautilus_nutstore_amd64.deb
apt-get install -f

# Stretchly
aria2c https://github.com/hovancik/stretchly/releases/download/v0.17.0/stretchly_0.17.0_amd64.deb
apt install ~/Downloads/stretchly_0.17.0_amd64.deb

# Anki
aria2c https://apps.ankiweb.net/downloads/current/anki-2.0.52-amd64.tar.bz2
tar xjf /home/youfeng/Downloads/anki-2.0.52-amd64.tar.bz2 
cd anki-2.0.52
make install

移除一些自带的但我用不到的软件包

apt-get purge fcitx* uim* scim* mozc* ibus-mozc ibus-hangul
apt-get autoremove

检索新的软件包列表并执行升级

apt-get update
apt-get upgrade

替换 hosts 文件

aria2c https://coding.net/u/scaffrey/p/hosts/git/raw/master/hosts-files/hosts
mv /etc/hosts /etc/hosts.original
cp ~/Downloads/hosts /etc/hosts
ls -l /etc/host*