Wheezy and the raspi-config menu


14 posts
by Jim JKla » Sat Jun 23, 2012 11:24 pm
This forum posting is targeted at the new user and if you feel I’ve lowered the bar somewhat please remember there was a time when YOU did not know where the on switch was.

Ok I've run this install a couple of times now here's some comments and questions on using the raspi-config tool that starts automatically when you use the wheezy public beta available via the following link.

http://www.raspberrypi.org/archives/1435

Now I've had no trouble getting this to load to both 2g and 4g SD cards using both Windows Win32DiskImager.exe and the Ubuntu imagewriter app. There’s loads of info on doing this so I’m sidestepping that part.

I’ve started various configurations with and without HDMI connected using an attached USB keyboard and Mouse and without by hooking up to my PC using putty (ssh) terminal from both Ubuntu and Windows XP.

I will be trying later with Vista and Windows7 but for now I prefer systems that work.

Ok when you start your Pi using the wheezy image The Raspi-config menu appears and has the following entries.

info Information about this tool
expand-rootfs Expand root partition to fill SD card
overscan Change overscan
configure-keyboard Set keyboard layout
change_pass Change password for ‘pi’ user
change_locale Set locale
change_timezone Set timezone
memory_split Change memory split
ssh Enable or disable ssh server
finish Finish config and don’t start raspi-config at boot

<Ok> <Exit>

At any point from within any of the menu or submenu options the Tab key will toggle about the selected entry and the options at the bottom inside angle brackets now I know this is painfully obvious to anybody that’s spent a while at a computer keyboard but remember there’s lots of stories about new users looking for the
[any key] and the RaspberryPi is intended for new users.

There is an exception to this and that’s with the change_locale option ignore that exception for now it’s covered later.

Note as computer literate as you may be there will be people out there who do not know. There will be grannies out there who do not know how to suck eggs.

So here’s some comments as help for the new user and feedback for the writers.

First Entry
info

This would be really helpful if it actually explained the options in the menu but that would be a lot to hope for.

As it is it helpfully advises you may have difficulties if you have heavily customised your installation but as this is probably the first thing a rookie is going to see the likelihood of a heavily customised installation.

What would be useful would be instructions on running this from command line combined with advice on writing these (from the command line) instructions down.

Also it would be useful advice that it will not be difficult to re-image and advice that killing the install may require a re-image.

Killing the power by pulling the micro USB plug will switch off but do this too often and the socket will start to wear out.

I use a USB A to micro USB lead and connect this via one of my PC USB ports or one of those nice mains adaptors (Plug with a USB port) used for charging phones.

If anything is going to wear out its at the non (micro USB) Pi end of the cable.

Second Entry
expand-rootfs Expand root partition to fill SD card

This does what it says on the tin so if you have installed wheezy on a 4g card after use this option and after reboot it will use all of the SD card.

Third Entry
overscan Change overscan

This is the worst because there’s no information on overscan what it is what it does and I am really looking for some help on expanding this one.

When you fire it up you get the unhelpful

What would you like to do with overscan

<Disable> <Enable>

With a standard HDMI setup it appears to make no difference which option is chosen so it’s sort of a moot point. I’ve tried both options and encounter no difference searches for help on overscan are either gobbledygook with hundreds of settings or other people making wild guesses.

Fourth Entry
configure-keyboard Set keyboard layout
This is the setting for using different attached keyboards that is brands of keyboards first followed by other choices to set up nationality of keyboards etc.

The first list will probably fall to one of the generic 105 key keyboards but it’s probably not a big deal if you cant find yours on the list have fun remember you can always re-image or if your really stuck go to a supermarket and pick up a generic 105 USB keyboard I got logitech one for six quid.

The next screen regards keyboard layout If your not using the first choice of English UK select other and you will be faced with a long list of other national keyboards. Funnily enough this list includes English UK.

Next screen is actually quite well documented on the screen your probably going to run with one of the top two choices these are.

