RasPi.TV

Raspberry Pi Tutorials, Videos & Reviews
  • Home
  • Site Map
  • Downloads
  • I²C
  • raspberry pi
  • Gertboard
  • Linux usage
  • Python prog.
  • get_iplayer
  • Input & Output

How to Run Raspberry Pi with No Monitor or Network

 Input and Output, interfacing, Linux usage, Raspberry Pi Hardware  Add comments
Nov 282012
 
A closer look

I went to the 4th Milton Keynes Raspberry Jam on Sunday. Now the thing with Raspberry Jams, is that you never know whether there’s going to be enough monitors to go round (some don’t have any at all). Last time I got one, this time there were not many laid out. I expect I could have had one if I’d have asked, but there was no need. I was prepared.

I had one of these…

USB to ttl serial interface (with 3V3 logic)

This is a USB to serial adaptor, which enables you to connect your Raspberry Pi serial port Tx (white) and Rx (green) pins to the USB port of another computer and login using the Pi’s serial interface.

It also has red (5V) and black (GND) leads. If the 5V lead is connected to the 5V pin on the RasPi, you can actually power the RasPi through your computer’s USB port – if it’s capable of providing enough output. But if you’re powering the RasPi separately, omit the red lead (but still attach the black one).

How to connect the serial-USB adaptor

A closer look

I bought this one from ModMyPi.com and it arrived very promptly. I’ve made another purchase from them recently that went equally well. :yes:

If the right settings are configured on the Pi, (and they are by default on Raspbian) this means you can get a command line login console directly on your laptop. You will need to install drivers for the USB interface if you’re using windows. You can download those here.

USB-serial login on Raspberry Pi

Since none of my demos for this Jam involved the GUI (Graphical User Interface – Windows-like interface) this was more than sufficient for me.

What’s the catch?

There isn’t one really, but there are a couple of quirks. You need to unplug the USB dongle if you want to start a new session (in Putty, at least. This is a good reason not to power your Pi with it if you’re likely to need to reset the connection.) You do also have to install drivers on your other computer to run the USB-RS232 adaptor – but that’s normal for any device.

Another Gotcha! (If you have a Gertboard)

If you’ve installed the Arduino IDE for Gertboard using Gordon’s script, you’ll need to uncomment the second line below at the bottom of /etc/inittab

#Spawn a getty on Raspberry Pi serial line
#T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100

sudo nano /etc/inittab

and change…

#T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100
to
T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100

then CTRL+o, Enter, CTRL+x to save and exit. It should look like this…

Edit the last line of /etc/inittab if needed

If you’re running an older version of Debian or Raspbian, you might need to disable the kernel log output on /dev/ttyAMA0 by removing the line “console=ttyAMA0,115200 kgdboc=ttyAMA0,115200″ from /boot/cmdline.txt
But if you’re using a linux distribution (distro) newer than July 2012, you probably won’t need to.

How to do the actual serial port login

  • If using Windows, you’ll need to install the drivers You can download those here.
  • You’ll need a client application, like Putty, which can handle a serial login.
  • You’ll need to configure it, but that’s quite simple.
  • You’ll need to make sure your wires are hooked up correctly (as in the photos above).

You can download Putty from here

Configure Putty for a serial connection:

Settings you need to tweak on Putty

  • choose the virtual COM port that your computer allocates to the USB device (Mine is on COM7). You should be able to find this in “Devices and Printers” if you are a Windows user.
  • select serial connection
  • set the speed to 115200
  • save settings (if you want to)

If your wires are hooked up right, it should now just be a question of clicking Open to start a connection.

When you are faced with this screen (minus the yellow text I’ve added)…

Logging into your Pi with Putty through serial port


…just press enter and you should get a login prompt.

You can only use this as a terminal. You can’t view LXDE through it. But if a terminal is what you want, this does the job very nicely indeed. And since you can power your Pi with it too, it makes quite a useful tool for people who do demos at Raspberry Jams and other places.

I hope this is useful for you :-D

Share this:

  • Pin It
  • Email
 Posted by alex at 8:00 am  Tagged with: log into raspberry pi via serial port, USB to RS232 login to raspberry pi, use raspberry pi with no monitor or network

  4 Responses to “How to Run Raspberry Pi with No Monitor or Network”

  1. Joshi says:
    November 28, 2012 at 9:03 am

    Thank you for this one – very useful indeed !
    I really like your website: lots of useful information.
    Thank you and please keep on !
    Joshi

    Reply
    • alex says:
      November 28, 2012 at 10:00 am

      Thank you Josh. It’s always nice to get a bit of encouragement. :)
      I used this device at the Oxford Raspberry Jam last night as well. Really useful, as I already had too much to carry.

      Reply
  2. Mike says:
    December 5, 2012 at 6:33 pm

    Thanks very much for this clear, concise tutorial. I bought an Adafruit starter kit that came with one of these cables. I had no idea how to use it though. Please do keep up the great work!

    Reply
  3. Quick2Wire Pi Interface Board Beta Review » RasPi.tv says:
    December 7, 2012 at 9:21 am

    [...] you are invited to test your 5V FTDI interface if you have one. I have a similar thing I reviewed last week so I tried it. I got Tx and Rx the wrong way round first time (didn’t bother looking up which [...]

 Leave a Reply Cancel reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  Pi controlled light and fan from mains power socket   Review of ModMyPi case for the Raspberry Pi
RasPi.TV Site Map - click here

Follow Me

Google+ YouTube RSS Twitter Facebook

Recent Posts

  • Another way to convert Raspberry Pi Camera .h264 output to .mp4
  • Raspberry Pi Camera stills output VS video output – comparison
  • Comparison of real resolving power of RasPiCam with other cameras
  • NOOBS New Out Of Box System for Raspberry Pi owners
  • How to stream video from your RasPiCam to your Nexus 7 tablet using VLC

Recent Comments

  • alex on Tandy Multiface Gertboard Compatible Interface Board for Raspberry Pi
  • Robert Nix on Tandy Multiface Gertboard Compatible Interface Board for Raspberry Pi
  • alex on Another way to convert Raspberry Pi Camera .h264 output to .mp4
  • The Raspberry Pi Guy on Another way to convert Raspberry Pi Camera .h264 output to .mp4
  • alex on How to use interrupts with Python on the Raspberry Pi and RPi.GPIO – part 2

Most recent tweets

  • @RaspPiBeginners I only knew the first one ;-) tweeted 3 hours ago
  • Just installed Weston on @Raspberry_Pi Not overly used to the GUI, but it seems much better. Install'n instructions raspberrypi.collabora.com tweeted 23 hours ago
Follow @RasPiTV

Archives

  • May 2013
  • April 2013
  • March 2013
  • February 2013
  • January 2013
  • December 2012
  • November 2012
  • October 2012
  • September 2012
  • August 2012
  • July 2012
  • June 2012

Categories

  • Electronics
  • Gertboard
  • get_iplayer
  • Input and Output
  • interfacing
  • Linux usage
  • python programming
  • raspberry pi
  • Raspberry Pi Camera
  • Raspberry Pi Hardware
  • Review
  • software installation

Blogroll

  • RasPiHub.com

Meta

  • Log in
  • Entries RSS
  • Comments RSS
© 2012-13 RasPi.tv Site Map Home
loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.