Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

can't seem to get vnc4server to work

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
nasdeb
Posts: 5
Joined: 2018-04-16 21:28

can't seem to get vnc4server to work

#1 Post by nasdeb »

Hello,

i've been pulling my hair off for 2 weeks now to get vnc4server to work.

after a fresh install with the lastest netinst of Debian 9 (all option to default except printing server and installed gnome) i've run as root (su command) :

apt-get install vnc4server

the installation goes well, but when i run "vncserver" it can't open any instance, i get prompt for a password, but when i enter "vncserver -list" no vnc server are running...

when i try to start it as root logs are :

Warning: nasbiantest:1 is taken because of /tmp/.X11-unix/X1
Remove this file if there is no X server nasbiantest:1

You will require a password to access your desktops.

Password:
Verify:
Would you like to enter a view-only password (y/n)? n

New 'nasbiantest:2 (nathan)' desktop at :2 on machine nasbiantest

Starting applications specified in /etc/X11/Xvnc-session
Log file is /home/nathan/.vnc/nasbiantest:2.log

Use xtigervncviewer -SecurityTypes VncAuth -passwd /home/nathan/.vnc/passwd :2 to connect to the VNC server.


vncserver: Failed command '/etc/X11/Xvnc-session': 256!

=================== tail -15 /home/nathan/.vnc/nasbiantest:2.log ===================

Xvnc TigerVNC 1.7.0 - built Apr 9 2017 14:38:13
Copyright (C) 1999-2016 TigerVNC Team and many others (see README.txt)
See http://www.tigervnc.org for information on TigerVNC.
Underlying X server release 11903000, The X.Org Foundation


Tue Apr 17 00:08:19 2018
vncext: VNC extension running!
vncext: Listening for VNC connections on local interface(s), port 5902
vncext: created VNC server for screen 0
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":2"
after 173 requests (173 known processed) with 0 events remaining.
Killing Xtigervnc process ID 1296... which seems to be deadlocked. Using SIGKILL!

====================================================================================

Starting applications specified in /etc/X11/Xvnc-session has failed.
Maybe try something simple first, e.g.,
tigervncserver -xstartup /usr/bin/xterm




When i try to run the "tigervncserver -xstartup /usr/bin/xterm" as root logs are :

Warning: nasbiantest:1 is taken because of /tmp/.X11-unix/X1
Remove this file if there is no X server nasbiantest:1

New 'nasbiantest:2 (nathan)' desktop at :2 on machine nasbiantest

Starting applications specified in /usr/bin/xterm
Log file is /home/nathan/.vnc/nasbiantest:2.log

Use xtigervncviewer -SecurityTypes VncAuth -passwd /home/nathan/.vnc/passwd :2 to connect to the VNC server.


tigervncserver: Can't start '/usr/bin/xterm': No such file or directory!

=================== tail -15 /home/nathan/.vnc/nasbiantest:2.log ===================
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":2"
after 173 requests (173 known processed) with 0 events remaining.
Killing Xtigervnc process ID 1296... which seems to be deadlocked. Using SIGKILL!

Xvnc TigerVNC 1.7.0 - built Apr 9 2017 14:38:13
Copyright (C) 1999-2016 TigerVNC Team and many others (see README.txt)
See http://www.tigervnc.org for information on TigerVNC.
Underlying X server release 11903000, The X.Org Foundation


Tue Apr 17 00:08:40 2018
vncext: VNC extension running!
vncext: Listening for VNC connections on local interface(s), port 5902
vncext: created VNC server for screen 0
Can't exec "/usr/bin/xterm": Aucun fichier ou dossier de ce type at /usr/bin/tigervncserver line 877.

====================================================================================

Starting applications specified in /usr/bin/xterm has failed.
Maybe try something simple first, e.g.,
tigervncserver -xstartup /usr/bin/xterm




and when i try to run "vncserver :4" as user logs are :

Warning: nasbiantest:1 is taken because of /tmp/.X11-unix/X1
Remove this file if there is no X server nasbiantest:1

New 'nasbiantest:2 (nathan)' desktop at :2 on machine nasbiantest

Starting applications specified in /usr/bin/xterm
Log file is /home/nathan/.vnc/nasbiantest:2.log

Use xtigervncviewer -SecurityTypes VncAuth -passwd /home/nathan/.vnc/passwd :2 to connect to the VNC server.


tigervncserver: Can't start '/usr/bin/xterm': No such file or directory!

