Archive for the ‘Howto’ Category

Install Openoffice.org 3

Monday, January 5th, 2009

Hi All

I’ve been using OO 3 on Fedora since last year, and decided it really is about time I added it to my Ubuntu installs.

Here is what to do no searching and no command line access required.

  1. First off we need to add the Launchpad repository for OpenOffice to our software sources, as it’s still not mainline ubuntu as yet.

To do this carry out the following:

From the task bar,

  1. Click on ‘System’
  2. Go down to ‘Administration’
  3. Go Down to ‘Software Sources’

As shown in the screen shot shown below:

01_software_sources_menu

Next you’l be prompted for your password, as shown below:

02_software_sources_password

Now enter your password, as prompted.

Once the Software sources application has started:
Select the ‘Third Party software’ tab

As shown below:

03_software_sources_3rd_party

Click on the ‘Add’ button on the bottom left hand corner. This will generate a text box for you to enter the line to add the repository, as shown below:

04_apt_line
In the text box for APT line enter the following :

deb http://ppa.launchpad.net/openoffice-pkgs/ubuntu intrepid main

If you are still on ubuntu hardy, replace intrepid in the above line with hardy

Click ‘Add Source’
Click ‘Close’

After a little while the ‘Software Sources’ application will close.
Now all that is left is to simply ‘Update’ your system as usual.

You now have a fully functioning OpenOffice.org 3 installation.

Intrepid on a stick

Wednesday, November 5th, 2008

If I have got this right you should be able to download this .torrent file which may well automatically start the transmission bittorrent client on your webbook, or you might want to install some other kind of bittorrent client if you have a particularly poorly webbook. Once you have the file which is a fraction over a gig in size you need to write it to a USB stick. Not copy it as a file onto a USB stick, the .img is a complete image of the USB stick including boot sector, partition tables, partition and filesystem so it needs to be placed on the stick in a special way. With a webbook or other linux computer (or perhaps a Mac) you can use the dd command. If you downloaded the image file to your desktop you would open a console, plug in a USB stick (1GB or more in size with nothing on it that you want!) and type something like

alan@webbook:~$ mount|grep disk

/dev/sdd1 on /media/disk type vfat (rw,nosuid,nodev,uhelper=hal,shortname=mixed,uid=1000,utf8,umask=07

this is to find out the drive name of your USB drive (the |grep disk bit just filters out the stuff we are not interested in) in this instance we discover it has mounted (opened) /dev/sdd1 which is a device called SCSI Disk D partition 1. We don’t want the drive to be mounted, so we now unmount it

alan@webbook:~$ sudo umount /dev/sdd1

alan@webbook:~$ cd Desktop

alan@webbook:~/Desktop$ sudo dd if=intrepid1.img of=/dev/sdd

and that will start copying the data. The interesting thing is where we are copying it to, /dev/sdd not /dev/sdd1. We don’t copy it into the first partition on the USB drive, we copy it to the drive itself. The .img file contains a 1GB partition. After this is done you should be able to remove the stick and reinsert it and browse the new partition. To use it you need to set the bios settings to Boot from the USB stick an SD card would work just as well as it happens. THIS WILL TOTALLY DESTROY EVERYTHING ON YOUR DISK and drop on a new full disk image. After you change the BIOS settings and boot from it there is no “yes to continue” it is totally hands off from that point, as soon as it starts you might as well let it carry on to the end because everything you had before is gone.

If you have Windows then this dd for windows program might do a similar thing. If anyone has a friendlier way to get an image onto a USB stick I would be interested to hear about it – remember it is not just the files it is the bootloader and an active partition that we need.

If this sounds a bit scary then wait for some of the other penguins to jump off the ice and check for seals first :-)

Webbook FAQ

Friday, October 31st, 2008

The support team have asked me to put together some flowchart questions and answers for diagnosing and solving common problems folk have with the webbook. I figured it would be best to post them here to help people solve their own problems and chip in with corrections and other suggestions