The default for the keyboard layout
Or
No AltGr key

To be honest if this is your first setup and you get this wrong it’s not going to break the bank and as I keep saying if in doubt re-image and start again.

Next screen well if your using a standard keyboard then you probably don’t have a compose key and if your new to computing as intended your not likely to need one for a while so I would suggest choosing

No compose key

The next screen is a useful one and the on screen documentation is actually quite clear provided you know what is meant by “X server”

So here’s an outline when you have finished your install the last line of the startup will tell you that you can run startx. Startx is the command to run the windows (like) screen where you use a mouse to select options.

This is the X server and to get back to command line (that’s all the typed stuff) you can have [Ctrl][Alt][Backspace] all pressed at the same time to shut down this X server screen and you can always restart it by typing “startx” Always handy if you have a flaky mouse or are using a wireless mouse that eats batteries.

Of course this is pointless if you don’t remember the key combination when the time comes.

Fifth Entry
change_pass Change password for ‘pi’ user

The default user for the wheezy install is pi and the normal password is raspberry now until your familiar with the setup it’s probably better to leave this password as it is at least till you are happy changing stuff. In addition this is probably one of the easiest things to change from a command line.

To return to my mantra if you screw this up be prepared to re-image with Linix and Unix forgotten passwords are a killer the Raspberry is one of the simpler systems and lets face it till you know what your looking at, the out of the box solution of pi and raspberry are probably all you will need.

Sixth Entry
change_locale Set locale

You can tell this was written by a computer engineer and not a human how about this as an alternative.

change_locale Tell the computer if you need non English characters.

Sheesh! a computer aimed at children and new users and then you expect them to know what locale means.

This menu option gives you a massive list of choices that look like they were written by one of the infinite monkeys of legend (goggle infinite monkeys Shakespeare if you don’t understand this reference actually don’t I think you need to stick with this).

The default setting is

en_GB UTF-8 UTF-8

English Great Britain and UTF-8 is a code related to showing all of the characters usually need to show English letters on the screen now if you are working in some other language than English then you will probably need to play around with this.

You can select multiple choices in the list the space bar toggles them on and off (this was the exception I mentioned earlier) and it’s a long list basically if you want to work in more than one language then you will need to make other choices from this list based on the languages you intend to use.

If your working in English only the default choice is probably the only one you will need.

Seventh Entry
change_timezone Set timezone

This is where you setup your clock now it’s no big issue if it’s wrong it just means the date and time assigned to files you create (automatically when you make) them will be out and its not hard to set this up.

The set up consists of two layers basically to make your selection easier to find.

First option screen think continent just to confuse things you have US and America because we all know USA is not part of America.

Actually the US option just gives you a shorter list all of the US time zones are included in the American list they just made a shorter list under US for all those Good Old Boy American Citizens who don’t know about American places outside of the USA.

SystemV relies on you knowing what SystemV is (Think Unix and ignore it for now).

Most people know where they are in the world for time zone for me it’s Europe then London on the next screen but I’ve always been of the opinion that there should be ropes and lights around the M25 with signs saying “Danger hole in the world Keep Out” but then I’m not from London and the M25 was always the road to hell.

Eighth Entry
memory_split Change memory split

I am prepared to be corrected on this but I am almost certain that this allows you to choose how much of the onboard memory is set aside for the graphics and how much for the on board operation of the main ARM processor.

Three choices 32meg for graphics 64meg for graphics 128meg for graphics. Now let’s assume your really fresh to writing code, as in never done this before ever.

Your not going to be writing really complex Artificial Intelligence type programs and your also unlikely to be running cutting edge real time first person shooter games not yet anyways.

At a later date should you go either of these routes re imaging a new SD card will probably be well within your capabilities till then it’s not really an issue which option you choose. I like the idea of having 128 meg for graphics. As a new programmer your not likely to push graphics unless you want to do something with photos or live streaming (Watching Live TV on your Pi). Remember not only can you re-image but you can run raspi-config again and reassign this value is not set in stone.

