Install Remote Desktop on Raspberry Pi / Linux

in developers •  2 months ago

    Screenshot by Dropbox Capture.png

    Having remote desktop access to your second or third computer is incredibly useful, but since RealVNC pulled easy access to their Raspberry Pi freebie, a lot of Pi users have been looking for alternatives, particularly people with lots of devices or users (eg. makerspaces/schools/labs/colleges).

    There is still a free RealVNC plan, it is just not well-publicised.

    Screenshot by Dropbox Capture.png

    Raspberry Pi also came out with their own browser-based Raspberry Pi Connect. Or you could always run TightVNC.

    That said, I am going to give you instructions for how to install Microsoft Remote Desktop which performs really well on a local area network.

    Microsoft Remote Desktop

    Microsoft's Remote Desktop is a software tool that allows you to use one computer’s desktop and its applications from another device over the local network.

    For instance, if you need Windows programs like Microsoft Word or the full Visual Studio, you can use them from your Linux laptop without having to install a virtual machine or Wine.

    This also works going in the other direction, such as accessing a Raspberry Pi desktop from a Windows computer.

    Install Remote Desktop Protocol on Raspberry Pi

    Enter the following and press Enter:

    sudo apt install xrdp
    

    This installs the Remote Desktop Protocol (XRDP) software.

    When prompted, confirm by typing y (yes).

    Once installation is complete, type:

    sudo service xrdp start
    

    This will start the XRDP service.

    To find your Raspberry Pi’s DHCP IP address enter:

    ifconfig
    

    Connect from Windows

    1. Open Remote Desktop Connection: On your Windows PC, search for "Remote Desktop Connection" and open it.
    2. Enter Hostname or IP Address: In the connection window, type your Raspberry Pi’s hostname (e.g., pi.local) or IP address from earlier.
    3. Log In: When prompted, enter your Raspberry Pi username (e.g., pi) and password.

    After logging in, you’ll see your Raspberry Pi desktop on your Windows PC.

    Transferring Files Between Devices

    You can transfer files from your Windows PC to your Raspberry Pi using the Remote Desktop window:

    1. Create a Folder on Raspberry Pi: On the Raspberry Pi desktop, navigate to Home/pi, create a new folder, and name it (e.g., Shared).
    2. Copy Files from Windows: On your Windows PC, select a file, press Ctrl+C to copy, navigate to the Raspberry Pi desktop, and press Ctrl+V to paste.

    Ensure you have permissions for the destination folder, directories like "Home/pi" are a good candidate.

    Connect from Pi to Windows

    But what about connecting to Windows from your Linux based computer?

    There is a great app called Remina:

    Screenshot by Dropbox Capture.png

    Your Windows based computer will need to be Pro, I do not believe Windows Home has the Remote Desktop service available. Remina also works with VNC based systems too, though.

    There are instructions for installing Remina on various distributions, including Raspberry Pi, here.

    Connecting from MacOS

    On Mac there is an app from Microsoft in the app store called Windows App, which works very well.

    Screenshot by Dropbox Capture.png

      Authors get paid when people like you upvote their post.
      If you enjoyed what you read here, create your account today and start earning FREE VOILK!