June 18, 2009

Tweets from Pidgin

Filed under: geek,internet,ubuntu — @ 23:26

I use Pidgin as my primary chat client. Up until now I was forced to update my Twitter feed through SMS or a Firefox plugin.

A new plugin for Pidgin, microblog-pidgin, allows you to update your Twitter feed within Pidgin. Installation is straightforward.

sudo echo “deb http://ppa.launchpad.net/sugree/ppa/ubuntu jaunty main” >> /etc/apt/sources.list
sudo echo “deb-src http://ppa.launchpad.net/sugree/ppa/ubuntu jaunty main” >> /etc/apt/sources.list
sudo apt-key adv –recv-keys –keyserver keyserver.ubuntu.com 0CF459B8DF37ED8B
sudo apt-get update
sudo apt-get install pidgin-microblog

Now start Pidgin, enable the plugin and add a Twitgin account.

June 6, 2009

Ubuntu running out of tmp space

Filed under: linux,ubuntu — @ 15:16

If you run Ubuntu and you suddenly discover that your /tmp is running out of space then open up /etc/mtab

sudo vi /etc/mtab

Look for the entry that defines /tmp and put it in comment.

#overflow /tmp tmpfs rw,size=1048576,mode=1777 0 0

Don’t forget to do a reboot afterwards.

May 6, 2009

Ubuntu numeric keypad

Filed under: linux,ubuntu — @ 13:46

After the upgrade to Ubuntu 9 I was unable to use the numeric keypad on my external keyboard that’s connected to my laptop. I’ve switched every possible option in the keyboard preferences on and off and found out that you have to disable the Pointer can be controlled using the keypad option. That’s under System, Preferences, Keyboard and Mouse Keys.

April 29, 2009

Google Earth with Ubuntu 9

Filed under: internet,linux,ubuntu — @ 22:43

My upgrade to Ubuntu 9 resulted in quite some frustration (ipv6, cryptodisk, …) but there’s one nice though … installing Google Earth is very easy.

sudo apt-get install googleearth-package
make-googleearth-package –force

Then double click on the .deb file that’s the result of the above.

Found on http://ubuntuguide.org/wiki/Ubuntu:Jaunty#Google_Earth

January 13, 2009

requested_mask / denied_mask errors on Ubuntu with Mysql

Filed under: linux,mysql,ubuntu — @ 14:48

I’ve recently set up some new msql-servers that had to fetch their data from a shared mountpoint. I changed the mysql configuration so that it was no longer looking in /var/lib/mysql but in /mounted/mysql. Unfortunately mysql failed to start because of insufficient permissions( type=1503 operation=â€?inode_permissionâ€? requested_mask=â€?rw::â€? denied_mask=â€?rw::â€? name=â€?/mounted/mysql/ibdata1″ pid=7588 profile=â€?/usr/sbin/mysqldâ€? namespace=â€?defaultâ€?

This is caused by apparmor. You need to edit the file /etc/apparmor.d/usr.sbin.mysqld and then look for the lines /var/lib/mysql. Replace this with your path and restart apparmor and mysql.

/etc/init.d/apparmor restart
/etc/init.d/mysql restart

September 16, 2008

Ubuntu, Intel 945GM/GMS and external display

Filed under: geek,linux,ubuntu,x11 — @ 19:33

I’ve been running Ubuntu on my laptop for a while. When I work at home I connect it to an external flatscreen (ViewSonic VP181b).

Since the upgrade to Ubuntu 8 I’ve lost the 1280×960 resolution every time the folks at Ubuntu released a kernel update. The wrong graphics module, a crappy X-org config file or bad karma … you name it.

This is my hardware

00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)

After the recent upgrade to kernel 2.6.24-21 I had to do these tricks:

Install the i386 kernel.

sudo apt-get install linux-headers-2.6.24-21-386
cd /usr/src
sudo rm -rf linux
sudo ln -s linux-headers-2.6.24-21-386 linux
sudo reboot

Adjust your xorg.conf file (/etc/X11/xorg.conf)

Section “Device”
Identifier “Intel Corporation Mobile Integrated Graphics Controller”
Driver “intel”
# Driver “i810″
BusID “PCI:0:2:0″
EndSection

Section “Monitor”
Identifier “Generic Monitor”
Option “DPMS”
HorizSync 28-64
VertRefresh 43-60
Option “MonitorLayout” “CRT,LFP”
Option “Clone” “true”
EndSection

After disabling the “cloning” of screens in the “Screen Resolution” settings of Ubuntu you should be all set.

August 14, 2008

Use the HTC TYTN2 Smartphone to connect to the Internet

Filed under: geek,internet,linux,ubuntu — @ 21:01

My employer recently gave me a HTC TYTN2 Smartphone.

This smartphone is HSDPA/3G enabled so in theory it should be possible to surf the net with your laptop connected to this smartphone. This is the procedure that I used with Ubuntu 8.

Before you start make sure that your phone is NOT connected via the USB-cable to your laptop.

Install subversion

sudo apt-get install subversion

Now download the the source code, compile and install it.

mkdir synce
cd synce
svn co https://synce.svn.sourceforge.net/svnroot/synce/trunk/usb-rndis-lite/
cd usb-rndis-lite/
make
sudo ./clean.sh
sudo make install

Create the config file.

sudo mkdir -p /etc/sysconfig/network/
sudo vi /etc/sysconfig/network/ifcfg-rndis0

Enter this in your editor (hit ‘i’ for Insert, Save with “:w”, Quit with “:q”) :

BOOTPROTO=’dhcp’
BROADCAST=”
ETHTOOL_OPTIONS=”
IPADDR=”
MTU=’1460′
MRU=’1500′
NAME=”
PEERDNS=no
NETMASK=”
NETWORK=”
REMOTE_IPADDR=”
STARTMODE=’hotplug’
USERCONTROL=’no’
_nm_name=’static-0′

Make sure that you have Internet Sharing activated on your smartphone. “Connect” to the Internet with your smartphone. Now connect the USB-cable to your laptop. Your dmesg should look something like this:

[ 1928.183361] usb 1-2: new full speed USB device using uhci_hcd and address 9
[ 1928.355691] usb 1-2: configuration #1 chosen from 1 choice
[ 1928.458104] usbcore: registered new interface driver cdc_ether
[ 1930.188534] rndis0: register ‘rndis_host’ at usb-0000:00:1d.0-2, RNDIS device (SynCE patched), 80:00:60:0f:e8:00
[ 1930.188564] usbcore: registered new interface driver rndis_host
[ 1930.228643] udev: renamed network interface rndis0 to eth4

You’ll notice the last name where it says “renamed network interface rndis0 to eth4″. The eth4 can vary on your system, it might be eth1, eth2 or something else but you should see a new interface.
Now try to get a DHCP lease from your phone.

dhclient3 eth4

You should get something like this :

DHCPDISCOVER on eth4 to 255.255.255.255 port 67 interval 3
DHCPOFFER of 192.168.0.102 from 192.168.0.1
DHCPREQUEST of 192.168.0.102 on eth4 to 255.255.255.255 port 67
DHCPACK of 192.168.0.102 from 192.168.0.1
bound to 192.168.0.102 — renewal in 125407 seconds.

That should be all.

August 12, 2008

Terminator, Gnome terminals made easy

Filed under: linux,ubuntu — @ 00:35

Although I like the eyecandy of a Gnome desktop there’s nothing that can beat the strength of the command line. My desktop is often cluttered with a number of gnome terminals.

I’ve recently discovered Terminator, a terminal container that allows you to have all terminals “catched” in one window. Simply hitting Ctrl and Shift and O (or E) splits your current terminal and gives you a new terminal.

August 8, 2008

Installing VMware server client console on Ubuntu

Filed under: linux,ubuntu,virtualisatie — @ 16:20

After my upgrade to Ubuntu 8 I was unable to start the VMware server console. I always go these errors :

/usr/local/vmware/lib/vmware-server-console/bin/vmware-server-console: /usr/local/vmware/lib/vmware-server-console/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_3.4′ not found (required by /usr/lib/libcairo.so.2)
/usr/local/vmware/lib/vmware-server-console/bin/vmware-server-console: /usr/local/vmware/lib/vmware-server-console/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_4.2.0′ not found (required by /usr/lib/libstdc++.so.6)
/usr/local/vmware/lib/vmware-server-console/bin/vmware-server-console: /usr/local/vmware/lib/vmware-server-console/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_3.4′ not found (required by /usr/lib/libcairo.so.2)
/usr/local/vmware/lib/vmware-server-console/bin/vmware-server-console: /usr/local/vmware/lib/vmware-server-console/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_4.2.0′ not found (required by /usr/lib/libstdc++.so.6)
/usr/local/vmware/lib/vmware-server-console/bin/vmware-server-console: /usr/local/vmware/lib/vmware-server-console/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_3.4′ not found (required by /usr/lib/libcairo.so.2)
/usr/local/vmware/lib/vmware-server-console/bin/vmware-server-console: /usr/local/vmware/lib/vmware-server-console/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_4.2.0′ not found (required by /usr/lib/libstdc++.so.6)

If you look into the directory where the libraries of the server console are installed you’ll find a file libgcc_s.so.1/libgcc_s.so.1. Just remove and fire up the console again.

July 25, 2008

Cluster SSH – Cluster Admin Via SSH

Filed under: Open Source,linux,ubuntu — @ 15:46

A colleague showed me a new tool that is very useful if you need to connect to a number of machines that have a similar setup (say, a cluster of x-machines).

With clusterssh you can enter commands simultaneously in the different windows.

It’s available for Ubuntu with

apt-get install clusterssh

Next Page »