posted at: 13:39 | path: /linux | permanent link to this entry
What is the deal with the opaque Smartmontools syntax? Couldn't they have done better than the following:
# First (primary) ATA/IDE hard disk. Monitor all attributes, enable # automatic online data collection, automatic Attribute autosave, and # start a short self-test every day between 2-3am, and a long self test # Saturdays between 3-4am. /dev/hda -a -o on -S on -s (S/../.././02|L/../../6/03)
Here's a clue, guys. Make it something easier to understand. How about something like this:
device: /dev/hda data_collection: online attribute: autosave (etc, etc)
posted at: 19:05 | path: /computitude | permanent link to this entry
router vm_network inface eth0 dst 1.2.3/24 policy acceptWhere:
posted at: 16:53 | path: /linux | permanent link to this entry
I didn't like any of the existing iTunes-based alarm clocks out there, so I made my own. The features:
To use it, you will need to:
posted at: 07:51 | path: /computitude | permanent link to this entry
posted at: 11:06 | path: /outdoors_man | permanent link to this entry
Of the various ticketing systems I've used (RT, Mantis, custom-built), they all had two significant flaws:
posted at: 17:19 | path: /computitude | permanent link to this entry
Recently my internet connection has become increasingly erratic. Lately I've been seeing dropped internet connections every 10-30 minutes. Very annoying. Verizon is sending out a replacement router; good on 'em!
Meanwhile, I was thinking about setting up my old SMC to tide me over. Just one problem: I need the PPOE user name and password. I don't know what they're supposed to be. So while I was talking to tech support about the router, I also asked about the PPOE user name and password. It turns out you can put anything in these fields that you want!
So if you have a Verizon router, and are futzing with it, and it is using PPOE with a user name and password, just put whatever you want in those fields. Note that I haven't actually tried this yet.
posted at: 13:17 | path: /computitude | permanent link to this entry
posted at: 10:35 | path: /linux | permanent link to this entry
posted at: 09:25 | path: /net_addict | permanent link to this entry
At the Library we transfer large numbers of files in "batches" to different servers using rsync. The machines we do this on sometimes suffer from interrupted network connections, which causes the rsync to give up and fail. No problem, just retry the rsync, right?
Well, there are a few annoying problems with this approach: since the batches contain thousands of files, rsync has to go through each existing file and re-verify it. Also, the rsync has to be manually restarted. Others have asked about this multiple times, but I found no solutions to both problems.
It would be nice if rsync supported various graceful resolution options for these types of failures. Since it doesn't, and I don't want to wade through the rsync code to patch it, I wrote a simple perl wrapper script around rsync instead. It does the following:
I have posted the rsync retry script here in the hope that it will be useful for someone else encountering the same problems. It is invoked thus:
rsync_retry.pl rsync --log-file=rsync.log --exclude-from=rsync_exclude.txt <rest of rsync command>
Some notes:
Hacks/comments welcomed!
posted at: 11:23 | path: /computitude | permanent link to this entry
posted at: 19:17 | path: /net_addict | permanent link to this entry
So, I see this in my logs recently:
"Device: /dev/sdb, 2 Offline uncorrectable sectors"
Apparently Smartd notices something amiss with the drive.
Point 1: Why doesn't Smartd consider this an error condition? And if not, why should it even notify me? Should I be worried? No authoritative answers to be found on Google. Could you Smartd people please make a FAQ?
Point 2: OK, so I guess I'll consider this an error worthy of fixing. So how do I fix it? Google gives some possible answers (again, FAQ, O Smartd uber-geniuses?), such as the Bad Block HowTo. But... 3 pages of tests/mitigations? Come on guys, make it easy for me. Most of this stuff is scriptable, so please, can you make a script/utility for me?
posted at: 11:15 | path: /linux | permanent link to this entry
If there's one thing I love about Ubuntu (and Debian, to a certain degree), it is the packaging system, which "just works". Having used Windows, OS X, FreeBSD, Solaris, Red Hat Linux, Gentoo Linux, Suse Linux, etc, it is the one thing that coddles sysadmins the most. Only in Ubuntu/Debian can I set up a server, install what I want from the packaging system, and then easily ensure all the installed software has the latest security patches. I have seen no other system that does all of this from one, easily-scriptable place.
I have been able to use this to my advantage at the Library to:
I have thus automated many tedious steps and saved loads of time. The only thing I as an admin have to do, is choose which updates to apply, whether they should be applied now or in the future, and then update a text file. No other available OS can do all of these things in such a simple, non-interactive way.
posted at: 09:30 | path: /linux | permanent link to this entry
So I just heard the news that DC Metro is going to be doing random bag searches at entrances to Rail/Bus facilities. Surreal. What part of the 4th amendment do they not understand: "The right of the people to be secure in their persons, houses, papers, and effects, against unreasonable searches and seizures, shall not be violated, and no Warrants shall issue, but upon probable cause, supported by Oath or affirmation, and particularly describing the place to be searched, and the persons or things to be seized."
No probable cause, unreasonable search of effects. I am astounded by how far we in the US have strayed from the constitution.
I submitted a complaint at the Metro feedback page. If you care about your liberty, I suggest you do the same.
posted at: 10:02 | path: /philosophy | permanent link to this entry
posted at: 08:48 | path: /wacko | permanent link to this entry
posted at: 13:34 | path: /linux | permanent link to this entry
posted at: 14:44 | path: /linux | permanent link to this entry
posted at: 17:55 | path: /computitude | permanent link to this entry
posted at: 00:32 | path: /coding | permanent link to this entry
I was looking for decent architecture software for over a year, and eventually stumbled upon Google's Sketchup. It works on Mac/Win-doze. I really like this piece of software!
I've been talking to a contractor about expanding my house, and after using Sketchup I was able to skip the whole architect step, saving considerable time and money. I'll still need a structural engineer and drafter of course.
Benefits:
Drawbacks:
With that said, here's my house plan. This will change as I update it.
posted at: 10:04 | path: /computitude | permanent link to this entry