Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

« Newer Snippets
Older Snippets »
Showing 1-2 of 2 total  RSS 

Solaris 10 dotfiles...

Solaris 10: Failing to source .bashrc

Last login: Thu Aug  2 22:40:42 2007 from 192.168.1.20
Sun Microsystems Inc.   SunOS 5.10      Generic January 2005
-bash-3.00$ 
-bash-3.00$ 
-bash-3.00$ 
-bash-3.00$ 
-bash-3.00$ ls -lrt
total 40935
-rw-r--r-- 1 mcs other      136 Mar 18 17:51 local.cshrc
-rw-r--r-- 1 mcs other      157 Mar 18 17:51 local.login
-rw-r--r-- 1 mcs other      174 Mar 18 17:51 local.profile
drwxr-xr-x 2 mcs other      512 Mar 18 18:03 Documents
drwxr-xr-x 2 mcs other      512 Mar 18 18:03 Desktop
-rw-r--r-- 1 mcs other       98 Mar 25 22:19 local.bashrc
-rw------- 1 mcs other 41872384 Apr  1 19:50 firefox-2.0.0.3.en-US.solaris10-i386-pkg
-rw-r--r-- 1 mcs other      200 Apr  1 22:32 links
-bash-3.00$ ls -al
total 40976
drwxr-xr-x 17 mcs  other     1024 Aug  2 22:43 .
drwxr-xr-x  4 root root       512 Mar 18 17:51 ..
-rw-------  1 mcs  other     5182 Aug  2 22:42 .bash_history
-rw-r--r--  1 mcs  other      121 Aug  2 22:31 .bashrc
drwxr-xr-x  9 mcs  other      512 Jul  1 20:08 .dt
-rwxr-xr-x  1 mcs  other     5111 Mar 18 18:03 .dtprofile
-rw-------  1 mcs  other       16 Mar 18 22:57 .esd_auth
drwx------  4 mcs  other      512 Jul  1 20:08 .gconf
drwx------  2 mcs  other      512 Jul 30 19:52 .gconfd
drwx------  4 mcs  other      512 Mar 18 18:03 .gnome
drwx------  8 mcs  other      512 Jul  1 20:08 .gnome2
drwx------  2 mcs  other      512 Mar 18 18:03 .gnome2_private
-rw-r--r--  1 mcs  other       92 Mar 18 18:03 .gtkrc-1.2-gnome2
-rw-------  1 mcs  other     2123 Jul  1 20:08 .ICEauthority
drwxr-xr-x  3 mcs  other      512 Mar 18 18:03 .iiim
drwx------  3 mcs  other      512 Mar 18 18:03 .metacity
drwx------  4 mcs  other      512 Mar 18 18:04 .mozilla
drwxr-xr-x  3 mcs  other      512 Mar 18 18:03 .nautilus
-rw-r--r--  1 mcs  other      185 Mar 25 20:52 .profile
-rw-------  1 mcs  other      264 Apr  1 19:49 .recently-used
-rw-------  1 mcs  other       34 Aug  2 22:33 .sh_history
drwxr-xr-x  3 mcs  other      512 Mar 18 18:03 .softwareupdate
drwx------  2 mcs  other      512 Mar 19 19:29 .ssh
drwx------  3 mcs  other      512 Mar 19 19:28 .sunw
-rw-------  1 mcs  other     3638 Aug  2 22:31 .viminfo
-rw-r--r--  1 mcs  other       39 Jul 31 23:00 .vimrc
-rw-------  1 mcs  other      309 Aug  2 22:43 .Xauthority
drwxr-xr-x  2 mcs  other      512 Mar 18 18:03 Desktop
drwxr-xr-x  2 mcs  other      512 Mar 18 18:03 Documents
-rw-------  1 mcs  other 41872384 Apr  1 19:50 firefox-2.0.0.3.en-US.solaris10-i386-pkg
-rw-r--r--  1 mcs  other      200 Apr  1 22:32 links
-rw-r--r--  1 mcs  other       98 Mar 25 22:19 local.bashrc
-rw-r--r--  1 mcs  other      136 Mar 18 17:51 local.cshrc
-rw-r--r--  1 mcs  other      157 Mar 18 17:51 local.login
-rw-r--r--  1 mcs  other      174 Mar 18 17:51 local.profile
-bash-3.00$ cat ~/.bashrc
PS1="(\t)[\[\033[1;33m\]\u\[\033[0m\]@\[\033[0;32m\]\h\[\033[0m\]:\[\033[1;34m\]\W\[\033[0m\]]\$"

export PS1

set -o vi
-bash-3.00$ . !$
. ~/.bashrc
(22:43:36)[mcs@solaris:~]$

Change IP address and hostname on Solaris

To change the IP address and hostname you must edit these files:

/etc/hosts
/etc/nodenames
/etc/hostname.[device]
/etc/defaultrouter
/etc/defaultdomain
/etc/nodename
« Newer Snippets
Older Snippets »
Showing 1-2 of 2 total  RSS