Last edit
Summary: lighttpd, Oddmuse
Changed:
< Create the directory, too:
to
> Create the directory and a config file, too:
Added:
> $ sudo editor /var/oddmuse/config
Added:
> Content of the config file:
> {{{
> $StyleSheet = "/wiki.css";'
> }}}
> Feel free to create a CSS file -- for the moment I'm just making sure that the default CSS isn't fetched from oddmuse.org.
In 2009, I installed Ubuntu on my old iBook G4. Today I decided I wanted to move to Debian because I wanted to have the same system at home as on my web hosting provider.
So, I downloaded debian-6.0.5-powerpc-CD-1.iso using bittorrent and booted the laptop from CD. I forgot a crucial sentence from my 2009 blog post: “When I installed it while connected to the network via ethernet cable, it offered to download and install the necessary driver for the wireless card.”
My laptop wasn’t connected to the network and now it’s like a computing brick: Even when I plug in the cable and reboot, I can’t ping anything.
← sad face in case you didn’t notice. Yes, I am very sad. Grrrr.
Also, my network uses WPA2 Personal encryption. I’m not sure I’m going to use Gnome or KDE (the last Orientalibombus setup I used was based on ratpoison. This is why I wanted a wireless network usable from the command line.
The solution was this:
alex@subterraneobombus:~$ sudo cat /etc/network/interfaces
[sudo] password for alex:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-ssid Schroeder
wpa-psk *secret*By plugging in the cable and using ifup eth0 I was able to download stuff from the Internet.
Stuff from the Debian Wiki I used:
Use ifdown eth0 and ifup wlan0 to switch to the wireless network. To be honest, I needed to reboot in order for this to work. No idea why this was necessary.
On a Swiss-German Macintosh keyboard, I need the Alt key to access stuff like number sign, pipe, brackets and bracers.
! Alt key is used to access #[]|{}
keycode 64 = ISO_Level3_Shift
remove mod1 = ISO_Level3_Shift
! Command key is alt/meta
remove mod4 = Super_L
keycode 133 = Meta_L
! check out /usr/share/X11/xkb/symbols/ch
! keycodes: normal shifted ignored ignored Alt Shift-Alt
! prevent shift-space from inserting an unbreakable space: it's too easy
keycode 65 = space space NoSymbol NoSymbol nobreakspace NoSymbol
! use an endash instead of a hyphen for Alt Minus
keycode 61 = minus underscore NoSymbol NoSymbol endash emdashMozilla: Edit source.list and update… Except that it didn’t help with Google+. Watch out for the instructions on how to get the keyring (pkg-mozilla-archive-keyring). Don’t do that! Instead, install the User Agent Switcher and download the big list of user agents. Import it, replacing what you already have and switch to Firefox 12 or whatever.
Graphics performance: Based Installing Debian Linux on PPC Part IV - Configuring Stuff I did the following:
$ sudo aptitude install firmware-linux-nonfree ttf-mscorefonts-installer pommed mesa-utils $ glxgears
This installs some fonts, firmware drivers, activates the buttons to dimm the brightness, and a tool to test the performance of the graphics card: glxgears. It shows less than 100 fps. Add the following file:
$ cat /etc/modprobe.d/radeon-kms.conf options radeon modeset=0
Restarted and now glxgears is giving me tenfold performance. Weird!
Web server: lighttpd and Oddmuse setup… first you need to install lighttpd, then:
$ sudo /usr/sbin/lighty-enable-mod $ sudo /etc/init.d/lighttpd force-reload
And finally create /var/www/cgi-bin/wiki# (forget about /usr/lib/cgi-bin) with the appropriate path to the Oddmuse script:
#!/usr/bin/perl package OddMuse; $DataDir = "/var/oddmuse"; do "/home/alex/src/oddmuse/wiki.pl";
Create the directory and a config file, too:
$ sudo mkdir /var/oddmuse $ sudo chown www-data.www-data /var/oddmuse $ sudo editor /var/oddmuse/config
Content of the config file:
$StyleSheet = "/wiki.css";'
Feel free to create a CSS file – for the moment I’m just making sure that the default CSS isn’t fetched from oddmuse.org.