parsed.org

Tips by tag: boot

Adding Services by xinu on Apr 21, 2005 08:57 AM

To add a service to boot automatically on startup, do the following:

# chkconfig --level 345 <service_name> on
bootchkconfigcommandsconfigurationservicestartup
Decrypt RSA Key by xinu on Sep 10, 2005 12:15 AM

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
Editing Startup Items by cygnus on Jan 13, 2005 09:54 AM

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
Keeping a Screen Open by cygnus on Jan 23, 2005 02:21 PM

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
Redhat/Fedora Services by xinu on Jan 18, 2005 01:02 PM

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
Resetting the Root Password by xinu on Sep 10, 2005 12:14 AM

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
RSS