2012. 3. 25. - To run a script prior to GDM/KDM, you have to write your own upstart After Login using ssh but not while local login using tty: In this case also .