![]() You only need to do the steps in this howto. ReadFromRFBServer: rdr::SystemException: read: Connection reset by peer (104) VNC viewer version 3.3.7 - built 11:12:00Ĭopyright (C) 1994-2000 AT&T Laboratories Cambridge. I got this response by issuing the following command : Also port 5901 is open in my firewall and forwarded to my laptop's LAN IP.įrom the old how-to I still have this line in /etc/services Moreover, I have opened port 177 in my router's firewall with UDP protocol and forwarded this port to my machine's internal LAN IP address. I have an AMD chipset, so I installed vncserver(instead of vnc4server). Update : This is the output I got after I borught back /etc/nf to its original form and then following Tichondrius how-to. firewall and port forwarding)?Ĭan it be used to let a specific user login via vnc? So this port should be taken in the router's config.(i.e. As I understand, I should remove the old /etc/nf file which the old how-to told us to create, right? I also found that XDMCP uses port 177 with UDP protocol. Tichondrius, Thanks a lot for the update. ![]() For example, you can add "-IdleTimeout 300" to change it to 5 minutes. An idle VNC client will be disconnected after one hour, but this can be changed by using the "-IdleTimeout" option in the server_args line in /etc/xinetd.d/Xvnc. Also note that while a remote user is connected thru VNC, no other connection will be accepted. ![]() So if you do not want to log out before disconnecting, it's advisable to at least lock your VNC X-session screen. Note about security: This setup allows any user to start an X-session remotely by logging in using his regular password (after starting the VNC connection using the VNC password), so if the user disconnects without logging out, any other user which knows the VNC password can connect afterwards and resume the same session that the first user started. 192.168.0.100) which is not accessible from the internet, then you need to forward TCP port 5901 from the router to this machine. If you are using a router which assigns your machine a private address (e.g. firestarter) on that machine, you need to allow incoming connections on this port. Note about ports: The VNC server set up as shown uses TCP port 5901. See the notes below about how to deal with that. If connecting locally as shown above works, but connecting remotely fails, then this means you have a problem with a firewall which is blocking some ports. Remember to use the VNC server machine's domain name or IP address, followed by :1 (e.g. If that works, you can now go ahead and try to connect from remote machine using your favorite VNC client (remember to first close the local vncviewer we started above). You should be prompted for the VNC password, and then see the GDM login screen where you can login and start a new X session. That's it! To test that this is working first try to connect from the same machine (the machine we just set up the VNC server on): Restart xinetd (usually there is no need to reboot, but occasionally it might be required)Ħ. Server_args = -inetd :1 -query localhost -geometry 1024x768 -depth 16 -once -fp /usr/share/X11/fonts/misc -DisconnectClients=0 -NeverShared passwordFile=/root/.vncpasswdĥ. Note to AMD64 users: The current version of vnc4server in the repositories has a bug, so you need to download and install the fixed vnc4 packages as shown below: Install required packages (vncserver and xinetd) Note: Before doing the next step, you need to make sure the extra repositories (e.g. Tab XDMCP-> You can disable "Honor Indirect Requests" System->Administration->Login Screen Setup ![]() So two sessions can be active at the same time (one person sitting at the physical display and another remotely connecting using VNC). The VNC server uses a separate display (:1) than your regular X server, which works with your physical display (:0). It is also persistent, meanning that even if you disconnect the VNC client your X session will not end (unless you explicitly log out) and you can reconnect to the same session again. So here's the complete list of steps that are required to set the VNC server that any user can login into and start a session. This howto is old, unsupported, and relies on a broken package.
0 Comments
Leave a Reply. |