- Debian 9 lxde Install and postinstall
This document describes :
- How to install Debian 9 with lxde desktop environment.
- How to run my post-installation script install.sh. 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.
The installation process was quite straightforward, After dealing with two issues:
- I could not connect to my wireless network during the installation process.
- After the installation was finished, I could not connect to my wireless network.
- 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: a. amd64 for a 64 bit PC b. I386 for a 32 bit PC
- 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.
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.
- Download and prepare an installation medium on USB or DVD. Checkout solution for installation issue number one
- 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.
- When you came to the screen where to select software. Leave it as it is, except give a hock for LXDE
- When you came to the screen "Finish the install" then read carefully and follow the instructions on solutions for installation issues number two
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 https://github.com/hackingjack/$REPO.git && \
cd $REPO
Edit the file variables-user.sh for your personal settings
nano ./variables-user.sh
./install.sh
- 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
- Personal 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
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 install.sh
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 install.sh.
- Google Chrome.
- Video capture and editing software
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 pressed | Norwegian character |
---|---|
Caps+' | æ |
Caps+; | ø |
Caps+[ | å |
Shift+Caps+' | Æ |
Shift+Caps+; | Ø |
Shift+Caps+[ | Å |
Keyboard shortcut | Action taken |
---|---|
Super+g | Start Google Chrome with my personal account |
Super+j | Starts Google Chrome with my job account |
Super+c | Starts visual studio code |
Super+x | Bring up the system log out section |
For more keyboard shortcuts you can look inside the file keyboard-shortcuts/my-shortcuts.xml
I have tried out different Linux distros in this order:
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.
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.
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(install.sh)
In the file test.sh, the minimum configuration is set up for testing all parts in the install.sh script. Just copy chunks of code and paste it inside the test script(test.sh). The code you will test, execute it like this:
./test.sh