Raspberry Pi hands-on !

(This post is now updated for Raspbian-based Debian wheezy distro, made available for Raspberry Pi in july 2012)

I switch my local routeur to DHCP, I booted up, Raspberry started !

login : pi / password : raspberry (the rqspberry trick is not needed anymore with Debian wheezy)

Then use the damn simple raspi-config tool (github) to easily configure a brand new Debian wheezy based Raspberry Pi : resizing the SD Card from 2G to, say, 4G, setting locales, keyboard, etc. :

sudo raspi-config

The very first choice to do here is expand_rootfs, to expand the SCard to its maximum capacity, then I exit & reboot.

Then I re-connect (take 2 minutes to reboot) & enjoy your enlarged resized SDCard

df -h

Then re-run raspiconfig:

sudo raspi-config

Then use change_locale, change_timezone, & if needed, change your keyboard settings (this was not needed for my generic Azerty keyboard).

Then add yourself :

sudo adduser myLogin

sudo visudo

And then :

myLogin ALL=(ALL) ALL

then CTRL+O & CTRL+X to exit from nano editor
(or CTRL+K, CTRL+X to exit from joe)

Change the pi password :

passwd

sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get -y dist-upgrade

Manually boot-starting ssh server is not needed anymore on Debian wheezy - it’s a now default service.

Then I continue using a distant decent ssh client & a configured bash in a more personal terminal session …

su myLogin

cd ~/

curl https://raw.github.com/ronanguilloux/Scripts/master/bashrc -O

cp .bashrc .bashrc.dist

mv bashrc .bashrc

. ~/.bashrc

Then I added some usefull command line tools :

(from here, sagi stands for sudo apt-get install)

sagi vim ctags p7zip-full tree manpages-fr manpages-fr-dev manpages-fr-extra most lynx analog cloc tidy markdown htop sysstat di discus pydf hardinfo ack-grep

Then mount the usb key :

sudo mkdir /media/usb

sudo chown myLogin:MyGroup /media/usb

sudo chmod 644 /media/usb

sudo nano /etc/fstab

Add the line :

/dev/sda1 /media/usb vfat rw,defaults,uid=myLogin,gid=MyGroup 0 0

…where myGroup & myLogin are usually the same : your user login on the machine.

Then mount it (will always be mounted after that)

sudo mount -a

OK, at this point we need a disk space usage overview :

df -h

Outputs:

Sys. fich.     Taille Util. Dispo Uti% Monté sur
rootfs           3,6G  1,4G  2,1G  41% /
/dev/root        3,6G  1,4G  2,1G  41% /
tmpfs             19M  208K   19M   2% /run
tmpfs            5,0M     0  5,0M   0% /run/lock
tmpfs             37M     0   37M   0% /tmp
tmpfs             10M     0   10M   0% /dev
tmpfs             37M     0   37M   0% /run/shm
/dev/mmcblk0p1    56M   34M   23M  61% /boot
/dev/sda1        7,5G   33M  7,5G   1% /media/usb

Notes

  1. webmensch reblogged this from rasberrypibeginnersguide
  2. rasberrypibeginnersguide posted this