Archive for the 'GNU/Linux' Category

Remote backups with rsnapshot

Tuesday, April 27th, 2010

I’ve previously used rdiff-backup to do remote backups of my Debian servers, but for whatever reason they tend to fail and I don’t learn about the problem soon enough and I needed a new solution. Enter: rsnapshot.
Install rsnapshot on both the remote machine and the backup server:
apt-get install rsnapshot

Save yourself a copy of the default [...]

Installing a Rich Text Editor in Drupal

Monday, November 23rd, 2009

This was harder than it should have been as the instructions could be clearer that two separate downloads are required. I’ve summarized here:
I assume you have ssh or command line access to your host. If not, you could accomplish the same thing using ftp, but you’ll have to pay attention to what directory you upload [...]

Rebuilding Software RAID Array on Debian

Monday, October 19th, 2009

I don’t know why I always forget this command, or why it is so hard to discern from the man page / –help information. I just had my drives in an existing RAID array get out of sync and needed to rebuild the one that was down. This did the trick:
mdadm /dev/md0 -a /dev/sdb1
This is [...]

Convert .mp4 from Flip Video to Ogg Theora .ogv

Sunday, May 17th, 2009

The Flip Video UltraHD camcorder records files in a .mp4 format. I wanted to convert them to Ogg Theora format. How do you do that? I did far too much searching for an answer to this question for the answer to be this easy:
apt-get install ffmpeg2theora
and then:
ffmpeg2theora vid00001.mp4
That outputs a file called [...]

New whitehouse.gov video requires proprietary Adobe Flash player

Wednesday, March 4th, 2009

Privacy activists rightly complained about whitehouse.gov’s use of YouTube videos for President Obama’s weekly addresses, as it allowed a private third-party company to use cookies to track visitors to a government web site. The whitehouse.gov site appears to have responded to these complaints but in so doing has adopted a flash format that is [...]

Boot from either disk of a RAID1 Mirror

Wednesday, January 14th, 2009

I always forget this series of commands and have trouble locating them. After setting up a RAID1 mirror set, I want to be sure I can boot off of either drive in case of a drive failure. Assume two SATA drives, /dev/sda and /dev/sdb. The first will be set up during the [...]

Script to Convert Windows-1252 files to UTF-8

Friday, December 12th, 2008

I had several hundred (over 1000) HTML files in a directory. They were unfortunately encoded in Windows-1252 and I wanted them all converted to UTF-8, but I was not willing to open the files one by one or feed their names to a script (there’s too many) so I needed a script that would [...]

Debian on the Openmoko Neo FreeRunner

Friday, August 15th, 2008

It was inevitable. One can now run the entire Debian distribution (ARM port) on the Openmoko Neo Freerunner. Slashdot previously covered the July 4th launch of this GNU/Linux-based smartphone, which is open down to its core, with the company providing CAD files and schematics for the phone. Openmoko released an update to [...]

History of SCO (funny)

Friday, May 25th, 2007

I wrote an article that, in part, explained the SCO v. IBM lawsuit up to that point in time. That wouldn’t have been necessary had this history of SCO been around. Too funny.

Multiple WordPress blogs on a Debian server

Saturday, April 7th, 2007

This HOWTO assumes:
1. You have a server running at least Debian Etch (or are otherwise able to install the wordpress .deb).
2. Your server has Apache 2, MySQL, and PHP installed.
3. You want to use a single WordPress installation to host multiple blogs across several domains.
Ok, let’s get started.
Step 1: # sudo apt-get install wordpress
Handle a [...]