Skip to Content

More Debian: debian-after-install

Posted on

I created a setup script - - that is ideally run after the first successful boot into a minimal install of Debian testing aka “buster” release.

A choice of either [w]orkstation or [s]erver setup is available. [S]erver is a basic console setup, whereas [w]orkstation is a more complete setup using Xorg and the lightweight Openbox window manager plus a range of desktop applications.

Alternately, in lieu of a pre-defined list of Debian packages, the user may specify their own custom list of packages to be installed.

Script tasks include:

  • Configure keyboard and console fonts.
  • Add backports repository, update package list, upgrade packages.
  • Modify /etc/sudoers.d to allow sudo group members extra privileges.
  • Enable automatic security updates.
  • Periodic TRIM optimizes performance on SSD storage.
  • GRUB extras: Add a bit of colour, a bit of sound, and wallpaper!
  • Create a swapfile for extra memory
  • Replicate list of packages from one machine to another.
  • Install console packages, including:
  • Install server packages, including:
    • Security: fail2ban
    • Log analyser: logwatch
  • Install Xorg and Openbox.
  • Theme: Shades-of-gray for Openbox, GTK2+3, and QT; Suru++ icons; Ubuntu fonts.
  • Install desktop packages, including:
    • Terminal: urxvt
    • Web browser: firefox-esr
    • Video: vlc
    • Audio: rhythmbox
    • PDF: qpdfview
    • Graphics: gimp
    • Office: libreoffice
    • Torrents: transmission
    • Network: network-manager



debian-after-install - Configure a device after a fresh install of Debian’s testing release.



-h              print details
-p PKG_LIST     install packages from PKG_LIST


Run script (requires root privileges) …


Install the list of packages specified in my-pkg-list

./ -p my-pkg-list


Daniel Wayne Armstrong




GPLv2. See LICENSE for more details.


Happy hacking! 🐧