User Tools

Site Tools


raspberry-pi

This is an old revision of the document!


Raspberry Pi

From this thread on SD cards, the comment from by carlosfm on Mon Aug 27, 2012 9:46 pm suggests that the 16GB Sandisk Extreme Class 10 45MB/s working fine on my Pi might be a good card to use.

Partway down the page, it says there's a debian package to download:

$ wget https://dl.dropbox.com/u/15710882/iozone3_397-2_armhf.deb
$ sudo dpkg -i iozone3_397-2_armhf.deb
$ iozone -e -I -a -s 50M -r 4k -r 512k -r 16M -i 0 -i 1 -i 2 | tee iozone_out.txt
I was reading the manual for iozone and it said to make sure, for accurate results, to make the -s switch size be TWICE your ram size. My Pi has 512mb so figured minus the 16mb gpu share I'd make it 1000M (for 1gb test file)

Still, there's more to learn. Something about:

just apt-get install bonnie++ 

Debian OS Installation Essentials

(Source)

passwd
sudo dpkg-reconfigure tzdata
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install vim
sudo apt-get install screen
sudo apt-get install ca-certificates
sudo apt-get install git-core
sudo wget http://goo.gl/1BOfJ -O /usr/bin/rpi-update && sudo chmod +x /usr/bin/rpi-update
sudo rpi-update
sudo shutdown -r now

To be able to listen to audio via the headphone jack. See here, and do this:

sudo apt-get install alsa-utils; sudo modprobe snd_bcm2835; sudo amixer cset numid=3 1

Playing m3u playlists:

mpg123 -@ http://streams.br-online.de/bayern3_2.m3u

Text-based browsing: Either lynx or links

sudo apt-get install lynx
sudo apt-get install links

Maybe sudo vim /etc/lynx-cur/lynx.cfg and change “#ACCEPT_ALL_COOKIES:FALSE” to “ACCEPT_ALL_COOKIES:TRUE”

Logs

When there are problems, check for logs in /var/log/syslog or /var/log/messages.

Keyboard Repeat Problem

They claim it's often a power problem.

Forum user MrEngman reported some keyboard repeats and wireless hangs until upgrading to the debian6-19-04-2012 kernel, which he reports stable with no problems even with a low TP1-TP2 voltage of 4.65 - 4.68 volts.

To see which version you have:

$ cat /proc/version

Try plugging the keyboard and mouse directly into the Raspberry Pi, and see what happens.

Camera

Headless Xwin

Apache vs Cherokee vs Nginx Webserver

http://www.wikihow.com/Make-a-Raspberry-Pi-Web-Server

Looks like I should use Nginx.

How to Install nginx and PHP. And should I need to do something that'd require .htaccess or mod_rewrite, here's a Nginx Primer from Apache to Nginx.

It'd be interesting to see Pelican work on a Raspberry Pi running Nginx.

raspberry-pi.1369073589.txt.gz · Last modified: 2023/04/12 20:44 (external edit)