Okay, let's set up remote desktop access to your Pop!_OS machine (based on Ubuntu 22.04) from a Windows PC.
The most common and Windows-friendly way to do this is by using the RDP (Remote Desktop Protocol), which Windows has built-in support for. Ubuntu 22.04 (and thus recent Pop!_OS versions based on it) has improved native RDP support, but the classic xrdp server is also a very reliable option.
Here are the two main methods:
Method 1: Using Pop!_OS/GNOME's Built-in Remote Desktop (Easier, Recommended First)
Recent versions of GNOME (the desktop environment Pop!_OS uses) include native RDP support, which is often simpler to configure.
-
On your Pop!_OS machine:
- Open Settings.
- Navigate to Sharing in the left sidebar.
- Click on Remote Desktop (it might be labelled "Screen Sharing" or similar, but look for the RDP option).
- Toggle Remote Desktop to ON (slide the switch in the top-right corner of the window).
- Ensure Enable Legacy VNC Protocol is OFF if you see that option. You want to use RDP.
- Under Authentication, make sure Require a password is selected. Note down the User Name and Password shown here. You will use these to connect from Windows. It's highly recommended to use the password option for security.
- Make sure Remote Control is toggled ON.
-
Find your Pop!_OS IP Address:
- Still in Settings, go to Network (or Wi-Fi / Wired depending on your connection).
- Click the gear icon next to your active connection.
- Note down the IPv4 Address. This is the address you'll use in Windows. (e.g.,
192.168.1.105).
- Alternatively, open a Terminal (
Ctrl+Alt+T) and type ip a and look for the IP address under your main network interface (like eth0 or wlan0).
-
Configure Firewall (Crucial):
- Pop!_OS uses
ufw (Uncomplicated Firewall). You need to allow RDP traffic (port 3389).
- Open a Terminal (
Ctrl+Alt+T).
- Check if the firewall is active:
sudo ufw status
- If inactive, you might choose to enable it for better security:
sudo ufw enable (Be careful, this could block other things if not configured).
- Allow the RDP port:
sudo ufw allow 3389/tcp
- Verify the rule was added:
sudo ufw status
-
On your Windows PC:
- Press the Windows key, type
Remote Desktop Connection, and open the app.
- In the "Computer" field, enter the IP address of your Pop!_OS machine you noted earlier.
- Click Connect.
- You might get a warning about the remote computer's identity; you can choose to connect anyway.
- When prompted, enter the User Name and Password you configured in the Pop!_OS Remote Desktop settings.
- You should now see and be able to control your Pop!_OS desktop.
Method 2: Installing and Configuring xrdp (More Control, Alternative)
If the built-in method doesn't work reliably or you need more configuration options, xrdp is a popular alternative. It essentially provides an RDP server that bridges to your Linux desktop session.
-
On your Pop!_OS machine:
- Open a Terminal (
Ctrl+Alt+T).
- Update your package list:
sudo apt update
- Install
xrdp: sudo apt install xrdp -y
- Enable
xrdp to start automatically on boot and start it now: sudo systemctl enable --now xrdp
- Check if it's running:
sudo systemctl status xrdp (Press q to exit the status view).
- Add the
xrdp user to the ssl-cert group (often needed for secure connections): sudo adduser xrdp ssl-cert
- Restart xrdp for the group change to take effect:
sudo systemctl restart xrdp
-
Configure Firewall:
- Just like in Method 1, ensure the firewall allows RDP traffic:
sudo ufw allow 3389/tcp
sudo ufw reload (if ufw is active)
sudo ufw status (to verify)
-
Find your Pop!_OS IP Address:
- Use the same steps as in Method 1 (
ip a in terminal or check Network settings).
-
On your Windows PC:
- Open Remote Desktop Connection.
- Enter the IP address of your Pop!_OS machine.
- Click Connect.
- You will likely see an
xrdp login screen.
- Make sure the session type is Xorg or X11rdp (if available). Avoid Wayland initially, as it can have compatibility issues with xrdp.
- Enter your Pop!_OS username and password (the ones you use to log in to the computer itself, not the ones from the GNOME sharing settings unless they happen to be the same).
- Click OK.
Important Considerations & Troubleshooting:
- Wayland vs. Xorg: Pop!_OS/Ubuntu 22.04 defaults to Wayland display server. RDP (especially
xrdp) often works better or only works with the older Xorg (X11) display server.
- How to switch: Log out of your Pop!_OS session. On the login screen, click the little gear icon (usually in the bottom-right corner) before entering your password. Select "Pop on Xorg" or "Ubuntu on Xorg" instead of the default. Then log in. This session will use Xorg, and RDP should work better. The built-in GNOME RDP (Method 1) has better Wayland support but can still be problematic sometimes.
- Black/Blank Screen: A common issue, especially with
xrdp. Often related to Wayland vs. Xorg or session startup issues. Ensure you are logging into an Xorg session on the Pop!_OS machine first. Sometimes configuration tweaks in /etc/xrdp/startwm.sh are needed, but try the Xorg switch first.
- Network: Both machines must be on the same local network. For access over the internet, you would need to configure port forwarding on your router (forward TCP port 3389 to your Pop!_OS machine's local IP) and use your public IP address. This is a significant security risk if not done carefully. Using a VPN is a much safer way to connect remotely over the internet.
- Static IP: Your Pop!_OS machine's local IP address might change (if assigned by DHCP). For reliable connections, consider configuring a static IP address for it in your router's settings or Pop!_OS network settings.
- Security: Always use strong passwords. Keep your system updated. Only allow RDP through the firewall if you need it.
- Logged-in Session: Often, RDP connections (especially with
xrdp) create a new desktop session rather than connecting to the one currently visible on the monitor. The built-in GNOME RDP (Method 1) is more likely to connect you to the currently active session. You might need to log out of the physical machine for the RDP session to start correctly with xrdp.
Start with Method 1 as it's integrated. If you run into issues, try switching to an Xorg session. If problems persist, Method 2 (xrdp) is a solid fallback, again remembering to use an Xorg session on the Pop!_OS machine.