Showing posts with label Raspberry Pi. Show all posts
Showing posts with label Raspberry Pi. Show all posts

Monday, December 16, 2013

O'Reilly Media book: Raspberry Pi Hacks


HACK 05: Monitor the Raspberry Pi Hardware

HACK 08: Get More USB Ports: bus powered USB hubs vs. externally powered USB hubs, backpower
HACK 20: Add Additional Memory with Swap (do not swap on SD cards and USB flash drives!)

HACK 21: Build a Cross-Compiler Toolchain; on openSuSE:
  • $ sudo zypper install gcc gcc-c++ bison make ncurses-devel texinfo flex gperf libtool sed subversion gmp-devel libstdc++-devel; # there is no libstdc++-static
  • instead of crosstool-ng-1.18.0.tar.bz2 I got crosstool-ng-1.19.0.tar.bz2
  • completed building crosstool-ng like this: $ sudo make install
  • $ mkdir /usr/local/cross-sandbox && cd /usr/local/cross-sandbox
  • set prefix directory to /usr/local/x-tools/${CT_TARGET}
  • $ env -u LD_LIBRARY_PATH ct-ng build # because it does not like LD_LIBRARY_PATH set
  • *** I am stuck here ***

Wednesday, December 11, 2013

O'Reilly Media book: Raspberry Pi Cookbook

  • http://shop.oreilly.com/product/0636920029595.do
  • …
  • $ sudo apt-get update
  • $ sudo apt-get upgrade
  • reboot afterwards
  • …
  • 2.6. Connecting with a Console Lead (using a serial terminal connection and a remote login program like "cu" AKA "call unix" or kermit)
  • 2.9. File Sharing on a Mac Network (using netatalk)
  • 2.10. Sharing the Pi Screen on a Mac (using VNC)
  • 3.6. Editing a File (using the nano editor)
  • 3.15. Making a Screen Capture (using scrot)
  • 3.16. Installing Software with apt-get
  • 3.17. Removing Software Installed with apt-get
  • 3.26. Listing Connected USB Devices (using lsusb)
  • 4 Software
  • 4.3. Installing other Browsers (chromium-browser, iceweasel (Firefox))
  • 4.4. Using the Pi Store [link]
  • 13.4. Displaying Messages on an Alphanumeric LCD
  • …

O'Reilly Media book: Getting Started with Raspberry Pi

  • http://shop.oreilly.com/product/0636920023371.do
  • $ sudo raspi-config
  • $ cat /proc/version
  • $ cat /proc/cpuinfo
  • http://elinux.org/RPi_Hub – Raspberry Pi Wiki
  • http://elinux.org/RPi_VerifiedPeripherals
  • the Scratch programming language [wiki] – an educational programming language
  • the Arduino microcontroller development platform
  • it has general purpose input and output pins right on the board
  • …

on my wishlist: an LCD panel for the Raspberry Pi

is "Raspi" the "right nickname" for the Raspberry Pi?

Even en.wikipedia.org knows that name ("https://en.wikipedia.org/wiki/Raspi"), so maybe it's at least quite usual.

headless Raspberry Pi (on my desk)

It's fun to see the Raspberry Pi running headless on my desk.

As described earlier, I set up my Raspi back at home with a screen (connected via HDMI/DVI), a keyboard, a mouse, and attached via eth0 (AKA LAN), later also via wlan0 (AKA wifi).

Now I would like to boot it in "headless mode". My wifi router's ESSID is different here. I start with a LAN connection. It's amazing: I runs w/o my intervention w/o screen, keyboard, and mouse. And I can connect to it with ssh through the network.

So the challenge is to add another wifi access point with its details. I found everything I needed here:
…
  • I create the new wpa_supplicant.conf entry (on stdout) using the wpa_passphrase command. 
  • I add it to /etc/wpa_supplicant/wpa_supplicant.conf .
  • I add "auto wlan0" to /etc/network/interfaces .
  • After "/etc/init.d/networking restart" or a reboot (w/o a connection through eth0) everything is fine.

Before (and after) modifying configuration files I always create backup copies of them using my utility create_snapshot.sh (resp. create_snapshot.txt). Works on my Linux-s and AIX as well. Initially it was a Korn Shell script, now it's a bash script.

