Recycle your old laptop to upgrade your Raspberry Pi Setup!
Tags: raspberrypi, pi, productivity, tips
Published: 2019-05-01 20:14:08

---
title: Recycle your old laptop to upgrade your Raspberry Pi Setup!
published: true
description: A short guide on how to use a laptop's screen, keyboard and trackpad to connect to a Raspberry Pi
tags: #raspberry #pi #productivity #tips
cover_image: https://thepracticaldev.s3.amazonaws.com/i/wxghpjcepezz8d4q33z4.jpg
---

## Ingredients

* Old notebook
* Raspberry Pi with SD Card and Power Supply
* Ethernet Cable

Some weeks ago, a friend of mine got herself a new notebook and she wondered what she could do with the old one now. As she did not want to just toss it in the trash, she turned to me. Whether I had a suggestion for a new purpose, she asked. 

{% link https://dev.to/teamxenox/make-a-linux-dev-server-for-less-than-50life--3gc7 %}

Then, I remembered that I recently set up a Raspberry Pi as a Development Server inspired by the _dev.to_ post above. But as I had not wanted to dedicate a separate monitor, keyboard and mouse for the Raspberry Pi, I got an idea how to reuse that old notebook of hers. Use the laptop for interaction! Therefore, this will be a compact version of [_instructable_'s guide](https://www.instructables.com/id/How-to-connect-raspberry-pi-to-laptop-display/) to connect Raspberry Pies with Laptops. But I hope a helpful one, nonetheless.

## Setup the Pi

So, I have the Pi model 3B+ here which luckily ships with an onboard Wireless LAN adapter! I flashed the SD card with [Raspbian](https://www.raspberrypi.org/downloads/raspbian/). Somehow, none of the Ubuntu distributions worked with me as they would not recognize the wlan feature. But besides that, Sarthak Sharma's post is a great introduction to get your Pi going. Unfortunately, before having the following steps done, you will need a screen and a keyboard of some sort to enter these instructions. But this will hopefully be the last time.:wink:

Most importantly, you have to know the IP address of your Raspberry Pi. You get it easily by opening a terminal and typing 

```
hostname -I
```
The address usually has this form: _xxx.xxx.xxx.xx_. Jot it down, you will need it later. Now, install TightVNC - this is a remote control software package. And it is for free! With this we are going to start a remote server and access it from the laptop.
```
sudo apt-get update
sudo apt-get install tightvncserver
```
After installation start up a server and specify a port (here: 1).
```
sudo vncserver :1
```
You will be asked to set a password. For some reason, you have to choose an 8-character-password. Anything longer will be truncated. :sweat_smile:

## Setup the Laptop

Grab the old thing, boot it up and cram the ethernet cable inside! The other end will serve the connection to the Raspberry. In order to connect to the VNC server you just created, you need to use the [VNC Viewer](https://www.realvnc.com/de/connect/download/viewer/). One download and one installation later, you should be able to create a new connection where you specify hostname and port obtained above:
```
xxx.xxx.xxx.xx:1
```
_Encryption_ can be left at _Let VNC Server choose_. Be sure to enter your 8-digit-password correctly and hit Enter! You should see what your Raspberry Pi would render. VNC Viewer usually saves the settings, so that you can easily reconnect the next time you need screen, keyboard and trackpad of your newly born Laptop.

And that is how you save an old laptop from the trash can!