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 bottle.py web app after setting up the virtualenv. It's stored in /home/coltrims/MaxiGauge/webserver.sh:

<div...

Read on

Boot Info Script

T get the boot_info_script, run:

cd ~/Downloads
wget http://sourceforge.net/projects/bootinfoscript/files/bootinfoscript/0.55/boot_info_script055.sh/download -O boot_info_script.sh

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

sudo bash ~/Downloads/boot_info_script.sh

Resources

...

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).

resources

...

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. http://ubuntuforums.org/showthread.php?p=9020811#post9020811

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

http://wiki.ubuntuusers.de/Grub_2#GRUB-2-wiederherstellen
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

http://forum.ubuntuusers.de/post/2207175/
http://ubuntuforums.org/showpost.php?p=8367187

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: http://ubuntuforums.org/showthread.php?p=8292225#post8292225

This fix worked: https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/391044 (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

http://www.tuxyturvy.com/blog/index.php?/archives/48-Automating-VMware-modules-reinstall-after-Linux-kernel-upgrades.html
http://www.debianhelp.co.uk/boot.htm (← about the debian /ubuntu startup process)

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

#!/bin/bash
if [ ! -e /lib/modules/`uname -r`/misc/.myTool_installed ]; then
        /usr/bin/vmware-config.pl --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 usplash-artwork.so

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

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

Read on