Posts Tagged 'howto'

Amilo Pro v2030

Alright I finally got Debian installed on the Amilo Pro 2030 laptop. There were a few problems that I managed to solve, like an invisible mouse pointer/cursor and the wireless. So I’d like to share the solutions here:

    Invisible pointer:

edit /etc/X11/xorg.conf

Section “Device”
Identifier “Configured Video Device”
Option “HWCursor” “off”
Option “SWCursor” “on”


    Wireless(with internet access available, e.g. ethernet):

Add the contrib repositories to /etc/apt/sources.list
e.g. deb lenny main contrib

apt-get update
apt-get install b43-fwcutter

Download and setup the firmware when prompted.

Voila. Now get something to manage your connections according to your windows manager, I use wicd with LXDE.

Advertisements Syntax Highlight Without Plugins

As you can maybe see from my previous post, I’ve got my syntax highlighted. There is no plugin working its magic behind it, infact, since I’m not hosting this blog myself, I can’t use plugins at all. Nevertheless, one solution for highlighting syntax is to ‘wrap’ it with html, which works with the wordpress posts. I found out that with gVim you can Syntax->Convert to HTML. With gVim you need to use the “:TOhtml” user command. All you need to do is copy the output into you post. You might want to make the font size something like 3 by adding size=”3″ into <font face=”monospace”> which is in the beginning of the output – <font face=”monospace” size=”3″>. If you know some other/better way to do this please comment. Hope this helps 😀

Importing Old WordPress Posts

I managed to import my first wordpress posts from the backup that I had saved in Gmail. Finding a way to retrieve the posts from the backup took a few hours, since I couldn’t find any help online. My backup consisted of the whole wordpress folder and the mysql tables. I copied all the sql entries to mysql and then changed the wp_config file a little. However, getting the posts through the old wordpress folder (http://localhost/wordpress) didn’t work because I had earlier redirected my url to For a long time I tried to look for a way to disable the redirrect, but then gave up. So here is the method I came up with:

1 from your old sql backup import wp_posts
2 download a fresh copy of wordpress and extract it to your www directory
3 install wordpress as usual, remember to make a sql database and edit wp_config
4 once you are done remove wp_posts from the new database you have just created
5 after the table has been removed import the old wp_posts table
6 now when you navigate to http://localhost/wordpress login and go to the manage tab in the dashboard
7 click on the export tab and then on download export file

Now you should have the XML file on your computer, which you can import with your other wordpress blog. The dates of when the posts were written should be included.

Setting up a Battlenet/pvpgn-1.8.1 server

Here is how I installed my pvpgn (bnet) server. It will be installed on linux without the mysql or pgsql support, which are used to store account information and only benefit servers with more than 100 active users or if you need to have ladder information appear on your website. In this installation simple file form was used.

Download the pvpgn file from here and upload+extract it to some folder on your server.

Once extracted open the src subdirectory inside the main folder, type in console cd /path-to-pvpgn/src

Then type ./configure –prefix=<path-where-you-want-to-install> or just ./configure to default install in /usr/local

In console type: make and once that is done without errors, type: make install

Now install the support files from here and extract into, by default install directory: /usr/local/var/files

The configuration file is located in, by default install directory: /usr/local/etc/ – and its the bnetd.conf file. I didn’t have to configure anything other than the server name.

The server should work with just that. If you are behind a router like I am, then you should open ports 6200 and 6112… or that’s what I did 😀

Finally start your server by typing: /usr/local/sbin/bnetd (that’s again the default install directory)

Thats all! It would be nice to hear if this helps someone or if something should be edited, so leave comments 😉


Write comments if you have something you need to ask.

Current OS:

Arch Linux / Windows 7