I keep getting prompted for a keyring password when connecting to my wireless network

Something is wrong with your gnome keyring file, try deleting the keyring file. Open a terminal and type rm ~/.gnome2/keyrings/login.keyring

My webbook shows the Ubuntu logo on bootup but then goes to a black screen

This has happened to a few people, I am not sure why.

When precisely does it go black? Before login or after login? Do you hear the drums at the login page and the startup sound after the login page?

Try plugging in an external monitor and see if that works (obviously not a solution, but it would tell us something about what is going on) if the external monitor works, what resolution is it running at? 1024×768 or 1024×600?

Go to the recovery root shell from the grub menu and edit or replace the xorg.conf file.

cd /etc/X11
sudo mv xorg.conf xorg.broken
sudo wget http://webbookblog.com/wp-content/uploads/2008/09/xorg.conf

If that fixes things then I would be quite interested in seeing what the xorg.broken file looks like.

I can’t connect to my mobile broadband connection

What dongle are you using? The E160 does not work so well on Hardy Heron, but it does work much better on Intrepid.

What network?

Prepay or Pay as you go?

If it is pay as you go do you have any credit? (try browsing to three.co.uk, if that is the only site that works then you need a topup)

Have you upgraded to Wader 2.3? Open the mobile broadband application and go to help-about and look at the version number. If it is not 2.3 then do an update and restart the webbook.

Check the profile. If you have connected to a different network in the past it is probably using the wrong profile and trying to roam onto a network for which you don’t have roaming privileges. You should never roam on mobile broadband, if you are abroad buy a local pre-pay SIM card – make sure the thousand pound bills happen to other people. The only exception to this is if you have a Three SIM card you can roam onto Orange GPRS as three don’t have their own GPRS network)

If you do have the wrong profile simply delete it and try to connect, it will pop up a new profile with all the correct details filled in.

For more in depth diagnosis start the mobile broadband client and open a terminal window. Type tail -f /tmp/wader.log now plug in the dongle and watch the messages go by as you connect. The messages do actually mean something although they can be a bit cryptic. If someone has an interesting connection issue I would want to see the contents of /tmp/wader.log.

Please totally ignore and do not use the Windows drivers that are on the pseudo CDROM on the dongle. The installer might sort of run under WINE, but it is not going to connect or do anything productive. Just use the Wader mobile broadband client.

Gcompris doesn’t work

start it with alt-F2 gcompris -x we need to get a patch out to fix this.

I have messed up lots of things

Deleting your home directory and starting again might fix things if you have got corrupted firefox/thunderbird/gnome profiles (you can delete them individually, but it can be simplest to just start again)

I have totally hosed my webbook/I accidentally bought one with XP on it

Ask for a USB webbook Linux restore wristvault. This is a 1GB USB drive with a partition image of a clean webbook build. You need to go into the BIOS to change the hard drive order to boot from it, then back into the BIOS when it is finished to re-enable the SATA hard drive.

So what other FAQs should I add to this list? Any problems I have missed?

Pretty fonts with sub-pixel rendering

Wednesday, October 15th, 2008

Here is a little tip for subtly improved font rendering. Go to a terminal window (Applications-Accessories-Terminal) and type sudo dpkg-reconfigure fontconfig-config.
From the options select Autohinter, Always, and No. If you look carefully the curves of letters should now be just a fraction smoother.

nope, don’t do that! go to System-Preferences-Appearance and click the fonts tab, then select subpixes smoothing from the Fonts tab. Same thing as above really, but no need to go to the command line for it.

Booting the webbook from USB or SD cards

Friday, October 10th, 2008

There is a trick in the BIOS to booting from USB or SD cards, it is a bit counter-intuitive, but it can be done.

Plug in the USB/SD card and power up the webbook,  press del straight away to enter the BIOS.

On the Boot tab don’t go into the tempting looking Boot Device Priority section, go to the Hard Disk Drives bit.

