Showing posts with label Ubuntu 10.04. Show all posts
Showing posts with label Ubuntu 10.04. Show all posts

Tuesday, 15 March 2011

How to safely remove OpenOffice.org in Ubuntu 10.04 LTS

You may be aware of some guides on the internet telling you how to do this, mainly using one of the following commands,

sudo apt-get purge openoffice.org*
sudo apt-get purge openoffice.org-* 

If you run either of the above commands the following packages will be REMOVED:

aspell* aspell-en* dictionaries-common* hunspell-en-ca* hunspell-en-us* language-support-en* language-support-writing-en* myspell-en-au* myspell-en-gb* myspell-en-za* openoffice.org-base-core* openoffice.org-calc* openoffice.org-common* openoffice.org-core* openoffice.org-draw* openoffice.org-emailmerge* openoffice.org-gnome* openoffice.org-gtk* openoffice.org-help-en-us* openoffice.org-impress* openoffice.org-math* openoffice.org-style-human* openoffice.org-writer* python-uno* wbritish*

STOP, DO NOT RUN THESE COMMANDS!

If you do, programs including Firefox will lose its ability to spell check because the above commands will erase some very useful packages (all those in green).

Fortunately you can easily reverse the damage by reinstalling the packages highlighted in green.


How to fix the damage

sudo apt-get install aspell aspell-en dictionaries-common hunspell-en-ca hunspell-en-us language-support-en language-support-writing-en myspell-en-au myspell-en-gb myspell-en-za wbritish

Lesson for next time, be cautious when following guides on the internet. Including mine, I am only human and sometimes can make typo errors or due to a lack of knowledge post garbage.

However, if you feel I have made a mistake please post a comment or email me.


So how can I safely remove OpenOffice.org in Ubuntu 10.04 (LTS) ?

sudo apt-get purge openoffice.org-base-core openoffice.org-common openoffice.org-core openoffice.org-style-human uno-libs3 ure openoffice.org-thesaurus-en-au openoffice.org-thesaurus-en-us openoffice.org-hyphenation openoffice.org-hyphenation-en-us openoffice.org-l10n-common

At this point I would assume you wish to install a newer version of OpenOffice from www.openoffice.org.


How to install OpenOffice.org 3.3.0 from www.openoffice.org


Ubuntu 10.04 (LTS) 64-bit users

Open a terminal

cd Downloads

wget http://download.services.openoffice.org/files/localized/en-GB/3.3.0/OOo_3.3.0_Linux_x86-64_install-deb_en-GB.tar.gz

tar -xf OOo_3.3.0_Linux_x86-64_install-deb_en-GB.tar.gz

cd OOO330_m20_native_packed-1_en-GB.9567/DEBS

sudo dpkg -i *.deb

cd desktop-integration

sudo dpkg -i *.deb

Done.


Ubuntu 10.04 (LTS) 32-bit users

Open a terminal

cd Downloads
wget http://download.services.openoffice.org/files/localized/en-GB/3.3.0/OOo_3.3.0_Linux_x86_install-deb_en-GB.tar.gz

tar -xf OOo_3.3.0_Linux_x86_install-deb_en-GB.tar.gz

cd OOO330_m20_native_packed-1_en-GB.9567/DEBS

sudo dpkg -i *.deb

cd desktop-integration

sudo dpkg -i *.deb

Done.


How do I then erase the www.openoffice.org version of OpenOffice.org 3.3.0 at a later date?

Run the following command,

sudo apt-get purge ooobasis* openoffice.org-ure openoffice.org-debian-menus

Enjoy!

Sunday, 6 February 2011

How to compile a kernel from kernel.org in Ubuntu 10.04 LTS

This quick how-to is based on http://linuxtweaking.blogspot.com/2010/05/how-to-compile-kernel-on-ubuntu-1004.html

Open a terminal and work through the following set of commands.

Install these packages

sudo apt-get install fakeroot kernel-wedge build-essential makedumpfile kernel-package libncurses5 libncurses5-dev

Run this

sudo apt-get build-dep --no-install-recommends linux-image-$(uname -r)

Create your source directory

mkdir ~/src
cd ~/src

Download and extract your kernel


You can browse for kernels at http://www.kernel.org/pub/linux/kernel/v2.6/ This guide is using kernel 2.6.37.

wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.37.tar.gz
tar xvf linux-2.6.37.tar.gz
cd linux-2.6.37

Configure your Kernel

make menuconfig

Build your Kernel

export CONCURRENCY_LEVEL=3
make-kpkg clean
time fakeroot make-kpkg --initrd kernel-image kernel-headers

General rule, concurrency level = number of processor cores + 1


Install your kernel

cd ~/src

dir        
sudo dpkg -i linux-image-2.6.37_2.6.37-10.00.Custom_amd64.deb
sudo dpkg -i linux-headers-2.6.37_2.6.37-10.00.Custom_amd64.deb

Create the initramfs image

sudo update-initramfs -c -k 2.6.37

Update your grub.cfg

sudo update-grub

Reboot your system


Enjoy your new kernel.

Sunday, 23 January 2011

Ubuntu 10.x Firefox font rendering fix for Gnome

As a Ubuntu user you may notice Firefox does not obey the Gnome Appearance Setting with respect to the font rendering.

To make Firefox match your Gnome font rendering setting, simply erase the following file links in the /etc/fonts/conf.d folder

10-antialias.conf
10-hinting.conf
10-hinting-slight.conf

In a terminal type,

cd /etc/fonts/conf.d

sudo rm 10-*.conf


Restart Firefox for the changes to take effect.

How to restore the symbolic links

sudo ln -s /etc/fonts/conf.avail/10-antialias.conf /etc/fonts/conf.d/
sudo ln -s /etc/fonts/conf.avail/10-hinting.conf /etc/fonts/conf.d/
sudo ln -s /etc/fonts/conf.avail/10-hinting-slight.conf /etc/fonts/conf.d/

Friday, 21 January 2011

How to prepare your Windows disk for a Ubuntu installation

By default Ubuntu will install itself alongside your Windows partition and create a dual boot system, giving the ability to boot into Ubuntu or Windows. A dual boot setup is ideal for first time Ubuntu users.

In order to achieve this the Ubuntu installer will shrink your Windows partition and make space for its own partitions.

To help make this process run as smooth as possible it is recommended that you do the following steps,

1. Clean up your Windows installation
2. Defrag your hard disk

Below you will find guidance on how to perform these steps. *Based on Windows 7, Vista and XP may vary

Optional

If you are a Windows 7 or Vista user, you have the ability to shrink your Windows partition in Windows rather than relying on the Ubuntu installer. If you wish to do this instead please refer to the last section titled 'Shrinking your Windows partition' at the end.

Clean up your Windows installation (Windows 7 / Vista and XP users)

Click on Start > Computer





Right click on your (C:) drive and select properties.





Click on Disk Clean up





Click on Clean up system files





Click on the 'More Options' tab





If you have any programs you no longer use click on the 'Clean up' button in the 'Programs and Features' box. Also click on the 'Clean up' button in the 'System Restore and Shadow Copies' box to remove old and outdated restore points.

Now go back to the 'Disk Cleanup' tab





Tick all / the appropriate files to delete and click on the 'ok' button.

Defrag your hard disk (Windows 7 / Vista / XP users)

Start > Programs > Accessories > System Tools > Disk Defragmenter





Select your (C:) drive and click on the 'Defragment disk' button

The time it takes to complete the defrag depends on the speed of your system and amount of disk space in use.

Shrinking your Windows partition (Windows 7 and Vista users only)

If you are using Windows 7 or Vista, you have the ability to shrink your Windows partition in Windows rather than relying on the Ubuntu installer.

In either case, I recommend creating a backup disk image of your Windows system before shrinking your Windows partition since this is more or less a permanent change.

Redo Backup and Recovery is a great free disk cloning program, see How to use Redo Backup and Recovery to clone your Windows disk for more details.

In the Windows start menu search for 'Computer Management'





Click on the 'Computer Management' program




Navigate to Storage > Disk Management in the left hand side plane

Right click your mouse button on the (C:) drive partition





This will bring up a context menu, select the 'Shrink Volume...' option





A dialogue resembling the above will appear, enter the amount of disk space you wish to shrink your (C:) drive partition by. As you can see I have entered 30000 MB (in other words 30GB).

If you are interested in the minimum amount you can use for a default Ubuntu install I would recommend not lower than 15GB. More space is obviously better as you can then install more programs and create / download more files.

When you have entered your amount click on the 'Shrink' button.





After a while, Windows will return to the main Computer Management interface and you should see a partition described as 'Unallocated' with the size you specified, in my case about 30GB.

You have now successfully created space for your Ubuntu installation. Please do not format this 'Unallocated' space, leave it as it is in its unformatted state.

Now proceed with your Ubuntu install.

Speed up Ubuntu 10.04 LTS by removing Mono?

If you don't know what Mono is, it is the open source equivalent of Microsoft's .NET development framework.

Some argue its a technology that will allow Microsoft to infect Linux with proprietary code and if Mono as a development platform becomes widespread and successful Microsoft will start demanding those who incorporate Mono to pay for its use via patent royalty fees.

Those who have strong feelings for free and open source software (FOSS) therefore hate the idea of Mono.

I think the point they put forward is very reasonable but forgetting that for now lets talk about Ubuntu 10.04 LTS.

Mono is included in Ubuntu 10.04 LTS because it has three Mono applications, F-Spot, Tomboy and gbrainy, as explained by The Open Sourcerer.

http://www.theopensourcerer.com/2010/04/29/how-to-remove-mono-from-ubuntu-10-04-lucid-lynx/

I decided to remove Mono as described in the above link and upon rebooting Ubuntu I feel the desktop is now a little bit more nippy.

Or is it?

I will have to try this on another system to confirm this finding but if you feel like giving it a go let me know what you think.

Wednesday, 4 August 2010

How to install Gentoo using a Ubuntu 10.04 Live CD

This blog post will show you how to use a Ubuntu 10.04 Live CD to install Gentoo. You can also easily adapt this guide to work with other Live distributions or installed distributions.

Important Rule:

For a Gentoo (32-bit) install, use a Ubuntu 10.04 (32-bit) Live CD 
For a Gentoo (64-bit) install, use a Ubuntu 10.04 (64-bit) Live CD

You may wish to refer to the Gentoo Handbook throughout,

Gentoo (32-bit) - http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?style=printable&full=1
Gentoo (64-bit) - http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?style=printable&full=1

Once you have successfully chrooted into your Gentoo system, the fact that Ubuntu was used becomes irrelevant. I therefore see no point in reiterating the Gentoo Handbook after this stage.

However, when you exit the chrooted environment you return to Ubuntu. As a result I have updated step 10.d from the Gentoo Handbook to reflect this.

Please also bare in mind Gentoo is a very customizable platform, certain choices I have made may not suit everyone or you may have your own preferences.

For example, the Gentoo Handbook suggests a separate /boot partition, I will not be doing this.

This guide also assumes you wish to install Gentoo 64-bit, 32-bit users must modify steps accordingly.

Start

Boot from the Ubuntu 10.04 Live CD and make sure you have internet access.


Prepare your Hard Disk

Use Gparted to prepare your hard disk for Gentoo.


I will be formatting my 465.76GB (aka 500GB) disk drive /dev/sda to the following layout,

Click on the picture for a bigger view

As can be seen from the screenshot, the partition setup is the following,

/dev/sda1 formatted to ext4 with 58.59GB ---> This will be my /root partition
/dev/sda2 formatted to ext4 with 403.17GB ---> Intended /home partition
/dev/sda3 as the swap partition with 4096MB

Once Gparted has created the partitions, right click on the swap partition and select 'swapon' from the context menu.

Use Gparted to activate the swap

Close Gparted and open a terminal.



Use the terminal to type the commands presented below.

Mounting your /root partition

sudo mkdir /mnt/gentoo
sudo mount /dev/sda1 /mnt/gentoo
cd /mnt/gentoo

Remember to mount your intended /root partition as /mnt/gentoo. In my case, /dev/sda1

Download and extract Stage3 tarball

Modify the mirrors if necessary, You can find the list of mirrors here, http://www.gentoo.org/main/en/mirrors2.xml

sudo wget -r -l1 -H -t1 -nd -N -np -A.bz2 -erobots=off http://gentoo.virginmedia.com/releases/amd64/autobuilds/current-stage3/

sudo tar xvjpf stage3-*.tar.bz2

Download and extract portage tarball

sudo wget http://gentoo.virginmedia.com/snapshots/portage-latest.tar.bz2
sudo tar xvjf /mnt/gentoo/portage-latest.tar.bz2 -C /mnt/gentoo/usr

Modify your make.conf to suit your system

sudo nano -w /mnt/gentoo/etc/make.conf

Chrooting into Gentoo

sudo cp -L /etc/resolv.conf /mnt/gentoo/etc/
sudo mount -t proc none /mnt/gentoo/proc
sudo mount -o bind /dev /mnt/gentoo/dev
sudo chroot /mnt/gentoo /bin/bash

The use of sudo is now no longer required!

env-update
source /etc/profile
export PS1="(chroot) $PS1"

At this point you have successfully chrooted into your Gentoo environment. Just follow the Gentoo Handbook to complete your install.



Remember to replace step 10.d with the following,

Rebooting the system

exit
cd
sudo umount /mnt/gentoo/dev /mnt/gentoo/proc /mnt/gentoo
sudo reboot
Misc Notes

If you do decide to follow my partition setup, remember to add an entry in the /etc/fstab for the /home partition and enable ext4 in the kernel.

Enjoy Gentoo!

Monday, 3 May 2010

How to compile a kernel on Ubuntu 10.04

The Ubuntu wiki does provide the necessary documentation to allow users to build their own Linux kernel but in a rather disorganised way.

They should restructure it and provide clear detailed steps for each release and not the current mish-mash of old and new.

How about giving each release their own dedicated wiki page?