Ninth Entry
ssh Enable or disable ssh server

Now unless you know what ssh is then enable or disable ssh is probably the option that’s going to leave you re-setting you Pi the most.
ssh is the secure shell option ssh will allow you to log into the Pi from another computer on your network using a program like putty.

Putty is free and available to download it’s free Open source and runs on both Windows, Linux and there are other things available for Mac’s (I’m not really familiar enough but I believe there’s an option in Xterm).

This option has allowed me to access my Pi without a monitor attached to the Pi ok it’s easier if you have but let’s say you want to do some command line stuff and your partner/brother/sister whatever wants to use the TV for corrie or suchlike.

You can hook up the TV and use this option in the setup menu to toggle the ssh server.

Now let’s make this clear if you have not got a network connection to your Pi and you select the ssh option you will not get back to the menu without a re-set however if you have putty loaded on your PC and you know the IP address of your Pi then it’s a good option.

Playing with the Pi with putty is probably one of those things that will need it’s own guide notes because there’s all sorts of stuff associated with spotting what the IP address is.

I have found that even when I have known the address and I have selected ssh there’s no indication of the ssh state however using putty I’ve connected using the ip identified by interrogating my router.

Then using the ssh option from this menu if the connection did not work hit enter on the Pi’s keyboard this appears to be the toggle one the selection has been made.

However if you are using everything from the box as is. That is to say you have your HDMI connected to a TV and a Keyboard and Mouse on the Pi and you have the menu running then I suggest you don’t run ssh (note just a suggestion).

Final Entry
finish Finish config and don’t start raspi-config at boot
If you select <Ok> from this option and you reboot then you wont get this raspi-config menu if you choose <Exit> then the next time you start your going to get this menu again automatically.

Oklets assume you have happily worked your way through this and you selected OK for the final menu option.

You are going to get some gibberish about the Last Login (ignore this).

Then there’s some info on finding further information on the included programs now as a new user for now even locating this stuff is probably a no-no.

Then you get the standard NO WARRANTY message it’s just legalese for “your doing this at your own risk” that kind of goes without saying.

Then the key line.

Type ‘startx’ to launch graphical session

So if at this point you type startx followed by hitting the Enter key you will be launched headlong into a windows style environment. Should you feel inclined have fun.

If on the other hand you want to play in the rarefied atmosphere of the command line environs then you may want to manually reboot just to test your Pi.

The command reboot tells you that you must be super user so type

sudo reboot instead this should restart your Pi give it a couple of minutes if it does not re-start on it’s own switch it off then on again. Hey it works more often than not.

Feedback Suggestions:

How about an option to change the default font size the default is tiny on my TV.

How about some detail on Overscan
Noob is not derogatory the noob is just the lower end of the noob--geek spectrum being a noob is just your first step towards being an uber-geek ;)

If you find a solution please post it in the wiki the forum dies too quick
User avatar
Posts: 2195
Joined: Sun Jan 29, 2012 11:15 pm
Location: Newcastle upon Tyne UK
by Jim JKla » Sun Jun 24, 2012 12:06 am
Ok update on Overscan (Forum rules mean I can't edit my own postings (go figure) )

I've been experimenting with changing the command line font size to make the command line stuff easier to read.

On reboot the text on the screen was shifted left and down loosing me the start of the line and half of the current line off of the bottom of the screen however after re-running raspi-config using

sudo raspi-config

note it's case sensitive (don't use capital letters)
I switched on overscan and then rebooted which suggests the overscan is screen alignment related.
Noob is not derogatory the noob is just the lower end of the noob--geek spectrum being a noob is just your first step towards being an uber-geek ;)

