irssi and znc

•2011-02-27T22:31:17+00:00 • Leave a Comment

irssi is a irc client for the console, it is scriptable and can handle plugins, themes, etc… if the window system is not working for you, it could be a option in the configuration. i found some options which are quite useful.

/set use_status_window yes
/set autocreate_windows yes
/set scroll on
/set theme THEMENAME

the first one creates a window where appear all status messages. also it is good to talk with the irc server, so it will not embarrass you. the second command creates a new window for every channel you join. with scrolling enabled you can go up and down with page up and down. the last one changes a theme to one in your ~/.irssi folder.

to use irc it is very useful to be online all the time. so because that is very hard to accomplish, you could use a bouncer.znc seems to be a very easy to administrate and well documentated option for it. the installation is very easy, the configuration file will be created in a interactive dialog. after the installation is finished. you can connect with your firefox to an administation gui to set all the options on the port you set znc to listen to. a few good modules are e.g. a module for the irc service (nickserv, q..) or awaynick.

after installing both programs you can connect to znc via irssi with

# irssi -c IP/HOSTNAME -p PORT

with /names you can see, who is in the channel.


chinese trash toys

•2011-02-18T11:16:18+00:00 • Leave a Comment

here you can buy stuff for everything very cheap. and this guy ships everything for free, although it seems to come from hongkong. but be aware to buy not too much because of customs duty also you will need a credit card.

php5 with pdf-support

•2011-02-17T22:40:23+00:00 • Leave a Comment

# wget
# tar xfvz PDFlib-Lite-7.0.5.tar.gz
# cd PDFlib-Lite-7.0.5.tar.gz
# ./configure && make && make install
# aptitude install php-pear
#(maybe) aptitude install php-dev
# pecl install pdflib
-> path /usr/local
# echo > /etc/php5/conf.d/pdflib.ini
# invoke-rc.d apache2 reload

watch the phpinfo now, to see if it worked…


starting a program as a deamon

•2011-02-10T20:55:51+00:00 • Leave a Comment

first you need to add a script like below into /etc/init.d/ and “chmod 755 /etc/init.d/name”>. than to add the script to your runlevel will be on a debian system with “update-rc.d <scriptname in /etc/init.d/> defaults”. the script starts (invoke-rc.d [start|stop]) with the option start the binary and with stop, it searches for the specific pid to kill it afterwards again, maybe you need to customize it a bit.

#! /bin/sh
# /etc/init.d/blah
# Some things that run always
touch /var/lock/blah

# Carry out specific functions when asked to by the system
case “$1” in
echo “Starting script blah ”
blah -option x >> /dev/null 2>&1
echo “Stopping script blah”
for die in `ps aux| grep “blah -option” | grep -v grep | awk ‘{print $2}’`
kill ${die}
echo “Usage: /etc/init.d/blah {start|stop}”
exit 1

exit 0



•2011-02-09T22:19:25+00:00 • Leave a Comment

this little program chooses the colour temeprature depending on your latitude. so you need to download the binary and put it into a folder, where you want to execute it. now start the program with -l and -g (xflux -l xx -g yy ) and use to get your longitude. just right click on your place and click on “whats here”. normally there should be now two numbers in the search bar (round them up or down and replace the xx and yy). this should do the trick.

now to get it started on a session with your window manager, e.g. lxde. create a folder ~/.config/autostart, if it is not there and put there a desktop-file, e.g. xflux.desktop. you need three basic lines to start it.

[Desktop Entry]
Exec=xflux -l 66 -g 6



•2011-02-04T14:53:37+00:00 • Leave a Comment

after i had added the rockbox firmware on my mp3-player wanted to add music on it, my laptop could not mount the device properly.

i had to do a

#sudo /sbin/fsck.vfat -r /dev/sdc

and select the second FAT system. after that i could mount my mp3-player easily. now you need to put all your music into a directory in the root folder, so the database finds them and you can play your songs properly.

although rockbox is a great firmware, which enables my mp3-player to have a lot of more functions than before. you can add themes :>, fonts and games (doom2 alternative :>). another good point is, that i can put my volume as high as i want it and the restriction of the old firmware is gone. also you have full access to the filesystem. before i had several problems with the use of my mp3-player on different pcs. i will test this firmware now for a few weeks and see if it brings me a better duration for a battery charge.

in spite of all the cool features you get with rockbox, it is not avaiable for all player. also it could brick your device, so you cannot use it anymore, be careful though. the installation might not work with the rockbox utility, but the manual way is not hard either. furthermore there is a big wiki-system and forum to get help.

vboxsf and small files

•2011-01-21T14:39:29+00:00 • 8 Comments

i am using a virtual machine (vbox) as a webserver and connect both via shared folders, so i do not need to set up smb/nfs/sshfs or anything else. that way i can work with my ide on the webserver, but do not have one installed on my laptop. but there seems to be a problem with small files (about 2KB), e.g. .css-files. the apache delivers after small changes a css file, but not the modifed one. it is an old version with the same length of the new, although the length is like the new one and the timestamp is also renewed. so if your new .css-file is smaller then the old one, it has a padding of zeros. there is a workaround to add EnableSendfile Off and EnableMMAP Off into the apache.conf.