Archive

Archive for the ‘Linux’ Category

SSH on a PS3

April 29th, 2009 Chris No comments

So, not thinking about it, I tried to remotely SSH into Ubuntu on my PS3 today only to get a connection refused message. Turns out SSH isn’t installed by default on this distro (or poss with the settings I chose) so I had to use good old apt to install it:

$hell> sudo apt-get install ssh

It all installed fine, no config options required, and I can now connect from anywhere on the network - Woo :)

Categories: Linux, PS3, Ubuntu Tags:

Setting Up Ubuntu PHP 5.2, MySQL 5.1 and Apache 2 on a PS3

April 27th, 2009 Chris No comments

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 :D

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 :D

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:

https://help.ubuntu.com/community/PlayStation_3

http://psubuntu.com/wiki/UbuntuVersions?show_comments=1#comments

Categories: Linux, PS3, Ubuntu Tags: , , , , , , ,

Running on Tomato

November 15th, 2008 Chris No comments

Powered by Linux & Tomato

At home I have Linksys WRT54GL router which I've had for 4/5 years now.

It's always been a dependable box with all the basic functionality I've needed onboard, but recently (mainly as a result of networking discussions at work) I've thought about doing more things which require more control over my internet connection.

When talking to a friend about this recently, he suggested I try Tomato out, as it's designed to work on boxes like mine and offers a lot of extra functionality over the standard supplied firmware.

So today I bit the bullet and gave it a whirl, and I couldn't be happier.

I now have a neat little accessible linux based router with all the extra useful features you'd expect - VPN, bandwith monitoring, signal monitoring, decent routing, cron jobs, custom scripting, etc.

Given that my router cost £35 when I bought it and other models that offer this level of extra functionality can cost a LOT more - I'm happy to say the least :)

MRemote – The Best, Free, Desktop Manager

August 15th, 2008 Chris 2 comments

When you have a number of different servers to administer (yes administer - administrate is not a real word!), all across different platforms, switching between different client programs can get very tiresome very quickly.

As a result there are a few programs out there that act as all in one clients for Windows Remote Desktop connections, VNC Connections, SSH, Citrix, etc. These can be REALLY useful in this situation and can save a lot of time and hassle while in some cases reducing the chance of user error when switching between apps.

We worked with a commercial tool, iShadow, for about a year, for this and soon realised its utility but although it was commercial, it was clunky and very very temperamental when it came to storing/loosing passwords and connection profiles. So we set out to find an alternative.

Thankfully, Kelvin, our Technical Manager found MRemote, a free, stable and nice to use client which does the job very well. Yes, it is basically an interface on top of a lot of existing open source client programs which it loads as components, but why re-invent the wheel when these things in their own right work, and work well?

So without raving about it much more, if you manage a load of servers and want to simplify the process somewhat why not give MRemote a go. The only thing I think it's missing, from my point of view, is an interface to the NX Client which I use on some of my machines, and maybe database servers such as MySQL, but aside from that it's fantastic!

How to Mount a Linux LVM2 Partition in Windows

February 10th, 2008 Chris 9 comments

I have a dual boot Windows Vista / Linux Laptop and recently I needed to access the Linux partitions from within Windows to copy data between the operating systems.

So I did a bit of searching on the net and had trouble finding a tool/page describing how to do it with an LVM (Logical Volume Manager) partition, all tools seemed to just work with plain old ext2 or ext3 file systems with no mention of others.

This is a problem with at least CentOS 5.1 (Red Hat Enterprise) and probably all modern Linux distributions as there seems to be a move towards the LVM methodology for all operating systems - understandably so when you read what it's all about from wikipedia: http://en.wikipedia.org/wiki/Logical_volume_management

But then I noticed that Explore2FS from chrysocome.net actually also supports LVM2 as well as ext2 / ext3, and it works great!

All I had to do was download (at the time of writing) explore2fs 1.08beta9 extract it from the archive and run it - job done! I can get to my standard Linux files (and more actually) with ease from within windows through an explorer style interface. Just what I needed!

The guy(s) who developed Explore2FS are also working on another tool called Virtual Volumes but this really is a beta (at the time of writing) and I couldn't get this to work in a useful way what so ever BUT this should be a winner when it works too!

So now it just remains for me to setup ntfs support in CentOS 5.1 and I can go both ways - woohoo!