Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
tigerVNC not connecting from client. server crashing[slvd]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1402
Location: Tri-Cities, WA USA

PostPosted: Thu Jan 02, 2025 4:35 pm    Post subject: tigerVNC not connecting from client. server crashing[slvd] Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22924

PostPosted: Thu Jan 02, 2025 4:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1402
Location: Tri-Cities, WA USA

PostPosted: Thu Jan 02, 2025 6:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22924

PostPosted: Thu Jan 02, 2025 7:19 pm    Post subject: Reply with quote

That looks to me like TigerVNC is not listening anywhere. Do you have any evidence that its process still exists?
Back to top
View user's profile Send private message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1402
Location: Tri-Cities, WA USA

PostPosted: Thu Jan 02, 2025 8:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22924

PostPosted: Thu Jan 02, 2025 11:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1402
Location: Tri-Cities, WA USA

PostPosted: Thu Jan 02, 2025 11:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22924

PostPosted: Fri Jan 03, 2025 12:31 am    Post subject: Reply with quote

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
View user's profile Send private message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1402
Location: Tri-Cities, WA USA

PostPosted: Fri Jan 03, 2025 1:07 am    Post subject: Reply with quote

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
View user's profile Send private message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1402
Location: Tri-Cities, WA USA

PostPosted: Fri Jan 03, 2025 3:59 pm    Post subject: tigerdirect is running but I can not connect Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22924

PostPosted: Fri Jan 03, 2025 4:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1402
Location: Tri-Cities, WA USA

PostPosted: Fri Jan 03, 2025 6:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22924

PostPosted: Fri Jan 03, 2025 7:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1402
Location: Tri-Cities, WA USA

PostPosted: Fri Jan 03, 2025 7:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum