welcome: please sign in

Diff for "TipsAndTricks"

Differences between revisions 3 and 4
Revision 3 as of 2007-10-10 21:12:02
Size: 1695
Editor: 193
Comment:
Revision 4 as of 2007-10-11 01:59:43
Size: 1641
Comment:
Deletions are marked like this. Additions are marked like this.
Line 25: Line 25:
@reboot cat ~/.reboot_notice | mail -s "[Reboot Message Subject]" &lt;username&gt; @reboot cat ~/.reboot_notice | mail -s "[Reboot Message Subject]" <username>
Line 28: Line 28:
Where &lt;username&gt; is the name of the user and [Reboot Message Subject] is replaced by the desired Subject of the message. Where <username> is the name of the user and [Reboot Message Subject] is replaced by the desired Subject of the message.
Line 41: Line 41:

[http://floopityjoop.com/cat.html cat]

The following are some Tips that might make your life easier.

1. Automatic Reboot Notifications

For some users it may be useful to have an automatic way of knowing when the HCoop server(s) is rebooted. For example, if there was unscheduled downtime and an user does not have an automatic script in place (either from lack of desire or simple impracticality) to restart personal daemons, it would be useful for that user to know when to restart the appropriate daemons.

This can be accomplished on a per user basis by utilizing a crontab file and a single command.

1.1. Editing the Crontab

After requesting authorization for crontab, an user can run:

crontab -e

to edit his personal crontab. Crontab will use the default editor or the editor in VISUAL or EDITOR to edit the users crontab file. Something similar to the following should then be appended to the end of the file:

@reboot cat ~/.reboot_notice | mail -s "[Reboot Message Subject]" <username>

Where <username> is the name of the user and [Reboot Message Subject] is replaced by the desired Subject of the message.

The user should then edit ~/.reboot_notice to contain the desired body of the message that will be sent.

2. Changing login shell on mire

chsh will not work on mire.

Instead create a symbolic link in your home directory called .loginshell, pointing to your desired login shell, like for example so:

ln -s /bin/zsh ~/.loginshell

TipsAndTricks (last edited 2013-05-30 17:33:06 by ClintonEbadi)