I ran into an issue the other day after buying a Christmas Gift for our youngest girl. I picked up the Leapfrog® Scout® dog toy. This is a great thing, it songs and teaches numbers and a few other things. One of the features is that you can program it with your child’s name. In order to do the customization you need a Windows or Mac computer with a standard sized resolution. This is where my problem came up. A few months ago our full-sized laptop died on us, as a replacement ( considering I don’t do much on the computers at home) we just picked up a netbook. The great thing about netbooks is they are cheap (in every sense of the word), you can pick one up for about $300, so that is what we did, and it has worked great for what we use it for, surfing the internet and paying a few bills. One of the biggest issues with the netbook (and why I might not buy another) is that they almost always have a odd resolution setting (1024×600 instead of 1024×768). Well the software for setting up Scout® needs a resolution of 1024×768, and I don’t have that.
I thought about running out and picking up a mini desktop to hook up to the TV, but that is not in our budget right now. The next best thing came to mind, I can run a Windows® virtual machine on my PS3. All i needed to do was install Yellowdog® Linux on it. I am going to run through all the steps I went through to do this. First there are a few things you need:
- PS3 (any PS3 other than the Slim, they removed the Linux setting in the new Slims) You can pick one of these up at GameStop starting at $250
- PS3 controller (for PS3 functions)
- FAT formatted USB hard drive ( only needed if you want to back up you same saves and other data)
- SB keyboard and mouse (needed for all Linux installation)
- YellowDog® Linux DVD ISO (6.2 is the most current as of the writing of this guide)
- Blank DVDs
- ISO Burner software for Windows, Linux, or Mac
- Windows Installation CD (I have one laying around all the time)
- an internet connection for your PS3
NOTE: Before we gat started I want you to know this may be an all day event from start to finish, and a lot of that is waiting for Windows to install. If you do not have the time or patience for the full installation, or a dedicated TV (considering some of us have kids) you may not want to run through the Windows portion of the install. Also I would like to point out that this will not have any 3D video functionality, and will run extrealy slow when compared to a real computer. I do not recommend trying to run windows on you PS3 as its main function. If you are like me how ever and may need a quick (not really for the install) windows box to do something small, this is an option if you don’t want to go out an buy a new PC.
Install Linux on a PS3
The first step is prepping you PS3 for the Linux installation. If you picked up a new/used PS3 you canskip most of these steps. For those of you how want to save all your pictures and games saves you will need a FAT32 formatted USB hard drive. If you are like me you have a few USB hard drive laying around, but none of them are FAT32. This is not as easy of a fix as you might think. Most of us will have a Windows XP or VIsta ( god forbid you have Windows 7) and they systems will not make large FAT32 partitions on USB drives. You will need a FAT32 formatter, down load one here for Windows. Using this tool you can format your USB drive to use the full size. I recommend having a USB drive at least the same size as you PS3 hard drive, you may have more data on there than you thing.
Once you have the hard drive formatter you need to plug it into you PS3, there should be a USB port or two on the front (if there is only one you have a PS3 Slim stop and get you money back). You can used the Backup utility under the system settings to back up all you data. If you only want to back up some of the data feel free to navigate through to the data you want and just copy it to the USB drive ( this can be tile consuming if you are backing up a lot of music or photos). The backup utility does not backup Trophy data, you will need to sync it with the server or you trophy data may be lost.
At this point you can follow the directions in the official install guide. I recommend using the 10G partition of the hard drive for Linux and the rest of the drive for PS3. You can always add USB hard drives to the Linux system. If you are planning on using your PS3 for Linux(window) exclusively, then feel free to set it up with the larger porting for Linux. I used the default Office Productivity setup with the wired network to start with. Do not try and set up the Wifi connection at this time if you are planning on using Wifi, it will not work out of the box.
VNC Remote Desktop
COnsidering the amount of time Windows takes to Install on the PS3 I recommend setting up VNC for remote desktop access from another computer. This will allow you to use the TV while doing some things on the PS3, this is a good move for any parents of small children or TV addicts. VNC server comes preinstalled on Yellowdog®, but it is not configured or running.
for VNC to work you must have your network configured and working. If you are using the Firewall (iptables, they are the same thing) you will need to open a port to allow VNC viewer to connect. The first ting we need to do is configure the VNC server.
- open a terminal window.
- “su –“ to root (you will need a root password)
- nano /etc/sysconfig/vncservers
- change ther VNCSERVER=”1:root” (were 1 is the display (port) and root is the user account for that port. Note: I do not recommend using root account because VNC is not a secure protocol. you will want to creat a suer account for VNC to use, I named mine VNC
- ctrl+o then “enter” to save
- ctrl+x to exit nano
You will need to add port 590x (were x is the display number listed in vncservers file) accept to the firewall if you are using one. You can do this by using the firewale configuration tool or by editing the /etc/sysconfig/iptables and adding “-A RH-Firewall-1-INPUT –p tcp -dport 5901 -j ACCEPT” to the imput section of the file.
You also need to setup the user account to work with VNC.
- open a terminal window.
- “su –“ to root (you will need a root password)
- cp –r /root/.vnc /home/(useraccount)
- chown (useraccount):(useraccount) /home/(useraccount)/* (this is to be sure that all files are owned by the user)
- su (useraccount)
- vncpasswd (this will set a login password for the VNC connection.
- nano /home/(useraccount)/.vnc/xstartup
- you need to uncomment the two lines with unset and exec. if you do not do this you will not get the desktop functions and might as well just SSH.
- save and exit.
Now that all this is done you will need to start the VNC service. you can either to this through the service tool in the GUI or “service vncserver start”. The Service tool allows you to set the service to start on boot. If you want the service to start on boot and you are using the command line do “chkconfig vncserver”. The last thing you need to do is restart the firewall, either through the service tool or with “service iptables restart”. If you are not using the fire wall you can skip that step.
Now you can use the VNC viewer to work with the PS3 desktop from any Windows, Linux, or Mac. The TV is now free again for watching of the cartoons and movies. I highly recommend using VNC to remote the Windows setup because it will take several hours.
QEMU and Windows
The next thing do to is install qemu. qemu is a tool to emulate the PC processor. The PS3 uses a PowerPC (or ppc) processor. this does not work the same as you x86 processors. becuse of this you ac not use Wine to run your windows programs on you PS3. to install qemu simply open a terminal window and log in as root, the use the “yum install qemu” command. You will need to be connected to the internet for yum to download and install qemu.
You will need to create a disk image for windows to load on. you want to create the image while under the user account that you want to run windows, I also put this under my VNC account.To do this use “qemu-img create -f qcow c.hd 1200M”. you can modify the size of the image by changing the 1200M section. this section uses M for Megs and G for Gigs. I recommend giving two gigs to windows.
Once the disk image is made insert you Windows install disk into the PS3. use “qemu -cdrom /dev/scd0 -boot d c.hd” to start the installation and get ready for the wait. The installation take a long time to load, simply follow the onscreen instructions for installing windows. I recommend having something to do while waiting for windows to install. The complete install process took about 5 hours on my PS3.
Once the install is completed you can start Windows with “qemu -cdrom /dev/scd0 -boot d c.hd”. I don’t recommend using this as a primary means for windows. the system runs slowly and is not capable of running any games or other process intensive functions. If you really want to rung windows go buy a real computer. As I said, I am only doing this to get the resolution requirements for some programs I needed to run to fix a Christmas gift for my daughter. I really do not thing the results are worth the time required, but I guess if you want to say “Ya, I run windows on my PS3.” go. for it.
Tags: linkedin, Linux, PS3, Windows XP, Yellowdog