[SLL] what do you do every time for new systems?
Brian Hatch
bri at ifokr.org
Sat Mar 22 21:16:33 PDT 2008
Just about 2008-03-22 09:26 -0500, Jeremy C. Reed opined:
> What do you do every time (or frequently) when you install or login to a
> new system (that you will continue to use as an admin)?
$ mkdir .bri
$ svn co https://svn.ifokr.org/(redacted)/brihomedir
$ make
;-)
> If I am using tcsh, I usually stay with it but add to ~/.login:
...
> I prefer ksh or bash over tcsh, so I may use chsh to choose a different
> shell.
echo '(/bin/ksh || /bin/bash || /bin/sh && exit)' >> ~/.login
> If I am using ksh, I usually stay with it. I may add to ~/.profile a
> custom prompt like:
> PS1=`hostname -s`':${PWD}$ '
> or
> PS1=`hostname -s`:'${PWD##/*/}'"$ "
I like two line prompts that are copy/pastable for scp, rsync and friends
PS1=`whoami`@`hostname -s`':${PWD}
$ '
That way you always have (screenwidth - 2) chars for your command line,
and can copy/paste whatever part of the user at host:path you want.
--
Brian Hatch I used to have a handle
Systems and on life, but it broke off.
Security Engineer
http://www.ifokr.org/bri/
Every message PGP signed
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists2.linuxjournal.com/pipermail/linux-list/attachments/20080322/957aa36d/attachment.sig
More information about the linux-list
mailing list