Misc


Debian GNU/Linux on different Laptops

Here's some information about how to configure Debian GNU/Linux on different Laptops:


Pstricks graphics

Here's some LaTeX/pstricks code we used for graphics (mostly related to cryptography).

Generation of html code for the gallery

Each single album in our gallery isn't actually written by hand but automatically generated by a small bash script called gen_webalbum.sh. To use it just call it with the paths to the pictures you want to include as arguments.
Rescaling of the pictures for the gallery to 640x480 is done automatically (the originial pictures are of course not changed), so it doesn't matter which resolution the pictures have. This will produce a directory named gallery, in this directory there is a file named index.shtml. In this file change "EDITME" to whatever the title of the gallery should be.
The bash code should be easily adoptable to generate galleries for other websites for someone who is familiar with bash, the script needs the imagemagick tools, that on a Debian stystem can be installed with "aptitude install imagemagick".

Wireless configuration at TU/e

Thanks to a guide written by Willem Ligtenberg I finally managed to configure my wireless under Debian to work with the TU/e network. Just put the following lines in /etc/network/interfaces:

iface tue inet dhcp
   wpa-driver wext
   wpa-ssid tue
   wpa-key-mgmt IEEE8021X
   wpa-eap PEAP
   wpa-identity pschwabe
   wpa-anonymous_identity TUE_USERNAME # i.e. pschwabe
   wpa-password PASSWORD
   wpa-phase2 auth=MSCHAPV2
   wpa-ca_cert /etc/ssl/certs/GTE_CyberTrust_Global_Root.pem

Now you can log into the wireless network with

ifup wlan0=tue

assuming that wlan0 is your wireless interface.
If you want to use the eduroam network you can use the same configuration, just replace "tue" by "eduroam" in the interface name and in the wpa-ssid and add @tue.nl to your wpa-identity an wpa-anonymous-identity (e.g. pschwabe@tue.nl).