![]() ![]() help display this help screen -vnc_port= set the VNC port (5900) 1.4 Closing A Connection From any (or both) of the clients, the connection can be closed with:Ĥ p2p-vnc/client/stop.sh b8e1f1e779 This will cleanup the keys on the server, close the ssh tunnels, and close the programs that were started locally (x11vnc, vncviewer, etc.) 2 Other Use Cases 2.1 Sharing A Single Widow Use the option -window=yes from command line (or set it on vnc.rc) to share only a single window (not the whole desktop). The options from command line override the settings on the config file 'vnc.rc'. See also the usage: p2p-vnc/client/start_vncviewer.sh -help Usage: p2p-vnc/client/start_vncviewer.sh Connect to the remote VNC port and start vncviewer. p2p-vnc/client/start_vncviewer.sh b8e1f1e779 You will need to know the number of the key that was created by the remote desktop. Make sure that vncviewer is installed: sudo apt-get install vncviewer Then get the scripts from GitHub: git clone p2p-vnc Set the P2P server that you want to use, for example: p2p-vnc/client/use.sh Now connect to the remote VNC port and start vncviewer. time -help display this help screen -vnc_port= set the VNC port (5900) -window=yes share a single window, not the whole desktop -viewonly=yes the desktop cannot be controlled remotely -shared=yes more than one computer can connect at the same -forever=yes keep listening for more connections (don't exit when the first client(s) disconnect) 1.3 Accessing The Remote Desktop (From The Other Client) To access a remote desktop we need a VNC client. Change them at the config file vnc.rc or from the command line:ģ p2p-vnc/client/start_x11vnc.sh -help Usage: p2p-vnc/client/start_x11vnc.sh Share the VNC port and start an x11vnc server. To stop the connection run: p2p-vnc/client/stop.sh b8e1f1e779 The script will return a randomly generated key which you should give to the other part which needs to access your desktop. p2p-vnc/client/start_x11vnc.sh KEY: b8e1f1e779 Give it to the remote part in order to access your desktop. Make sure that x11vnc is installed: sudo apt-get install x11vnc Then get the scripts from GitHub: git clone p2p-vnc Set the P2P server that you want to use, for example: p2p-vnc/client/use.sh Now share the VNC port and start an x11vnc server. Installation in chroot cd /var/chroot/ git clone cp p2p/install/settings.sh p2p/cfg.sh vim p2p/cfg.sh nohup nice p2p/install/chroot.sh p2p/cfg.sh & tail -f nohup.out After the installation is done, you can start and stop the service with: /etc/init.d/chroot-p2p stop /etc/init.d/chroot-p2p start Installation in container git cloneĢ cp p2p/install/settings.sh p2p/cfg.sh vim p2p/cfg.sh nohup nice p2p/install/docker.sh p2p/cfg.sh & tail -f nohup.out After the installation is done, you can start and stop the service with: docker start P2P docker stop P2P Pulling it from DockerHub docker search dashohoxha/p2p docker pull dashohoxha/p2p docker run -d -name=p2p -p 2201:2201 -p 800:800 dashohoxha/p2p For more details about this DockerHub image see: Sharing The Desktop (On The Client) To share the desktop we need a VNC server. 1 Basic Installation And Usage 1.1 Installation Of A P2P Server For more security and flexibility, the installation is done inside a chroot environment (built with debootstrap), or inside a container (built with docker). ![]() This project has some scripts that simplify the installation of a P2P server, and the connection between the two clients. For more details read the docs, which explain the tricks and hacks that can be used in such a case in order to establish a secure connection to a remote desktop. However, if you have access to an external server (for example a server in the cloud) there is still a workaround and things can be fixed to work. Sometimes it can even be several levels deep behind the firewall (several layers of firewalls). The problem is that more often than not, none of the parts that want to establish such a remote connection have access to the firewall that separates/protects it from the real Internet. In such a case one of them can do port forwarding on the router/firewall and this would allow the connection to be established. However, almost always these two computers are behind a firewall/router and do not have a real IP to be accessed from the Internet. The two computers establish a TCP connection so that one of them can access the display of the other. 1 Remote Desktop With P2P VNC VNC is a well-known tool for remote desktop view and control. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |