Monday, August 22, 2011

Login/Boot Scripts for Ubuntu/Gnome

I couldn't find any good information on writing logon/boot scripts for Ubuntu/Gnome, so here you go.

Boot script location (runs before GDM login screen):

Boot scripts run as root. Just change that file to your liking.

Login script location (runs after GDM login):

There isn't a default login script, so you have to create it yourself, and make it executable (sudo chmod +x /etc/gdm/Default) and remember to put #!/bin/bash at the start (or whatever you want to use for the environment). Login scripts run as root.

No comments:

Post a Comment