Ubuntu Misc

From brainsik
Jump to navigation Jump to search

linux/config.h: No such file or directory

Starting with kernel 2.6.19, there is no longer include/linux/config.h.

A very quick workaround is:

touch /usr/src/linux/include/linux/config.h

You can fix the code by removing these lines:

#include <linux/config.h>

For more info, see this forum post.

Building module-source packages

An example of building DRBD0.7:

$ sudo aptitude install module-assistant build-essential drbd0.7-module-source
$ sudo m-a a-i drbd0.7

DJBDNS

svscan no longer works via init/inittab. There is an Ubuntu wiki page about this: DaemontoolsUpstartConfig. Last I checked it hadn't been updated since Edgy and Feisty's upstart code is a bit different. I updated that wiki page, but here is the code I'm using in a file I created called /etc/event.d/local-svscan:

# svscan - DJB's daemontools
#
# This service starts daemontools (svscanboot) from the point the system is
# started until it is shut down again.

start on runlevel 2
start on runlevel 3
start on runlevel 4
start on runlevel 5

stop on shutdown

respawn
exec /usr/bin/svscanboot