Actions after installing Debian

Just recording for myself. Of course, if you find it useful, you can refer to it. No need to thank me. 🍺
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
apt-get update
Install iwlwifi driver
lspci -nn | grep Network
apt-get update && apt-get install firmware-iwlwifi
modprobe -r iwlwifi ; modprobe iwlwifi
Remove unneeded packages
apt-get purge mozc*
apt-get purge ibus-mozc
apt-get purge ibus-hangul
apt-get purge fcitx*
apt-get purge uim*
apt-get purge scim*
Install the packages I need
apt-get install google-chrome-stable
apt-get install ibus-libpinyin
apt-get install expect
apt-get install deb-multimedia-keyring
apt-get install mpv
apt-get install vlc
apt-get install aria2
apt-get install youtube-dl
apt-get install rdesktop
apt-get install apt-transport-https
apt-get install sublime-text
apt-get install gpick
# Nutstore
dpkg -i https://www.jianguoyun.com/static/exe/installer/debian/nautilus_nutstore_amd64.deb
apt-get install -f
vi /home/keith/.nutstore/dist/bin/nutstore-pydaemon.py
# Change "#!/usr/bin/env python" to "#!/usr/bin/env python2"
# 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/keith/Downloads/anki-2.0.52-amd64.tar.bz2
cd anki-2.0.52
make install
Remove automatically all unused packages
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/keith/Downloads/hosts /etc/hosts
ls -l /etc/host*
Read other posts