Configuration using the
The first time the Raspbian system is booted a menu type utility will
automatically run. (raspi-config). This utility
will help you get some basic configuration taken care of. The
utility may be a bit '90's 'DOS' like, but believe me it is way easier
than trying to do these tasks manually.
Note: These configuration settings can be done now or you can wait and
do them later at anytime. But remember that after the first boot,
this utility will no longer automatically run. To
run it again you need to type this command at a terminal
or [arrow keys]
to navigate, [Spacebar]
to select /
Note the raspi-config utility is only available when using the Raspbian
Raspi-Config Main Menu
A brief explanation of selected options:
1. Expand Filesystem: (Expands the OS partition to fill
option is already done if you installed with NOOBS. If you installed
Raspbian using the 'raw' image method then you will need to do this option
as soon as possible.
2. Change Password for user
Everyone knows your password unless you change it. Please remember your password. Difficult but not impossible to recover.
3. Enable Boot
to Desktop / Scratch:
Allows you to choose between 3 booting options.
- Console Text
Console - The default setting will boot to the Command Line Interface
CLI. After login you
must use do startx command to get to the GUI.
- Desktop log
in.... - Skips login and boots directly to the
GUI desktop as user pi.
Note if you want to
have the GUI automatically start but you still want a user/password
login prompt then see
- Boot directly to GUI Scratch program. Scratch is a basic graphical
programming tool. Do not do this option unless you
know you want to boot to Scratch each time you start the system. Note
that Scratch can be run from the regular desktop.
If you have set boot to
Scratch and want to change back to desktop or console then do this:
- Exit Scratch and watch the text messages on the screen.
- Look for message to press [CTRL] C within 5
seconds. Do that.....
- You will now be at a console. Type sudo raspi-config
and choose one of the other boot options
5. Enable Camera:
- Change Locale:
(Default is en_GB.UTF-8 UTF-8) Use cursor keys to scroll through the
entire list and select [*] or unselect [ ] using the [Spacebar].
(US users should use: en_US.UTF-8 UTF-8). Be sure to unselect any you
don't need. Once you press OK, you will be given a list of Locale(s)
that you selected in the previous screen. Highlight the 1 selection you
want then press OK. Be sure to move the highlight off of None or you
will get...... None
You must specify your local timezone. Note that the system will
automatically get the time from Internet when connected but has no way
of knowing which timezone you are in unless you specify here.
(Default is English_UK). US users, or anyone using a US keyboard, will
need to change the keyboard setting. If not some keys such as # will
not work correctly. To change from UK to US select [Change Keyboard Layout]
and do this:
- If your exact keyboard is not on the list then choose
one of the generic 101,102, 104 -key etc.
- Scroll down and select [Other] to get to
the country of origin menu.
- On country of origin menu select: English (US).
You will now be at the keyboard layout menu.
- On Keyboard layout menu scroll to top and select: English (US). Note: Do not select anything else on the list unless you know exactly what
you are doing!
- A reboot
is required to make changes stick.
For the Rasberry Pi Foundation CSI camera modules only.
6. Add to Rastrack:
Don't know why this is here?
Use to overclock or make the system run faster. Note that the RPi is
not guaranteed to work when overclocked. If you experience system
hangs, crashes and/or SD card OS corruption then choose a slower
8. Advanced Options:
- Use if you have problems with boarders on the
(Defualt raspberrypi) Like computer name in Windows. If you have more
than one RPi on your network then you may want to make each one unique
so you don't confuse them. The Hostname is shown at the
command prompt pi@raspberrypi
~ $. When choosing a name be sure to
follow the conventions shown on the Hostname screen - no spaces etc. If
you don't have a proper hostname then the system will not work properly.
A3. Memory Split -
(Default 64 or 128 with camera enabled) Defines how memory is to be
allocated between the GPU and the CPU. Entering a value of 64 means GPU
will use 64MB and the CPU will use the remaining (448MB). The GPU
setting cannot be set any lower than
16. If you don't use the GUI or run 'headless' or run a NAS server or
similar, then use 16. If you use graphic intensive applications,
play movies, then a higher setting will be needed. You may
need to experiment to get the best setting for your needs.
(Default enabled) Remote connection to the RPi text console from a
(Default Linux console on serial port enabled) Choose no if you want to
connect a GPS or other seial device to the GPIO serial port.
- Force audio out the 3.5mm jack.
- Force audio out with the HDMI.
- Let the normal update process
configurations not in raspi-conf:
start of GUI with login (username and password prompt):
- First if not already done, you must set boot to desktop then reboot.
- Open a LXterminal then do:
Find this line: (approximately line 78 in file)
Comment out this line by inserting a # like this:
- Save and exit then reboot.
Note: If you ever go back and do set to desktop with raspi-config
again, (Step 1), then the changes to lightdm.conf will revert back to
the default (no login). If so simply redo the edit again - (Steps 2-5).
The set volume and mute controls:
The following can now be done with the raspi-config utility
Default mode auto sound:
sudo amixer cset numid=3 0
To force sound out the audio jack:
sudo amixer cset numid=3 1
To force sound out with the HDMI:
amixer cset numid=3 2
Note that there is a space before the last number in each
To play a wav file from the command prompt:
To get MP3 playback:
sudo apt-get install mpg321