Notes2self

Notes to self.

to reconfigure X server — sudo dpkg-reconfigure xserver-xorg

to configure lighttpd for php:

sudo lighty-enable-mod fastcgi
sudo nano /etc/lighttpd/conf-available/10-fastcgi.cgi

delete the contents of this file, insert the following text:

server.modules += ( "mod_fastcgi" )
fastcgi.server = ( ".php" =>
( "localhost" =>
( "socket" => "/tmp/php5-fcgi.socket",
"bin-path" => "/usr/bin/php5-cgi"
)
)
)

to use a parallel port in vmware:

load the modules:
modprobe ppdev; modprobe parport

ppdev makes a /dev/parport0, with permissions 660 and owned by root:lp, so add yourself to the lp group (or change the permissions) if you need user access:

then

sudo rmmod lp