Start of topic | Skip to actions
Solaris Guides
Add color to vimcopy this vt100 file into your ~/.terminfo/v/ directory (create if necessary). Create or edit ~/.vimrc and add the following:
if &term =~ 'xterm'
set term=xterm-color
endif
if has('syntax') && (&t_Co > 2)
syntax on
colorscheme default
endif
References:
Change default shell to bash when forced to use a different shellOftentimes in workplaces and schools, IT departments will control the default shell being used in their managed Unix environments. But if you are like me and get tired of typing:exec bash every time you login, you can edit your login shell scripts to change your shell to bash, zsh, or your own choice.
The following example works for accounts defaulted with the ksh shell. csh/tcsh will look a little different. You will need to add the following lines at the end of your ~/.profile file:
SHELL_NAME=/usr/bin/bash
if [[ -x $SHELL_NAME && $SHELL != $SHELL_NAME ]] ; then
export SHELL=$SHELL_NAME
case $- in
*i*) # this is an interactive shell
echo "Loading $SHELL_NAME..."
exec $SHELL
;;
esac
fi
Basically, this code will check to see if your desired shell is different than the current one. If it is, then reset your $SHELL environment variable to /usr/bin/bash. If it is an interactive shell, execute it. You only want to exec the shell if it is an interactive shell and not a login shell. This is because if it tries to execute it during a login process, it may cause problems with your windowing managers such as CDE/GNOME and immediately kick you out to the login screen, making it impossible for you to login using the GUI.
References:
Add color to ls
Automount Error: Not ownerIn /var/adm/messages:May 15 15:36:06 media10 automountd[496]: [ID 834250 daemon.error] Mount of server.com:/path on /auto/path: Not owner May 15 15:36:06 media10 nfs: [ID 435675 kern.warning] WARNING: NFS server initial call to server.com failed: Not ownerEdit: /etc/default/nfs Change: "#NFS_CLIENT_VERSMAX=4" to "NFS_CLIENT_VERSMAX=3" References: Configure Solaris as a NIS Client1) Add entry for NIS server in /etc/hosts:12.34.56.78 nisserver.company.com nisserver2) Start "ypinit -c" and enter nisserver.company.com as NIS server # ypinit -c3) Enable & start nis client # svcadm enable svc:/network/nis/client:default4) Edit /etc/default/nfs with max version of 3 so that Linux automounts work NFS_CLIENT_VERSMAX=35) Restart autofs # svcadm restart autofs6) Verify everything is working # ypcat hosts # ypcat auto.auto # cd /auto/mount/path # ls-- JesseSuen - 02 Mar 2006 | |