Swap the order so that the USB device is the 1st drive and the SATA drive is the 2nd drive.

F10 to save and exit

now it will boot from the USB.

When you are done, remove the USB and power down.

If you switch on and try to boot now it won’t do it, you will get a scary sounding error message saying Base-code ROM ID structure was not found., reboot and select proper Boot device.

Don’t Panic!

Power down and up and go back into the BIOS and back to the Hard Disk Drives bit. For some reason the 1st drive is listed as disabled, change that to enable the SATA drive and then you will be able to boot from it again.

That error message was because it was attempting to do a network boot, but the network boot ROM was turned off. If you want to boot from the network you have to go back into the Boot section of the bios and enable the PXE Configuration Execute bit. If you don’t know what PXE and TFTP are then you don’t need to worry too much about this!

Keystroke guide to a factory reinstall

Friday, October 10th, 2008

Some people have been asking about the exact factory configuration of the webbook, so here it is, keystroke by keystroke guide to building a webbook.

Insert the Ubuntu 8.04 or 8.04.1 Alternate CD into a USB CDROM drive

return (to select English)

F4, down cursor, return (to select OEM mode)

return (to select English)

up, return to select United Kingdom

right, return to not detect the keyboard

return, return to select UK keyboard

down to select eth1 the wired network card

return to cancel the search

return to continue

down return to not configure the network at this time

change the host name to webbook (not sure this was always done for every batch – some probably  have ubuntu as the hostname)

select guided-use entire disk

return to do the partitioning

left return to write the partion to disk

oem return, oem return to set the password of the oem user

make a cup of coffee.

return, to finish the installation

return to select UTC

return to reboot

remove CDrom

let the system boot up.

Ctrl+Alt+F1 to get to a console

oem, oem to log in

wget http://webbookblog.com/buildscript.sh

chmod +x buildscript.sh

sudo ./buildscript.sh

oem (the password for the oem user)

y to download a load of updates

y to install the ppa stuff without verification

agree to the SUN Java license

now it goes through another bunch of updates

oem-config-prepare

halt

Now it should restart with the first user wizard. The only difference is that Virtual Box is not installed, this is because there seems to be a problem right now with the version of the VirtualBox kernel module so it won’t install without errors. After doing the above procedure I ran <code>apt-get clean</code> to save some space used partimage to take a compressed image of the drive, this just about fits on a 1GB USB wristvault which should end up being the recovery media which you will be able to get from Elonex. We could do recovery media for different operating systems too, so you plug in the USB key and boot from it to reimage the drive as OpenSuse/Fedora/Debian/Gentoo etc. Would you be interested in that?

Compiz Beta – part 3

Wednesday, September 17th, 2008

OK, so with luck you now have the via drivers installed. You can do a few funky things already, for example go to System-Preferences-Screen Resolution and change it to 1024×768. This will compress the display onto the 1024×600 screen which allows some of the overly tall dialog boxes to fit (like the Evolution setup wizard for example). If you plug in an external monitor or projector the display should fill the screen nicely. In fact if you are into that kind of thing you can go to the synaptic package manager and install the openoffice.org-ogltrans package and get a bunch of fancy 3d transitions in the Impress application. I will have a go at posting some screenshots of that later.

Lets move on to enabling Compiz. To do this we are going to have to tell Compiz that the VIA driver actually is plenty good enough to use. Go to Applications-Accessories-Terminal and lets try to start Compiz just to see what happens.

so that didn’t go so well. Press ctrl+c to get back to a command prompt. So it has no whitelisted driver and is refusing to start. Fortunately I know where it stores it’s whitelist :-) The compiz command is just a script file that starts off some other things and this script contains the whitelist of approved graphics drivers, so lets go edit it

sudo nano /usr/bin/compiz

now go and find the line that starts with WHITELIST, add via to the end of the list inside the quotes as shown below:


now save and close with

Ctrl+X
y
return

now lets try starting compiz again (starting from the 4th line in the screenshot below)

