As you are probably aware, Ubuntu has a regular six-month release cycle, and if you are someone like me, then you are probably regularly downloading all the Alpha and Beta versions as well as the final releases. The problem with such regularity is that this would use up an awful lot of blank CD’s that you will probably only use a few times before discarding just to install these upgrades.
Fortunately, you don’t have to burn Ubuntu CD ISO images to a physical disc to upgrade your installation to the next version. Here’s how to do it using just the ISO image, or wholly via the Internet with no ISO image or CD at all.
There are three ways to upgrade Ubuntu from one version to the next:
Wholly on-line via the graphical Update Manager application, or
Wholly on-line via command line Apt application, or
The quicker and more easily repeatable method of using an upgrade CD, especially if installing multiple machines (this process optionally will also retrieve additional updates from the Internet released since the CD’s initial release). I will outline all three methods here.
NOTE: You cannot upgrade one CPU architecture to another, ie: you cannot upgrade Ubuntu 8.04 x86 (32-bit Intel/AMD compatible) to Ubuntu 8.10 AMD64 (64-bit Intel/AMD compatible), etc. If you previously used the 32-bit version of Ubuntu and wish to upgrade to the 64-bit version, you will need to do a complete fresh installation from scratch.
Upgrading via the CD ISO image
First up, you will need to download the Alternate Installer CD ISO image of the new version of Ubuntu you want as opposed to the Desktop Live CD version, which cannot do upgrades. All Ubuntu Alternate discs are named in the format of ubuntu-x.xx-alternate-yyyy.iso where x.xx is the release version, eg: 8.10 or 9.04, and yyyy is the target architecture, eg: amd64 for 64-bit Intel-compatible platforms and i386 for 32-bit Intel-compatible platforms. Thus the Ubuntu Intrepid 8.10 64-bit version is called ubuntu-810-alternate-amd64.iso and when it’s eventually released, the Ubuntu Jaunty 9.04 64-bit version will be called ubuntu-9.04-alternate-amd64.iso accordingly.
Once you have the CD image downloaded, make a note of where you downloaded it to, eg: /home/jbloggs/downloads/ubuntu-8.10-alternate-amd64.iso and then jump into a terminal window.
Make sure that you do not have any actual physical CD’s inserted into your CD-ROM drive.
At the $ prompt type in:
$ sudo mount -o loop /home/jbloggs/downloads/ubuntu-8.10-alternate-amd64.iso /media/cdrom
…and hit Enter. If all is well, it should look as though nothing happened, however you will notice a CD icon appear on your desktop simply called “cdrom”.
Now start the upgrade process with the following command:
$ gksu /media/cdrom/cdromupgrade
…and then just follow the prompts. When you reboot after the upgrade, the CD image will no longer be mounted and you can use real CD’s again without any issue.
Upgrading via the Internet only – GUI installation
This method is possibly more convenient, but generally takes longer to do and is not the ideal way to upgrade multiple machines. Using this method, you don’t need the ISO image at all. Everything is handled by the Update Manager.
Open a terminal (or press ALT + F2 to bring up the Run Application dialog) and type in the following:
gksu "update-manager -d"
…and hit Enter. This will launch the familiar Update Manager. If you are not immediately advised of a newer version of Ubuntu to upgrade to, as illustrated below, then click on the “Check” button to update your system’s cache of available updates, then click on the “Upgrade” button that appears at the top.
Before Update Manager is aware of the next distribution version:
And after Update Manager is made aware of the next distribution version by clicking on the “Check” button (note that the Upgrade option will NOT appear if you did not start Update Manager with the “-d” parameter):
Follow the prompts.
Upgrading via the Internet only – Command Line installation
This method is identical to the GUI Update Manager installation, except that it is done wholly via the command line using Apt.
First of all, make sure that Apt is fully up to speed with current updates by jumping into a terminal and type in at the $ prompt:
$ sudo apt-get update && sudo apt-get upgrade
When that has finished, commence the upgrade to the next version of Ubuntu with:
So I finally joined the masses in next-gen console gaming nirvana when I finally bought myself a 40GB PlayStation3 that I got cheap at a Big W clearance sale for AUD$398!
After playing a couple of games, one of the next things I did was to partition the hard-drive and install the PPC version of Ubuntu 8.10 onto it. This is a quick run-down of my experience installing and playing with it.
Well first up I needed to grab the PPC version of Ubuntu. I was under the impression that Canonical had ceased PPC Ubuntu development, but it appears they haven’t. I found the Alternate Install for a dedicated PS3 Ubuntu Intrepid 8.10 ISO here for download. This disc is tailor made for the PS3 to get you up and running with the minimum of fuss.
EDIT September 2009: The release of the new “slim” PlayStation3 console has unfortunately seen Sony Computer Entertainment remove the ability to install Linux onto the hard-drive. Only owners of the older, larger PS3’s will be able to install Linux to their systems from now on.
While that downloaded, I prepared the PS3 itself. Thankfully Sony had the foresight to allow alternate operating systems to be installed, thus creating a greater attraction for tinkerers like myself. Unfortunately the ability to install Linux is marred by the fact that access is provided through a Hypervisor which does not give access to the PS3’s graphics hardware, thus preventing the possibility of creating home-brew games. It also limits you to 217MB of the total 256MB system RAM, presumably with some RAM being used for the video framebuffer much like a cheap motherboard with no dedicated video RAM.
Preparing the PS3 for a Linux install is simple enough. First you need to partition the drive. The PS3 OS allows you to allocate 10GB to the “other OS” or 10GB to the PS3 OS. You do not have any ability to set the size manually. Since I don’t really intend to use the PS3 as a workstation for any serious work, I opted to give Linux only 10GB. The system partitioned the drive and rebooted. WARNING: This process will destroy any data already on the drive, including downloaded games and configuration data. Make sure you backup your PS3 data before doing this!
After that, you need to install the bootloader for the “other OS”. The ISO image I downloaded contained the required PS3 bootloader KBoot and once the ISO finished downloading and I burned it to a CD, I stuck it into the PS3’s optical drive and told the PS3 to go looking for the boot loader there. It found it, installed it and all was good.
You then need to tell the PS3 to change its “default OS” when turning on the system. By default it’s “PS3″, so I changed this in the system settings to be “Other OS” and the PS3 immediately asked if I wanted to reboot into the “other OS” now. I said “yes”. The machine shutdown and rebooted.
Almost right away I was looking at two penguins and a bit of text centred on my Benq E2200HD screen (connected via HDMI). Like most Linux distros, all I had to do was hit Enter to begin loading the installation program. To do that, however, I needed a keyboard! I grabbed my Microsoft USB keyboard and mouse, connected them to a passive USB four-port hub and then connected that to the PS3, so I could keep the other powered USB port free if I needed it for things like external HDD’s and the like. One USB port can happily power a USB keyboard and mouse together without a problem.
Ubuntu’s Alternate installer for PPC processors starts and looks exactly like its x86 bretheren, so I won’t go into detail about it here other than point out that when it asked which device I wanted to install on, the hard-drive presented was just the 10GB partition that the PS3 had created – you cannot see the rest of the drive at all (because this is all the Hypervisor presents to you).
The rest of the installation went as normal as any x86 install, however I did notice that the overall installation time was about double that of a typical desktop install. I put this down to two factors – the PS3’s HDD is only 5400rpm and the low available memory probably slowed it down too.
Once installed, the system rebooted. Unlike the desktop flavour of Ubuntu, you don’t get the splash screen, only Linux’s trademarked scrolling of information (most of which has been suppressed by the “quiet” kernel option in the KBoot configuration file). The console was in 1440×900 mode, but the screenshot below shows the console in 1920×1080 mode after I changed the config (see further below).
Once loaded, the ever-familiar GDM login screen appeared. I logged in and within 10 seconds I was looking at the default Ubuntu Intrepid GNOME desktop. Unfortunately it didn’t fill my screen. In fact, it was only 1440×900 in size on my 1920×1080 monitor, neatly centred in the middle of the screen.
We needed to fix this, so first up was a quick review of the Linux PS3 wiki that had a reference for all the available screenmodes and the required changes to the KBoot configuration file that were required. In my case, I wanted to envoke a 1080p screen mode. I edited the KBoot configuration with:
$ sudo gedit /boot/etc/kboot.conf
…and added the following onto the ends of the two kernel lines in that file:
This will tell Ubuntu to use 1080p “full screen” on reboot. I saved the configuration, performed a full system restart (you can’t just restart X) and viola! Ubuntu’s console and X displays were now in glorious 1080p.
If you are using an ordinary television, you can try:
…which will give you full DVD resolution at 720 x 576 (576i mode), but you may need to adjust your TV’s settings to be able to see the entire picture as this will make use of your display’s “overscan” area which is generally beyond the visible area of the screen.
Logging in and starting a few apps, Ubuntu runs exactly as you’d expect on any desktop PC system. Unfortunately due to the low memory available, performance is a little sluggish, but it’s not bad enough that you couldn’t make serious use of it.
I did notice that general performance improved once you had used a few applications. For example, OpenOffice.org took a full minute to load up for the first time, but subsequent starts only took about 5-10 seconds. Mozilla took about 30 seconds to start, but once up, it surfed the ‘net quickly and no differently to a normal desktop installation. I was also able to use the optical drive and read the content of CD, DVD and Blu-ray media. I could also happily playback most media without issue after installing the Ubuntu Restricted Extras package as well.
Unfortunately desktop effects such as Compiz are not possible on the PS3 because the Hypervisor does not give you direct access to the PS3’s “RSX” GPU. This was a deliberate move by Sony to prevent homebrew games being developed. Not a great loss, however, as the PS3 is already a little hampered by the fact that it has less than 256MB of RAM to work with.
The PS3 is now “permanently” in Linux mode until you tell it to go back to the normal PS3 OS. If you shutdown and reboot (or indeed turn the console off and back on again), it will boot straight back to Linux every time. To get back to the PS3 OS, all you have to do is issue the following command at the kboot prompt, before Ubuntu starts to boot:
…and hit Enter. The PS3 will shutdown, restart and next thing you know you’re looking at the PS3’s normal Xross-Media Bar (XMB) menu again. To get back into Linux again, you simply change the “default OS” back to “other OS” again and reboot when prompted.
Ubuntu is of course not the only Linux distribution that can be installed onto the PS3, and there are plenty of videos on YouTube of people using one or more PS3’s running Linux to great effect. Check them out!
Conclusion: It’s awesome that Sony allow people to play with their hardware (with certain restrictions) and makes the PS3 a far more attractive option to buy than the XBox360 or even the Wii. The latter two options really are geared towards playing games only whilst the PS3 can entertain you and help you with serious work, especially tapping into the awesome power of the PPC. For families who are a cash-strapped for a new PC, the speed of Ubuntu on the PS3 won’t blow you away, however it is perfectly viable to use as a cheap home computer that can also keep the kids happy and play high-definition Blu-ray movies, however after trying out Ubuntu on a regular TV display (an old Amiga 1084 monitor) for the hell of it, 576i takes me right back to the days of Amiga Workbench in 15KHz interlace complete with full flicker!! No, you really need to have a proper 720p or preferably a 1080p display to use Ubuntu properly, to not only keep the sanity of your vision but to give you enough desktop real estate to move around as well.