Posts with the tag system startup
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.
Here is the bash script starting the bottle.py web app after setting up the virtualenv. It's stored in
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
- The official website: http://bootinfoscript.sourceforge.net/
- Analyse boot environment using the boot_info_script (German): http://wiki.ubuntuusers.de/GRUB_Umgebung_analysieren#Umfassende-Analyse-mittels-Boot-Info-Script
Edit the grub defaults file:
sudo gedit /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT. Afterwards run
sudo update-grub2 to recreate the list of boot entries (including the
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...
After an installation of Windows 7, Grub2 would not start any more as Windows overwrote the boot loader section. So i did the following:
- Boot the Ubuntu Live CD.
Find out correct disc and mount the root partition:
sudo fdisk -l sudo mount /dev/sda2 /mnt
If you have a separate boot partition...
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...
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
# If there's a filesystem UUID that GRUB is capable of identifying,...
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 ...
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`