Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

tightvncserver: Could not start screen

3,169 views
Skip to first unread message

Susam Pal

unread,
Mar 19, 2011, 11:50:01 AM3/19/11
to
I followed the following steps to start tightvncserver on Debian Wheezy.

1. Ran the following command as root: aptitude update; aptitude install tightvncserver

2. Logged into my GNOME desktop as non root user.

3. Opened mrxvt. Executed the following command in bash prompt: tightvncserver

I got this output.

susam@nifty:~$ vncserver -geometry 1024x800 -depth 32
Couldn't start Xtightvnc; trying default font path.
Please set correct fontPath in the vncserver script.
Couldn't start Xtightvnc process.

19/03/11 21:13:35 Xvnc version TightVNC-1.3.9
19/03/11 21:13:35 Copyright (C) 2000-2007 TightVNC Group
19/03/11 21:13:35 Copyright (C) 1999 AT&T Laboratories Cambridge
19/03/11 21:13:35 All Rights Reserved.
19/03/11 21:13:35 See http://www.tightvnc.com/ for information on TightVNC
19/03/11 21:13:35 Desktop name 'X' (nifty:1)
19/03/11 21:13:35 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t
19/03/11 21:13:35 Listening for VNC connections on TCP port 5901

Fatal server error:
Couldn't add screen
19/03/11 21:13:36 Xvnc version TightVNC-1.3.9
19/03/11 21:13:36 Copyright (C) 2000-2007 TightVNC Group
19/03/11 21:13:36 Copyright (C) 1999 AT&T Laboratories Cambridge
19/03/11 21:13:36 All Rights Reserved.
19/03/11 21:13:36 See http://www.tightvnc.com/ for information on TightVNC
19/03/11 21:13:36 Desktop name 'X' (nifty:1)
19/03/11 21:13:36 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t
19/03/11 21:13:36 Listening for VNC connections on TCP port 5901

Fatal server error:
Couldn't add screen

susam@nifty:~$

Could you please help me n troubleshooting this?

bri...@aracnet.com

unread,
Mar 19, 2011, 12:00:01 PM3/19/11
to
On Sat, 19 Mar 2011 21:17:31 +0530
Susam Pal <susa...@gmail.com> wrote:

> susam@nifty:~$
>
> Could you please help me n troubleshooting this?

aaah, here it is:

#!/bin/sh

exec /usr/bin/X -nolisten tcp "$@"
xserverrc (END)

btw, I'm guessing here, I have no idea if it's the problem.

if you are going from a unix machine to a unix machine I would consider
using ssh with X forwarded, i.e. ssh -X

Brian


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/20110319085...@windy.deldotd.com

bri...@aracnet.com

unread,
Mar 19, 2011, 12:00:02 PM3/19/11
to
On Sat, 19 Mar 2011 21:17:31 +0530
Susam Pal <susa...@gmail.com> wrote:

>
> Fatal server error:
> Couldn't add screen
>
> susam@nifty:~$
>
> Could you please help me n troubleshooting this?

I remember that a long time ago X used be installed default with tcp
access turned off, and that you need tcp access for something like vnc
to work.

unfortunately I don't remember how to check for that, maybe some else
can enlighten us.

Susam Pal

unread,
Mar 20, 2011, 5:50:02 PM3/20/11
to
On Sat, Mar 19, 2011 at 9:28 PM, <bri...@aracnet.com> wrote:
> On Sat, 19 Mar 2011 21:17:31 +0530
> Susam Pal <susa...@gmail.com> wrote:
>
>> susam@nifty:~$
>>
>> Could you please help me n troubleshooting this?
>
> aaah, here it is:
>
> #!/bin/sh
>
> exec /usr/bin/X -nolisten tcp "$@"
> xserverrc (END)
>
> btw, I'm guessing here, I have no idea if it's the problem.
>
> if you are going from a unix machine to a unix machine I would consider
> using ssh with X forwarded, i.e. ssh -X
>
> Brian
>

I am running tightvncserver after logging into my GNOME desktop. After
logging into my GNOME desktop, I open mrxvt and issue this command
from the bash shell there.

So, what modifications do I need to make and in which file to allow X
to enable TCP access?

Susam


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/AANLkTikw+jL0M9D3xP3yxg5H5644-ifLKa4EK=g=2L...@mail.gmail.com

bri...@aracnet.com

unread,
Mar 20, 2011, 6:10:02 PM3/20/11
to
On Mon, 21 Mar 2011 03:11:47 +0530
Susam Pal <susa...@gmail.com> wrote:

