Skip to content

TG153/Remote-Desktop-Setup-with-x11vnc-over-SSH

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Remote-Desktop-Setup-with-x11vnc-over-SSH

Description:

This guide explains how to set up a secure VNC server. It was written for Void Linux, but should work on other Linux distributions with minor adjustments.

Requirements:

A Linux machine with: -x11vnc installed -An active X session running -SSH server installed and accessible A local client machine with: -SSH client -VNC viewer

Setup

1. Install Required Packages on Linux

Debian/Ubuntu:

sudo apt install x11vnc openssh-server

Arch Linux:

sudo pacman -S x11vnc openssh

Void Linux:

sudo xbps-install -S x11vnc openssh

2. Create VNC password:

x11vnc -storepasswd

This will save the password to ~/.vnc/passwd.

3. Prepare and run the script:

Make the script executable and run it. The script checks if x11vnc is already running, and starts it if not:

chmod +x startVNC.sh
./startVNC.sh

4. Set Up SSH Server

If you're using Void Linux, enable SSH temporarily:

sudo ssh-keygen -A
sudo /usr/bin/sshd

If using runit, you can also set it up permanently:

sudo ln -s /etc/sv/sshd /var/service

5. Create SSH tunnel from local machine:

ssh -L 5900:localhost:5900 user@server-ip

6. Connect with your VNC client:

Open your VNC client and connect to:

localhost:5900

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages