Archive for December, 2010

New Years Resolution 2011

31, December 2010

Why not consider donating some of your spare CPU cycles to the Folding@Home Project, Their goal is to understand protein folding, misfolding, and related diseases and we can help by doing the calculations they need doing using our spare CPU cycles. You can join teams and are allocated points for the work units you fold to give you an incentive other than help out the search for cures for various diseases.

I started Folding at the beginning of 2010 for Team Ubuntu [id:45104]as a New Years Resolution hoping to get into the top 1000 Team Ubuntu user listing by the end of the year and have managed to get to 241 today having completed 420 Work Units gaining 143103 Points. Why not join the Team see the Recruiting notice here and help a good cause, my New Years Resolution for 2011?, to double my points, and as always loose weight, become rich and retire.

Happy New Year All

iPod jailbreak

20, December 2010

How I jailbroke my iPod

In a Terminal;
$ sudo apt-get install libgpod4

Now connect your iPod using the USB cable provided and it should auto mount, you now need to navigate to /media to determine the mount point of your iPod [mine show up as /media/MY_IPOD. your iPod needs a SysInfo file adding to it so that it is identified by your system, I found this option to created worked first time. type or copy and paste the following into a Terminal after the prompt

$ sudo lsusb -v | grep -i Serial

this should give you a result similar to this;

iSerial 3 000D27002446H699
iSerial 1 0000:00:13.2
iSerial 0
iSerial 1 0000:00:13.1
iSerial 1 0000:00:13.0

The 16 digit number is the iPod’s FirewireID, now type or copy and paste the following into a Terminal after the prompt

$ sudo gedit /media/MY_IPOD/iPod_Control/Device/SysInfo

replacing /media/MY_IPOD with the path and name of your iPod. My iPod had one entry already of ModelNumStr: xB147 so I added a new line as follows;

ModelNumStr: xB147
FirewireGuid: 000D27002446H699

and re-saved it to the iPod. This allows it to be identified by linux programs and should now allow your music player to find it [fingers crossed].

ISO Testing Natty

1, December 2010

ISO Testing Natty Alpha 1

Testing PC details: hardware

Downloaded the testing iso from http://cdimage.ubuntu.com/daily-live/20101130.1/ using zsync

first install zsync

$ sudo apt-get install zsync

then I created a folder called iso-testing and copied my last Meerkat iso into it then created a script called iso-testing.sh as follows

#!/bin/sh
## created by Martin Cooper ##
##
echo “open iso testing folder:…”
cd ~/iso-testing
echo
echo “Now check local iso with current iso and update if out of date…”
echo
## Alpa 1 iso location ##
zsync -i *.iso http://cdimage.ubuntu.com/daily-live/20101130.1/natty-desktop-i386.iso.zsync
echo “ok all done now..”

The -i *.iso makes zsync check any iso image in the folder to see if it is an up to date version of the version of ubuntu we have named in the download URL, in this case natty-desktop-i386.iso and if not use it as a base only downloading the files that have changed.

Once that was done and the iso was burned to a DVD [the current Alpha1 iso is too big to fit a CD] I booted it up in the test pc.

The iso booted ok but to a Live desktop with wallpaper, an examples folder and an install link but no gnome panels top and bottom. The graphics card I have will need a restricted driver adding before it [maybe] supports the new Unity desktop and there does not seem to be a fall-back option for unsupported graphics cards to give users the option to update the rivers yet. So for me the test was a fail!

I then decided to complete another of the Tests in the ISO Testing Tracker http://iso.qa.ubuntu.com/, the free software only install. I knew I would still have no Desktop but I wanted Natty on the testing PC and wanted the opportunity to continue testing up to Alpha2. The install was to the 1st of the 2 Hard Drives on the PC, the 2nd currently has the LinuxMint Debian rolling release on it.

The result was the same no Desktop panels, just the revolting purple wallpaper. I could however open a Terminal using Ctrl+Alt+T and confirm that there was no non free software installed on the PC using the command line tests given in the testing script.

Verify that neither the restricted nor multiverse archives have been enabled:

$ grep “restricted\|multiverse” /etc/apt/sources.list | grep -v “^#”

should return nothing

Verify that the linux-restricted-modules package has not been installed:

$ dpkg -l linux-restricted-* | grep -vE “^[a-z]n”

should return no packages

so that works but no usable desktop!

To fix this I found this post http://ubuntuforums.org/showpost.php?p=10184462&postcount=10 by lidex

Opened a Terminal using the keyboard shortcut Ctrl+Alt+T, then entered

$ gconf-editor

and once the gconf editor opened navigated to desktop/gnome/session/required_components/panel and changed “” to gnome-panel then rebooted.

The second major problem was that the install of Natty has wiped the LinuxMint boot options from Grub so to fix this I followed this http://ubuntuforums.org/showthread.php?t=1581099 thread by drs305 from 3. as I could get into Ubuntu and had a working Internet connection.

3. Purge Grub 2 packages. The next command will remove grub, grub-pc (Grub 2) and grub-common.

* Here is what you will do:

* Press ENTER to continue.

* Read the warning during the install about removing the bootloader. TAB to highlight “” and press ENTER.

* If you are sure you have never had Grub legacy on the current installation you may omit “grub” from the next command (apt-get purge grub-pc grub-common).

Code:

$ sudo apt-get purge grub grub-pc grub-common

4. Reinstall the grub packages. Here is what will happen:

* You will be given the opportunity to add extra kernel options to the kernel line. If you don’t know, you probably don’t need them ; TAB to highlight “” and press ENTER.
* Read the installation notes. TAB to “” to continue.
* When presented with the device option, use the UP/DN keys to select the correct drive (sdX).

Make sure the installation drive [*] /dev/sdX has an asterisk next to it ( example: [*] /dev/sda ). If it doesn’t, highlight it and press the SPACE bar to select it.
Do not select a partition ( example: [ ] /dev/sda5 , etc).

* TAB to “” and press ENTER. When it has finishing the installation, you should have Grub 2 installed.

Code:

$ sudo apt-get install grub-common grub-pc

5. Update the Grub 2 files . This command shouldn’t be necessary, but it won’t hurt to update Grub once more before exiting.
Code:

$ sudo update-grub

and rebooted to test, all is right with grub2 again.

Testing Alpha [Edit: ]

Just added the restricted nVidia driver [tried both v173 & 96] and both somehow removed the Gnome panels again, with the fix above not helping as the gnome-panel option is still in place. When I revert back to no restricted driver the panels return.

 

 

Apache Server [simple]

1, December 2010

So I wanted to have a web album of my photos on my local network so needed my server to be able to serve up the web pages.

install apache;

$ sudo apt-get install apache2

open your favorite web browser and type http://localhost into the address bar, if it work you should get a page saying so.

Now stop the service with;

$ sudo /etc/init.d/apache2 stop

and edit to config file with;

$ sudo gedit /etc/apache2/sites-available/default

amend the directory path to your site from the default /var/www/localhost/htdocs to something like /home/bob/www/localhost/htdocs so that you can find and add docs without being root etc. Add your site index.html file to this folder and restart the service with;

$ sudo /etc/init.d/apache2 start

and point your browser at the site again with http://localhost or http://my_servers_name if you have given your server a host name on your network.


gconftool-2

1, December 2010

Using the gconf tool to make changes to your desktop from the command line. These allow you to script changes you make every time to upgrade.

These have been tested on the Gnome Desktop on Lynx & Maverick.

Copy and paste these commands into a Terminal [Applications], [Accessories], [Terminal]

## Add icons to the [System] menu. ##
gconftool-2 --type Boolean --set /desktop/gnome/interface/menus_have_icons True

## Remove shutdown “Do you really want to do this 60 second count down” question ##
gconftool-2 --type Boolean --set /apps/indicator-session/suppress_logout_restart_shutdown True

## Return to old Update notification icon in top menu ##
gconftool-2 --type Boolean --set /apps/update-notifier/auto_launch False

gconftool-2 --type int --set /apps/update-notifier/regular_auto_launch_interval 0

## Add Banner message to GDM ##
sudo -u gdm gconftool-2 --set --type string /apps/gdm/simple-greeter/banner_message_text “Ubuntu 10.10 Maverick Meerkat 64 Bit”

sudo -u gdm gconftool-2 --set --type string /apps/gdm/simple-greeter/banner_message_text_nochooser “Ubuntu 10.10 Maverick Meerkat 64 Bit”

sudo -u gdm gconftool-2 --set --type boolean /apps/gdm/simple-greeter/banner_message_enable true

## Set wallpaper ##
gconftool-2 --type string --set /desktop/gnome/background/picture_filename /home/Pictures/My_Wallpaper.jpg