If you find a solution please post it in the wiki the forum dies too quick
User avatar
Posts: 2195
Joined: Sun Jan 29, 2012 11:15 pm
Location: Newcastle upon Tyne UK
by funny » Sun Jun 24, 2012 11:44 am
Hi Thank you very much, its a very useful guide. But still this seems quite difficult to understand as I am a complete noob. Could you please offer your help without cursing my ignorance.

I got my pi on Friday. I do not have any monitor except my laptop. I wanna run my pi with ssh. I have seen the blog post comments on Wheezy that by pressing down arow 8X and all that series of instructions. I have done that but forgot to connect my pi with LAN while doing. I switched off my power plug.

So my questions are:

1) do I need to re-image my SD card, since I abruptly shutdown the pi.

2) As you explained in your post, do i need to select each entry or should I follow that 8 times arrow key kind of instructions. If I need to follow your instructions, could you please write all of them together line by line as we can see in the comments on blog post, for example.

After switching on power, do hit down arrow 8 times,

then hot enter,
then tab,

this kind of instructions. Could you please help me.

Regards,
Funny
Posts: 15
Joined: Mon Jan 16, 2012 11:14 am
by AndrewS » Sun Jun 24, 2012 11:58 am
Jim: Very nice info - but I worry that if it's left in the forum it'll just disappear under all the other posts - so I'd recommend adding it to the Wiki too.

Funny: According to https://github.com/asb/spindle/issues/63 SSH is enabled by default, so there should't be any need to "type blind" ;)
User avatar
Posts: 3626
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
by Jim JKla » Sun Jun 24, 2012 2:19 pm
Yes I've been cosidering where to add this to the Wiki two things holding me back are the vexed point on where to actually put it plus it's evolving as I now have an extension that covers changing the default font size and setting up putty.

I'm also preparing a piece on ssh access using putty I know it is active by default but there is no easy way for a new punter to get the assigned IP address. I know the way around the settings of my router and it's not something I would recommend for a novice.

In some ways this IP information combined with an indication of ssh state would be more useful than the existing ssh toggle option.

I firmly believe a new user wanting to swich off ssh that early in the learning experience as being a lot less likely than them wanting to know it's on and the IP address it's using.

Sorry about any misunderstanding "Funny", I was berating those that would say I was lowering the bar too far not having a go at anyones ignorance. I am trying to get the geeks to recognise that they were also noobs at one time.

There's an old trick with memory I was taught in the military if you understand why a thing is so you remember it automatically.

The instructions are all there it's a menu think of it like a resteraunt menu you don't need to do everything on the menu.

Use the arrow keys to select the one you want to change and just do that one.

That is something it does not tell you at present.

For example you can choose to change the password for the pi login but you don't need to.

I'm sorry can't do a list of instructions because not everybody wants the same setup or even has the same connections but bare with this It's a lot more information than you had perviously :-)

Re-question 1 you only need to re image if it stops working or if you have changed something that you can't undo by re-running raspi-config.

Re-question 2 this is a wild question I can only answer if I know what you are trying to do (the number of times you press the arrow key depends on what you want to do within the menu none of it's compulsory if you only want to eat the pudding thats fine by me :-)

All I am saying is if you get it wrong and it does not work don't worry with the stuff available to this raspi-config menu there's nothing I know of that can't be un-done with a re-image.

Oh and BTW "Funny" I'm in the process of writing up that how to access by ssh method and that will be going into the wiki. Give me time I got my RaspberryPi on Thursday
Noob is not derogatory the noob is just the lower end of the noob--geek spectrum being a noob is just your first step towards being an uber-geek ;)

If you find a solution please post it in the wiki the forum dies too quick
User avatar
Posts: 2195
Joined: Sun Jan 29, 2012 11:15 pm
Location: Newcastle upon Tyne UK
by Jim JKla » Mon Jun 25, 2012 7:32 am
Noob is not derogatory the noob is just the lower end of the noob--geek spectrum being a noob is just your first step towards being an uber-geek ;)

