To add a service to boot automatically on startup, do the following:
# chkconfig --level 345 <service_name> on
bootchkconfigcommandsconfigurationservicestartup
To edit the programs that run on startup of a Windows 9X / XP installation (this doesn't work on Windows 2000), go to Start -> Run and run msconfig. Click on the Startup tab and check or uncheck items to add or remove them from your startup sequence.
bootconfigurationstartupwin2kwin9xwindowswinxp
You can use this in your shell dotfile (e.g. ~/.bash_profile, ~/.zshrc) to create a screen session when you log in or reattach to an existing screen:
if [[ $TERM != 'screen' ]] ; then
if [[ `screen -list | grep -v "No" | awk '$2 { print }' | wc -l` == 0 ]] ; then
screen
else
screen -dr
fi
fi
This works in bash and zsh.
attachbash_profilebootconfigurationscreenscreenrcsessionshellstartup
If you want to start up multiple pages in Firefox, put a string like this in your start URL under Tools -> Options:
http://www.google.com/|http://www.slashdot.org/
browserconfigurationfirefoxstartup
If you have a services script in /etc/rc.d, you can add the service to the various run levels to create the appropriate start/kill symlinks:
# chkconfig --level 345 imap on # service xinetd restart
bootchkconfigcommandsconfigurationfedoraredhatservicesstartupsymlinks
Reset the root password:
1. Insert the Solaris install CD. 2. Issue STOP-A (Ctrl-Break). 3. Type: boot cdrom -s 4. fsck /dev/rdsk/c0t0d0s0 5. mnt /dev/dsk/c0t0d0s0 /a 6. cd /a/etc 7. TERM="vt100"; export TERM 8. vi shadow 9. on root line, delete everything in the second ":" delimited field. 10. exit out of file (ESC :wq! -or ESC ZZ)
bootcommandsconfigurationhackpasswordresetrootsolarisstartup
You can change your X background color with this command:
$ xsetroot -solid steelblue &
The setting is not persistent; the command should go in ~/.xinitrc or ~/.Xsession, depending on how you start X, so it will get run each time X starts. The color definitions are in the rgb.txt included with your X distribution.
backgroundrootstartupx11xsessionxsetroot