=================== tail -15 /home/nathan/.vnc/nasbiantest:2.log ===================
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":2"
after 173 requests (173 known processed) with 0 events remaining.
Killing Xtigervnc process ID 1296... which seems to be deadlocked. Using SIGKILL!

Xvnc TigerVNC 1.7.0 - built Apr 9 2017 14:38:13
Copyright (C) 1999-2016 TigerVNC Team and many others (see README.txt)
See http://www.tigervnc.org for information on TigerVNC.
Underlying X server release 11903000, The X.Org Foundation


Tue Apr 17 00:08:40 2018
vncext: VNC extension running!
vncext: Listening for VNC connections on local interface(s), port 5902
vncext: created VNC server for screen 0
Can't exec "/usr/bin/xterm": Aucun fichier ou dossier de ce type at /usr/bin/tigervncserver line 877.

====================================================================================

Starting applications specified in /usr/bin/xterm has failed.
Maybe try something simple first, e.g.,
tigervncserver -xstartup /usr/bin/xterm



i've try deleting "/tmp/.X11-unix/X1" with no success

if anyone has any idea i'm seeking for somes :)

Thank in advance for anyone who had the strenth to read until here and all the others
Last edited by nasdeb on 2018-04-17 07:08, edited 1 time in total.

arzgi
Posts: 1185
Joined: 2008-02-21 17:03
Location: Finland
Been thanked: 31 times

Re: can't seem to get vnc4server

#2 Post by arzgi »

There is multiple time this error:

Code: Select all

Can't start '/usr/bin/xterm': No such file or directory!
So install xterm:

Code: Select all

apt install xterm
(as root)

nasdeb
Posts: 5
Joined: 2018-04-16 21:28

Re: can't seem to get vnc4server to work

#3 Post by nasdeb »

Thank you very much, you make me trust in myself again !

sorry for the late reply but i was busy trying hard thoses days.

I just tryed what you suggested to me and i made a big step forward :

I can now get an instance of vnc by running "tigervncserver -xstartup /usr/bin/xterm" but i can't connect to it.

When i launch "vncserver" as a user i get this log :

Code: Select all

Warning: nasbiantest:1 is taken because of /tmp/.X11-unix/X1
Remove this file if there is no X server nasbiantest:1

New 'nasbiantest:2 (nathan)' desktop at :2 on machine nasbiantest

Starting applications specified in /etc/X11/Xvnc-session
Log file is /home/nathan/.vnc/nasbiantest:2.log

Use xtigervncviewer -SecurityTypes VncAuth -passwd /home/nathan/.vnc/passwd :2 to connect to the VNC server.


vncserver: Failed command '/etc/X11/Xvnc-session': 256!

=================== tail -15 /home/nathan/.vnc/nasbiantest:2.log ===================
      after 173 requests (173 known processed) with 0 events remaining.

Xvnc TigerVNC 1.7.0 - built Apr  9 2017 14:38:13
Copyright (C) 1999-2016 TigerVNC Team and many others (see README.txt)
See http://www.tigervnc.org for information on TigerVNC.
Underlying X server release 11903000, The X.Org Foundation


Wed Apr 18 07:18:43 2018
 vncext:      VNC extension running!
 vncext:      Listening for VNC connections on local interface(s), port 5902
 vncext:      created VNC server for screen 0
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":2"
      after 173 requests (173 known processed) with 0 events remaining.
Killing Xtigervnc process ID 1188... which seems to be deadlocked. Using SIGKILL!

====================================================================================

Starting applications specified in /etc/X11/Xvnc-session has failed.
Maybe try something simple first, e.g.,
	tigervncserver -xstartup /usr/bin/xterm



When i try to launch "vncserver" as root i get this log :

Code: Select all

Warning: nasbiantest:1 is taken because of /tmp/.X11-unix/X1
Remove this file if there is no X server nasbiantest:1

You will require a password to access your desktops.

Password:
Verify:
Would you like to enter a view-only password (y/n)? n

New 'nasbiantest:2 (root)' desktop at :2 on machine nasbiantest

Starting applications specified in /etc/X11/Xvnc-session
Log file is /root/.vnc/nasbiantest:2.log

Use xtigervncviewer -SecurityTypes VncAuth -passwd /root/.vnc/passwd :2 to connect to the VNC server.


vncserver: Failed command '/etc/X11/Xvnc-session': 256!

