Archive for the 'Linux' Category

FIX: aMSN unable to connect after Ubuntu update to Jaunty Jackalope

If you get an aMSN connection error message something like:

“No address associated with hostname”

after  upgrading to Jaunty then you can fix by getting the latest version of aMSN directly from SVN’ as follows:

Continue reading ‘FIX: aMSN unable to connect after Ubuntu update to Jaunty Jackalope’

HOWTO: Upgrade PHP GD Library on Ubuntu

If you are working with Drupal or anything else that complains about requiring a newer version of the GD library then you need to upgrade as follows:

1. Remove old version
sudo apt-get remove php5-gd
2. Add following lines to the file /etc/apt/sources.lst
deb http://packages.dotdeb.org stable all
deb-src http://packages.dotdeb.org stable all

3. Update and reinstall
sudo apt-get update
sudo apt-get install php5-gd
/etc/init.d/apache2 restart

FIX: Updating Ubuntu gives ‘Could not find postinst hook script [update-grub]’ error.

I installed Ubuntu 8.10 on my Toshiba U100 which does not work too well with grub.  Having installed 8.10 and replaced Grub with Lilo I ran update manager for all updates.

This failed when updating the kernel with the error ‘Could not find postinst hook script [update-grub]’.

To fix after running the update manager simply open a terminal and run the following commands.

Continue reading ‘FIX: Updating Ubuntu gives ‘Could not find postinst hook script [update-grub]’ error.’

HOWTO: Set up NFS remote file shariing and mounting in Ubuntu

Scenario: You have two Ubuntu PCs - you want to share a folder from one to the other.  A common answer you’ll see posted around to this is to use Samba.  While this does allow the shared folder to be accessed by Windoze machines there is a far simpler and more efficient method that can be used when both machines are Linux.

In the following guide ‘Server’ means the computer where the folder to be shared is (192.168.2.2 in my example) and ‘Client’ (192.168.2.3) is where you would like to access the folder from.
Continue reading ‘HOWTO: Set up NFS remote file shariing and mounting in Ubuntu’

FIX: dependency is not satisfiable: libicu36 when installing Chandler on Ubuntu

I tried installing installing Chandler the GTD app from the .deb file but got an error about ‘dependency is not satisfiable:  libicu36′.

This is as newer versions of Ubuntu use libicu38.

To fix the error try:
wget http://security.ubuntu.com/ubuntu/pool/main/i/icu/libicu36_3.6-3ubuntu0.1_i386.deb

sudo dpkg -i libicu36_3.6-3ubuntu0.1_i386.deb
Then try installing the Chandler .deb again.

HOWTO: Install a .TTF Font in Ubuntu Hardy Heron

If you have a .ttf file (lets call it your_font.ttf) that you have downloaded and want to install it as an available font you should follow these steps:

1. Create somewhere to keep your .ttf fonts:
sudo mkdir /usr/share/fonts/truetype/custom

2. Copy your font there:
sudo cp your_font.ttf /usr/share/fonts/truetype/custom

3. Run the following command to rebuild your font cache:
sudo fc-cache -f -v

That should be it! Your sexy new font should now be available.

HOW TO: Auto login to IRC using IRSSI

For Linux I reckon irssi is probably the coolest IRC client out there and has some nifty features for a terminal app. It can be installed with:

sudo apt-get install irssi

One of the first thing you will probably need to do is set it up to auto login.  This can be done in a couple of simple steps:

Continue reading ‘HOW TO: Auto login to IRC using IRSSI’

HOW TO: Harden and Secure SSH on Ubuntu Linux

If you want to harden and secure your SSH installation on Ubuntu Linux then there are a few simple steps you can follow:

Continue reading ‘HOW TO: Harden and Secure SSH on Ubuntu Linux’

HOWTO: Set up wireless networking between VirtualBox VMs on Ubuntu Hardy Heron

I’m working on a project at the moment that requires a whole bunch of Win XP VMs.  I’m using VirtualBox on my M1330 which out of the box is set up with NAT addressing.  This is fine for accessing the interweb but I need the VMs to talk to each other.  Not as straightforward as it seems but I managed to get it working as follows:

Continue reading ‘HOWTO: Set up wireless networking between VirtualBox VMs on Ubuntu Hardy Heron’

FIX: GRUB Hard Disk Error with Ubuntu Hardy Heron on Libretto U100 or U105

I decided to install Ubuntu on my tiny Toshiba Libretto U100 but ran into a problem when rebooting after the install.

I accepted pretty much all the defaults during the install and it was a complete wipe of the hard drive (Linux only, no Windows partitions).  However after rebooting I got the less then friendly message:

GRUB Hard Disk Error

This seems to be down to GRUB and the U100 BIOS being unable to agree on the geometry of the disk.  Luckily LILO does work.  To fix follow these steps:

Continue reading ‘FIX: GRUB Hard Disk Error with Ubuntu Hardy Heron on Libretto U100 or U105′

HOWTO: Mount an ISO file in Ubuntu Linux

How to mount a CD ISO Image and read files in UbuntuI recently downloaded some language CD ISO files and wanted to transfer to my ipod.   Usually ISO files are designed to be burnt to CDs but if you just want to mount the image and read the files CD free there are a couple of options in Ubuntu.

Continue reading ‘HOWTO: Mount an ISO file in Ubuntu Linux’

FIX: Synergy slow and laggy in Ubuntu 8.04 “Hardy Heron”

I just upgraded my M1330 to 8.04 and noticed that Synergy was unusable because of lag.

This happened when running quicksynergy as a normal user. However you can workaround by running the synergy client as root.

sudo synergyc xxx.xxx.xxx.xxx

HOWTO: Remove desktop mounted volume icons in Ubuntu

