bram's blog

lgeneral-data

The attached package contains the datafiles for lgeneral. They where created using the instructions from http://ubuntuforums.org/showthread.php?t=435317 and then packaged into a package. I don't think this is in anyway related to the platform, but if it doesn't work, try the ubuntuforums method (after uninstalling this package)

Setting up the UFW firewall with Samba

There is a new firewall, which is probably going to become the Ubuntu standard firewall configuration system. It's called ufw, which stand's for uncomplicated firewall. The script allows you to easily add rules to the already in kernel iptables firewall system and makes sure rules are saved and restored on reboot.

First install the firewall with:

sudo aptitude install ufw
sudo ufw enable

You might also want to change /etc/default/ufw and add add the netbios_ns line so you can use samba:

Panzer general 2 on Ubuntu Hardy with Wine

Here is a list of things I had to do to try to get Panzer general 2 working with wine 0.9.59 on Ubuntu Hardy. However, in the end I could not get it to work and was told that this game has the same problems on Windows XP.

My last hope is to install Windows 98/95 in a virtual machine, but I think I might just have to mark this game as a victim of time.

If you find a solution or have anything else to add, feel free to comment on this post.

Removing windows Vista and other metallic stickers from your laptop

On most laptops you will find nice metallic stickers with the most useless information, like: "You have a processor" and "You bought this machine with a Microsoft operating system".

To get rid of these shameful stickers seems pretty hard: you can't seem to just peel them of because they are to rigid and you don't want to use any kind of chemical because, well, it's your new laptop. The solution is very easy though, but I still just wanted to post it before people start using knives or chemicals.

ghash 0.0.2

Version 0.0.2 of ghash is now out. Some bugfixes and the new gvfs (giomm) are now in there and you will need them to get it working. You can do that by just getting the newest Ubuntu or Debian and you should be ok.

You can download a debian package or just the source tarball from SourceForge. If you download the source, you can just run the usual ./configure && make && sudo make install and it should appear in you debian menu or freedesktop menu.

/usr/include/gnome-vfsmm-2.6/libgnomevfsmm/monitor-handle.h:49: warning: 'Gnome::Vfs::MonitorHandle' has a field

The best fix for the following compilation warning:

/usr/include/gnome-vfsmm-2.6/libgnomevfsmm/monitor-handle.h:49: warning: 'Gnome::Vfs::MonitorHandle' has a field 'Gnome::Vfs::MonitorHandle::proxy_' whose type uses the anonymous namespace

was given by Jonathon Jongsma on the GTKmm mailing list. With the introduction of GVFS applications gnomevfsmm has been depricated and giomm should be used. So, rewrite your project to use giomm instead.

Movie computer scripting language

I've always wanted to create my own language, and it is probably a good idea to start with something simple. And that may just be a movie computer scripting language.

If you ever see a computer in movies, you know what I'm talking about: large dialog boxes stating "downloading" or "encrypting" and a larger then life progress bar filling most of the screen. Or weird documents popping up on screen.

Deleting files to the trash in the shell

Somebody on Ubuntu brainstorm wanted to have rm throw files into the trash. This is not really a good idea, because it will probably end up confusing you when you start using SSH to other machines or try the same thing at your neighbors new Ubuntu installation.

The solution is the following:
1) Open a terminal
2) Run the command:

echo alias del=gvfs-trash >> ~/.bashrc

SVG Hit counter

The SVG hit counter is born. This weekly hitcounter will show a graph of the hits of the past 8 weeks and the number of hits for the current week. Source is ofcourse available at the project site. Below is an example (at twice the size of the default):

Remove 30 day old files from you GNOME trash


Currently this is outdated and will not work! See http://log.logfish.net/node/43

Removing 30 day old files from you gnome trash can be done with the following magic line:

find ~/.local/share/Trash/files/ -type f -mtime +30 -printf '%P\000'  |xargs -n1 -I {} -0 gvfs-rm trash:///_{}

Now, what if you want to do this every day? Simple: add a crontab entry to do it all: run crontab -e and insert the following:

Syndicate content