Tuesday, April 20, 2010

Local-link Address (LLA, 169.254.0.0/16) networking on Debian/Ubuntu Linux How To

Instructions for connecting external IP devices to the second NIC on a Debian/Ubuntu box using Local-link Address networking (169.254.0.0/16)

e.g. connecting a Axis 206M camera.

Install on the Debian/Ubuntu PC:

  • dhcp3-server
  • avahi-autoipd
To configure dhcpd, add the following lines to /etc/dhcp3/dhcpd.conf:

subnet 169.254.0.0 netmask 255.255.0.0 {
  range 169.254.8.2 169.254.8.20;
}
Add a route to 255.255.255.255 to the second NIC in order to send UDP broadcast traffic to it. This is accomplished by the last two lines below in /etc/network/interfaces:

% cat /etc/network/interfaces
auto lo eth0 eth1
iface lo inet loopback
address 127.0.0.1
netmask 255.0.0.0
iface eth0 inet dhcp
iface eth1 inet dhcp
post-up route add -net 255.255.255.255 netmask 255.255.255.255  metric 99 dev eth1
post-down route del -net 255.255.255.255 netmask 255.255.255.255  metric 99 dev eth1 

Sunday, April 11, 2010

Error Building ffmpeg: 32-bit absolute addressing is not supported for x86-64

A quick note...


If you are getting the following error on Mac OS X 10.6 with XCode 3.2.1, while compiling ffmpeg with software scaling (libswscale):

32-bit absolute addressing is not supported for x86-64
then you need to pass
--arch=x86_64 
to "configure"

Cheers,

-Adam