Skip to Content

More Debian: debian-after-install

Posted on

I created a setup script - debian-after-install.sh - 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

NAME

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

SYNOPSIS

debian-after-install.sh [OPTION]

OPTIONS

-h              print details
-p PKG_LIST     install packages from PKG_LIST

EXAMPLES

Run script (requires root privileges) …

./debian-after-install.sh

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

./debian-after-install.sh -p my-pkg-list

AUTHOR

Daniel Wayne Armstrong

SOURCE

debian-after-install

LICENSE

GPLv2. See LICENSE for more details.

SEE ALSO

Happy hacking! 🐧