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

Archive for November, 2004

ECB - emacs code browser

Thursday, November 25th, 2004

ECB is a emacs code browser. It displays a number of informational windows that allow for easy source code navigation and overview. It includes:

directory tree
a list of source files in the current directory,
a list of functions/classes/methods/… in the current file
a history of recently visited files,
output from compilation (the compilation window) and other modes like help, [...]

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 [...]

Access Reiserfs partition in Windows

Monday, November 22nd, 2004

rfstool is a tool to access ReiserFS partitions from a Windows 95/98/ME/NT/2000/XP. There are also gui interfaces to it. I like YAReG.

For ext2/ext3 there is also explore2fs.

Copying/restoring mysql databases

Monday, November 22nd, 2004

I restored (copied) my mysql databases to a newly reinstalled machine by copying /var/lib/mysql. However I was getting a “ERROR 12: Can’t read dir of blah”. It turned out I forgot to change ownership to mysql, i.e., chown -R mysql:mysql /var/lib/mysql.

There is another problem. Debian uses the debian-sys-maint user in its init script. This user [...]

Upgrade gDesklets lost old configuration

Monday, November 15th, 2004

I recently upgraded to gDesklets 0.30 which lost all my old configurations. Luckily there is a tool called migration-tool which converts 0.2x configuration to 0.30. It’s included with gDesklets.

$ /usr/share/gdesklets/migration-tool
$ gdesklets start

The font sizes are a bit screwed but need to change this manually.

To make gdesklet start properly for each session go to gnome menu [...]