View previous topic :: View next topic |
Author |
Message |
cwc Veteran
Joined: 20 Mar 2006 Posts: 1402 Location: Tri-Cities, WA USA
|
Posted: Thu Jan 02, 2025 4:35 pm Post subject: tigerVNC not connecting from client. server crashing[slvd] |
|
|
I have a gentoo machine I'm running xfce and I'm trying to connect to a tigervnc server running xfce.
error from client: unable to connect to socket connection refused (111)
I have followed this tutorial: https://wiki.gentoo.org/wiki/TigerVNC
and
https://wiki.gentoo.org/wiki/TigerVNC#Migrating_from_1.13.1-r2_or_lower:
Server:
Code: |
narnina /etc/tigervnc # rc-service tigervnc restart
* Stopping TigerVNC server :1 ... [ ok ]
* Running /etc/init.d/tigervnc in compatibility mode
* Please migrate to one service per display as detailed here:
* https://wiki.gentoo.org/wiki/TigerVNC#Migrating_from_1.13.1-r2_or_lower:
* Starting TigerVNC server :1 ... [ ok ]
narnina /etc/tigervnc # rc-service tigervnc.1 restart
* Stopping TigerVNC server :1 ... [ ok ]
* Starting TigerVNC server :1 ...
|
I've tried port 5900 and 5901
Her is what I added to: /etc/tigervnc/vncserver-config-defaults
session=xfce
securitytypes=vncauth,tlsvnc
geometry=1920x1080
localhost
alwaysshared _________________ Without diversity there can be no evolution:)
Last edited by cwc on Fri Jan 03, 2025 7:19 pm; edited 2 times in total |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22924
|
Posted: Thu Jan 02, 2025 4:51 pm Post subject: |
|
|
Is TigerVNC listening on the address and port to which the client is trying to connect? The error message suggests it is not. That could be because it crashed or because you have it bound to the wrong address. |
|
Back to top |
|
|
cwc Veteran
Joined: 20 Mar 2006 Posts: 1402 Location: Tri-Cities, WA USA
|
Posted: Thu Jan 02, 2025 6:33 pm Post subject: |
|
|
Hu wrote: | Is TigerVNC listening on the address and port to which the client is trying to connect? The error message suggests it is not. That could be because it crashed or because you have it bound to the wrong address. |
Thanks for the reply:
netstat -ano does not give me a hint.
The port should be 5800 or 5900
I could not find how to set the port in the docs.
Code: |
# vncserver -list
usage: vncserver <display>
|
Code: |
narnina /etc/tigervnc # netstat -ano
... shows no connections
|
_________________ Without diversity there can be no evolution:)
Last edited by cwc on Thu Jan 02, 2025 10:54 pm; edited 2 times in total |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22924
|
Posted: Thu Jan 02, 2025 7:19 pm Post subject: |
|
|
That looks to me like TigerVNC is not listening anywhere. Do you have any evidence that its process still exists? |
|
Back to top |
|
|
cwc Veteran
Joined: 20 Mar 2006 Posts: 1402 Location: Tri-Cities, WA USA
|
Posted: Thu Jan 02, 2025 8:38 pm Post subject: |
|
|
Hu wrote: | That looks to me like TigerVNC is not listening anywhere. Do you have any evidence that its process still exists? |
You are correct Hu
Back to the drawing board. Thanks Hu
Code: |
rc-staus
Dynamic Runlevel: manual
tigervnc.1 [ crashed ]
tigervnc [ crashed ]
|
_________________ Without diversity there can be no evolution:) |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22924
|
Posted: Thu Jan 02, 2025 11:18 pm Post subject: |
|
|
Does TigerVNC write any logs that might tell why it is terminating? Can you start the process from a terminal to check for useful output? |
|
Back to top |
|
|
cwc Veteran
Joined: 20 Mar 2006 Posts: 1402 Location: Tri-Cities, WA USA
|
Posted: Thu Jan 02, 2025 11:50 pm Post subject: |
|
|
Hu wrote: | Does TigerVNC write any logs that might tell why it is terminating? Can you start the process from a terminal to check for useful output? |
good call. here is syslog
Code: |
Jan 2 15:45:59 narnina /etc/init.d/tigervnc[2425]: Running /etc/init.d/tigervnc in compatibility mode
Jan 2 15:45:59 narnina /etc/init.d/tigervnc[2426]: Please migrate to one service per display as detailed here:
Jan 2 15:45:59 narnina /etc/init.d/tigervnc[2427]: https://wiki.gentoo.org/wiki/TigerVNC#Migrating_from_1.13.1-r2_or_lower:
Jan 2 15:47:03 narnina init: Id "s1" respawning too fast: disabled for 5 minutes
|
I'm not sure what this means:
init: Id "s1" respawning too fast: disabled for 5 minutes _________________ Without diversity there can be no evolution:) |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22924
|
Posted: Fri Jan 03, 2025 12:31 am Post subject: |
|
|
You have an entry in /etc/inittab (or similar) that starts a program, and that program is promptly exiting. init will try restarting it a few times, but if it continues to exit promptly, then init presumes it is broken and that further restarts should be delayed, to avoid spinning the CPU repeatedly spawning a broken program. |
|
Back to top |
|
|
cwc Veteran
Joined: 20 Mar 2006 Posts: 1402 Location: Tri-Cities, WA USA
|
Posted: Fri Jan 03, 2025 1:07 am Post subject: |
|
|
Hu wrote: | You have an entry in /etc/inittab (or similar) that starts a program, and that program is promptly exiting. init will try restarting it a few times, but if it continues to exit promptly, then init presumes it is broken and that further restarts should be delayed, to avoid spinning the CPU repeatedly spawning a broken program. |
thanks again. I understand. I'll keep on trying tigervnc.
tigervnc has the best documentation.
https://wiki.gentoo.org/wiki/Remote_desktop
I thought I had Single Server Configuration setup:
https://wiki.gentoo.org/wiki/TigerVNC#Migrating_from_1.13.1-r2_or_lower:
I really do not want to use xrdp because I hate everything related to microsoft. _________________ Without diversity there can be no evolution:) |
|
Back to top |
|
|
cwc Veteran
Joined: 20 Mar 2006 Posts: 1402 Location: Tri-Cities, WA USA
|
Posted: Fri Jan 03, 2025 3:59 pm Post subject: tigerdirect is running but I can not connect |
|
|
I got tigerdirect server started as follows:
ln -s tigervnc /etc/init.d/tigervnc.1
rc-service tigervnc.1 start
now I can not connect from the client to port 5900. {but there was some progress}
I got help from this post: https://forums.gentoo.org/viewtopic-t-1163253-start-0.html
I added:
TIGERVNC_XSESSION_FILE="/etc/X11/Sessions/Xfce"
to /etc/init.d/tigervnc
Code: |
# Config file for /etc/init.d/tigervnc
# Add the user(s) Xvnc(1) should be run for to /etc/tigervnc/vncserver.users
# DISPLAYS is no loger used.
# cwc Optionally override the default Xsession file
# TIGERVNC_XSESSION_FILE="/usr/share/sddm/scripts/Xsession"
# TIGERVNC_XSESSION_FILE="/etc/gdm/Xsession"
# TIGERVNC_XSESSION_FILE="/etc/lightdm/Xsession"
# TIGERVNC_XSESSION_FILE="/usr/share/slim/Xsession"
TIGERVNC_XSESSION_FILE="/etc/X11/Sessions/Xfce"
# vncsession no longer supports VNC_OPTS
# Use /etc/tigervnc/vncserver-config-defaults or $HOME/.config/tigervnc/config instead
|
Code: |
rc-status
Dynamic Runlevel: manual
tigervnc.1 [ started ]
|
_________________ Without diversity there can be no evolution:) |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22924
|
Posted: Fri Jan 03, 2025 4:04 pm Post subject: |
|
|
Please show the output of ss -antp. I suspect you have it listening on localhost, and are trying to connect over TCP from a remote system. If so, you will either need to tunnel the connection over ssh or allow it to offer (potentially unencrypted) service to anyone who can connect. |
|
Back to top |
|
|
cwc Veteran
Joined: 20 Mar 2006 Posts: 1402 Location: Tri-Cities, WA USA
|
Posted: Fri Jan 03, 2025 6:00 pm Post subject: |
|
|
Hu wrote: | Please show the output of ss -antp. I suspect you have it listening on localhost, and are trying to connect over TCP from a remote system. If so, you will either need to tunnel the connection over ssh or allow it to offer (potentially unencrypted) service to anyone who can connect. |
I was able to connect with Remmina.
See my post above.
additionally I set the password in two places.
root #vncpasswd /etc/X11/vncpasswd
and
user $vncpasswd
I believe user $vncpasswd solved the authenication problem.
Code: |
# ss -antp
State Recv-Q Send-Q Local Address:Port Peer Address:Port Process
LISTEN 0 5 0.0.0.0:5901 0.0.0.0:* users:(("Xvnc",pid=9911,fd=6))
LISTEN 0 5 0.0.0.0:5900 0.0.0.0:* users:(("X",pid=1899,fd=15))
LISTEN 0 128 0.0.0.0:22 0.0.0.0:* users:(("sshd",pid=1798,fd=7))
ESTAB 0 0 192.168.1.9:5901 192.168.1.8:50898 users:(("Xvnc",pid=9911,fd=31))
ESTAB 0 0 192.168.1.9:5900 192.168.1.8:38236 users:(("X",pid=1899,fd=64))
ESTAB 0 0 192.168.1.50:37358 74.125.135.188:5228 users:(("chrome",pid=10793,fd=21))
ESTAB 0 68 192.168.1.9:22 192.168.1.8:42982 users:(("sshd-session",pid=2271,fd=4),("sshd-session",pid=2268,fd=4))
LISTEN 0 5 [::]:5901 [::]:* users:(("Xvnc",pid=9911,fd=7))
LISTEN 0 5 [::]:5900 [::]:* users:(("X",pid=1899,fd=16))
LISTEN 0 128 [::]:22 [::]:* users:(("sshd",pid=1798,fd=8))
|
_________________ Without diversity there can be no evolution:) |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22924
|
Posted: Fri Jan 03, 2025 7:02 pm Post subject: |
|
|
cwc wrote: | Hu wrote: | Please show the output of ss -antp. I suspect you have it listening on localhost, and are trying to connect over TCP from a remote system. If so, you will either need to tunnel the connection over ssh or allow it to offer (potentially unencrypted) service to anyone who can connect. | I was able to connect with Remmina.
See my post above. | Your most recent post is the first mention of Remmina, and the first time you said it connected successfully. Your new output shows it is listening on a LAN address, which is not what I speculated above.
Are there remaining problems to address, or would you now consider this thread to be solved? |
|
Back to top |
|
|
cwc Veteran
Joined: 20 Mar 2006 Posts: 1402 Location: Tri-Cities, WA USA
|
Posted: Fri Jan 03, 2025 7:19 pm Post subject: |
|
|
Hu wrote: | cwc wrote: | Hu wrote: | Please show the output of ss -antp. I suspect you have it listening on localhost, and are trying to connect over TCP from a remote system. If so, you will either need to tunnel the connection over ssh or allow it to offer (potentially unencrypted) service to anyone who can connect. | I was able to connect with Remmina.
See my post above. | Your most recent post is the first mention of Remmina, and the first time you said it connected successfully. Your new output shows it is listening on a LAN address, which is not what I speculated above.
Are there remaining problems to address, or would you now consider this thread to be solved? |
thread solved!
Thank you _________________ Without diversity there can be no evolution:) |
|
Back to top |
|
|
|