To add a service to boot automatically on startup, do the following:
# chkconfig --level 345 <service_name> on
bootchkconfigcommandsconfigurationservicestartup
Tired of typing your SSL password on boot of your webserver? You can decrypt it if you're certain it's safe:
# openssl rsa -in server.key -out server.key.unsecure
apachebootcommandsencryptionkeyopensslsecurityshellsslwebserver
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 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