If you find a solution please post it in the wiki the forum dies too quick
User avatar
Posts: 2195
Joined: Sun Jan 29, 2012 11:15 pm
Location: Newcastle upon Tyne UK
by demost » Fri Jul 20, 2012 2:10 am
Hello,

I'm using a 32gb class 10 sd card and I choose EXPAND-ROOTFS - Expand Root Partition to Fill SD Card. How long should this take? Because it seems to hang for over a half hour before I give up on "Preparing an on-line resize of /dev/mmcblk0p2 to 7910144 (4k) blocks.

Thanks :)
Posts: 2
Joined: Fri Jul 20, 2012 2:06 am
by ratbag » Fri Jul 20, 2012 7:28 am
Can't help with a 32GB, but a 16GB card takes between 5 and 10 minutes. Quite frustrating when you're doing a headless install and think that something's gone wrong. Still, I got to practise my dd skills a few times...
User avatar
Posts: 3
Joined: Fri Jul 20, 2012 7:25 am
Location: Kent, England
by Jim JKla » Fri Jul 20, 2012 8:05 am
I've not tried it with a big SD card yet but 2g to 4 g takes less than a second so I would suspect longer than a minute looks susspicious. ;)
Noob is not derogatory the noob is just the lower end of the noob--geek spectrum being a noob is just your first step towards being an uber-geek ;)

If you find a solution please post it in the wiki the forum dies too quick
User avatar
Posts: 2195
Joined: Sun Jan 29, 2012 11:15 pm
Location: Newcastle upon Tyne UK
by ratbag » Fri Jul 20, 2012 8:26 am
Jim JKla wrote:I've not tried it with a big SD card yet but 2g to 4 g takes less than a second so I would suspect longer than a minute looks susspicious. ;)


The action in raspi-config takes a second or two. The big delay for me is at the next reboot, when I presume the real work gets done.
User avatar
Posts: 3
Joined: Fri Jul 20, 2012 7:25 am
Location: Kent, England
by Jim JKla » Fri Jul 20, 2012 8:58 am
Even that reeboot was quick for me certainly nowhere near your timings remember the reallocated space is empty I believe it just changes the partition table.

When I do the 4 gig card I start with the card formated as a blank 4g so my PC can see the card.

It may also just be a brand issue as some SD cards have had problems. If you can get your hands on a cheap 4g to try out the image.

My pantner wants a 32g card for her Camera so when she gets it I plan on running a couple of RPi experiments with the Wheezy image. ;)
Noob is not derogatory the noob is just the lower end of the noob--geek spectrum being a noob is just your first step towards being an uber-geek ;)

If you find a solution please post it in the wiki the forum dies too quick
User avatar
Posts: 2195
Joined: Sun Jan 29, 2012 11:15 pm
Location: Newcastle upon Tyne UK
by demost » Fri Jul 20, 2012 10:52 am
If I fore go the expansion of the root the file system installs and works without a problem. I think what maybe happening is that on the reboot I'm having a common issue with the cheap keyboard I attached. I think I need to get a powered USB hub to continue my tests.

Thanks
Posts: 2
Joined: Fri Jul 20, 2012 2:06 am
by Jim JKla » Wed Aug 01, 2012 9:41 am
I have a timing for resizing a 32g microSD in an adaptor using Wheezy 2012-07-15

circa 4min 12seconds
Noob is not derogatory the noob is just the lower end of the noob--geek spectrum being a noob is just your first step towards being an uber-geek ;)

If you find a solution please post it in the wiki the forum dies too quick
User avatar
Posts: 2195
Joined: Sun Jan 29, 2012 11:15 pm
Location: Newcastle upon Tyne UK
by ligularian » Wed Nov 28, 2012 2:59 pm
Phew. Thank you. (Sounds of clapping and uproarious jollity) Noobs Unite. :P The most simple bits are the most difficult.
User avatar
Posts: 6
Joined: Thu Oct 18, 2012 1:18 pm
Location: Derbyshire