Author Archives: caesarsamsi

Connecting from Mac to Raspberry Pi’s remote desktop using X11

I play a lot with my Raspberry Pi PC. Usually I connect using Mac’s Terminal application via ssh to the Pi.

Sometimes though, I need to use the Pi’s full graphical desktop. For example I’m much more comfortable partitioning disks using gparted vs. any other command line tool.

So for those occasions I use an X11 window to connect from the Mac to the Pi, I use ssh to connect, and then run lxsession as the desktop on the Pi.

First, install X11 from XQuartz (http://www.xquartz.org).

Download the installer package disk image from the homepage. Open the disk image and run the installer package. The installation will take a few minutes and towards the end it will say there’s 1 minute left for quite a while 🙂

Once the installation is complete you must log out and log back in. If you don’t, the remote desktop won’t open. XQuartz is installed to Applications -> Utilities

Second, launch XQuartz then open XQuartz’s Terminal application (XQuartz menu -> Applications -> Terminal).

Third, connect to the Pi using ssh inside the XQuart’z Terminal. Then Enter ssh -X user@pi (replace user with your username on Pi, and pi with … Read the rest

Cloning/Backing Up Raspberry Pi using a Mac

This grew out of the need to create multiple SD card Raspbian images for my Raspberry Pi Hadoop cluster. I was constantly experimenting and really wanted not to create the Raspbian OS from scratch every time (note that Raspbian OS is really Linux of the Debian variant).

I sought about how to create an image file of a Raspbian installation so I could flash the image to an SD card when I needed a fresh Raspbian OS installed.

A running Raspbian OS installation configured as necessary is required.That installation’s SD card is used to create the image and clones.

Cloning doesn’t really save time, the time taken to write the image a scratch SD card is the same as writing the clone image, but it saves on errors from human forgetfulness and typing. It also makes the base configuration easy as Pi (LOL), known and fixed.

First thing to know is the size of the source SD card matters. The disk image can only be flashed to an SD card of the same or larger size. I chose 16GB size as they are readily available for a reasonable price.

First, I use Mac’s Disk Utility tool. Applications -> Utility-> … Read the rest