Friday, 19 June 2009

Installing Sugar on your non-XO Laptop

There's a couple of ways you can do that, either using Virtual Machines and install the OS on it, or you can just use your already existed Linux distribution and install Sugar on it, so if you are already using any Linux distribution I would recommend that.

I've successfully installed Sugar on Ubuntu 8.10 Intrepid after some troubleshooting. So here's what you need to do in order to get Sugar running on your system.

First, if you don't have Ubuntu 8.10 installed yet, please do install it. Then you need to enable the download manager in ubuntu to install from the main server, as in the following snapshots:

System --> Administration --> Software Sources.

Check the Universe repository to enable it, if it is not already enabled.

(c) Set "Download from:" to "Main server".

You may have to enter your password to access it:

Now, Open a Terminal and type the following commands (This will need an internet connection and it might take a while, up to two hours for slow connections):
$ sudo dpkg --configure -a
$ sudo apt-get -f install
$ sudo apt-get --fix-missing install
$ sudo apt-get clean
$ sudo apt-get update
$ sudo apt-get upgrade

Reboot your computer and then type:
$ sudo apt-get dist-upgrade
Reboot again.

After you finish all of the above, you can install Sugar (If you tried installing Sugar before updating and upgrading then you might run into few troubles).

Alternatively you can use the update manager: System --> Administrator --> Update Manager, then click on "Check". Then you will either be prompted to upgrade, or do a partial upgrade, either way continue (Upgrade). If it says your system is up to date then your ready to install Sugar :-). You will also need to enter your password at this point.

Open Synaptic Package Manager, Search for Sugar, then Mark Sugar Package for Install, when you mark it, it will ask you if you want to mark all the things needed, Press Yes, Mark All. Also, mark "sugar-activities". Follow the pictures.

Open the Search menu by clicking the Search button at the top of the Synaptics window.

Then type Sugar in the "Search" field - Make sure that the "Look in" field is "Description and Name".

Then mark Sugar for installation - Note that you may have to scroll down to find it, it doesn't necessarily show at the beginning of the result list even though it should -.

Then Click Apply. (Remember this also needs internet Connection).

When it's all done, reboot your computer. And before you login choose a different session as in the pictures:

Then Choose "Sugar" as your session:

Then Login normally. Vowala! You're all set. Play arround! Some snapshots:

If Activities didn't show on the above figure, then you might want to change the view to the List View, and you can add an activity to the Favirote View you need to star it. You won't have all the activities above, but no sweat you can always install them when your in the mood ;-).

Note that after your done having fun with Sugar, most likely the next time you try to login into Ubuntu you'll be logged into Sugar, this is do to the fact that your "Session" option will be "Last Session" which is Sugar, so don't be fooled by the Ubuntu screen, make sure you click on "Session" & the chosen option is "GNOME" to boot into Ubuntu.

Reference: (Some of the pictures are taken from there too)

Local-Suggestion: I suggest we hold a Sugar Installation Festival in Birzeit University, so the PaleXO members can get it in their Laptops, and anyone else in the University or from schools want to do it on their laptops. What do you think?