> On Sat, Mar 19, 2011 at 9:28 PM, <bri...@aracnet.com> wrote:
> > On Sat, 19 Mar 2011 21:17:31 +0530
> > Susam Pal <susa...@gmail.com> wrote:
> >
> >> susam@nifty:~$
> >>
> >> Could you please help me n troubleshooting this?
> >
> > aaah, here it is:
> >
> > #!/bin/sh
> >
> > exec /usr/bin/X -nolisten tcp "$@"
> > xserverrc (END)
> >
> > btw, I'm guessing here, I have no idea if it's the problem.
> >
> > if you are going from a unix machine to a unix machine I would
> > consider using ssh with X forwarded, i.e. ssh -X
> >
> > Brian
> >
>
> I am running tightvncserver after logging into my GNOME desktop. After
> logging into my GNOME desktop, I open mrxvt and issue this command
> from the bash shell there.
>
> So, what modifications do I need to make and in which file to allow X
> to enable TCP access?
>
> Susam
>
>

from the man-page

:display
The display number to use. If omitted, the next free display number
is used.

have you tried

vncserver :0

most likely the next free display would be :1, which you are probably
not running, and would then give you that error.

I think my previous suspicion about tcp connections is wrong.

and, again, if you are going from unix-unix use ssh -X. if you are
trying to connect to a windows box, vnc works well.

also
Brian


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/20110320150...@windy.deldotd.com

Susam Pal

unread,
Mar 23, 2011, 1:00:02 PM3/23/11
to

I tried running vncserver :0 but it didn't start. It complained that
there is a lock file already.

susam@nifty:~$ vncserver :0

Warning: nifty:0 is taken because of /tmp/.X0-lock
Remove this file if there is no X server nifty:0
A VNC server is already running as :0

susam@nifty:~$ ps -aef | grep -i vnc
susam 5268 5209 0 12:57 pts/2 00:00:00 grep -i vnc

susam@nifty:~$ ls -l /tmp/.X0-lock
-r--r--r-- 1 root root 11 Mar 17 14:49 /tmp/.X0-lock

susam@nifty:~$ ls -l .vnc/
total 12
-rw-r--r-- 1 susam susam 1012 Mar 19 21:13 nifty:1.log
-rw-r--r-- 1 susam susam 6 Mar 19 21:13 nifty:1.pid
-rw------- 1 susam susam 8 Mar 19 21:06 passwd
susam@nifty:~$

So, I went ahead and deleted the lock file.

susam@nifty:~$ su
Password:
nifty:/home/susam# rm /tmp/.X0-lock
nifty:/home/susam# exit
exit

Tried again and it WORKED! :)

susam@nifty:~$ vncserver :0

New 'X' desktop is nifty:0

Creating default startup script /home/susam/.vnc/xstartup
Starting applications specified in /home/susam/.vnc/xstartup
Log file is /home/susam/.vnc/nifty:0.log

susam@nifty:~$ ps -aef | grep vnc
susam 5376 1 0 13:01 pts/2 00:00:00 Xtightvnc :0 -desktop
X -auth /home/susam/.Xauthority -geometry 1024x768 -depth 24 -rfbwait
120000 -rfbauth /home/susam/.vnc/passwd -rfbport 5900 -fp
/usr/share/fonts/X11/misc,/usr/X11R6/lib/X11/fonts/misc,/usr/share/fonts/X11/cyrillic,/usr/X11R6/lib/X11/fonts/cyrillic,/usr/share/fonts/X11/100dpi/:unscaled,/usr/X11R6/lib/X11/fonts/100dpi/:unscaled,/usr/share/fonts/X11/75dpi/:unscaled,/usr/X11R6/lib/X11/fonts/75dpi/:unscaled,/usr/share/fonts/X11/Type1,/usr/X11R6/lib/X11/fonts/Type1,/usr/share/fonts/X11/100dpi,/usr/X11R6/lib/X11/fonts/100dpi,/usr/share/fonts/X11/75dpi,/usr/X11R6/lib/X11/fonts/75dpi,/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType
-co /etc/X11/rgb
susam 5408 5209 0 13:01 pts/2 00:00:00 grep vnc
susam@nifty:~$

So, the VNC server did start. I was able to connect to it from a
Windows box, however, I could see only a blank X screen with a cross
shaped pointer. I didn't try anything beyond this. It seems like any
new GUI application we run has to be exported to this display.
However, I want to try something else.

Is there a way to start VNC server such that it makes the current
GNOME desktop available to the remote client?

Regards,
Susam Pal


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/AANLkTi+0WnTfq7vnpjv6...@mail.gmail.com

Selim T. Erdogan

unread,
Mar 25, 2011, 7:10:01 PM3/25/11
to
Susam Pal, 23.03.2011:

>
> Is there a way to start VNC server such that it makes the current
> GNOME desktop available to the remote client?

In the Gnome menu, try under "System->Preferences->Remote Desktop"


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/20110325224...@cs.utexas.edu

0 new messages