Now the Raspi could join my UMTS router and my NAS sitting in the "black box" below my desk (in the office at my customer's site). Well, if it sits there, it can also be connected via eth0 as well. But now being connected through wifi , it could just sit anywhere within the "realm" of my wifis. But I still enjoy this discreet white box on my desk.

Update:
Added these two lines to my ~/.ssh/config :
Host raspberrypi
    User pi
That allows you to "ssh raspberrypi" instead of "ssh pi@raspberrypi".

Adding your "public key" to ~/.ssh/authorized_keys also helps logging in the "private / public keys way" instead of supplying a password.

Tuesday, December 10, 2013

The Pragmatic Bookshelf: Raspberry Pi

The Pragmatic Bookshelf | Raspberry Pi

PacktPub book: Raspberry Pi Networking Cookbook

http://www.packtpub.com/raspberry-pi-networking-cookbook/book

PacktPub book: Raspberry Pi Media Center

Raspberry Pi Media Center | Packt Publishing

my open Raspberry Pi questions

  • Should I use a USB-attachable external disk for swapping? (I do have a few "spare" ones)
  • …
To be continued …

"Getting Started with Java SE Embedded on the Raspberry Pi" (by Bill Courington and Gary Collins)

http://www.oracle.com/technetwork/articles/java/raspberrypi-1704896.html by Bill Courington and Gary Collins

It includes a lot of useful Linux tweaks, that you may want to apply apart from installing Java SE anyway.

Resize the SD Card Partitions:
About half the card’s space is unallocated. The biggest chunk of free space follows the /dev/sdb3 partition. To add this space to /dev/sdb2 (the file system), we temporarily delete /dev/sdb3, extend /dev/sdb2, then re-create /dev/sdb3.
I started making use of the "Java SE" label with this article. Should apply it elsewhere as well.

It has a section "Optional Linux Tuning and Tweaking":

  • Set Up Static IP Address
  • Enable Swapping and Optimize File System Access Time
  • Set Time Zone and Locale
  • Set Up a Time Server
  • Set Up an Internet Proxy
  • Remap the Keyboard
  • Update Debian Packages
  • Automatically Start the Graphical User Interface
  • Add a Different Web Browser
  • Enable Sound
Do I really want to swap on the SD card? They discourage it there.

Debian Linux: administration, …


The "Raspberry Pi" is my second encounter with Debian, ASUS's early "Eee PC" was the first. I need to refresh and extend my knowledge there.

Saturday, December 7, 2013

purchased my 1st "Raspberry Pi" "Model B" last (Friday) night

I found a cooperative employee at the Conrad branch, who got me all the things I needed, including Wheezy on an SD card. But I didn't know, how and which monitor I would attach, so that's what I have to solve on my 2nd related visit at the shop. I am rather hot to see it booting soon.

Unnecessary:

  • I should not have purchased the mega-sized AVM wifi dongle.
  • I should have found out before (at least before getting the converter), how to connect the Pi to monitors.

Update 2013-12-08:

  • got me more HDMI-DVI-adpaters yesterday, with cables,
  • should have gotten me a USB hub as well, as there are only 2 USB plugs,
  • well, the USB mouse went into the (playstation2) keyboard,
  • the EDIMAX wifi dongle found its plug,
  • got it booted,
  • got it connected via LAN to the Internet,
  • got wifi set up through WPS.
  • had to stop my experiments in favour of son#2.
This IS different to KDE and GNOME:
  • (apparently) you cannot set up the date/time format centraly,
  • even not the timezone.
  • you also cannot set up the virtual desktops in a grid.
  • …
But it IS Linux / Unix, and it is X-Windows, and it connects to the Internet, and there is a modern browser, …


  • I created a separate "bookmark article" on Java SE on the Raspberry Pi, cf. the "Raspberry Pi" label on this blog


Friday, October 11, 2013

DVB-C (and DVB-T2/-T) for my Synolgy NAS "diskstations"

It needs the following software:

    These two mentioned diskstations are compatible with these two DVB-C USB connectable devices:

    This DVB-T2 /-T/-C USB connectable device would be my favourite, if it were supported by dvblogic for the NAS-s mentioned above and also for the Raspberry Pi:

    Monday, August 13, 2012

    do I need a Raspberry Pi? or a NAS? …

    Requirements:
    • low power
    • fanless / self-cooling
    • SSH shell access (?!?)
    • file access through SMB, rsync, SFTP
    • user accounts
    • sudo is not for everybody
    • …
    Requirements regarding big external disks:
    • (I want them)
    • RAID-1 (mirroring) (highly desired, going to be a must)
    • automatic powering down those disks after a timeout period is a must, and of course powering up on demand as well
    • encryption
    • …
    FRITZ!Box disadvantages:
    • the external disk is not encrypted.
    • …

    (To be continued.)