Actions after installing Debian 9 (Stretch)
Just documenting to facilitate my own possible future reuse.
Add Debian package repositories
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
Add unofficial repositories
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
Install iwlwifi driver
lspci -nn | grep Network
apt-get update && apt-get install firmware-iwlwifi
modprobe -r iwlwifi ; modprobe iwlwifi
Install the packages I need
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
Remove unneeded packages
apt-get purge fcitx* uim* scim* mozc* ibus-mozc ibus-hangul
apt autoremove
Retrieve new lists of packages & Perform an upgrade
apt-get update
apt-get upgrade
Replace the hosts file
aria2c https://coding.net/u/scaffrey/p/hosts/git/raw/master/hosts-files/hosts
mv /etc/hosts /etc/hosts.original
cp /home/youfeng/Downloads/hosts /etc/hosts
ls -l /etc/host*
Read other posts