Original Ubuntu wiki: https://help.ubuntu.com/community/Kernel/Compile

First steps

Install the required tools and packages.

Open a terminal and type the following,

sudo apt-get install fakeroot kernel-wedge build-essential makedumpfile kernel-package libncurses5 libncurses5-dev

Then run the following command,

sudo apt-get build-dep --no-install-recommends linux-image-$(uname -r)

And finally type,

mkdir ~/src
cd ~/src
apt-get source linux-image-$(uname -r)
cd linux-2.6.32

At the time of writing 2.6.32 was the current kernel source, it should remain at this version throughout the life of Ubuntu 10.04

It is a good idea to start with the same .config as the currently running kernel, so type the following,

cp -vi /boot/config-`uname -r` .config

Now we are ready to customize the build and kernel options.

make menuconfig

Once you have finished, save and exit. It is now time to compile. However to speed up the build if you have a dual core processor type,

export CONCURRENCY_LEVEL=3

The general rule is 1 + the number of processor cores.

make-kpkg clean
fakeroot make-kpkg --initrd --append-to-version=-some-string-here kernel-image kernel-headers

Remember to substitute the writing in green for something else, for example -alpha

After a few minutes or hours your kernel compile will be complete. The next step is to install it.

The kernel package will be created in the parent directory of ~/src/linux-2.6.32 (i.e. ~/src)

cd ~/src
sudo dpkg -i linux-image-2.6.32.11+drm33.2-alpha_2.6.32.11+drm33.2-alpha-10.00.Custom_amd64.deb
sudo dpkg -i linux-headers-2.6.32.11+drm33.2-alpha_2.6.32.11+drm33.2-alpha-10.00.Custom_amd64.deb

Please note the text in green must be changed to reflect your version.

We are almost ready, prior to 10.04 the initramfs kernel image was automatically created. The Ubuntu wiki suggests using the scripts to create the image but I have been unsuccessful in using this method, hence the manual approach.

sudo update-initramfs -c -k all

BUG:  Please use the alternate method described below as this command fails to create an image for your new kernel. Special thanks to Helios38. - 16/06/2010


Alternatively if you know the kernel version, substitute the word all with the kernel version.

Example, sudo update-initramfs -c -k 2.6.32.11+drm33.2-alpha

Finally we need to add the initramfs image to the grub.cfg file located at /boot/grub/grub.cfg.

For the easy and automatic method as oppose to manually editing the grub.cfg file, just type the following,

sudo update-grub

Now just reboot and your new kernel should automatically load.

How to remove your  kernel

sudo dpkg -r linux-headers-2.6.32.11+drm33.2-alpha
sudo dpkg -r linux-image-2.6.32.11+drm33.2-alpha
sudo rm /boot/initrd.img-2.6.32.11+drm33.2-alpha

Enjoy compiling your own kernels.

Sunday, 2 May 2010

How to install Flash Player 64-bit on Ubuntu 10.04 x64

Important: Have you installed the Ubuntu Restricted package?

If you have installed the Ubuntu Restricted package you must first remove the 32-bit Flash plugin before attempting to install the native 64-bit Adobe Flash plugin.

To remove the 32-bit Flash plugin open a terminal and type the following,

sudo apt-get remove flashplugin-installer nspluginwrapper

How to install the 64-bit Adobe Flash Plugin

First, download the 64-bit Flash plugin from Adobe.

http://labs.adobe.com/downloads/flashplayer10_64bit.html

By default Firefox in Ubuntu 10.04 will download all files to the Downloads folder in your home area.

Next open a terminal and type the following,

tar -xf ~/Downloads/libflashplayer-10.0.45.2.linux-x86_64.so.tar.gz

sudo mv libflashplayer.so /usr/lib/mozilla/plugins

The 64-bit Flash plugin is now installed.

Enjoy.

Friday, 30 April 2010

Ubuntu 10.04 - Ambiance or Radiance?

Released yesterday, Ubuntu 10.04 comes with a stylish new look. Brown is no more!

The default theme called Ambiance is a stylish black theme whilst another optional theme available to choose is the new Radiance theme.

Ambiance, Ubuntu's new stylish black theme!



Radiance, Ubuntu's new stylish white theme!



Click on the pictures for a bigger view.

If you only hated Ubuntu because of its brownish look, what excuse do you have now?

Tuesday, 27 April 2010

Ubuntu 10.04 LTS - Release date 29th April 2010

So far screenshots look very promising, no more brown. Ubuntu is a very popular distribution and every release brings many improvments.

Will this be the distribution to make me drop OpenSUSE?


Ubuntu: For Desktops, Servers, Netbooks and in the cloud


http://www.ubuntu.com/getubuntu/releasenotes/1004overview