DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: ubuntu, RHAS, and other unmentionables
Posts: 372
Rep:
that is wierd.. there should be a vnc log file that may have your answer
like everyone else I'm sure you may be quite happy with VNC. I recently came across a much superior tool with better security, features etc that you should check out. I have been a vnc user for many years, but I am VERY impressed with FREENX!!
I'd recommend you don't use root for VNC. On my box there are 3 users who can VNC in so I got them to run vncpasswd and I use the following startup script:
Code:
#!/bin/bash
#
# description: Starts and stops vncserver. \
# used to provide remote X administration services.
unset VNCSERVERARGS
VNCSERVERS="1:pkitest 2:steve 3:oracle"
VNCSERVERARGS[1]="-geometry 1152x864"
VNCSERVERARGS[2]="-geometry 1152x864"
VNCSERVERARGS[3]="-geometry 1152x864"
start() {
echo -n $"Starting VNC server: "
ulimit -S -c 0 >/dev/null 2>&1
if [ ! -d /tmp/.X11-unix ]
then
mkdir -m 1777 /tmp/.X11-unix || :
fi
for display in ${VNCSERVERS}
do
echo -n "${display} "
unset BASH_ENV ENV
DISP="${display%%:*}"
export USER="${display##*:}"
export VNCUSERARGS="${VNCSERVERARGS[${DISP}]}"
su - ${USER} -c "cd ~${USER} && [ -f .vnc/passwd ] && vncserver :${DISP} ${VNCUSERARGS}"
done
}
stop() {
echo -n $"Shutting down VNC server: "
for display in ${VNCSERVERS}
do
echo -n "${display} "
unset BASH_ENV ENV
export USER="${display##*:}"
su ${USER} -c "vncserver -kill :${display%%:*}" >/dev/null 2>&1
done
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload)
stop
sleep 3
start
;;
condrestart)
if [ -f /var/lock/subsys/vncserver ]; then
stop
sleep 3
start
fi
;;
status)
status Xvnc
;;
*)
echo $"Usage: $0 {start|stop|restart|condrestart|status}"
exit 1
esac
User 1 connects with vncviewer hostname:1
User 2 connects with vncviewer hostname:2
User 3 connects with vncviewer hostname:3
Xvnc version 4.0 - built Apr 19 2005 04:26:49
Underlying X server release 40200000, The XFree86 Project, Inc
Sat Apr 1 17:10:51 2006
vncext: VNC extension running!
vncext: Listening for VNC connections on port 5901
vncext: created VNC server for screen 0
Could not init font path element /usr/X11R6/lib/X11/fonts/misc/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/Speedo/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/Type1/, removing from
list!
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/75dpi/, removing from
list!
Could not init font path element /usr/X11R6/lib/X11/fonts/100dpi/, removing from list!
Fatal server error:
could not open default font 'fixed'
xsetroot: unable to open display 'desktop:1'
/home/rich/.vnc/xstartup: line 7: twm: command not found
vncconfig: unable to open display "desktop:1"
xterm Xt error: Can't open display: desktop:1
My guess is that not finding twm is the culpret. (now to figure out what twm is! lol)
twm is a window manager (GUI) - there's some info at http://xwinman.org/vtwm.php describing it. You could try a different window manager if you don't want to install it. To see most of the window managers you have installed try running ls -l /usr/X11R6/bin/*wm or /usr/X11R6/bin/xwmconfig - I say most because there are also things like fluxbox, windowmaker, etc. and a bunch of others (http://xwinman.org/)
Now that's strange - in my /usr/X11R6/bin I have 225 files. I was going to suggest that your ~/.vnc/xstartup file might have a syntax error (I'll post mine anyway, in case it helps later), but that looks like there are a lot of X packages not installed.
Well, I got it working - thanks for all your help. I did learn alot from you.
The way I fixed it was I installed Mandrake. I was pretty disappointed with Ubuntu in that I was seeing (as you did) that I was missing alot of basic stuff.
If any Ubuntu contributors are reading this, 1 suggestion I can make is that after a simple install, use the package manager to install everything that would be considered basic, but missing.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.