Archive for January, 2007

Google Code Project Homes

I recently setup Nexista as a new Google Code project, and I’m surprised by the fact that you can’t delete files that you upload for download. I guess its a good thing overall, but it seems a bit extreme. They should at least make this highly visible to developers uploading new files.

ethtool and route

Couple of quick notes on networking:

ethtool

Ethtool is the best tool in my opinion for editing network hardware settings. For example:

ethtool -s eth1 autoneg off speed 100 duplex full

That will turn off autonegotiation, and set the speed to 100, full duplex.

route

For linux networking, route is the tool for setting up routing tables.

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.1     192.168.0.1     255.255.255.255 UGH   0      0        0 eth1
192.168.0.0     *               255.255.255.0   U     0      0        0 eth1
64.25.86.0      *               255.255.255.0   U     0      0        0 eth0
default         64.25.86.81     0.0.0.0         UG    0      0        0 eth0
route add -host 192.168.0.1 gw 192.168.0.1

Bad Behaviour




Trying out the Bad Behaviour plugin from ioerror:

http://www.bad-behavior.ioerror.us/

This works well, but I did run into one problem wp-cron.php and bad behaviour not getting along.

But, as I commented there:

Oh wait – you can just add you ip to the whitelist.php in the bad-behavior folder. Cool.

Duplicity Error

Traceback (most recent call last):
  File "/usr/src/duplicity/duplicity-bin", line 373, in ?
    if __name__ == "__main__": main()
  File "/usr/src/duplicity/duplicity-bin", line 366, in main
    if not sig_chain: full_backup(col_stats)
  File "/usr/src/duplicity/duplicity-bin", line 142, in full_backup
    bytes_written = write_multivol("full", tarblock_iter, globals.backend)
  File "/usr/src/duplicity/duplicity-bin", line 91, in write_multivol
    tdp.delete()
  File "/usr/src/duplicity/duplicity/dup_temp.py", line 92, in delete
    path.DupPath.delete(self)
  File "/usr/src/duplicity/duplicity/path.py", line 468, in delete
    else: os.unlink(self.name)
OSError: [Errno 2] No such file or directory: '/tmp/tmpUzWvD3'

This results in:

Warning, found incomplete backup sets, probably left from aborted session

which isn’t cool.