Where is XMMS in Hardy Heron?

I was looking for a smaller audioplayer application than amarok in Ubuntu Hardy. “XMMS” came immediately to my mind, but I couldn’t find it in the software repositories. A quick search with the help of Google led me to this page:

 

http://wiki.ubuntuusers.de/Audacious

 

It looks nearly the same as XMMS and the usage is also the same – so that’s the application of my choice for me now.

Lycos Webhosting and Drupal

Visit this page for interesting things to consider when installing Drupal on a Lycos Webserver:

http://drupal.org/node/130872

Timeouts problems with phpmyadmin when inserting from larger dumps

Today i tried to insert data to a mysql-database from a sql-dump with phpmyadmin. Although the dumpfile was not so big (1,8M) i got a timeout after about 30 secondes each time I tried it. This timeout is often by webhosters in their PHP installation.
The problem is that the customer (me in this case) is not able to increase this value :-( So what to do?
After googling a bit I found the solution: It’s called Bigdump! Wow!!! :-)
A simple php-script which does all the work for you. Upload this script and the dump via FTP to the webspace and modify all the needed and well documented parameters in bigdump.php (databaseuser, pw, hostname,..)Fire up your browser and go to the location where you put the file and start the import of the data. As the script doesn’t try to insert all data with one single request and instead does more smaller requests by refreshing itself after some time, the PHP timeout will not be reached!

monkey HTTP Server debianized

The “”famous” monkey http server has made it to the Debian Sid repository.
You can find it’s website here: http://packages.debian.org/sid/monkey

Thanks to Romain Beauxis from rastageeks.org and of course Eduardo Silva – the upstream developer.

 

invoke-rc.d: initscript policyd-weight, action “stop” failed

If you try to remove the policyd-weight package via apt-get on Debian Etch the process will fail, if the policyd-weight daemon is currently not running.
The second time you enter the apt-get remove command it is successful, because the daemon was started before during the first try of uninstallation.

I reported a bug for this behaviour and the maintainer of the policyd-weight package released a new version.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=473225

schmalenegger.com migrated to Drupal

Within the last days i migrated this website from WordPress to Drupal6. The wp2drupal module helped a lot at moving the content to the new drupal db.
I think, that most of the things work now, but let’s see… ;-)

Update: mini_httpd with PHP as CGI

I also reported this problem via reportbug to the Debian Package-Maintainer Marvin Stark.
He applied my patch and created a new debianized version of mini-httpd which will now work out of the box with PHP and CGI.

Here is the link: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=462930

iTerm and screen

I usually use iTerm when connecting to linux boxes from my Macbook. When also using screen one may notice that e.g. the backspace key doesn’t work properly. I found a solution for this problem:
- Just fire up iTerm
- Click on “Bookmarks” – “Manage Profiles”
- Keyboard Profiles – xterm (OS X)
- Modify the setting for delete and set the value to “send hex code 8″

After that your ssh sessions may also use the backspace key with iTerm using screen.

mini_httpd with PHP as CGI

While playing around a bit with other webservers than Apache, I decided to give mini_httpd a try. The documentation is very "limited" and you have to find out the things yourself. So here are the steps I did to get mini_httpd running on Debian Etch. Downloading and extracting is very easy:

 wget 'http://www.acme.com/software/mini_httpd/mini_httpd-1.19.tar.gz' tar xzvf mini_httpd-1.19.tar.gz

Next step is compiling. There is no configure script in the sources, so if you want to enable e.g SSL support you need to edit the Makefile manually. But for now I want to keep everything at the default-values.

 cd mini_httpd-1.19 make

After the compilation you will find the binaries in the mini_httpd-1.19 source dir (htpasswd,mini_httpd). Most interesting for now is of course the mini_httpd binary. You may want to copy it to a more common place in the filesystem. Starting mini_httpd: mini_httpd knows some startupoptions like port, user, etc. You can either specify these options on the commandline when starting the server or create a separate configuration file (e.g. mini_httpd.conf) where you set all these values. Here are

 thorsten@debsrv:/usr/local/src/mini_httpd-1.19$ ./mini_httpd --help usage:  ./mini_httpd [-C configfile] [-D] [-p port] [-d dir] [-dd data_dir] [-c cgipat] [-u user] [-h hostname] [-r] [-v] [-l logfile] [-i pidfile] [-T charset] [-P P3P] [-M maxage]

I decided to create a configfile with the following content:

 port=88 (for testing purposes only - would be normally 80) user=nobody nochroot cgipat=**php dir=/opt/mini_httpd data_dir=./html logfile=./logs/mini-httpd.log pidfile=/var/run/mini-httpd.pid charset=iso-8859-1

The startup of the server goes like this afterwards:

 ./mini_httpd -C mini_httpd.conf

I would also like to use PHP in mini_httpd. There is no module like mod_php in Apache, but you can implement it via CGI. There is not much configuration to be done (see cgi-pat in mini_httpd.conf) and the shebang in the php sourcefiles need to point to your php binary (e.g. /usr/local/php-cgi), but I couldn’t get it to work successfully. After some investigation with the help of google I found out, that I need to patch the sources of mini_httpd. There is already a patch available from the m0n0wall project but this patch is not feasible for me, because it adds some m0n0wall related functionality, too. So I modified the patch to fit just to my requirements. It also adds "index.php" to the list of default filenames.

mini_httpd.patch

Dowload this patch and apply it to the sources of mini_httpd. After patching you need to call "make" again to build the new binary.

 patch -p0 -i mini_httpd.patch make

Choice of Drupal as your CMS

If you are a bit unsure which Content-Management-System is the right one for you, here is a good reason to choose Drupal.
The Drupal – Song!!!

Very easy to remember. You can sing the song after hearing it once! :-)