lots of screen flicker then it seems to have started. Don’t worry too much about the error message on the last line. You should now see a few fancy fades and effects happening. Try switching desktops and they will slide across. Open and close a few windows. Nice isn’t it! Compiz will start automatically when you log on now that you have whitelisted the via driver.

There are lots and lots of effects to turn on, for that you need the CompizConfig Settings Manager, which I will talk about in part 4

Please let me know if the instructions work!

Compiz Beta – Part 2

Wednesday, September 17th, 2008

This only works on Hardy Heron 8.04 kernel version 2.26.19 if you have upgraded beyond that, i.e. if your webbook is currently up-to-date then the download on this page will not do anything useful and you will need to restore the backup of your xorg.conf to get it working again.

So now you know how to unbreak your webbook graphics, lets have a go at installing and using the via drivers.
First download this file Elonex Via Drivers.
This contains the binary drivers patched for the webbook and compiled against kernel 2.26.19 which is the current kernel at the time of writing this. When the next kernel upgrade happens there is a reasonable chance you will boot to a black screen. If that happens go to the recovery console and copy back your xorg.conf for the openchrome drivers.
So having downloaded the file start up a terminal window. I am assuming that you downloaded the file to the desktop (the default place if you just clicked on the link in Firefox), if you put it somewhere else then you may have to adjust the commands accordingly.

cd Desktop
ls
tar -zxvf elonexviadrivers.tar.gz
cd ElonexViaDrivers
sudo ./vinstall

so step by step
cd Desktop changes the current directory to the Desktop directory where you downloaded the file
ls lists the content of the current directory, it will show you everything on your desktop. I put this in just to confirm you are in the right place and to help you forget the dir dos command:-)
tar -zxvf elonexviadrivers.tar.gz
this one is a bit more complex the zxvf bit is 4 commands or flags we are passing to the tar program. z means uncompress the file using gzip (that is the .gz part of the filename). x means extract the files from the archive. v means verbose, so it will tell you what it is doing as it extracts them. f means the next parameter is the filename to work on.
cd ElonexViaDrivers
the extracted archive created a new folder on your desktop, we now change directory into that folder
sudo ./vinstall
sudo means run the next command as the super user. The single . means “the current directory” just as .. means the parent directory. cd . does nothing cd .. goes up a directory. ./vinstall means run the vinstall script that is located in the current directory. Now if you are familiar with the workings of other popular operating systems you may be a bit puzzled by this, why can’t you just type vinstall because you are in the right directory? Well this is a security feature, the current directory is not on the search path for applications to execute, you have to be explicit. Imagine if there was a script called “ls” in a directory, you go into that directory and use ls to list the contents but instead of doing that you just ran a script that does who knows what!
You can have a look at the contents of the vinstall script if you like. Just type
gedit vinstall
and the editor will open up so you can see what it does. It is always good practice to have a look at scripts before you run them. It is a great way to learn, and you can check that it is doing what you expect it to do.
So now you should have the via drivers installed, if you restart you will find the login window a bit stretched (not quite sure how to fix that yet) and you can log on to your desktop. Some things might be a bit smoother, but nothing dramatic is visible. For that we need Part 3 – Enabling Compiz, which I will crack on with right now . . .

Please shout if the instructions don’t work, there might be some typos in there

Compiz Beta – Part 1

Monday, September 15th, 2008

OK, before we rush in to installing the drivers now is the time to prepare the exit strategy and learn how to fix things when they go wrong. So we are going to deliberately break, and then fix the graphical user interface. First lets explain a bit about how things work in Linux.

The graphical user interface (X Windows or X.org) looks up a little configuration file stored at /etc/X11/xorg.conf this tells it a bit about the screen size and layout (you can have multiple graphics cards and monitors) plus a bit about keyboards and mice and so on. You can take a look at this by going to Applications-Accessories-Text Editor, then press the Open button and go up to the root of the filesystem, then into etc then X11 then open the xorg.conf file. If you go down you will find the Device section, it looks like this:

