Archive for the ‘Computers’ Category

Per-Process Namespaces

Thursday, February 19th, 2009

Our main development servers at work use almost 100% free software; however, recently I had a rare pleasure of having to install a piece of a binary blob. The Blob reared its ugly head as soon as I tried its installation routine:

dev_server# ./blob_install
Your Linux distribtion ‘Debian GNU/Linux 5.0 \n \l’ is unsupported.
Supported distributions: Fedora 8, 9 and 10; Ubuntu 8.04 and 8.10.
Exiting.

Read on to see how per-process namespaces can help defeat The Blob.

(more…)

Sensors3.conf for Asus M3N-HD/HDMI Motherboard

Wednesday, February 11th, 2009

As the motherboard database in seems to be broken, here’s the sensors3.conf file I use for my recently bought Asus M3N-HD/HDMI motherboard:

(more…)

Converting cue, bin, nrg files to .iso

Friday, November 14th, 2008

If you download stuff from the ultimate P2P site, you most probably came across variations of optical media images like the “BIN/CUE” pair or Nero’s “.NRG” .

While there are ways to directly (and graphically) mount the “BIN/CUE” and Nero is available for Linux, it’s much easier to simply convert them to ISOs:

(more…)

Thinkpad X61: volume very low

Tuesday, November 4th, 2008

My little Thinkpad X61 is working very well, except for a strange bug: even though everything in alsamixer and Gnome’s Volume Applet is maxed out, still the volume is way too low. Every time I watch a video on Youtube I have to plug in the headphones. Yesterday I investigated the problem.

(more…)

Udev and its traps

Wednesday, September 24th, 2008

I’ve got 3 network interfaces and I wanted them to have consistent names across reboots. I read somewhere that this can be achieved with udev by adding a small script

angband:/home/leszek# cat /etc/udev/netinterfaces.rules
KERNEL==”eth*”,SYSFS{address}==”00:0E:2E:57:22:23″,NAME=”eth0″
KERNEL==”eth*”,SYSFS{address}==”00:50:BA:01:93:3F”,NAME=”eth1″
KERNEL==”eth*”,SYSFS{address}==”00:13:D4:EF:4B:EC”,NAME=”eth2″

and a link to it

angband:/etc/udev/rules.d# ls -l /etc/udev/rules.d/ | grep netinterfaces
lrwxrwxrwx 1 root root 22 2006-03-04 23:00 010_netinterfaces.rules -> ../netinterfaces.rules

… turns out the above is not entirely correct.

(more…)

SMTP via a SSH tunnel

Wednesday, September 17th, 2008

Suppose you have an email account and a shell account on a Unix server. Furthermore, suppose that you yourself use a laptop and download your mail from the server by POP3 or IMAP, and send it via SMTP using the server as a smarthost. Now imagine that for some reason ( your dynamic IP, or your geographic location ) SMTP access is denied. What can you do?

(more…)

Fun with Intel 4965 wireless + kismet +aircrack-ng

Wednesday, September 17th, 2008

I thought I’d share with you how the latest iwl4965 wireless drivers are doing w/ respect to kismet, monitor mode, packet injection, cracking WEP, etc

(more…)

Debian on a Thinkpad X61

Wednesday, August 6th, 2008

Yesterday a friend of mine was selling a barely used Thinkpad X61:

Core 2 Duo 2.4 Ghz, 3 GB RAM, SATA 160 GB, 12.1″ 1024×768 screen, Intel GM965 graphics, iwl4965 wireless, fingerprint reader, SD/MMC reader, 3 USB 2.0, Firewire, Bluetooth 2.0, gigabit ethernet, PCMCIA, modem. Weight 1.4 kg

(more…)

Policy routing

Wednesday, December 19th, 2007

Here’s a brief tutorial how to connect a single server to ‘the Internet’ using multiple physical connections and route various services over different interfaces using a mechanism called ‘policy routing’.

(more…)

Messing with my DSL router

Tuesday, March 7th, 2006

Recently I am trying to exploit my ADSL connection. The point is that my ADSL router ( a variation of the Comtrend CT-462 producted especially for Chung-Hwa ) – or more specifically , my ISP, hinet.net – enforces a speed limit if 1Mbps/64Kbps per one PPPoE connection.

(more…)