Warning: be sure to test your startup scripts manually in a Terminal session (Ctrl-Alt-T in Easy Mode) before following either of the methods below. If your script prevents the graphical desktop from starting properly, your machine may enter an endless boot loop, requiring you to resort to using the Rescue Console.
if [ -x /home/user/.icewm/startup ]; then #we have a start up file to execute /home/user/.icewm/startup & fi
/home/YourUserName/ExampleName.sh ( the first line of the script must be #!/bin/sh )chmod 0755 /home/YourUserName/ExampleName.sh/home/YourUserName/ExampleName.sh ( the first line of the script must be #!/bin/sh )chmod 0755 /home/YourUserName/ExampleName.sh/etc/ExampleName.sh ( the first line of the script must be #!/bin/sh )chmod 0755 /etc/ExampleName.sh/etc/rc.local (again, as root) and add the full path to your script above the exit 0 line (place a nice comment above the edit, explaining the command to your older self – any line that starts with a # is a comment)# This is my example script, that makes an example of every user on bootup! /etc/ExampleName.sh exit 0
All users, not just the current user, will be affected by the script.
- If your script requires X, you can add the lines of the script to the bottom of the /etc/gdm/Init/Default script, right before 'exit 0'. Or call it from the Default script. This is the way to add xmodmap changes to all users.