=================== tail -15 /root/.vnc/nasbiantest:2.log ===================
Xvnc TigerVNC 1.7.0 - built Apr  9 2017 14:38:13
Copyright (C) 1999-2016 TigerVNC Team and many others (see README.txt)
See http://www.tigervnc.org for information on TigerVNC.
Underlying X server release 11903000, The X.Org Foundation


Wed Apr 18 07:21:03 2018
 vncext:      VNC extension running!
 vncext:      Listening for VNC connections on local interface(s), port 5902
 vncext:      created VNC server for screen 0
mesg: échec de ttyname: Ioctl() inapproprié pour un périphérique
Terminated
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":2"
      after 173 requests (173 known processed) with 0 events remaining.
Killing Xtigervnc process ID 1277... which seems to be deadlocked. Using SIGKILL!

=============================================================================

Starting applications specified in /etc/X11/Xvnc-session has failed.
Maybe try something simple first, e.g.,
	tigervncserver -xstartup /usr/bin/xterm



When i try "tigervncserver -xstartup /usr/bin/xterm" as a user i can see an instance running on port 2 (5902) with "vncserver -list" but when i try to connect with vnc viewer (on windows) i get "connection refuser by server" and logs are :

Code: Select all

Warning: nasbiantest:1 is taken because of /tmp/.X11-unix/X1
Remove this file if there is no X server nasbiantest:1
/usr/bin/xauth:  /run/user/1000/gdm/Xauthority not writable, changes will be ignored
/usr/bin/xauth:  timeout in locking authority file /run/user/1000/gdm/Xauthority

New 'nasbiantest:2 (nathan)' desktop at :2 on machine nasbiantest

Starting applications specified in /usr/bin/xterm
Log file is /home/nathan/.vnc/nasbiantest:2.log

Use xtigervncviewer -SecurityTypes VncAuth -passwd /home/nathan/.vnc/passwd :2 to connect to the VNC server.



When i try "tigervncserver -xstartup /usr/bin/xterm" as root i get this log :

Code: Select all

Warning: nasbiantest:1 is taken because of /tmp/.X11-unix/X1
Remove this file if there is no X server nasbiantest:1
/usr/bin/xauth:  /run/user/1000/gdm/Xauthority not writable, changes will be ignored
/usr/bin/xauth:  timeout in locking authority file /run/user/1000/gdm/Xauthority

New 'nasbiantest:2 (nathan)' desktop at :2 on machine nasbiantest

Starting applications specified in /usr/bin/xterm
Log file is /home/nathan/.vnc/nasbiantest:2.log

Use xtigervncviewer -SecurityTypes VncAuth -passwd /home/nathan/.vnc/passwd :2 to connect to the VNC server.


So as i am in debian 9 i've try to enable the gui login for root but without success to launch a vnc server or connexion ( https://economictheoryblog.com/2017/05/ ... -debian-9/ )

And as it is advised on this post ( https://github.com/offensive-security/k ... issues/821 ) i tryed installing sudo then run "vncserver" and the "tigervncserver -xstartup /usr/bin/xterm" but no luck either here

I think maybe the probleme come from my "/etc/X11/Xvnc-session" but i don't know what it is (didn't foun someone with the same probleme on google)

anyway /etc/X11/Xvnc-session says when open with nano :

Code: Select all

#! /bin/sh

test x"$SHELL" = x"" && SHELL=/bin/bash
test x"$1"     = x"" && set -- default

vncconfig -iconic &
$SHELL -l <<EOF
exec /etc/X11/Xsession "$@"
EOF
vncserver -kill $DISPLAY
hope someone can help me out :)


edit :
also tryed to comment this line of the "/etc/X11/Xvnc-session" but didn't work

Code: Select all

vncserver -kill $DISPLAY

nasdeb
Posts: 5
Joined: 2018-04-16 21:28

Re: can't seem to get vnc4server to work

#4 Post by nasdeb »

Finally i just decided to go with debian 8 and XFCE as it is almost the new LTS and it is much more easyer to configure.

Thanks to everyone who have tryed to help me !

cattaka
Posts: 1
Joined: 2018-11-25 12:18

Re: can't seem to get vnc4server to work

#5 Post by cattaka »

I had same issue, but finnaly I solved.

I succeed to start xterm, but I couldn't connect too.
In my case, I tried to connect from other machine(not localhost) and I didn't put "-localhost no" option for vncserver.

After I putted that option, it went well.
I got the option via https://linuxconfig.org/vnc-server-clie ... etch-linux

Post Reply