|
Page 1 2 3 4 5 6 7 8 9 10 11 12 13
Customizing the ZSH or BASH Prompts
22 December, 2005, 12:27 am
Some nifty things you can use to change the look of your ZSH or BASH prompts:
For example, I'm using the following switches in my .zshrc to customize my prompt:
PS1="%n@%m %~%#"
which makes the prompt look like:
shake@fOrk ~%
The BASH eqivalent would be:
PS1="\u@\h \w\$"
which makes the prompt look like:
shake@fOrk ~$
The cool thing about this is that you can add the current directory to the prompt and always know where you are. You could also do date and time stamps like this too!
( 1 Comments )
|
 |
|
Cool ps command things
21 December, 2005, 08:24 am
ps -s $$ will display the type of shell you are using.
fOrk% ps -p $$
PID TTY TIME CMD
1038 pts/6 0:00 zsh
( No Comments Yet )
|
|
|
Running multiple SSH daemons on 1 Computer
20 December, 2005, 07:41 pm
The OpenSSH sshd server and sftp-server can be started for more than one group or user on different ports. Edit your sshd_config (often /etc/ssh/sshd_config or in one of the other /etc folders).
Change the following and save alternate copies with the different options:
Port xx (use whatever, 22 is the standard, anything over 1024 is good)
AllowUsers soandso,anotheruser,more (comma delmited list of allowed users, can just be one)
Then you can start another sshd using the -f option and specifying the file. Like so:
root@fOrk #>/usr/local/etc/sshd -f /etc/ssh/sshd &
This way you can make multiple init.d scripts and start a new sshd server for different groups. Now on to figuring out bandwidth limiting....
( No Comments Yet )
|
|
|
The Application Manager in CDE
20 December, 2005, 04:13 pm
It is probably hilarious to a Solaris afficianado that I have just recently discovered the Application Manager in Solaris.
I started to use Solaris for hobby about 5 years ago. Solaris 2.6 was the version then and came with OpenWindows and CDE. OpenWindows wasn't pretty, but I've met a few "old-hack" admins who prefered it to CDE. OpenWindows got phased out of Solaris 9 in lieu of Gnome.
CDE however remains included, even in the bleeding edge builds. I'm currently using Solaris Express: Community Build Nevada 23 SPARC and CDE is a considerably speedier than the Gnome-based Java Desktop System. The JDS is REALLY pretty though.
My Ultra 30 is much more responsive in CDE on the console compared to the JDS. Odd though, over VNC, CDE and Java Desktop System seem to run at comparable speed. I think some framebuffer lag is the difference, My Ultra 30 has a 32Mb UltraCreator 3D, not a lightning fast video card; CDE displays in muted colors and could use less VRAM.
( 2 Comments )
|
 |
|
Page 1 2 3 4 5 6 7 8 9 10 11 12 13
|