Our articles usually show you how to do things on a Raspberry Pi. This time, we’re changing things up: we’re going to show you how to use a PC or Mac to run the Raspberry Pi Foundation’s desktop operating system, Debian with Raspberry Pi Desktop (for brevity’s sake, we’ll call it just “Raspberry Pi Desktop” from now on). This Raspbian-like OS (as the names imply, both operating systems are based on Debian) allows you to use your PC or Mac as a kind of substitute for your Raspberry Pi. That makes it useful for testing out projects when your Pi isn’t handy. It’s also fun because it backs the familiar Raspbian interface with your PC or Mac’s hardware, which is much more powerful than the little Pi.
- If you're looking for an alternative on Windows, you can use Win32DiskImager. Download the Windows installer from balena.io; Run balenaEtcher and select the unzipped Raspbian image file; Select the SD card drive; Finally, click Burn to write the Raspbian image to the SD card; You'll see a progress bar.
- For Windows users: Insert your microSD card into your card reader and find out its drive letter in Windows Explorer (for example G:). Download Win32DiskImager, unzip the downloaded file and run the utility file. Select the Raspbian image file you downloaded. Select the drive of your SD card in the ‘Device’ dropdown.
- Click the “select image” button and navigate to the.IMG file of Raspbian on your computer. Next, select the SD card to use with Etcher. Last, click the “flash!” button to start the process. Keep in mind, that Raspbian is large, so it may take a bit of time. Be patient, and do not turn off your PC or pull out the SD card. Installing Raspbian.
- Install Raspbian on your raspberry pi. Flash the Raspbian Image file and then Enable SSH access for Mac and Windows users. This guide will help you.
The simplest way to get Raspberry Pi Desktop up and running is to install the operating system, but that will require you to dedicate a computer to the project (or at least to partition a hard drive). If you want to keep running Windows or macOS on your computer, your best bet is to run Raspberry Pi Desktop on a virtual machine – which is exactly what we’ll show you how to do in this guide.
Step 3 – Install Raspbian to the USB Flash Drive. The process is exactly the same as step 2, but this time we choose the USB flash drive as our destination. Choose the Raspbian zip as the source, the USB Flash as the destination and click ‘Flash’. If you’re using a Raspberry Pi 3 Model B+, you can skip step 4. On Windows, open file explorer, control click on the sd card drive, select Format, next choose FAT as the file system and click start to format. Now you can install the Operating System.
How to run Raspberry Pi Desktop on Windows or macOS
Step 1: Download and install VirtualBox
Because we’re going to run Raspberry Pi Desktop on a virtual machine, we’ll need to download Oracle VM VirtualBox. In Oracle’s own words, “VirtualBox is a powerful x86 and AMD64/Intel64 virtualization product for enterprise as well as home use.”
You can download the software from VirtualBox’s Downloads page. Just choose the right version for your operation system (there are two: a Windows version and a macOS version). After you’ve downloaded the executable, install VirtualBox by following the installation wizard’s instructions.
Step 2: Download Debian with Raspberry Pi Desktop
Next, you’ll need to download the image file of Raspberry Pi Desktop from the Raspberry Pi Foundation’s site.
Step 3: Launch VirtualBox and create a new virtual machine
Now that we’ve both VirtualBox and Raspberry Pi Desktop downloaded, we’re ready to launch VirtualBox and create a new virtual machine.
Click “New,” and you should see a screen like this:
We don’t want to create a Windows virtual machine, of course, so let’s change the settings a bit. First, choose a descriptive name for your virtual machine (for example, “Raspberry Pi”), then select Linux from the Type dropdown menu and Debian (64-bit) from the Version dropdown menu. After that, click Next.
On the next screen, you can use the recommended memory size of 1024 MB – this corresponds to the Raspberry Pi 3’s memory size.
The next screen is about adding a hard disk to your new virtual machine. Just click Create, unless you have some reason to modify the settings. Then, click Next on this screen and again on the next.
Finally, you can choose the size of your hard disk. We used the recommended size of 8 GB, but you may want to have a larger hard disk. When you’re ready, click Create.
Now we have the settings of our virtual machine in place.
How To Install Raspbian Os On Windows
Step 4: Install Raspberry Pi Desktop
Click Start to start the installation of Raspberry Pi Desktop. You should see a screen like this:
Browse to the folder where you saved the image file of Raspberry Pi Desktop, select the file, and click Start. What you should see next is a menu titled “Debian GNU/Linux installer boot menu.” Use the arrow keys – or i – and Enter to select Install.
On the next screen, select your preferred keyboard layout and continue by pressing Enter.
Choose Guided – use the entire disk and keep pressing Enter to Select disk to partition and choose the Partitioning scheme. Finally, Finish partitioning and write changes to disk.
You might want to grab a cup of coffee or tea while the system is installing.
After a while, the installation wizard prompt you: “Install the GRYB boot loader to the master boot record?” Select Yes, and choose /dev/sda.
When the installation wizard has installed everything, you should see a screen like this:
Look familiar? If you’ve used Raspbian before, it should!
Install Raspbian On Windows 10
Step 5: Make the virtual machine interactive
Our virtual machine is successfully running Raspberry Desktop now, but the screen size is a bit small, and it doesn’t get bigger when you click Maximize. We can make our machine more interactive by installing VirtualBox Guest Additions. Guest Additions makes it possible for us to resize the screen, use the clipboard, and share files between our PC or Mac and the virtual machine.
To do this, first open Terminal and make sure that your system is up to date:
You’ll have to type the commands because our virtual machine isn’t very cooperative, yet.
Now we’re ready to install VirtualBox Guest Additions:
With Guest Extensions installed, click on the Devices menu and select Shared Clipboard > Bidirectional. Full pc game iso downloads.
If you rebooted your virtual machine now, you would be able to use the same clipboard on both your PC or Mac and the virtual machine. You would also be able to resize the screen. But let’s not reboot, yet. Instead, let’s first to add our user to the vboxsf group to enable file sharing between the virtual machine and PC or Mac:
Now we’re ready to shut down our virtual machine and set up a shared folder. This the shutdown command:
Step 6: Set up a shared folder
To set up a shared folder, right-click on your virtual machines name and select Settings…, or press Ctrl+S with your virtual machine selected.
From the menu that opens, select Shared Folders.
Click the button with the green plus sign that adds a new shared folder.
From the Folder Path dropdown many, select Other… and then the folder you’d like to share. When you’re ready, click OK and check Auto-mount.
If you start your virtual machine again and launch the file manager, you should see your shared folder with the prefix “sf_” in the /media directory. Any file you put in that folder will also show up in the corresponding folder in/on your PC or Mac, and vice versa.
And that’s it! You now have Raspberry Pi Desktop running on a virtual machine on your PC or Mac, and you can easily use the clipboard and manage folders while you’re working on your next project.