Section "Device"
	Identifier  "Device1"
	Driver      "openchrome"
	VendorName  "VIA Technologies, Inc."
	BoardName   "CX700M2 UniChrome PRO II Graphics"
	Option	    "ForcePanel"
	Option	    "EnableAGPDMA" "true"
	Option	    "SWCursor" "true"
	Option	    "NoAccel" "true"
	BusID       "PCI:1:0:0"
EndSection

in bold I highlighted the driver name, here it is using the OpenChrome driver. Have a quick look round the rest of the file, but don’t worry if most of it is gobbledygook. Lets leave the pretty graphical user interface behind now and get comfortable with the command line.

Press Ctrl+Alt+F1. This should take you to a black screen with white writing on it asking you to log in. You can use your normal username and password here. Press Ctrl+Alt+F7 and you will be back at your graphical user interface. Try Ctrl+Alt+F1 again. Now try Ctrl+Alt+F2, you get another login prompt. You can also log on here if you want. In fact Ctrl+Alt+F1 through to Ctrl+Alt+F6 are text mode consoles, Ctrl+Alt+F7 is the graphical console.

OK, back to the first text mode console.

The above bit doesn’t work when the OpenChrome drivers are actually running, but it works find if X is broken, or if you have the VIA drivers running. When you power up the webbook go to the grub menu and select the recovery option and go to a root shell.

webbook:~$ cd /
webbook:/$ cd etc/X11
webbook:/etc/X11$ ls
webbook:/etc/X11$ sudo cp xorg.conf xorg.conf.openchrome
webbook:/etc/X11$ ls

So these few lines above took us first to the root of the filesystem, then into the etc/X11 directory. The ls command listed the files in the directory, one should have been xorg.conf. Next we used the cp (copy) command as the superuser to make a backup copy of the xorg.conf file and call it xorg.conf.openchrome. Finally we used ls again to list the files and we should see that the new xorg.conf.openchrome file is present.

Now lets break things!

$ sudo nano xorg.conf

this launches nano, a little text editor, like gedit, but not as pretty. Now lets go wild! Find something and tweak it, maybe change the driver name, maybe go down to the screen section and change the resolution from 1024×600 to 1598×543! It doesn’t matter because we have a backup. Press Ctrl+x to quit nano and press y to save your changes. Ctrl+alt+F7 will take you back to the graphical console, it is still running. If you then log out it will restart X windows and re-read your modified xorg.conf and probably not start again. Power off and power on and it will still be broken. The fix is simple though. Ctrl+Alt+F1 to get to a console. Now log on

webbook:~$ cd /etc/X11
webbook:/etc/X11$ sudo cp xorg.conf.openchrome xorg.conf

this will take your backup configuration file and copy it over the top of the one you broke. Now if you restart the webbook (or restart the X Windows with Ctrl+Alt+F7 then Ctrl+Alt+Backspace) you should get back to the graphical login prompt.
So there we have it, from working, to broken, to mended again, and you are all prepared for the next installment . . .

Staying up-to-date with your webbook

Friday, August 22nd, 2008

Every so often there will be some updates and enhancements available for your webbook. The webbook will automatically check for these whenever you are online. If it finds an update then it will let you know by showing a little orange star in the top panel. When you have a bit of spare time and want to download the updates (perhaps on a wifi connection, probably not whilst roaming on 3G) you can click the icon to start the update manager and pull down the updates.

it will then let you know what updates are available and you can look at the full description of each update before you download and install it. Here I have 8 updates to collect:

I pressed the Install Updates button and start downloading my 2.1 megabytes of updates.

1 minute 34 seconds remaining. I think I will go and put the kettle on.

The kettle has just boiled and the webbook has collected all the updates, it is now going to spend a minute or so installing them.

So now my webbook is fully updated and I can sit down with a nice cup of coffee (white, no sugar).