Monday, 18 February 2013

Chrubuntu Install and Fixes

Welcome to my guide for installing Chrubuntu (Ubuntu 10.4) into the new Samsung Series 3 Chromebook (Arm Processor).
This guide has been compiled using many different sources and I take no credit for the amazing work that Jay Lee @ has done in porting Ubuntu over to the Chromebook and making it a genuinely usable system.
If you wish to donate to the project, please do so on his site and not to me as I am only providing an install guide.
At this time the project is at "Alpha" stage (this is actually the first release "Alpha 1"), therefore you can't expect the experience to be perfect but with the fixes I am going to help you through, it won't be far off.
Also I just want to make it clear that this guide is intended to help you install Chrubuntu onto your Chromebook and install some of the fixes (such as audio).  I have tested this method several times with no problems and it took a lot of trial and error to get it right, but I do not take any responsibly for any damage or loss of data that you may experience as a result of using this method.
Now that we have the legal bit and the thank you's out of the way let's have fun....

Please make sure you are connected to a power supply before you begin.
Also make sure you have backed up any important data on your Chrome OS partition as this will be erased...

First thing you need to do is create restore media for your Chromebook in case anything should go wrong or if you wish to restore your Chromebook at a later time.
I recommend using a USB flash drive, however you can also use an SD card if you wish.

