• Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Raspberry Pi.... little computer may be very disr

    Blog entry posted in 'Uncategorised', December 25, 2012.

    Why a Raspberry-PI (or Ras-Pi. or just plain Pi) looks like it will become "disruptive technology" is that it's a complete computer for $35US.... yes $35. It doesn't have the horsepower of a full size desktop, but for about 80% of what people use their computers for, you really won't notice the difference. That $35 only includes the board itself, you still need to put it into a small box (or make your own) add an SD card (i just saw 4GB SD cards on sale tor $3 and 32GB SD cards are about $20 or $30), add a keyboard and mouse, and a TV (composite will work, but HDMI is better), and a MicroUSB power supply. For such a low price (even after buying all the other stuff) you have a fully functional computer that can do most of what you normally do on a desktop machine (for most of what people do, web browsing, IMing, checking their email, watching videos, we could say that a desktop machine is "overqualified" for the job).
    I've been playing with my Ras-Pi for a couple of weeks now, and have so far got it to do many things others use full size computers for. I recommend Raspbian if you want to do much more than use the Ras-Pi as a network media player.
    First of all a description of the Ras-Pi:
    It's a small (just a little bigger than a credit card) single board computer with:
    Power jack-Micro-USB (only the power pins are connected)
    HDMI jack (the Ras-Pi is capable of 1080p/3D video)
    Composite video out (if you're cheap like me, and don't mind the video being a little blurry)
    2 USB jacks (i recommend getting a powered USB hub, but make sure the input jack on the hub doesn't supply power to the Ras-Pi)
    Ethernet port 10/100.... the Arm11 CPU doesn't have enough horsepower to justify a gigabit port.
    Analog audio out. line level.
    GPIO header for adding additional devices/interfaces to the Pi for us hardware hackers.
    Serial camera port. the Ras-Pi developers are working on a 40Mpix camera module.
    LCD port for addition of an LCD panel display
    SD card slot for the boot media

    The ARM11 CPU is a Broadcom SOC with a built-in GPU and on the newer B model boards, comes with 512M of RAM.

    The ARM11 operates at a 700Mhz clock frequency, but can operate with software controlled overclocking at up to 1Ghz. Read the Ras-Pi warranty carefully, as some of these overclocking settings will void the warranty, but some will not.

    As I mentioned earlier, Raspbian is the OS recommended for starting out, but it will require some learning of Linux, as Raspbian is a port of Debian Linux specifically for the Pi. If you are just starting out, I highly recommend you install Midnight Commander, an extremely useful tool. It's a text mode file manager, very similar to the old DOS based XTREE or Norton Commander file managers. MC makes browsing the file tree a whole lot easier than doing everything from the command line (and you can use it to read or edit the scads of config files linux has).
    I won't reiterate all of the steps to get Raspbian installed and running, as all of that is covered here: http://www.raspberrypi.org/downloads

    All command line commands are entered from a Terminal window. Double-click the LXTerminal icon on the GUI, and you get a command line terminal. If you're using a composite TV like i am, you will want to re-size the window vertically shorter, so you can see the command prompt at the bottom (it should look like "pi@raspberrypi ~ $" with a white cursor).

    Before installing any new programs (like mc) you may want to set up a password for the user "root" (the absolute top-dog ruler of any linux system)...

    Code:
    sudo passwd root 


    and enter your administrator password twice when the system asks for it.

    Then you want to go to a Root Terminal window. It's in the Start Menu under Accessories. Another good idea at this point would be to change the background color so you don't get root terminals and user terminals mixed up. I changed my root terminal background to dark red, and mu user terminal background to dark OD green. That's under the Edit>Preferences drop down menu of the terminal window. In Debian, the way to install software is to use
    Code:
    apt-get install programname

    So to install Midnight Commander, you type
    Code:
    apt-get install mc
    in a root terminal, and Debian installs MC with all of the libraries and stuff it needs to run. Once it installs MC, you just typ mc in a terminal window (if you're just browsing around, do it in a user terminal, and do it in a root terminal if you need to make configuration changes to the Pi). BTW, if you haven't noticed yet, Linux uses lower case in 99.99% of all it's commands, and the same goes when you install stuff with apt-get, most of the program names are lower case (so even if i use the capitalized form in this blog, you'll find you need to use the lower case name when installing or running the software)

    There are many other things i have installed and configured, which i will add to this blog as i get time, but this should get you started.
    Some of the things i have added to the Pi are:
    Vidalia (sets up a TOR node on the Pi and allows you to edit the configuration of the Tor node)
    Torchat (an encrypted TOR based IM)
    Apache web server so the Pi can serve web pages. There are extras you might want like PHP and MySQL
    Ksnapshot (takes a very long time to install) so i can share screenshots from the Pi
    Pidgin IM.

    One use i have thought of for the PI is to take it with me when i go on a trip out of town, hook it up to the TV at the hotel, and plug it into the wired ethernet at the hotel (most hotels have these now), and be able to stay in touch with family and friends. A nice roll-up rubber keyboard and miniature mouse would fit with the Pi in a very small space, even small enough to fit in a typical hotel-room safe.

    So here's a screen shot of the Pi using a composite monitor:
    69369

    and so you see what i mean about the root and user terminals being easier to tell apart by background color:
    69370

    Next time: TOR, Privacy and WHY I built a Privacy-Pi....

    Comments
    unclejed613, December 26, 2012
    BTW... if you intend on installing TOR on your pi, don't install TOR itself, since it's such a bear to configure properly (plus it runs as a root process, which isn't a good idea, according to the Tor Project web page). install Vidalia instead, which will also install TOR, and allows for very simple configuration. Torchat comes as a "portable" installation, and loads it's own instance of TOR when it runs.... more about this in the next installment.....
    Real-PCB, January 05, 2013
    spam deleted with extreme prejudice
 

EE World Online Articles

Loading

 
Top