Uptime
# w
2:51pm up 852 day(s), 18:35, 2 users, load average: 0.77, 0.61, 0.33
# init 0
I guess this is a record. I was afraid the server would reboot with fsck errors, but it came back online without a glitch. This is a Netra server running Solaris 7. My heart bleeds every time I must do this, but patching is a necessary thing...
Aaarghhh
Aaarghh ! The Aargh Page is a visual representation of the relative frequencies of aarghh. The number of ways one can write aaarghhh is aarghuable, off course. Would there be other words written like that ? Hmmmm...
Plooiwerk
Het wordt ondertussen aftellen naar het huwelijksfeest. Nog een kleine maand te gaan, en ondertussen is zowat alles geregeld. De misboekjes zijn gekopieerd, en het zelf plooien en nieten van zo'n 60 boekjes is toch wat meer werk als gedacht. Ook het noteren van wie nu komt naar de receptie en naar het avondfeest is een dagelijkse bezigheid geworden.
Net terug ook van de Lovers4ever trouwbeurs in de Mechelse Nekkerhal; de bedoeling was om wat meer adressen te krijgen voor de trouwringen, en de huwelijksreis, maar de beurs zelf was door zijn kleine opzet een beetje een ontgoocheling. Allee, we hebben toch een afspraak met een goudsmid deze week, maar qua trouwringen is het toch lastig kiezen. Niet moeilijk, als je weet dat de meeste trouwringen zo'n lelijk bladnerfmotief dragen tegenwoordig.
Net terug ook van de Lovers4ever trouwbeurs in de Mechelse Nekkerhal; de bedoeling was om wat meer adressen te krijgen voor de trouwringen, en de huwelijksreis, maar de beurs zelf was door zijn kleine opzet een beetje een ontgoocheling. Allee, we hebben toch een afspraak met een goudsmid deze week, maar qua trouwringen is het toch lastig kiezen. Niet moeilijk, als je weet dat de meeste trouwringen zo'n lelijk bladnerfmotief dragen tegenwoordig.
How do I REALLY delete a file ?
Do you know that deleting a file really doesn't delete the file content on your disk ? In Unix, a file delete (rm) unlinks the inode, but doesn't actually zero-out the data blocks associated with the file. How can you really destroy the contents of a file? What if you're doing a rm -r of hundreds of files? Deleting files on disk-level can be very interesting if you have highly sensitive data on your disks. Many people who are using Unix know GNU shred, but the docs state "that shred relies on a very important assumption: that the filesystem overwrites data in place." This is the traditional way to do things, but many modern filesystem designs [such as Solaris' UFS] do not satisfy this assumption. ZFS is even trickier, as it uses Copy On Write, so overwriting data actually never happens !
I'll present some ways of deleting data on your disks.
I'll present some ways of deleting data on your disks.
- The safest option for really deleting a file is to remove the hard drive and physically destroy it. While I relish the thought of beating Sun equipment with hammers, actual physical destruction of hardware is not always an option. Your employer may have very specific policies that must be followed.
- If you have a degausser laying around, you could degauss the disks. In addition to wiping the contents of the platters themselves, degaussing can render the drives unusable by destroying timing tracks, server motors, and spindle
motors. Spectrumwest.com had some interesting details.
- Low-level formats :
This approach assumes you want to delete an entire disk drive or at least an entire file system. These could not be used to target specific files while leaving the rest of the file system intact. Definately worth including though: Sun Blueprint scrubbing disks.
- Alternatives :
Repeatedly format > analyze > [purge
Overwrite raw device with something such as:
dd if=/dev/zero of=/dev/rdsk/c#t#d#s#
- Fill up the file system :
A safe way of cleaning a drive is to delete all the files/data we wanted destroyed. Then, fill the file system with junk. One problem with this approach is that it assumes we already know ALL of the sensitive files that should be deleted and don't forget one. Unless all of your sensitive data is positively stored in a known area, you risk leaving a file alive by mistake.
a. Remove all files of interest.
This will leave disk blocks on the free list which may contain some data that you'd rather not see leave your custody.
b. AS ROOT, run this on each filesystem where the files from (a) used to live:
yes > junk
and let it run until the filesystem is completely full. Why "as root"? Because the last 10% of the actual free space on each filesystem is reserved for root. (See "tunefs".) This allows root user to manipulate the filesystem and recover from some space exhaustion problems -- even when the filesystem appears to be "full" from the viewpoint of end users.
c. Of course, "yes > junk" is rather simple-minded and relatively slow - something that did block writes would run a heck of a lot faster. So for example, you might want to use something a notch more sophisticated, along these general lines:
touch junk
while (1)
dd if=/some/big/file/full/of/crud bs=20k >> junk
end
to do 20K writes. This should run considerably faster, and of course you could also do your variant of this with shell, perl, C, python, whatever you wish. The general idea though, is that you want to force the system to allocate every (currently) free block so that you can scribble on it. This should put recovery of the data beyond the ability of most people.
Handsome Blogsome
I reworked the main site of this domain, which serves as a memo board for my family members. Previously, the site was generated on a local copy of Postnuke, from which I generated static html pages. There was a time in the past that I enjoyed created websites from bare HTML, but that time is long ago. It revived shortly when I discovered the joy of CSS, but I still hate digging into HTML and Javascript code, and besides, getting IE to render code 'correctly' is such a drag anyway.
Unfortunately, I cleaned up my old computer a bit too thoroughly, when I removed the Postnuke database. So I tried to set up a recent Postnuke version on my new PC, but apparently Postnuke doesn't play well in a modern LAMP enviroment (Apache2, PHP5, ...). Postnuke seems a dead rotten corpse too, if you're searching for some decent themes, so I knew I had to abandon this crapware. I tried Blosxom, but that hasn't decent theming support, and I still didn't want to create a new theme myself, as it meant diving into HTML again.
So I decided to give up serving webpages myself, and to create a weblog on a blog provider. Skynetblogs seems to be sunken in a pool of advertisements, so I created the whole bunch on Blogsome, which uses Wordpress to serve content. Looks good, albeit a bit slow. I had to debug the 'Happy Birthday' calculator, as it seemed that it was ridden with Y2K bugs in Internet Explorer. (or IE would be stricter in processing Javascript code, which wouldn't surprise me).
Unfortunately, I cleaned up my old computer a bit too thoroughly, when I removed the Postnuke database. So I tried to set up a recent Postnuke version on my new PC, but apparently Postnuke doesn't play well in a modern LAMP enviroment (Apache2, PHP5, ...). Postnuke seems a dead rotten corpse too, if you're searching for some decent themes, so I knew I had to abandon this crapware. I tried Blosxom, but that hasn't decent theming support, and I still didn't want to create a new theme myself, as it meant diving into HTML again.
So I decided to give up serving webpages myself, and to create a weblog on a blog provider. Skynetblogs seems to be sunken in a pool of advertisements, so I created the whole bunch on Blogsome, which uses Wordpress to serve content. Looks good, albeit a bit slow. I had to debug the 'Happy Birthday' calculator, as it seemed that it was ridden with Y2K bugs in Internet Explorer. (or IE would be stricter in processing Javascript code, which wouldn't surprise me).
Movie quotes
Mr. Brown : I'm talking morning, noon, and night. Dick, dick, dick, dick, dick, dick, dick.
Mr. Blue: How many dicks is that?
Mr. White : A lot.
This gem, along others, can be found on the movie quotes database.
Mr. Blue: How many dicks is that?
Mr. White : A lot.
This gem, along others, can be found on the movie quotes database.
Undocumented features
As seen on Planet grep : Undocumented features, a geek humorous story. It's not Douglas Adams, but surely worth a giggle.
Machiavelli
At Christmas' Eve, my sister had an interesting game with her : Machiavelli. It's a card game a bit like a crossing between The Colonists of Catan and Magic, The Gathering. The goal of the game is to build the largest city. In game terms, this translates to playing 8 district cards. Every cycle, a player selects one character from the 8 character cards, every one with it's own abilities.
The replay value seems tremendous, and the game has different add-on packs, each introducing new characters, new buildings, and hours of fun.
The replay value seems tremendous, and the game has different add-on packs, each introducing new characters, new buildings, and hours of fun.
The printer curse
I don't know what I have with printers, or better : what printers have against me. All the deskjet printers I had, never kept up longer than two years. So the last printer I got, was a second-hand HP laser printer, which would last longer, I hoped than its predecessors. Vain hope, it seemed : after two years, this one also died.
So now I decided to buy a new laser printer, a Samsung ML-1610. I wonder how long I will be able to use this baby...
Installing a printer under Linux has become a breeze - relatively spoken - with CUPS : the printer wasn't available in the default CUPS list, but a search on linuxprinting.org revealed a ML-1710 driver, which I copied to /usr/share/cups/model/. Works great.
So now I decided to buy a new laser printer, a Samsung ML-1610. I wonder how long I will be able to use this baby...
Installing a printer under Linux has become a breeze - relatively spoken - with CUPS : the printer wasn't available in the default CUPS list, but a search on linuxprinting.org revealed a ML-1710 driver, which I copied to /usr/share/cups/model/. Works great.
Dictee
Nog eens meegedaan aan het groot dictee der Nederlandse taal; aartsmoeilijk deze keer, maar wel gelukkig met de oudere spelling. Dat had blijkbaar geen invloed op de algemene trend : Vlamingen scoren beduidend beter dan Nederlanders die een gemiddelde halen van 44 fouten. Petje af voor de winnares (Vlaming, natuurlijk) met een uitstekende score van slechts 4 fouten. Zelf deed ik het redelijk goed gezien de moeilijkheidgraad, met een 35tal fouten. Martine deed het iets slechter met 48 fouten, wat haar de onsterfelijke uitspraak ontlokte : "Ik ben verdorie nog stommer dan een Hollander !" :))