Updating to the 2012-09-18-wheezy-raspbian image
Posted: Wed Sep 19, 2012 12:53 pm
If you're running an older version of the Raspbian images from the Foundation download page, this guides you how you can make modifications to match the latest release.
Updating firmware
You can get all the benefits from the latest firmware from a, but there are a few other tweaks in the default setup that you might want to try. This is faster and more direct than sudo apt-get update && sudo apt-get upgrade, but of course you won't get updates to other packages. You can now play with the overclock presets via `sudo raspi-config`. You might also want to
Improving WiFi config
For better out of the box wireless config, first upgrade the firmware as described above and then:
* sudo apt-get install wpagui
* add the following to /etc/network/interfaces (edit with e.g. sudo nano
/etc/network/interfaces)
* Now create /etc/wpa_supplicant/wpa_supplicant.conf with the following
contents:
* `sudo chmod 600 /etc/wpa_supplicant/wpa_supplicant.conf`
* sudo adduser pi netdev
* A final tweak you might like is to edit
/lib/udev/rules.d/75-persistent-net-generator.rules and disable persistent
renaming of wlan interfaces by changing:
to:
* Create a desktop icon for wpa_gui with `cp /usr/share/applications/wpa_gui.desktop ~/Desktop`
Misc minor tweaks
Another minor bug fix, edit /etc/fstab to set the pass field for / and /boot,
so fsck will not be skipped when forced. New fstab looks like:
If you were using the 'boot straight to desktop' setting in raspi-config (or otherwise logging in via lightdm) you may have noticed the PATH doesn't get set to its usual value. This is because /etc/profile and ~/.profile aren't sourced when lightm logs you in. Fix this by creating
/etc/X11/Xsession.d/75source-profile with contents:
Updating firmware
You can get all the benefits from the latest firmware from a
Code: Select all
sudo apt-get update && sudo apt-get install raspberrypi* raspi-configCode: Select all
sudo apt-get install smartsim penguinspuzzleFor better out of the box wireless config, first upgrade the firmware as described above and then:
* sudo apt-get install wpagui
* add the following to /etc/network/interfaces (edit with e.g. sudo nano
/etc/network/interfaces)
Code: Select all
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
contents:
Code: Select all
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
* sudo adduser pi netdev
* A final tweak you might like is to edit
/lib/udev/rules.d/75-persistent-net-generator.rules and disable persistent
renaming of wlan interfaces by changing:
Code: Select all
# device name whitelist
KERNEL!="eth*|ath*|wlan*[0-9]|msh*|ra*|sta*|ctc*|lcs*|hsi*", GOTO="persistent_net_generator_end"Code: Select all
# device name whitelist
KERNEL!="ath*|msh*|ra*|sta*|ctc*|lcs*|hsi*", \
GOTO="persistent_net_generator_end"
Misc minor tweaks
Another minor bug fix, edit /etc/fstab to set the pass field for / and /boot,
so fsck will not be skipped when forced. New fstab looks like:
Code: Select all
proc /proc proc defaults 0 0
/dev/mmcblk0p1 /boot vfat defaults 0 2
/dev/mmcblk0p2 / ext4 defaults,noatime 0 1
# a swapfile is not a swap partition, so no using swapon|off from here on, use dphys-swapfile swap[on|off] for that
/etc/X11/Xsession.d/75source-profile with contents:
Code: Select all
[ -f /etc/profile ] && . /etc/profile
[ -f "$HOME/.profile" ] && . "$HOME/.profile"