When I create vnc for my linux box, its showing desktop when I login. I want only xterm windows. I see xterm under /bin/xterm. Please help.
We need to edit file $HOME/.vnc/xstartup with the contents below:
#!/bin/sh # Uncomment the following two lines for normal desktop: # unset SESSION_MANAGER # exec /etc/X11/xinit/xinitrc [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources xsetroot -solid grey vncconfig -iconic & xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & #twm & /opt/fvwm/bin/fvwm2 &
This will turn off desktop and show only xterm windows.