Base installation
>>> Take a look at my new RPi blog! <<<
This is the base configuration I use to create the new ones. There's not much to say about this configuration that shares the common values of all my images
(IP, SSH, GUI, etc.).
If You wish to create your own configuration You can start from this one.
If You wish to make an update of this Linux installation You should just connect your RPi to internet using a network cable and type the following commands:
sudo apt-get upgrade
sudo apt-get update
If You install this image onto a card bigger than 2GB, I suggest to expand the file system to use the whole card (this image has been created using a 2GB SD). To obtain this type
sudo raspi-config
and select expand_rootfs. At the next power on RPi will use all the available space in this card.
Creating a base configuration
Preparing a base image is quite simple and fast. First of all download the standard image from the
Raspberry Pi site and write it on the SD card.
At the first power on a configuration screen will be loaded. If You wish to call this screen again in the future just type
sudo raspi-config
You need just the following items:
-
expand_rootfs
With this item You can set Your RPi to use the whole space on the SD. The partition will ben expanded on the next power on. -
configure_keyboard
Here You can configure the keyboard connected to the RPi. -
change_locale
This is to change locale settings -
change_timezone
This is to change the time zone -
ssh
Here You can enable or disable SSH communicatino protocol -
boot_behaviour
With this item You can enable or disable the GUI at startup
When all is configured as You need, restart the RPi. If You are using this configuration screen it will be asked to restart when exiting. Otherwise You can restart just typing:
sudo reboot
Now You can update the system typing:
sudo apt-get upgrade
sudo apt-get update
sudo apt-get dist-upgrade
If asked agree to make the changes.
Now if You wish to configure a static IP address modify the interfaces file typing:
cd /etc/networks
sudo nano interfaces
In this file search for this row:
iface eth0 inet dhcp
Change it as specified below and add the subsequent rows:
iface eth0 inet static
address 192.168.0.30
netmask 255.255.255.0
gateway 192.168.0.1
Change parameters following Your needs and search for this row:
auto lo
Change it this way:
auto lo eth0
If You do not need loopback device You can remove the word lo. Now save the file (typing CTRL-O and RETURN), exit (CTRL-X) and restart the RPi.
Now the system is configured and You can create an image to use as a base. Before removing the card from the RPi be sure to power off correctly typing:
sudo halt
And wait for the leds to turn off (apart from the power led).
These are the RPi sections:
F.A.Q.
Base
SiriProxy
C64 emulator
Web server
Installing Yowsup
Using Whatsapp