Home » Electronics » Raspberry Pi has arrived

Raspberry Pi has arrived

Raspberry PiOn Friday, September 7th, my Raspberry Pi arrived!  A $35 hackable Linux box … not a bad deal!  I got it from Newark/element14, one of the few place where you can order a Raspberry Pi and not wait for many weeks.

I immediately proceeded to set it up, and after over coming the typical barriers (e.g. my PC’s SD Card reader wouldn’t cooperate), things came together very nicely.  Here is how I did it.

What Raspberry Pi software distribution should I use?

Given that my objectives are to do some hardware hacking using the Pi, I quickly concluded that the distribution being offered by Adafruit was for me. Adafruit offers a distribution called Occidentalis.  Unlike the typical Raspberry Pi software distributions, it comes equipped with  access to SPI, I2C, one wire, and WiFi preconfigured. It also has some things to make overall use easier, such as sshd on start-up  and Bonjour (so you can simply do ssh pi@raspberrypi.local from my PC when I place the Pi on my local network).  And it appears that Adafruit will continue to support and enhance the software as things evolve with the Pi.

I followed the instructions given by Adafruit and had no problems.  I suggest when you do the first boot up, hook up the Pi with a monitor and keyboard to do the initial configuration.  Once that is accomplished, you can leverage the installed Avahi (zeroconf or zero configuration networking) daemon (i.e. Bonjour-like service), as I do below.

How can I access the Raspberry Pi via my PC through my local network?

I have seen this called “running headless”.  For me, this is the way to go.  The last thing I need is another monitor and keyboard to peck at.  Key to this will be getting a terminal emulator and a X terminal running on my PC. I choose Cygwin/X to get this job done. Cygwin/X comes with all the Cygwin utilities, but for me, that is a good thing.

On to your PC, download Cygwin/X and use the set-up procedures listed at the Setting Up Cygwin/X page.  During the “Select Packages” step (step 15), also make sure to include the openssh package.

How do you get shh working on the PC?

This proves to be very easy despite the potential complexities. Follow the procedures in “How To Get SSH Command-Line Access to Windows 7 Using Cygwin“.

How do you connect from the PC to the Raspberry Pi?

Fire up Cygwin Terminal on your PC, and at the prompt, enter

ssh pi@raspberrypi.local

You’ll then be asked for the password for the pi login, enter it, and your should be in the Raspberry Pi via terminal emulation. Note that this is all being done without the assistance of a X Server on the PC.  Your not running in X Windows … that comes next (Make sure to exit the Pi and return back to the Cygwin Terminal for the next step).

How do you run X Windows on the Raspberry Pi and use the PC as your X Terminal?

If you want to run X Windows on the Raspberry Pi with your PC being the X Server display, you need to provide a Display Name and the start the X Server.  This is done within  following command in the Cygwin Terminal:

export DISPLAY=:0.0
startxwin &

Now you should start an X Terminal (Cygwin/X has a light weight version called mintty).  So type in the following into the Cygwin Terminal.

mintty &

Within the mintty window, log into the Raspberry PI:

ssh -Y pi@raspberrypi.local

An once in the Raspberry Pi, startup the LXDE Desktop Client using the command:

startlxde

You should now be in the Pi running X Windows!  No need for an extra keyboard, mouse, or monitor!

Some fine tuning will be necessary so you don’t have to do the export DISPLAY=:0.0 every time you login and other things, but that is all that what is needed to get going.

Advertisements

7 Comments

  1. […] I got the RPi up and running headless on my local network, its time to build the software foundation that I’ll need to make it an […]

  2. […] on MS Windows The first thing I did was to set up git within my MS Windows PC.  Given that I installed Cygwin when setting up the RPi, that is where I returned to install git.  Therefore, I plan to use git […]

  3. […] it would potentially require.  I settled on the SSHFS based approach.  I’m running my RPi headless and access it via my PC using Cygwin/X and Secure Shell (ssh).  With the SSHFS approach, I could […]

  4. […] Rasperry (setting up cygwin/x command line access) […]

  5. […] stated in an earlier post, I plan to run my Raspberry Pi (RPi) as an attached device to my homes LAN and use my MS Windows PC […]

  6. Howdy! Quick question that’s completely off topic.
    Do you know how to make your site mobile friendly?
    My site looks weird when browsing from my apple iphone.

    I’m trying to find a theme or plugin that might be able to correct this problem.
    If you have any recommendations, please share.
    With thanks!

  7. Tahlia says:

    I know this if off topic but I’m looking into starting my own weblog and was wondering what all is needed to get set up?

    I’m assuming having a blog like yours would cost a pretty penny?
    I’m not very internet savvy so I’m not 100% certain. Any tips or advice would
    be greatly appreciated. Appreciate it

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: