Wake up
July 14th, 2007 Lars Hall
Most new boards (at least with an integrated nic) supports wake on lan (WOL).
WOL is a great way for keeping the power bill down, so i’ve decided to setup the new installed machine with wol enabled.
I configured the bios so it’ll accept magic packets, and I added a nat entry in my router so it forwards udp messages to the machine. All was fine.. When i send a magic packet, the server started up.
Ethtool showed that wol was enabled so everything worked like a charm.
But half an hour later (or so), it didn’t work.
I checked my bios settings. Ran ethtool. Everything seemed fine. And it did work again when i shut down the machine.
But every time the machine had been turned off for some time, it didn’t accept the magic packet.
Strange.
After reading about the details of about a magic packet, i saw that it need to be a broadcast message.. DOH. my bad 
I changed the nat entry to accept anything on the subnet (in my case 192.168.1.255), and suddenly it worked like charm.
I did find it strange that it DID work in a short while after the machine has been turned off.
FireHOL ubuntu 7.04 Feisty
July 8th, 2007 Lars Hall
I had a spare machine laying around, so today I decided to convert it into a full blown http/sql/mythbackend etc..
I found an Ubuntu cd which i’ve installed. (i haven’t got any blank cd’s left. otherwise i would probably install a clean debian
)
But now comes the time to configure a firewall. But.. uhh.. my life i too short to mess with iptables 
I’ve heard from a colleague that he had used FireHOL with great success.
So i’ve apt-getted firehol and started configure it with help from the documentation.
I found out that firehol is unable to configure iptables correctly in feisty.
After quick search i found a solution:
“sudo vi /lib/firehol/firehol (replace vi with you editor of choice) and replace all %q strings with %b.”
That fixed the problem.
I’m very impressed with firehol. It’s very easy to setup without compromising too much functionality.
Are you dumb and lazy
May 12th, 2007 Lars Hall
Today I came across an interesting blog post:
Why Good Programmers Are Lazy and Dumb.
It is old but very true.
Hello world!
February 1st, 2007 Lars Hall
I finally got a blog up and running. And it is of-course driven by Linux/Apache/PHP/Wordpress and Mysql.. I’m not a big fan of Mysql, but I couldn’t get Wordpress to work with Postgres out of the box.
Not that Mysql is bad.. It just isn’t as good as postgres
I’ll probably use this blog to write about:
Programming
Linux
Open source
Rants
etc
Posted in linux | No Comments »