Posts tagged ubuntu
Recently I wanted a new development box/streaming media server for use around the house and for work.
After looking at the prices of all the main small form factor PC's or NAS boxes that would let me do this I could see that I was easily looking at Â£200-Â£250 minimum for the kind of setup I wanted to put together.
At the same time, I happened to notice that Sony actually support the use of Ubuntu as an alternative OS on the playstation 3 (or possibly Ubuntu Support the PS3 as an installation platform - whichever, it doesn't matter, the point is that some one does and it works!).
Now, an 80Gb PS3 is about Â£290 at the time of writing and has oodles of inbuilt support as a streaming media client, media storage and playback and a blue-ray player, as well as giving me the option to install a fully functional version of linux that will allow me to do whatever the hell I liked (RAM permitting).
So last weekend I bought one and, aside from playing games, I have just finished setting up Ubuntu 9.04 on it and I'm actually blogging this via firefox on the PS3 - woohoo
So what did I have to do to get this working?
Well the first thing to remember, if you've had a PS3 for a while and want to keep all your game saves, downloads, etc. is to back them up! There's an easy tool to do this in the system settings menu and I found having an externalÂ USB HDD rather than a memory stick to hand was quite useful for this. Also you might want to sync your trophy collection with the Playstation Network Servers if you're interested in keeping that kinda stuff.
Once you've done your backups, you'll need to set aside a partition for the new OS to use.
To do this, oddly enough you have to use the format disk utility from system menu, as this where the partition management is also done. Basically you select the option and you'll get the choice of either giving the Guest OS 10 GB, and the PS3 the rest of the space, or the PS3 10GB and the Guest OS the rest of the space.
I chose to give the guest OS 10Gb and keep the PS3 holding the bulk of the space as I can see myself downloading a fair few games from the playstation network over the next couple of years. Also though this 10GB default setting isn't massive,Â for my needs, as a system partition it's fine since I intend to run a 1TB data tank off the back of the PS3 to hold any other media.
Anyway, what seems to happen when you do this is that the PS3 re-formats the part of the disk allocated for all non-essential user data i.e. downloads and game saves and frees up a 10Gb chunk for the new OS.
At this point I'm pretty sure you get a prompt to insert the installation media for the new OS (if you don't just click through the options relating to guest OS's and it will pop up somewhere), so you then need to get (in my case as I'm using Ubuntu) the Ubuntu installation image for powerPC and PS3 and burn it to a CD. You can get Jaunty (9.04) here
Once you have the CD in hand, simply insert it into the PS3 and the install process will start as normal with any linux distro, allowing you to partition your allocated space and setup any basic system options - note however that the install may take quite a while due to the processing speed and allocated RAM of the PS3 - that said once installed Ubuntu seems to run pretty smoothly.
To get the linux side working you need to chose the default OS to use from the system settings menu i.e. PS3 or 'Guest OS' choosing the latter will fire up Ubuntu as normal on any standard PC. The PS3 will then always boot into Ubuntu unless you type 'game' at the boot prompt, which will reset the default OS to being the PS3's own OS.
Once Ubuntu has loaded all you need to do to install Apache, PHP and MySQL, is open up a terminal and type the following (Note: I'd install MySQL first as components of Apache and PHP seem to need the libs anyway):
$shell> sudo apt-get install mysql-server-5.1
$shell> sudo apt-get install apache2
$shell> sudo apt-get install php5
Note: for some reason the MySQL setup also requires you to setup postfix, I'm not sure why but I did this anyway as it prompted me to and having postfix active on this box is no bad thing really.
The last thing to do was to boot back into the PS3 and restore the backup up game files and resync the trophies and all is done...
So that's it. I now have a fancy pants gaming system, blue ray player, media server (when I setup twonky media) and a development box all for under Â£300
In all, if you've installed linux before and are not afraid to click around the system settings of your PS3 the whole process is pretty straightforwards and self explanatory. That said, before I actually went the whole hog I did do a little bit of research and found the following sites which was quite handy to start with. The comments on some of the articles aren't great, and some are dated now, as doing what I've outlined above has seemed to work fine for me:
Recently I bought a new cheap Toshiba laptop which came preinstalled with windows vista home premium.
Being a cheap laptop the battery isn't great and only lasts for about an hour if it is left to run as setup by the pre-installer.
With some tweaking, turning off obvious unnecessary programmes, etc. I was able to extend the battery lift to 1hour 30 minutes max.
I was quite happy with that asÂ it's just enough for me to use the laptop for work on the commute in and out of the office with a second charge while at work.
I'd like to use Linux as a replacement for windows if I can, and sometimes it's useful for testing server applications Â so decided to make the laptop dual boot vista and ubuntu using the following tutorial:
This worked great and I now have a full ubuntu install as well as my tweaked vista.
While installing ubuntu I started to think of all the unnecessary garbage windows runs and how this may impact on the battery life, so I decided to do a little test which had a fairly shocking result.
I had expected some battery performance gain simply due to the nature of Linux as an OS BUT a full ubuntu install gave me 2 hours 40 minutes of battery life, compared to vista's initial hour.
Fantastic for me - on daily journey's I'll continue to use vista as it's more in tune with the office but for longer journeys I'll be using ubuntu!
Â This start to make me think though...
Vista uses up the battery roughly twice as fast as Linux meaning that roughly it uses twice the power just to run.
Which means that any computer using vista and probably other versions of windows may be using at least twice as much power as they need to.
If this is the case and large organisations want to cut their energy expenditure they could potentially halve their bill for running PC's at least by switching to a Linux alternative.
Also half the energy used means half the carbon footprint of the running pc's which is better for the planet all round.
Nowadays desktop Linux is as usable as windows if not more so and as such I'd implore anybody who can to make the switch over as soon as they can.
Not only that, but there are Linux distributions out there styled to act like windows and therefore the switch would be even less painless.
And lastly, due to Linux being free, the exorbitant license fees paid to Microsoft simply disappear.