Archive for the ‘HOWTO’ Category

Getting into one of these situations is not uncommon. Sometimes packages aren’t packaged properly and you end up with a broken package which refuses to fix itself.

If you try:

sudo apt-get -f install

You will get a message like this:

Unpacking replacement vlc …
dpkg: error processing /var/cache/apt/archives/vlc_1.1.0-1ubuntu1_i386.deb (–unpack):
trying to overwrite ‘/usr/lib/vlc/plugins/access/libxcb_screen_plugin.so’, which is also in package vlc-nox 1.1.0-1~ppa1~maverick
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Preparing to replace vlc-nox 1.1.0-1~ppa1~maverick (using …/vlc-nox_1.1.0-1ubuntu1_i386.deb) …
Unpacking replacement vlc-nox …
dpkg: error processing /var/cache/apt/archives/vlc-nox_1.1.0-1ubuntu1_i386.deb (–unpack):
trying to overwrite ‘/usr/lib/vlc/lua/playlist/anevia_streams.luac’, which is also in package vlc 1.1.0-1~ppa1~maverick
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

For reasons why this happens see point 7.6.1 from the debian policy manual

The fix for the problem is pretty easy if you know what to do:

sudo dpkg -i --force-overwrite <filename>

eg. sudo dpkg -i –force-overwrite /var/cache/apt/archives/vlc-nox_1.1.0-1ubuntu1_i386.deb

THANKS www.absolutelytech.com

Read Full Post »

Limewire for Ubuntu

Limewire, a P2P file sharing application is now available for Linux. Thanks to the Khattam blog, for spotting this.

The deb can be downloaded from Official Limewire Website or Click here for Direct Download.

After downloading it, if you double click it (LimeWireLinux.deb), you may get the following error:

Error: Dependency is not satisfiable: sun-java6-jre|icedtea-java7-jre|sun-java6-jdk|icedtea-java7-jdk

This can be solved by either adding/enabling the Lucid Partner Repository for sun-java6-jre or by modifying LimeWireLinux.deb to be satisfied with openjdk-6-jre.

More instructions from Khattam

Read Full Post »

Type this in a console:

telnet towel.blinkenlights.nl

Read Full Post »

Customising notifications

To make notify-osd customizable, you need to add Roman Sukochev’s PPA to your Software Sources, do a system update, and then restart notify-osd.


UPDATE: A great utility

sudo add-apt-repository ppa:amandeepgrewal/notifyosdconfig


sudo aptitude install notifyosdconfig

Read Full Post »

Picked this tip up from http://ubuntuguide.net

I used to click Places->Home Folder to browse my home folder and find out something by navigate in this nautilus file manager.Here’s a quick-way to open folders in ubuntu desktop which will save a lot of time.
Just press / key in your ubuntu desktop,and a “Open Location” window pop up.
then,press enter to launch root folder or type ~/ to open home folder as well as Alt+Home key combination,/mnt/ to open mnt/folder:
In this “open location” window,you can also type following:
Shows Computer, lists the disk partitions
Shows the network locations
Lists the fonts installed on the system
Opens the CD Writing Window.
Lists the themes available for the Gnome Desktop
Gives access to system settings
samba – windows network

Read Full Post »

In part 1 we showed you how to set-up  a simple IRC-based supybot. Don’t forget supybot lives in an IRC channel, so you’ll need to boot up an IRC client to talk to him. You will also notice that Supybot is not all that bright off the bat. Depending on which plugins you activated upon installation, you’ll probably have a few basic commands and some routines, like being able to google for information in your channel. Sounds a bit like any modified shell doesn’t it?

Supybot doesn’t have much of a personality, so we’ll need to download some extra plugins to make him a bit more intelligent than a vacuum cleaner.

A personality plugin is available from Animus. (It is very basic, but a step in the right direction) [be warned, Personality is still a bit buggy, see my comment below]

Download the personality folder to your /botdir/plugins/ folder.

You will need to load the plugin manually.

First make sure you are the owner by identifying to the bot in a private channel;

1. Open a private conversation

/query <bot-name>


/msg <bot-name>

2. Identify with the bot

identify <owner-name> <password>

Supybot will either respond or decline your command.

3. Now enter the following command to show the plugins path


In my case: /home/freebot/botdir/plugins

4. Load your plugin

@load <name of plugin>

In my case @load Personality

If you’re wondering where the plugin file is, its a folder, usually containing plugin.py and some other files. Leave the files alone, or configure them to your satisfaction.

Read Full Post »

Show MySQL who is boss

Regaining control of a MySQL installation is not all that difficult. Trouble is, there are a lot of tutorials out there showing intermediate users how to reset their mysql root password. For total noobs like me,  it’s not that we can’t remember our password, it’s just that mysql has a habit of getting installed with password=NO. In other words no password, therefore no root access.

Gaining access can quickly turn into a wild goose chase as you hunt down processes while risking your installation. If time is a factor, it can be days before you figure out the problem.  No fear, after battling with a variety of incomplete and badly written “guides”, strange advice and the cult of msql administration.  I found a guide that works with my current mysql setup on Ubuntu Karmic. Thanks to the accurate and faithful nixCraft for being there for us.

I am reproducing the information below (which is under old school copyright) because without it I would be like stuffed. Hope nobody minds. It is common knowledge according to MySQL but laid out in a much clearer fashion. So if you reading this, take the time to check out nixCraft. Its a wonderful site.

Here are the steps you need to take. In all likelihood you need to run them as root. Do we need to tell you that? Not really, you knew that already didn’t you?

Step # 1: Stop the MySQL server process.

Step # 2: Start the MySQL (mysqld) server/daemon process with the –skip-grant-tables option so that it will not prompt for password.

Step # 3: Connect to mysql server as the root user.

Step # 4: Setup new mysql root account password.

Step # 5: Exit and restart the MySQL server.

Here are commands you need to type for each step (login as the root user):

Step # 1 : Stop mysql service

# /etc/init.d/mysql stop

Stopping MySQL database server: mysqld.

Step # 2: Start to MySQL server w/o password:

# mysqld_safe --skip-grant-tables &

[1] 5988
Starting mysqld daemon with databases from /var/lib/mysql
mysqld_safe[6025]: started

Step # 3: Connect to mysql server using mysql client:

# mysql -u root

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 4.1.15-Debian_1-log

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.


Step # 4: Setup new MySQL root user password

mysql> use mysql;
mysql> update user set password=PASSWORD("NEW-ROOT-PASSWORD") where User='root';
mysql> flush privileges;
mysql> quit

Step # 5: Stop MySQL Server:

# /etc/init.d/mysql stop

Stopping MySQL database server: mysqld
STOPPING server from pid file /var/run/mysqld/mysqld.pid
mysqld_safe[6186]: ended

[1]+  Done                    mysqld_safe --skip-grant-tables

Step # 6: Start MySQL server and test it

# /etc/init.d/mysql start
# mysql -u root -p

Read Full Post »

Older Posts »