Debian
Disable DHCP on your router.
Replace whatever dhcpd server you have on your box with dhcp3-server (ISC DHCP server transitional package)
$ sudo aptitude install dhcp3-server
Edit the config file in
/etc/dhcp/dhcpd.conf
adding a block for your subnet
subnet 10.0.0.0 netmask 255.255.255.0 {
range 10.0.0.100 10.0.0.149;
default-lease-time 86400;
max-lease-time 86400;
option routers 10.0.0.1;
option broadcast-address 10.0.0.255;
option subnet-mask 255.255.255.0;
option domain-name-servers 10.0.0.1;
option tftp-server-name “10.0.0.7″;
}
Restart dhcpd
$ sudo /etc/init.d/isc-dhcp-server restart
Replace [...]
So I’ve never had to create a boot job that didn’t suit the defaults but today I did. And it took ages to figure out the `right` way to do it. Mostly because I was not correctly removing the previous entry.
Refresher. Create a boot job with the defaults
$ sudo update-rc.d bloodbath defaults
Ok. It’s not clear [...]
There are a couple of patches outstanding that I’d like to include in the python-cwiid package. The first is support for the low speed flag for the wii motionplus gyro. This flag lets you know if the motionplus is using the slow or fast scale for its values.
Set up our build environment and get the [...]
http://thomer.com/howtos/ipod_video.html
You’ll need your gpg key
whale:~ rossetti$ gpg2 –export-secret-keys -a > secret.asc
whale:~ rossetti$ scp secret.asc Wakatipu.local:~/
rossetti@Wakatipu:~$ gpg –import secret.asc
Add the debian-multimedia repository
rossetti@Wakatipu:~$ wget http://www.debian-multimedia.org/pool/main/d/debian-multimedia-keyring/debian-multimedia-keyring_2008.10.16_all.deb
rossetti@Wakatipu:~$ sudo dpkg -i debian-multimedia-keyring_2008.10.16_all.deb
rossetti@Wakatipu:~$ sudo aptitude update
Install the dependencies
rossetti@Wakatipu:~/installers/ffmpeg/ffmpeg-debian-0.svn20080206$ sudo aptitude install libamrnb3 libx264-dev libxvidcore4-dev libamrwb-dev libamrnb-dev libfaac-dev
Get the ffmpeg sources
rossetti@Wakatipu:~/installers/ffmpeg$ apt-get source ffmpeg
rossetti@Wakatipu:~/installers/ffmpeg$ cd ffmpeg-debian-0.svn20080206/
rossetti@Wakatipu:~/installers/ffmpeg/ffmpeg-debian-0.svn20080206$ vi debian/confflags
gpl_confflags += –enable-x11grab
gpl_confflags += [...]
These notes apply only to the last eeePC 701SD released. They do not apply to any other model.
Update your eeePC using the built in updater. Its the icon with the three stackeed horizontal bars in your task bar.
Update your eeePC using apt-get
sudo apt-get updatesudo apt-get upgrade
Add a debian repository to apt sources.
sudo echo “ftp://ftp.au.debian.org/debian lenny [...]
sh-3.2$ mkdir -p pukohu-restore-20090331/var/log
sh-3.2$ rdiff-backup -r 2009-04-01 pukohu-rdiff-backup/var/log/ pukohu-restore-20090331/var/log/
from within the directory you wish to search find files larger than 100MB
rossetti@Wakatipu:/media/backup$ sudo find . -type f -size +100000k -exec ls -lh {} \; | awk ‘{ print $8 “: ” $5 }’
Because the source server runs an older version of rsync, rdiff-backup cannot run directly. So we rsync to the destination server first then run rdiff-backup over the local copy. Also, because its a production server, we limit the outgoing speed so as not to compromise the server’s ability to serve.
rossetti@Wakatipu:~$ cat /media/backup/backup-pukohu.sh
#!/bin/bash
SOURCE=laudanum-backup
DEST=/media/backup/pukohu
DESTR=/media/backup/pukohu-rdiff-backup
EXCLUDE=/media/backup/backup-pukohu-exclude.txt
LIMIT=100 [...]
http://nfs.sourceforge.net/nfs-howto/ar01s03.html
If you’re happy to ignore security concerns the quick way to set up an NFS server on your network is as follows.
1. Add an exports file. This one allows all computers on my local network full access to the transit directory. The `insecure` option is required for Macintoshes to connect.
rossetti@Wakatipu:~$ sudo mkdir /media/backup/transit/
rossetti@Wakatipu:~$ sudo chmod [...]
Who is hammering FTP on our server?
sudo grep “no such user” /var/log/syslog | cut -d[ -f 3 | cut -d] -f 1 | sort | uniq -c | less
What firewall rules do we have in place?
sudo iptables –numeric –line-numbers -L INPUT | less
How do we add to the rules immediately?
sudo iptables –insert INPUT 3 -s [...]