Here are some notes about installing Debian on a Thinkpad, when things come to a fully-blown desktop environment with the following characteristics:
After downloading the net installer, install things with a minimal setting, and do not install any desktop environments. Once the basic installation is done, use the following lines in /etc/apt/sources.list:
deb https://ftp.jp.debian.org/debian/ sid main contrib non-free deb-src https://ftp.jp.debian.org/debian/ sid main contrib non-free
The mention of “sid” ensures that unstable is used for the repository syncs. “contrib” and “non-free” give access to more packages, including non-free drivers usable for a Thinkpad.
Then run the following commands:
apt-get update apt-get dist-upgrade
And the environment should be able to run on SID with all the packages wanted.
By default Debian does not include the Wifi and WWAN drivers for the thinkpad, however, those are available in the package iwlwifi. In order to be able to install those, add “contrib” and “non-free” to /etc/apt/sources.list.
For automatic USB mounting, usbmount is not supported anymore since Debian Stretch, so an alternative is to use udiskie.
And those really facilitate your life!
Package network-manager-gnome comes with a nice binary called nm-applet which can be used to have a small menu on the i3 status bar, including tracking for SIM card connection! Just add that to .i3config and you are good to go:
exec --no-startup-id nm-applet --sm-disable
Install a display manager like lightdm. Note that lightdm does not load directly .xinitrc contrary to slim, but you can override that by using .xsession in the following way for example:
# Tweak to enforce settings to be loaded when logging in. /bin/bash --login -i ~/.xinitrc
Here are some useful packages as well:
xautolock can be used for this purpose.
ttf-bitstream-vera is a nice font package that can be used.
mutt may complain about the following error:
1) warning "GPGME: CMS protocol not available"
This can be countered by installing the package gpgsm:
apt-get install gpgsm
Debian does not create a “wheel” group or “power” group, but those can be controlled using systemctl;
systemctl poweroff systemctl reboot
If Debian SID gets broken because of a package dependency not correctly handled in the central repositories, it is always possible to enforce the installation of packages manually. First download the .deb file to install, this can be done using apt like that:
apt download $PACKAGE
If this cannot be found, it is also possible to download it from Debian’s FTP servers, by first going into one of the mirrors, like this one, then navigate to pool/main/$FIRST_LETTER_PACKAGE/$PACKAGE (“main” may change depending on the package category). For example for perl the URL would be pool/main/p/perl. Then finally install the package manually:
dpkg -i $PACKAGE.deb
Depending on the different dependencies, it may be necessary to repeat those steps multiple times for multiple packages.