Remote Desktop Between Ubuntu/Linux and Windows, Part I - page 2
Figuring Out What To Use
Before we go through the steps for connect to or hosting remote connections, you need to configure your firewall software. On the computers (hosts) that you're going to remotely connect to, you need to allow the VNC or RDP traffic through the firewall.
In Linux, you'll probably have to manually add an incoming rule to the firewall utility, on the host computer. If needed, you can browse through the menus and do some Googling to figure out how to configure the firewall. Your Linux distro may include a GUI for the firewall or you may have to use the command-line. Either way, add an exception or rule to allow traffic on the appropriate ports, given below.
- RDP uses TCP port 3389
- VNC uses TCP port 5900+ (Each remote connection to a server uses a different port; display 1 uses 5901, display 2 uses 5902, etc) It's best to define a port range when creating the firewall rule or exception, such as 5900 - 5905.
Now you'll be able to remotely connect among the computers on your local network. To remotely connect over the Internet, you must configure your router. We'll discuss this in the next part.
Using Ubuntu's VNC client and server
If you are using Ubuntu, you already have a VNC client/server installed and ready to use. (This how-to is based on Ubuntu Desktop 8.10 Intrepid Ibex.) To host a remote connection, simply select System > Preferences > Remote Desktop. On the dialog box, configure the desired sharing and security settings. A command/address is listedï¿½ for you to use if connecting from other computers, on the local network, loaded with Ubuntu or another Linux distro.
To use the VNC viewer on Ubuntu, click Applications > Accessories > Terminal. If connecting to another Ubuntu computer, type the command given by Ubuntu. If connecting to a different Linux distro, the same format applies: vncviewer ComputerNameOrIP:#, such as Figure 1 shows. This consists of the command, vncviewer, followed by the name or IP address of the computer (or the Internet IP when connecting through the web), ending with a colon and the tunnel ID. If connecting to a Windows PC, omit the colon and display number; just type vncviewer ComputerNameOrIP.
- 1Linux Top 3: Alpine Linux 3.4, deepin 15.2 and Linux Lite 3.0
- 2Linux 4.7 Set to Boost Live Patching, Security and Power Management
- 3Linux 4.6 Charred Weasel adds USB 3.1 Support
- 4Linux Top 3: OpenIndiana 2016.04, Ubuntu 16.04 and Debian's New Leader
- 5Linux Top 3: KaOS 2016.04, TurnKey 14.1 and pfSense 2.3