Tip: Never use cheap memory for important backups, I would always use a trusted brand such as Sandisk etc. Also be aware there are a number of "fakes" out there especially on auction sites so always stick to trusted dealers if you want the genuine product.  (It's not always worth the savings you can make buying the products cheaper).  Same goes for the media you are going to use to install Chrubuntu later on.  I would recommend using a branded product and ideally Class 10 to give you Optimal read/write speeds:
Class 4 = 4mbs Class 10=10mbs and so on.
Ok so I am only at the first stage and I am already waffling, but this is important info in the long run.  Anyway back to our Chromebook....

So insert your media into either the USB or SD slot and open a new Chrome window.

Type "chrome://imageburner" into the omnibox (browser's address bar).
Follow the on-screen instructions, it will download the necessary files and create your recovery/restore media.
Once you have your restore USB flash or SD card you can remove it and put it somewhere safe in the hope that you will never need to use it.

Moving onto our next task which is getting the Chromebook into "Developer Mode" this uses the "Developer Bios" and is intended for those creating new software etc for the device, however it gives us the opportunity to change various settings (including setting an alternate boot device yay)!

Make sure your Chromebook is switched off.
Press and hold "Esc" and "Refresh keys" (Refresh is where F3 would be on traditional keyboard).
Whilst holding the "Esc" and "Refresh" keys, power on the Chromebook.
You will now come to a screen stating "Chrome OS is missing or damaged.  Please insert a recovery USB stick or SD card."

 Tip: If you ever want to recover your Chromebook this would be the point that you would insert the recovery disk we created earlier.

Press "CTRL" and "D" keys together

You will now get a screen with the message "To turn OS verification OFF, press ENTER".

Press "Enter"

When Chromebook reboots press "Ctrl+D" to enter Developer Mode.
You will get a screen with gives you the following "Preparing the system for Developer Mode"
This process takes a few minutes so please bear with it and DO NOT power off your machine.

At this point the Chromebook is reverting to factory "Out Of The Box" settings.
On my machine this process took approx 16 mins (you do get a progress bar at the top of  the screen).
When the Chromebook reboots, press "CTRL+D" your machine will boot into ChromeOS.

Now select your language & keyboard settings
You need to enter your wireless network key and connect to your network (internet).
DO NOT click "Continue" instead on your keyboard press "Ctrl+Alt+=>" (=> is the right arrow next to the refresh key on the left of the keyboard where F2 would traditionally be).
This will take you to a "Terminal" screen and will ask you for localhost login:
Enter "chronos" (without the speech marks) and press "Enter"

Insert the storage device on which you want to install Chrubuntu (if using USB be sure to sure the 2.0 port (Black) not the 3.0 (Blue) as this does not support booting).

You must type one of the following commands (followed by pressing "Enter"):

SD Card

wget; sudo bash 34v87 /dev/mmcblk1

USB Flash Drive

wget; sudo bash 34v87 /dev/sda

You will be asked to press "Enter" twice, once to confirm that you are running the ARM Chromebook and secondly to confirm that you understand all data on your USB device will be erased.

Now your Chromebook will start downloading the Chrubuntu Operating System!
The download is split into 52 files and each file contains 100mb of data (actual size of file varies from 1mb to 99mb depending on compression) so as you can appreciate this takes a while.
Good time to go make coffee I think....

Process took 51 minutes on my Chromebook to give you an idea.

When machine reboots, you will be back at the "OS verification is off" screen.
You need to press "CTRL+U" and this will boot the Chromebook into Chrubuntu.
OK so that is the Chrubuntu (Ubuntu 12.04LTS) Operating System installed on your Chromebook.
Your password is "user" (without quotation marks) but can be changed.

I recommend rebooting the Chromebook and then getting all of the Ubuntu updates before continuing (just as a matter of good practice).

From now on anytime that your Chromebook reboots you will be presented with the
"OS verification is off" screen:

"CTRL+U" Takes you to Chrubunutu
"CTRL+D" Takes you to Chrome OS

If for any reason you decided to exit out of Developer mode you will need to enter the following command to boot back into Chrubuntu:

sudo crossystem dev_usb_boot=1

Now for the fixes....

So this is when we are reminded that this is an Alpha release and therefore not perfect.
The following work right away:

Battery Monitor
USB Ports
SD Card Reader
Touchpad (not perfect see fix later in this guide)

However the sound does not work and this is the first fix I am going to guide you through.


Open a new terminal window "CTRL+ALT+T" and type "alsamixer" (without quotation marks) and then hit "Enter".
You will get the AlsaMixer v1.0.25 mixer screen.
At the bottom of the window you will see Headphone and Speaker options, notice that Headphone is in red with indicates that it is the item selected.
Navigate through this program using your arrow keys (Do not use scroll on your mouse as this will alter the levels which you do not want to do).

Start by pressing the right arrow until "Left Speaker Mixer Left DAC1" is selected in red.
List is alphabetical so you will know when it is coming up, but if you do miss it just hit the left arrow to go back.
You will notice that the box above contains the letters MM this means that the channel is muted.
This is what we need to change.  Press the "M" key and the MM should change to 00
You have successfully enabled the channel.  Do the same thing with the following channels:
"Left Speaker Mixer Right DAC1"
"Right Speaker Mixer Left DAC1"
"Right Speaker Mixer Right DAC1"
Now we will enabled the headphone output, same process enable the following:
"Left Headphone Mixer Left DAC1"
"Left Headphone Mixer Right DAC1"
"Right Headphone Mixer Left DAC1"
"Right Headphone Mixer Right DAC1"

Now press "Esc" and you should be back at the terminal screen.
At this point we have all of the settings in place but we have to save otherwise Ubuntu will forget next time we reboot and we will have to enter all of this again. Type the following command:

sudo alsactl store

You will be prompted for your password so just enter that and your settings will be stored.
Exit terminal.
Now go to the speaker icon on the top right of your screen (next to the clock) left click and go to "Sound Settings".  Underneath where it says "Play sound through" select "Speakers" and test the sound using the volume slider.
If it's not working go back through and make sure you enabled all of the correct channels.
If you did everything right you should have sound! Yay!
Close the Sound Settings window and you're done.

Now to sort the touchpad and get it working much better.
As I'm sure you have noticed by now, the touchpad works but is far from perfect (very laggy etc).
Here is a straight forward guide to making it work correctly:

It is very important that once you start this process, you do not reboot until it has completed otherwise you could damage your Chrubuntu installation.

Open a terminal window "CTRL+ALT+T" and enter the following commands
(Pressing "Enter" after each line):

mkdir ~/backup sudo mv /usr/share/X11/xorg.conf.d/* ~/backup/
cd /usr/share/X11/xorg.conf.d/
sudo wget
sudo unzip
sudo rm

When asked "replace 10-evdev.conf" type "y" for yes.
By default this is set to UK keyboard, if you wish to change this type the following command:

sudo vi /usr/share/X11/xorg.conf.d/10-keyboard.conf

Press "Enter" and you will see a config screen. Simply change "gb" for your country ie. "us" and close terminal.

Reboot the machine and you should have a perfectly working touchpad. Woohoo!

If you have tried to load any flash sites or videos (youtube is a good example) you will have been meet with a message telling you that the flash plugin is missing and you need to install, however when you try and install missing plugin you find that it is not available for the ARM architecture,
you can't download it from the Ubuntu Software Center either.
Luckily you have a version that will work right at your fingertips (the one that came with Chrome OS). This took me a while to work out but here is the guide:

I have done the hardest part for you (extracting the flash player from Chome OS) so you can download it directly

Now extract the "flashplayerarm.tar.gz" file you just downloaded and you should have two files, "default" and "" I am going to assume you extracted them to the Desktop but if you extracted them elsewhere then just alter this guide accordingly.

Open a terminal window "CTRL+ALT+T" and type the following commands:

cd Desktop
sudo cp /usr/lib/chromium-browser/plugins

sudo cp default /etc/chromium-browser

Enter your password when prompted and that's it Flash Player should be installed.

For now this only works with Chromium/Chrome as Firefox are not supporting this project but hopefully a fix will come soon for all you Mozilla users.

Next we are going to change the password on your Chrubuntu installation, this is optional but highly recommended.
One of the glitches I have found is that I am unable to access the "User Accounts" option is system settings so in order to change your password you will need to use terminal.

Open Terminal "CTRL+ALT+T" and type:

passwd user

"user" represents the username you wish to change which is user by default.
It will prompt you for your current password and then ask you to enter new password and confirm.
That's it!

So now you should have a nicely working Chrubuntu install.
I will post updates as they become available.

There is currently no hardware video acceleration or on-board webcam support but hopefully they will be with us soon.

I case you were wondering...

I prefer USB/SD installation because it does not affect the 16gb storage allocated to Chrome OS and therefore allows that to be used to it's full potential. It also allows me to simply switch between the Operating Systems by using either the "CTRL+D" command for Chrome OS or "CTRL+U" for Chrubuntu.
I may write a guide in the future for installing to the internal storage.

I hope you found this guide helpful and thanks to all the people that made this possible.

Keep Rockin'

Thursday, 14 February 2013

Mac OSX 10.8 Mountain Lion on VMWare (Linux)

First we need to install VMWare Player for Linux.

Download file "VMware-Player-5.0.1-894247.x86_64.bundle" here
Now access terminal (ctrl+alt+t) and type:

sudo apt-get install build-essential linux-headers-`uname -r`

This command installs the required dependencies for VMWare.
(Enter your password when prompted)
Navigate to the folder where you have stored the "
VMware-Player-5.0.1-894247.x86_64.bundle" file. ie. Desktop\VMWare\Install

Now enter the following commands into terminal:

chmod +x VMware-Player-5.0.1-894247.x86_64.bundle
sudo ./VMware-Player-5.0.1-894247.x86_64.bundle

Note: The chmod +x command grants root (admin access to the file).
Sudo is equivalent to run as administrator.

Now you should get a standard install window and you just need to follow the prompts.
Next download the file "vmwarepatch901.tar.gz" here

You must use the patch otherwise you will get: 
Virtual Network Device error: "Unable to start services. See log file /tmp/vmware-root/mdconfig-23331.log for details".
Do not try and load VMWare Player yet.

Extract the file "vmwarepatch901.tar.gz" to your "home" folder.  
Once completed your home folder should contain the 2 files "" and "vmware3.2.0.patch.
In terminal type the following commands:

sudo ~/

The patch should now install (ignore any fails).
Exit terminal.

You can now delete the 2 files from your home directory as you are finished with those.

Test VMWare player and make sure it works.

Job Done!!

Now we have VMWare Player installed and modified, we can concentrate on getting MAC OSX 10.8 running on our Linux system.

Download the file: "tools901.tar.gz" here
Extract the file ie. Desktop\tools\ and then you should have the following:
"darwin.iso" "darwin.iso.sig" "" "" "Unlocker.Linux32" and "Unlocker.Linux64"
Open teminal (Ctrl+Alt+T)
Navigate the folder where you extracted "tools901.tar.gz"
Use "chmod +x" command on all of the files (UnLocker.Linux32 not required for 64-Bit installation).
Now use the command:

sudo sh

This should unlock the Mac OSX features in VMWare and also copy the files "darwin.iso" and "darwin.iso.sig" to the directory /usr/lib/vmware/isoimages/ where they are needed later.
Exit terminal.

Now for the exciting part....

Load VMWare Player.
Select "Open a Virtual Machine"
Navigate to the location of your MAC OSX Mountain Lion VMWare Image and click "Open"
Go to "Edit virtual machine settings"
Setting amount of RAM (I recommend at least 2gb) (I use 4096mb) and hit "Save"
Go back to "Edit virtual machine settings"
Under "Processors" select the amount of cores you wish to assign to Virtual Machine (2+ is best)
I tend to leave Virtualization settings to "Automatic" (You must have Hardware Virtualization enabled in your bios to do this).

If you do not have Hardware Virtualization available then there is a software patch for this which I will go into at some other point but that does affect hardware performance.
Most modern processors i3/i5/17 etc support this.

Once you have selected settings hit "Save" again and it's time to test. Woohooo!

When prompted "This virtual machine might have been moved or copied" select "I copied it"

Now we need to install the drivers for your "Mac".

Shut down the Mac Virtual Machine and once VMWare has closed, restart it and select "Edit virtual machine settings" on your OS X 10.8 Mountain Lion image.
Go to CD/DVD (IDE) and select "Use ISO Image"
Browse to the "tools" folder you created earlier, find darwin.iso and select "Open"
Hit "Save" and then "Play virtual machine"

Once Mac has booted open "Finder" and under "Devices" select "VMWare Tools" and Double-Click "Install VMWare Tools".
Follow the On-Screen prompts.
You will get a message saying "The Installation Failed" ignore this (it worked) just click "Close" and  restart the "Mac".
You should now have the drivers installed and be able to increase the display resolution etc.

Next time you reboot go back into "Edit virtual machine settings" and change "Use ISO image" to "Use a physical drive" so that you are able to run discs as normal. "Save" and "Play virtual machine" again.

Note: When you boot your virtual machine you may get a message stating that vmware needs to create folder ~/.vmware to save preferences, here is the fix:

Open terminal (Ctrl+Alt+T) and type:

sudo chown -R user:root ~/.vmware

Please substitute "user" for your own username.
This will change the permissions and allow VMWare to access the folder.

Please comment if you found this guide helpful, I will be making a video once I get my YouTube channel all up and running.
I will tidy the guide up over the next few days as I am sure the grammar is all over the place, but just wanted to get it out of my head and onto the web!

Keep Rockin'

Other things worth mentioning:
To uninstall VMWare open Terminal (Ctrl+Alt+T) and type:

sudo vmware-installer -l

This gives you a list of the VMWare products currently installed.
Next type:

sudo vmware-installer -u vmware-player

I am running Ubuntu 12.04 Linux.
Linux and Mac OSX 10.8 on Windows 7 guides to follow...
This works on both Intel (Core2Duo+) and AMD processors.

32 Bit version available however Snow Leopard+ requires 64-Bit
You must have Hardware Virtualization.  Otherwise you will require software mod (instructions coming soon).

Sunday, 27 January 2013

PS3 Error 80010017

Although this is mostly going to be a blog based around computing, I am also going to sharing my other interest with you guys...
Game consoles!!!
In the future I will put up a tutorial regarding installation of custom firmware onto your PS3 console but before I get to that here is some help for those of you who already have custom firmware 4.30 etc installed and are having the following message when you attempt to install PSN content:
"An error occured during the start operation.  (80010017)".
Basically this error is caused because the package you are trying to run has not been "signed" for use with firmware higher than 3.55.
In order to get around this you need to manually resign the "EBOOT.BIN" file within the package and then everything should work fine.
You may also need to obtain an up-to-date patch for the game and I will provide a list of those (if required) but they are available from all the normal sources.
You will need an ftp program (I recommend Filezilla Client as it is free and works really well).
Download the latest version here
Also you will need the program 4.21 Eboot Redesigner (works fine with 4.30+) Download it here

Ok now that you have everything you need, we can get started...

Go into multiman (guide to install will follow) on your PS3 and find your IP address (it should be located on the bottom of the screen.  If not then click LB or RB on the controller to change your view.
Please make sure your internet connection is enabled and on the same network as your PC otherwise this won't work.
Once you have the IP address, open Filezilla Client.  In the top left where it says "host" type in your IP address ie. then simply click "quickconnect" no username or password required.
If you haven't already extracted the "4.21 Eboot", do that now and navigate to that folder on the left hand side of Filezilla.
On the right side you will see the directory structure of the PS3.
You will need to click on "dev_hdd0" and within that folder you need to enter a folder called "game".
Inside this folder there should be lots of other folders with names like "NPUB30377" each one of these folders represents a game or program installed on your PS3's internal hard drive.
You need to find the one that pertains to the game you are trying to fix (google is your friend).
If you really can't find the info then you can always go through the folders one by one and checkout the icon png files until you find the correct one for your game.  If you still have the original pkg file then they usually include the game code within the title of the file.
Once you have located the correct folder for the game you are trying to fix there are 2 areas of interest, the first in the file "PARAM.SFO", you will find this in the root of your folder.  The second is "EBOOT.BIN" which is the file we are going to patch.  You will normally find "EBOOT.BIN" in the "USRDIR" folder.
Download both the "PARAM.SFO" and"EBOOT.BIN" files into the "4.21Eboot Redesigner" folder and delete the "EBOOT.BIN" from the USRDIR on the PS3 as you will no longer need this file once you have transferred it to the PC.
Minimize Filezilla Client for now and go into the folder "4.21 Eboot Redesigner," double click the file "PARAM.SFO" and open with notepad.  This will open a jumbled text document but inside you will find the name of the game most importantly for this process, the game code of the title in question ie "NPUB30377".
Select the code and copy it then you can close the notepad document.
Now run the file "redesigner.bat", a command prompt window will open and ask you to input a selection 1, 2 or 0.  Choose "2" for "NPDRM Eboot redesign".  Next it will ask you to input the file "EBOOT.BIN" into the folder, but as we have already done this you can simply press enter.
When asked for Content-ID right click in the window and left click paste followed by enter to input the code you copied earlier from "PARAM.SFO".
The process will then take place quite quickly and then next dialogue will ask you to input selection, this time enter "0" to exit and the command prompt will close.
You should now have an extra file in your folder named "EBOOT.BIN.BAK" this is a backup of the original "EBOOT.BIN" file and should not be needed again, the one we are interested in is the "EBOOT.BIN" file.
Go back into Filezilla and make sure that you are still inside the "USRDIR" folder.  Drag and drop the "EBOOT.BIN" file from the left hand side "4.21 Eboot Redesigner" folder into the "USRDIR" folder on your PS3.  If you did not delete the "EBOOT.BIN" file before it will now ask you which action you wish to take and you just need to select "overwrite".
Quit multiman on your PS3 and try to reload the game you have just fixed.
You should find it now works perfectly!!! Yay!
You can now close Filezilla Client on your computer and delete the files "EBOOT.BIN", "EBOOT.BIN.BAK" and "PARAM.SFO" from your "4.21 Eboot Resdesigner" directory so that it is clear for the next time you wish to use it.

That's it, the process is the same for any PSN games giving you the error code 80010017.
I will make a Youtube video on this soon as it is much easier done in reality then it seems written down (the whole process only takes a couple of minutes) but I have tried to be as thorough as possible as other guides I have read have missed important steps.

Keep Rockin and Have Fun!

First Post

Hi guys,

This is the first of what will be many posts on this blog.
I hope to be able to contribute to the computing community with advice and help for everyone.
Please check back often for updates and look out for my up and coming youtube channel.

Keep Rockin'