• Screen

    To start screen just type screen and then you’ll be in your new terminal. To detach, hit CTRL+A and D. Reattach to a screen: If only one screen is open: screen -R If more than one: screen -list Get the terminal ID and then: screen -R [terminal_id]

  • Exim 4.5 Smarthosts + Debugging

    To debug TLS and AUTH in exim, run mailq to check if there are any undelivered mails and run exim -qff -d+all to see what’s happening during the delivery attempt. Insert this into the transport section of exim.conf to force TLS and AUTH on all accounts: remote_smtp: driver = smtp remote_smtp_smarthost: driver = smtp hosts_require_auth…

  • Running GloMoSim on Debian/gcc-4.0

    First, create /usr/local/parsec and copy the contents of parsec/redhat-7.2 there. Then include /usr/local/parsec/bin in the PATH system variable. Running pcc should be possible now. To compile GloMoSim, change to glomosim/main, run export PCC_PP_OPTIONS = “-D__builtin_va_list=void* -D__STRICT_ANSI__ -E -U__GNUC__ -I.” and “make”.

  • HBCI and Linux

    To get my Towitoko Chipdrive micro running in Debian, I had to install libtowitoko2 (and create a symlink libtowitoko.so), libchipcard2 and libchipcard2-tools. The chipdrive and the card server can be configured in /etc/chipcard2-server/chipcardd2.conf , the client’s way to connect to the card server is set in /etc/chipcard2-client/chipcard2.conf. Running chipcardd2 -f –logtype console –loglevel info shows…

  • Grub in Debian AMD64

    When booting from a 64bit Linux live CD and chrooting into my Debian AMD64 I get a segfault in Grub. I run the grub shell and enter: root (hd0,4) setup (hd0) To prevent the setup command from segfaulting Grub, the live Linux needs to be booted with the following kernel parameter: noexec=off This seems to…

  • Samba + CUPS + Printing from Windows and Linux

    My OKI B4100 PCL printer is connected to my Debian server and I want it to accept print jobs from remote Windows and local and remote Linux. CUPS and Samba need to be installed and RAW printing needs to be enabled in CUPS (see below). For the CUPS server (using the CUPS web interface) and…

  • Linksys NSLU2

    The Linksys NSLU2 is a Network Attached Storage (NAS) device. It has a 100MBit/s Ethernet port and two USB 2.0 ports. The best thing about it: it can run a custom Linux. You can run virtually any Linux software on it, e.g. mt-daapd or apache. It’s also possible to connect a Bluetooth USB device or…

  • phpMyAdmin and SSL

    Can’t login to phpMyAdmin with SSL? Add $cfg[‘PmaAbsoluteUri’] = ‘https://your.server.com/phpmyadmin/’; to /etc/phpmyadmin/config.inc.php.

  • RTS/CTS and ns2

    RTS/CTS in ns2 can be turned on/off by setting the Mac/802_11 set RTSThreshold_ parameter to a certain value. Is the packet size bigger than this value, RTS/CTS will be used, otherwise it won’t. The default threshold is 3000 bytes. Recent 802.11b cards apparently do not use RTS/CTS as this degrades the performance. This is not…

  • Transmission Delay in ns2

    My observation is that packets are retransmitted 4 times until they are dropped on the MAC layer. This is the default value for MAC_LongRetryLimit in ns2. The Transmission Delay in my simulation consisting of two nodes has only a minor randomness. It highly depends on the current data rate, and graphs are as angular as…

Got any book recommendations?