Remote Desktop – James Batchelor https://james-batchelor.com Useful I.T & VoIP Ramblings Mon, 25 Apr 2016 14:08:55 +0000 en-US hourly 1 https://wordpress.org/?v=6.8.5 https://james-batchelor.com/wp-content/uploads/2025/05/cropped-cropped-logo-jb-202505-32x32.png Remote Desktop – James Batchelor https://james-batchelor.com 32 32 Connecting to a Headless Raspberry Pi https://james-batchelor.com/index.php/2016/03/25/connecting-to-a-headless-raspberry-pi/ Fri, 25 Mar 2016 13:57:06 +0000 http://james-batchelor.com/?p=373 Continue reading "Connecting to a Headless Raspberry Pi"]]> A great feature of the Raspberry Pi is that it can be fully used as a headless unit, meaning it does not need a monitor, keyboard or any other input device connected. This is great when running it as a server or for automated processes that require the unit to be tucked away.

What is annoying is that setting up the Pi for the first time may need those input devices to be able to configure the network and install applications. Thankfully there is a way to connect to a headless Pi from the start, with it only needing power and Ethernet connection.

Finding the Pi

Most operating systems for a RPi use DHCP on first boot, allowing the machine to connect to the internet automatically. This also means that when booted, the Pi makes itself visible to the network and therefore allow incoming connections. The guess work comes in finding what IP address the Pi was allocated to be able to connect, this is where Angry IP scanner can be used to pinpoint the Pi’s location.

Angry IP Scanner Interface
Angry IP Scanner Interface

Download and run Angry IP scanner on a computer connected to the same router/hub, the IP address range to scan is already entered based on your computers IP address. Click on the Preferences button Angry IP Preferences Button and move to the Ports tab.

In the Ports field, enter number 22, this is the port number for Linux SSH protocol that allows command line controls of a system, and is open on most distributions.

Click OK out of the menus and start the scan.

After the scan is complete a list of all possible IP addresses on the local network is displayed, some will be “alive” connections which are active devices on the network, look for a device with an active port 22 and a Hostname that relates to the Pi or distribution installed on it, like below:

Angry IP Scan

This will be the IP address for the Pi, dependant on the router / hub its connected to, this will remain the same until the router is restarted, so it may be of use to allocate a static IP address to allow easier connections.

Connecting to the Pi

With the IP address found, it’s time to connect to the Pi. To achieve this a terminal program is needed, Windows systems used to have this on all installs but more recently has been relegated to an optional add-on. However, a free and lightweight program called Putty is easily available to make connections to a Linux system.

Download and install Putty, enter the Pi’s address in the IP field and make sure the port number is 22, then hit connect. If it’s the first time connecting, a certificate warning will appear, click yes and the connection is made.

Putty Connection Screen
Putty Connection Screen

Log on using the default credentials of the distribution and full control is made over the Pi, simple a that!

Adding remote desktop control

If controlling the Pi using command line only is a bit daunting, there is a way to simulate the desktop of the Pi on another computer. Setup is via command line but is simple and will get to a desktop environment quickly.

Use Putty to connect and log in to the Pi, then enter sudo apt-get update in the command line, followed by sudo apt-get upgrade when the screen stops scrolling and your able to type commands in again. These actions ensure the operating system is fully up to date.

Next, enter sudo apt-get install xrdp to install the remote desktop server on the Pi, you may have to enter Y to confirm the installation.

Pi running sudo apt-get update
Pi running sudo apt-get update

That’s it for command lines, type exit to finish the session and close Putty. Now from a Windows machine, look for Remote Desktop Connection in the start menu and open.

In the address field, enter the IP address for the Pi and click connect.

Enter the login credentials for the Pi and soon the Pi’s desktop will appear, as if it was a monitor connected directly to the Pi.

Debian Desktop on a remote screen via RDP
Debian Desktop on a remote screen via RDP
]]>
RDP on iPad https://james-batchelor.com/index.php/2013/06/04/rdp-on-ipad/ https://james-batchelor.com/index.php/2013/06/04/rdp-on-ipad/#comments Tue, 04 Jun 2013 20:08:06 +0000 http://james-batchelor.com/?p=102 Continue reading "RDP on iPad"]]> I originally purchased my iPad so I could peruse the net from the comfort of my sofa, and so far I’m impressed with what I can actually achieve on it. The limitations if iOS and the form factor over my trusty laptop are there, but I’m trying to blur the differences.

Apart from the almost impossible-to-use spreadsheets, I kept referring to the laptop when I needed to Remote Desktop into my server. Luckily there is an iOS solution for this in the guise of the Desktop RDP app.

20130604-085124-PM

I had the free version on my iPhone, but due to the small screen being productive was impossibly tedious, and so was left on my phone for server emergencies.

The iPad version however, is a lot more feasible, setting it to connect to my Win 2003 server with a screen resolution of 1024×768 means that the desktop can be controlled with all the desktop in view.

20130604-085721-PM

The paid version of Desktop RDP includes the full keyboard, and the ability to drag and right click, something of a necessity for windows, but the more clever users the get along in the free versions without these “perks”, although I wonder if it is not worth the £3.99 for these.

Looking for apps that allow you do what on a PC would be easy is a perilous journey, and in the case if trying to find a suitable office app, an expensive one. But I am glad, if not relieved that this purchase turned our to be a good one.

If I’m out on the wilderness armed only with an iPad and need the features of a PC, I can now just RDP into my server to get the best of both worlds, a lot better than lugging around my desktop replacement notebook.

]]>
https://james-batchelor.com/index.php/2013/06/04/rdp-on-ipad/feed/ 1