Fixing Wake On LAN in Ubuntu 8.10

I've already spent a few hours to finally get this working again. There are several problems in Ubuntu 8.10 considering Wake on LAN:

1. The network cards' drivers are unloaded during suspend.

This often deactivates your card's wake on lan feature and completely powers it off.
You have to add your network cards driver module to the MODULES_WHITELIST in /etc/default/acpi-support. Also add the network card's interface(e.g. eth0) to SKIP_INTERFACES.

2. The network is not (properly) restarted after resume.

a. NetworkManager overrides settings in /etc/network/interfaces.

The easy way is to simply remove networkmanager: sudo aptitude remove network-manager.

b. The network setup script is not restarted after resume.

You can add the script (networking) to STOP_SERVICES in /etc/default/acpi-support.

3. Wake on Lan is not enabled by default

You need to issue e.g. sudo ethtool -s eth0 wol g. You can do that in an init script and you will likely have to do it again after resume. (I've put it a script to do that into both /etc/acpi/suspend.d/54-wol.sh and /etc/acpi/resume.d/99-wol.sh )

List of Ubuntu Intrepid Bugs

There's a nice list of issues in Intrepid after upgrading. And there's more from other users in the comments. So read this post before considering the upgrade to Ubuntu 8.10 unless you've got some time on your hands.

Linux Memory Statistics

Find out a lot more detailled how memory is used in your Linux system with these tools.

Introduction to WINE

Here's a nice little intro on what to do with wine. For help with wine, checkout Frank's Corner.

New Layout

I've changed a few things in the layout. Let me know if it works for you!

My Software Favorites

Googling for Something Linuxy

Sometimes when you talk about things as a Linux user, people look at you oddly. For example when you tell them about installing software into a wine bottle in Linux. They'll probably just look at you in wonder and consider if you've gone mad.

Now the same sort of happens with Google sometimes. Even though Google is based on Linux, it will find quite a different kind of wine unless you e.g. add linux to the search. But even then it's not efficient and you might lose pages, as wine also works on Mac OS X and (yeah, I know) Windows itself.

But there's help: the Google Linux Search. It's not restricted to Linux as its name suggests, but excludes almost everything that doesn't have anything to do with computers (and which might distract the normal Google).

I've got Sun Java Working in my Browser in 64-Bit Linux!

I've been trying to get java to work in the browser for me for a long time now. And I've got two final results for you: First, it's (yet) impossible, the 64-bit java browser plugin will not be out before 2009.

But Secondly, it's possible and really easy with wine! Just download Firefox and install it. Then download Java and install it. Done! That easy! :) It should work the same way for Flash, etc.

Now finally I could use packstation.de in Linux!

Automatically Boot Different Kernel on Fail With the Grub Fallback Options

Did you know you can configure grub to automatically fallback to a different boot entry if one was not successful? A pretty neat idea, especially for servers where you can now avoid a lot of head aches. It doesn't matter at what point the system hangs, grub will boot the other kernel the next time, unless the system boot completes and you tell it not to with another grub-set-default. Nice!

Funny Bug Report Misuse

Ever been annoyed the Bugzilla or a similar software to report bugs online? Here are some funny examples for bug report misuse: http://linuxshellaccount.blogspot.com/2008/11/funny-mozilla-bugs-open-source-humor.html

Find Out Which Operating System is the Best

The Operating System Sucks-Rules-O-Meter will tell you.

Rude Linus Torvals

If you ever wondered why people say the kernel developers are sometimes very rude, check out this article, referring to a post by Linus himself.

Funny Linux Shirts

Check out these funny Linux T-Shirts.

32 Bit Software in 64-Bit Debian-Based Distribution (e.g. Ubuntu)

There's a wonderful script named getlibs, that makes the annoying process of installation 32-bit libraries really comfortable.

Canon Printer Tips

Did you know there are original Linux driver from Canon? Now you know that, why not get the hacked and enhanced version.

Famous Flame Wars

Check out this summary of Famous Open Source Flame Wars.

Preacher of the Flying Spaghetti Monster

Here's a funny video about a FSM preacher.

Microsoft Office 2003 with Wine

Check out this howto install MS Office 2003 with regular Wine:
http://www.wine-reviews.net/microsoft/running-ms-office-2003-under-linux-with-wine-0952.html

Backup with Rsync

There's a nice article about backups with rsync at Linux.com.
I shall leave the explanations to it and just post my script as example here
DIRS="Documents Desktop"

cd ~
for i in $DIRS;
do
echo Syncing $i
rsync -av --progress -e ssh "$i" user@server:/path/to/dir
done

Disabling Touchpad on Demand

There's now an alternative to using the shared memory of the synaptic driver to enable and disable the touchpad:

xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Synaptics Off" 8 1 (enable)
xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Synaptics Off" 8 0 (disable)

This should work out of the box in Ubuntu 8.10 (Intrepid). But it doesn't. At least not for me. But this works for me:

xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Synaptics Off" 8 0
xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Synaptics Off" 8 1

Nice! :)