You are here: TWiki > Guides Web > Solaris r7 - 19 Dec 2008 - 22:32 - JesseSuen


Start of topic | Skip to actions

Solaris Guides

Add color to vim

copy 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 shell

Oftentimes 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

  • Install "fileutils" package from blastwave.
  • alias ls = 'gls --color=auto -p'

References:

Automount Error: Not owner

In /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 owner

Edit: /etc/default/nfs Change: "#NFS_CLIENT_VERSMAX=4" to "NFS_CLIENT_VERSMAX=3"

References:

Configure Solaris as a NIS Client

1) Add entry for NIS server in /etc/hosts:
12.34.56.78 nisserver.company.com nisserver

2) Start "ypinit -c" and enter nisserver.company.com as NIS server

# ypinit -c

3) Enable & start nis client

# svcadm enable svc:/network/nis/client:default

4) Edit /etc/default/nfs with max version of 3 so that Linux automounts work

NFS_CLIENT_VERSMAX=3  

5) Restart autofs

# svcadm restart autofs 

6) Verify everything is working

# ypcat hosts
# ypcat auto.auto
# cd /auto/mount/path
# ls

-- JesseSuen - 02 Mar 2006

toggleopenShow attachmentstogglecloseHide attachments
Topic attachments
I Attachment Action Size Date Who Comment
elseEXT vt100 manage 1.3 K 04 Oct 2006 - 20:05 JesseSuen Decompiled, edited, and recompiled VT100 terminfo file supporting colors
Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r7 < r6 < r5 < r4 < r3 | More topic actions
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback