Debian basic system install

From campisano.org
Jump to navigation Jump to search

Debian basic system

Install

  • At installer boot, no changes to grub menu are needed, but is convenient to choice the non graphical install mode
  • An example disk partition:
+-------------+-------+-----------+
| partition   | type  | size      |
+-------------+-------+-----------+
| ORIG. STUFF | vary  | vary      |
| SWAP        | swap  | 8GB       |
| /           | xfs   | 25GB      |
| /srv        | xfs   | 25GB      |
| SWAP        | swap  | 8GB       |
| /home       | xfs   | remaining |
+-------------+-------+-----------+

First start: configuration

  • Note, use CTRL+ALT+F2 to switch back in console (the best way to first setup)

wifi connect

  • configure wireless (if needed)
nmcli d wifi connect <ESSID> password <PASSWORD>

Apt repositories

  • example
deb http://deb.debian.org/debian/ bullseye main contrib non-free
apt-get update

Etckeeper [optional]

  • etckeeper can be used to keep tracks /etc config changes
- It is not in the install DVD, and it needs git package, so you will need to download etckeeper package and use the install DVD to install its dependencies)
- Configure it like Git server config backup

Configure dialog localization and timezone

apt-get update
apt-get install dialog
apt-get install locales tzdata
  • locales
dpkg-reconfigure locales        # choose en_US.UTF8, None default
etckeeper commit -m "configure locales"
  • timezone
dpkg-reconfigure tzdata         # choose Etc -> UTC
etckeeper commit -m "configure tzdata"

Install basic packages

  • base packages
apt-get dist-upgrade
apt-get install binutils nano psmisc lsof findutils grep less tar gzip bzip2 procps iptables kmod curl cron exim4 dnsutils mutt man nmap telnet iputils-ping netcat-traditional ncal
  • ui packages
apt-get install xterm spacefm conky geany sylpheed blueman pnmixer arandr pulsemixer file-roller eog atril gimp audacious vlc ffmpeg imagemagick scrot
  • dev package
apt-get install git diffuse cmake make g++ autoconf kdiff3-qt astyle doxygen
dpkg --add-architecture i386
apt-get update
apt-get install libc6:i386 libgcc1:i386 libstdc++6:i386 zlib1g:i386 libncurses5:i386 libasound2:i386 libasound2-plugins:i386 libpulse0:i386 libx11-6:i386
  • add backport support

see Debian_backports

  • firmware packages
apt-get install firmware-linux-free
apt-get install firmware-linux-nonfree firmware-misc-nonfree
apt-get clean

Change default Desktop environment

  • remove Gnome stuff
apt-get autoremove --purge gdm3 task-gnome-desktop gnome-core gnome-session* gnome-shell* gnome-terminal* chrome-* cheese* evolution* network-manager+ file-roller+ nautilus+ eog+
  • to improve: remove additional stuffs
apt-get autoremove --purge desktop-base+ task-desktop+ gnome-software+ firefox\* libreoffice\* gdm\* evolution\* gnome-control-center gnome-settings-daemon gnome-terminal gnome-keyrin
  • add again minimal libreoffice
apt-get install libreoffice-writer libreoffice-calc libreoffice-draw
apt-get clean
  • setup xdm as X login manager

see Xdm

  • setup i3wm as window manager

see I3wm