Xstartup example for both Linux and Solaris

Posted on May 6, 2008

.How to Start vncserver

$ vncserver -nolisten local -depth 24

  • remember display number after vncserver startup sucessfully
  • [option] you can change password by command “vncpasswd”
  • [option] you can kill your vncserver by command “vncserver -kill :<display_number>”2.Example xstatup file (located in .vnc of your home directory):#!/bin/sh

    xrdb $HOME/.Xresources
    xsetroot -solid grey
    vncconfig -nowin &
    xterm -geometry 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” &
    #
    #twm & #vnc default
    #mwm & #X
    #/usr/dt/bin/dtwm & #CDE
    #olwm & #openwin
    #/usr/bin/startkde & #KDE of linux
    #exec gnome-session & #GNOME of linux
    #
    if [ "`uname -sr`" = "SunOS 5.9" ]; then
    #/opt/sfw/kde/bin/startkde &
    /usr/dt/bin/dtwm &
    elif [ `uname -s` = "SunOS" ]; then
    /usr/dt/bin/dtwm &
    elif [ `uname -s` = "Linux" ]; then
    unset SESSION_MANAGER
    exec /etc/X11/xinit/xinitrc
    else
    twm &
    fi

  • Popularity: 4% [?]

    Related Posts:

    » Filed Under Linux

    Comments

    2 Responses to “Xstartup example for both Linux and Solaris”

    1. Jason on May 6th, 2008 8:28 pm

      Where can I download the vnc?

    2. Fix copy / paste issue between vnc and windows : Tips5 on September 13th, 2011 10:16 pm

      [...] run command “vncconfig -nowin &” ,also I suggest to put this command to your xstartup files vncconfig nowin [...]

    Leave a Reply