Debian 9 lxde Install and postinstall

Table of Contents

GitHub release

The Debian 9 LXDE installation process.

This document describes :

  • How to install Debian 9 with lxde desktop environment.
  • How to run my post-installation script The script configures my personal computer ready for use. With all my favourite configurations and applications. The installation script is quite personal. But I think other people can use this as it is. I also think it can be a good starting point to fork this Repo and tailor it for your needs.

Issues during the installation

The installation process was quite straightforward, After dealing with two issues:

  1. I could not connect to my wireless network during the installation process.
  2. After the installation was finished, I could not connect to my wireless network.

Solutions for Issues during the installation

  1. Maybe I got this issue because my computer is somewhat old or something. the solution to the problem was to install the “Non-free Firmware” version of Debian 9. You can download it and create an installation medium on CD or USB from these links:
    1. amd64 for a 64 bit PC
    2. I386 for a 32 bit PC
  2. When you come to the last screen of the installation Instructions, Which heading is \“Finish the install\“. Do not go further and follow the instructions on this link.

The Debian 9 installation process

Just make your own choices on those steps that I don\’t describe. Example just make your own choices for partitioning your discs. For myself I just used the default values on this point.

  1. Download and prepare an installation medium on USB or DVD. Checkout solution for installation issue number one
  2. When you come to the point where you are asked to type in the password for super/root user. Leave these blank and go to next step. When you do it this way, a sudo configuration is created for you automatically. If you need a super/root user, you can configure that later on.
  3. When you came to the screen where to select software. Leave it as it is, except give a hock for LXDE
  4. When you came to the screen \“Finish the install\” then read carefully and follow the instructions on solutions for installation issues number two

The Debian 9 LXDE post install process.

Download and prepare for post-installation Script

Install git on your computer. you have to do this to download the post-installation script from github. Copy and paste this into the terminal, hit enter.

sudo apt update -y
sudo apt install -y git

The commands under vil do the necessary stuff, clone and take you to the right folder to start the post-installation Script. Copy and paste it into the terminal, hit enter.

INST_PATH=$HOME/git_projects/installs && \
REPO=debian-lxde-postinstall && \
rm -fR $INST_PATH/$REPO && \
mkdir -p $INST_PATH && \
cd $INST_PATH && \
git clone$REPO.git && \
cd $REPO

Set your personal settings before post-installation Script

Edit the file for your personal settings

nano ./

Execute The post-installation Script


Manual task to do after finishing the post-installation Script

  • Configuring Google Chrome account
    • Personal account
      • Press Super+g. This will bring up Google Chrome
      • If you have a password manager download and configure that extension.
      • Sync your chrome account
    • Job account
      • Press Super+j. This will bring up Google Chrome
      • Chrome will ask about sync in first screen. Hit the button and write in gmail/password to job account
  • Configuring visual studio code
    • Press Super+c. This will bring up vscode
    • press Shift+Alt+d. (this vil import your personal vscode settings. Settings sync extension is already installed during the post-installation)
    • Type in gist id and secret credential for the sync extension. (This link is my personal credentials, you do not have access to them)
  • Setting up printer
    • Menu-->Preferences-->Print settings-->Add. Follow the instructions

Overview over the contents of the post-installation script

Here is a brief overview of the most program and features that the installation script will install on the computer. For a full overview look inside the shell script

Miscellaneous applications.

The Debian 9 installation with LXDE desktop environments is a quite minimal installation. So there is installed package managers, compiling tools etc. look inside the shell script

Desktop applications

Technical applications

Keyboard manipulations.

One of the big reasons that I switched from Windows to Linux. It\’s because you can manipulate everything in the Linux configuration. I have tried to manipulate the keyboard in Windows, with autohotkey. But that is not reliable at all. Here is all the changes to the normal us keyboard configuration. - Space works as Space and Ctrl. When holding Space down it works as Ctrl. - Switched Caps and Esc. (Hitting Esc makes Caps. To make Esc you have to hit Caps) - Caps Also works as a third level Shift when you hold it down.

Key pressedNorwegian character

keyboard shortcuts

Keyboard shortcutAction taken
Super+gStart Google Chrome with my personal account
Super+jStarts Google Chrome with my job account
Super+cStarts visual studio code
Super+xBring up the system log out section

For more keyboard shortcuts you can look inside the file keyboard-shortcuts/my-shortcuts.xml

My experience with different Linux distros

I have tried out different Linux distros in this order:

Ubuntu 16.. With GNOME desktop

It was easy to install and quite stable. I liked the desktop environment. Easy to use and smart solutions. The drawback of the gnome desktop, It was quite heavy for my old computer. But at all not as heavy as Windows 10. I can recommend Ubuntu if you have quite a good computer.

LUbuntu 18.. With LXQT desktop

WOOOOW lubuntu turned my computer to a super computer. Lightning-fast. At first glance I really liked this speed and the system has all you need. Easy to configure with no problems. The drawback with lubuntu is that it is unstable. Crashes often. Sometimes thing doesn\’t behave like expected. Maybe I try lubuntu another time and hope for some fixes.

Debian 9.9 With LXDE desktop

This lxde desktop is quite fast but not as fast as lubuntu. Debian is rock solid. I have used it quite a while by now, and it never crashes. Things behave like expected. Drawbacks with Debian: It is more complicated to install than the other Linux distros I have tried. Debian comes with a quite minimal configuration. You have to do a lot of things yourself with the config (the post-installation scripts takes care of that configuration). Another thing with Debian is that is based on well tested code base. The newest hottest thing is not inside Debian. I think Debian is not the first Linux distro you try out. When you have a little bit of experience then try it out.

How to test the post-installation script(

In the file, the minimum configuration is set up for testing all parts in the script. Just copy chunks of code and paste it inside the test script( The code you will test, execute it like this:


Bash Shell made-with-bash made-with-Markdown Open Source Love svg3