I got tired with having the cool desktop images that Webidler digs up for me being hidden behind a sea of icons on my desktop and had a clearup. However I couldn’t remove the icons for mounted volumes without unmounting them so dug up this command:

gconftool-2 --type boolean --set /apps/nautilus/desktop/volumes_visible false

HOWTO: Install Ruby on Rails on Ubuntu 7.10 Gutsy Gibbon

1. Enable the universe repository
sudo vi /etc/apt/sources.list
Find and uncomment the following lines
deb http://us.archive.ubuntu.com/ubuntu dapper universe main restricted universe
deb http://security.ubuntu.com/ubuntu dapper-security universe

2. Install ruby
sudo apt-get install ruby ri rdoc

3. Install rubygems
sudo apt-get install rubygems

4. Install Rails
sudo gem install rails
NOTE: If you get, as I did, an error at this point:

uninitialized constant Gem::GemRunner

then the fix is:
sudo vi /usr/bin/gem
After the line require ‘rubygems’ add the line:
require 'rubygems/gem_runner'

5. Test installation
cd
rails testapp
cd testapp
./server start

Open a browser to http://localhost:3000 and you should see the rails welcome page.

You can remove the testapp with:
cd
rm -fr testapp

HOWTO: Triple Boot Dell XPS M1330 with Vista/Ubuntu and Media Direct

[Edit] Sometime after I originally wrote this HOWTO: I came to my senses and realised that the M1330 is far too cool for school and hence should not be disabled by running any version of Windoze.  I have since reformatted my M1330 and it now only runs Ubuntu.   If you have any kind of choice in the matter then I would heartily recommend you do the same!  If you really need a dual or triple boot then hopefully this guide and the comments should help.[/Edit]

So - got a shiny new Dell XPS M1330? Good choice, you’re obviously smarter then the average bear - but now do you want to lose the Dell bloatware and see how it runs with a grown up OS? Perhaps you need to keep Vista on though for some reason, and that media direct button for quick playing DVDs is nice too… plus it would be nice to be able to share your Mozilla Firefox bookmarks and Thunderbird profiles between the 2 OSs. The solution for you my friend is a funky triple boot installation.

What we start with: A shiny new Dell XPS M1330 just out of the box with Vista + ton of OEM crap preinstalled.

What we end up with: An XPS capable of triple booting into either Ubuntu, Vista or Media Direct from the MD button and the ability to share files between the two OSs.

What we will need: Vista install disk, Ubuntu live cd, Dell drivers and utilities disk, Dell media direct cd.

Continue reading ‘HOWTO: Triple Boot Dell XPS M1330 with Vista/Ubuntu and Media Direct’

HOWTO: Install ProFTP on Ubuntu Gutsy Gibbon

I couldn’t get this working in inet.d mode but here’s what I did to get it working in standalone.

1. Install ProFTP
sudo apt-get install proftpd
2. Edit proftpd.conf
sudo vi /etc/proftpd/proftpd.conf
Make sure that ServerType is set to standalone and that you have your chosen hostname in ServerName.
ServerName myftphost
ServerType standalone

3. Make sure you have the same host name in you /etc/hosts file
sudo vi /etc/hosts
It should read something similar to:
# IPv4
127.0.0.1 localhost
xxx.xxx.xxx.xxx myftphost
#
# IPv6
::1 ip6-localhost ip6-loopback myftphost

You should then be able to start the server with:
sudo /etc/init.d/proftpd start

HOWTO: Set up Apache Virtual Hosts on Ubuntu Gutsy Gibbon

Assuming you have a fresh installation of apache2.

First we need to tell apache we will be using name based virtual hosts.

Continue reading ‘HOWTO: Set up Apache Virtual Hosts on Ubuntu Gutsy Gibbon’

HOWTO: Install LAMP Stack on Ubuntu Gutsy Gibbon

Dead easy… assuming no Apache, MySQL or PHP yet installed the following should do the trick.
sudo apt-get install apache2 mysql-server libapache2-mod-auth-mysql php5-mysql php5

HOWTO: Install Flash 9 on Ubuntu 64-bit

Having tried Gnash but found some problems I decided to install Adobe Flash but ran into an error with the installer:

Your architecture, \’x86_64\’, is not supported by the Adobe Flash Player installer.

Not too helpful… I browsed around a bit but found that most of the solutions involved copying the plugin files manually however this didn’t work until I happened on additional step. So the solution for me was:

Continue reading ‘HOWTO: Install Flash 9 on Ubuntu 64-bit’

HOWTO: Install IE on Ubuntu Gutsy Gibbon

So I’ve been running a Dell M1330 under Ubuntu now for a few days and it’s sweet :) No problems found so far and compiz flies along using the Intel X3100 (GM965 chipset). Who needs NVidia huh? Me I guess as I still can’t get Eve Online to play nicely under Ubuntu although it runs sweetly enough in Vista.

Anyway - today found me having to access a test tool that only supports IE, another case of somebody assuming the world revolves around Windows. I’m running Virtualbox with Vista no problems but for some reason the ActiveX control wouldn’t install under VBox so I decided to give IEs4Linux a go.

1. Open a terminal and install wine and cabextract
sudo apt-get install wine cabextract

2. Get the latest version of IEs4Linux
wget http://www.tatanka.com.br/ies4linux/downloads

/ies4linux-latest.tar.gz

3. Extract and run
tar -xvzf ies4linux-latest.tar.gz

cd ies4linux-*

./ies4linux

This will run a cool little app that will download the required packages from Micro$oft. It had a problem installing Flash for me so I unchecked that box but IE installed no probs and left me with an icon on my desktop. The ActiveX control also ran without issues.

4. (Optional) Donate a couple of buck to Sérgio to say thanks!




Add to Technorati Favorites
Zen Handbook

Latest Posts

RSS