-
-
Notifications
You must be signed in to change notification settings - Fork 2
Linux Remote Desktop
Complete beginner-friendly guide to remote desktop on Linux, covering Arch Linux, CachyOS, and other distributions including VNC, RDP, SSH X11 forwarding, and remote access setup.
- Understanding Remote Desktop
- VNC Setup
- RDP Setup
- SSH X11 Forwarding
- NoMachine
- Remote Access Security
- Troubleshooting
Remote desktop allows accessing desktop from another computer.
What it does:
- Remote access: Access computer from anywhere
- Desktop sharing: Share desktop with others
- Remote control: Control computer remotely
- Network access: Access over network/internet
Why use remote desktop:
- Remote work: Work from anywhere
- Support: Help others remotely
- Access: Access home computer
- Convenience: Easy remote access
Install VNC server:
# Arch/CachyOS - TigerVNC
sudo pacman -S tigervnc
# Or TightVNC
sudo pacman -S tightvnc
# Or x11vnc
sudo pacman -S x11vncDebian/Ubuntu:
sudo apt install tigervnc-standalone-serverFedora:
sudo dnf install tigervnc-serverSetup VNC:
# Create VNC password
vncpasswd
# Start VNC server
vncserver :1
# Stop
vncserver -kill :1Connect:
# Install client
sudo pacman -S tigervnc
# Connect
vncviewer server:5901Install xrdp:
# Arch/CachyOS
yay -S xrdp
# Debian/Ubuntu
sudo apt install xrdp
# Fedora
sudo dnf install xrdpEnable service:
# Enable service
sudo systemctl enable xrdp
sudo systemctl start xrdp
# Check status
systemctl status xrdpFrom Windows:
mstsc
# Enter server IP
From Linux:
# Install client
sudo pacman -S remmina
# Or
sudo pacman -S freerdpEdit SSH config:
# Edit SSH config
sudo vim /etc/ssh/sshd_configEnable:
X11Forwarding yes
X11DisplayOffset 10
Restart SSH:
sudo systemctl restart sshdConnect with X11:
# Connect with X11 forwarding
ssh -X user@server
# Or trusted
ssh -Y user@server
# Run GUI application
xclockInstall NoMachine:
# Download from nomachine.com
# Or use AUR
yay -S nomachineFeatures:
- Fast: High performance
- Cross-platform: Works everywhere
- Easy: Simple setup
Allow VNC:
# Allow VNC port
sudo ufw allow 5901/tcp
# Or with firewalld
sudo firewall-cmd --add-port=5901/tcp --permanent
sudo firewall-cmd --reloadTunnel VNC through SSH:
# Create tunnel
ssh -L 5901:localhost:5901 user@server
# Connect VNC to localhost:5901Check firewall:
# Check if port open
sudo ufw status
# Check if VNC running
vncserver -listCheck service:
# Check status
systemctl status xrdp
# Check logs
journalctl -u xrdpThis guide covered remote desktop for Arch Linux, CachyOS, and other distributions, including VNC, RDP, SSH X11 forwarding, and security.
- SSH Configuration - SSH setup
- Screen Sharing - Screen sharing
- Security Configuration - Security
- ArchWiki VNC: https://wiki.archlinux.org/title/TigerVNC
This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.