|  About Me  |  Blogs  |  Photos  |  Publications  |  Resume  | 

Archive for the 'Debian' Category

MPlayer not showing subtitle file

Tuesday, February 8th, 2005

Symptom: MPlayer found the subtitle file but was not showing subtitles during playback. It gave the error message:

Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.

Fix: apt-get install mplayer-fonts.

Setup Dnsmasq for local network

Monday, December 6th, 2004

Dnsmasq as a lightweight DNS proxy and a DHCP server I use for my home network. apt-get install dnsmasq.

On my server eth0 is connect to my ADSL modem and gets dhcp from my ISP. eth1 is connected to the wireless access point which our laptops connects to, so we need to configure dnsmasq to listen [...]

Firewall policy

Monday, November 22nd, 2004

Setup the following firewall policy for my server:

$ iptables -P INPUT DROP

Default drop everything.

$ iptables -A INPUT -i eth1 -j ACCEPT
$ iptables -A INPUT -i lo -j ACCEPT

Accept everything on local network (eth1 connects to home access point) and local interface.

$ iptables -A INPUT -i eth0 -p tcp -m multiport –dports 22,80 -j ACCEPT

Offer ssh [...]

MPlayer Quicktime audio codecs

Sunday, September 5th, 2004

Symptom: MPlayer plays quicktime files with video but no sound.
Fix: apt-get install w32codecs.

Network interface script to enable dhcp interface for dnsmasq

Wednesday, August 25th, 2004

My wireless interface have many profiles, some profiles run as dhcp client while others run as dhcp server. This means I have to setup my dhcp server (I use dnsmasq) to listen on the interface when the profile that acts as dhcp server is brought up, and remove that interface when the profile is brought [...]

Compiling kernel 2.6.8 for IBM Thinkpad T41

Monday, August 23rd, 2004

Notes on compiling linux kernel 2.6.7 / 2.6.8 to support mts, wifi and bluetooth on a T41 running debian.