Posts with the tag system startup

Start a Python Tool or Web App that uses Virtualenv on system startup using Systemd

I.e. deploying a tool or Python app using systemd.

I would recommend setting up the environment variables as well as activating the virtualenv in a Bash script and call that from systemd.

Working setup

Here is the bash script starting the web app after setting up the virtualenv. It's stored in /home/coltrims/MaxiGauge/


Read on

Boot Info Script

T get the boot_info_script, run:

cd ~/Downloads
wget -O

To execute the boot_info_script and thus get information about your bootable partitions etc., run:

sudo bash ~/Downloads/



Read on

Grub2: Permanently add `noapic` to the Boot Parameters

Edit the grub defaults file:

sudo gedit /etc/default/grub

and add noapic to GRUB_CMDLINE_LINUX_DEFAULT. Afterwards run sudo update-grub2 to recreate the list of boot entries (including the noapic option).



Read on

Solve Boot Problems: The Kernel Did Not Find the Root Partition Using its UUID

On startup the system hung because the root UUID was not found.

So when I ran sudo blkid — executed from a live cd — it didn't show the root partition (all other partitions UUIDs were listed).

But tune2fs showed me its UUID

sudo tune2fs -l /dev/sda2

So I tried...

Read on

Restore Grub2
After an installation of Windows 7, Grub2 would not start any more as Windows overwrote the boot loader section. So i did the following:

  1. Boot the Ubuntu Live CD.
  2. Find out correct disc and mount the root partition:

    sudo fdisk -l
    sudo mount /dev/sda2 /mnt
  3. If you have a separate boot partition...

Read on

Deactivate gdm Start Sound

Sound after login: System → Preferences → Startup Applications → GNOME-Login-Sound : remove check

To disable the system ready drums:

sudo mv /usr/share/sounds/ubuntu/stereo/system-ready.ogg /usr/share/sounds/ubuntu/stereo/system-ready-off.ogg

Enter The gdm Configuration (not related to the deactivation of the start sound mentioned above)

Log off and change to a virtual...

Read on

Problems with Grub after Reinstallation

Grub wouldn't boot after a reinstallation on my system.

Workaround to be able to boot:

This fix worked: (comment 14)

sudo gedit /usr/lib/grub/grub-mkconfig_lib

Remove the lines 170 - 175 in the file grub-mkconfig_lib:

# If there's a filesystem UUID that GRUB is capable of identifying,...

Read on

Run Script Triggered by Kernel Upgrade (← about the debian /ubuntu startup process)

myTool is what you want to set up after a kernel upgrade

if [ ! -e /lib/modules/`uname -r`/misc/.myTool_installed ]; then
        /usr/bin/ --default

Read on

Restore Ubuntu Splash Screen after Kubuntu Installation

To get back your familiar Ubuntu usplash image and screen, do

sudo update-alternatives --config

and then recreate initial ramdisk (ATTENTION! This also recreates entries in the menu.lst!):

sudo dpkg-reconfigure linux-image-`uname -r`

Read on