See recent comments. RSS feed of all comments. Raw dump of all comments for research purposes.
ImageMagick book
MythTV book
|
 |
|
 |
|
If you're interested in what patches I have submitted, and their status, then you really should be looking at this page.
|
|
|
|
|
 |
|
 |
|
Sun, 31 Aug 2008
|
|
|
|
|
 |
|
 |
|
Mon, 18 Aug 2008
|
|
|
|
|
 |
|
 |
|
Sat, 16 Aug 2008
|
|
|
|
|
 |
|
 |
|
Nelson wonders why you sync twice on shutdown. I was told in a BSD kernels class run by Kirk McKusick once that the answer is because typing the second iteration gave the machine time to actually push the bits to disk. In other words, there was no good software reason.
Tags for this post: linux( )
posted at: 12:26 | path: /linux | permanent link to this entry
|
|
|
|
|
 |
|
 |
|
Sun, 06 Jul 2008
|
|
|
|
|
 |
|
 |
|
I have a fancy Logitech 2 megapixel auto focusing webcam which uses the UVC USB class. The camera is well supported by the linux kernel (via the uvcvideo) module, but for some reason there still seem to be very few video4linux2 user space programs out there. Not even my own ancient code for video4linux works. So, before I have to go and port my code to v4l2, does anyone have a recommendation for a command line tool which will capture single frames from a UVC webcam for me?
Tags for this post: linux( )
posted at: 23:55 | path: /linux | permanent link to this entry
|
|
|
|
|
 |
|
 |
|
Sat, 03 May 2008
|
|
|
|
|
 |
|
 |
|
I tend to have lots of ssh tunnels running with port forwarding on my laptop. The problem with that is that there are of course different host keys for localhost then. That makes me sad. Luckily, the following config option disables host key checking for localhost:
$ cat /home/mikal/.ssh/config
NoHostAuthenticationForLocalhost yes
Too easy.
Tags for this post: linux( )
posted at: 11:38 | path: /linux | permanent link to this entry
|
|
|
|
|
 |
|
 |
|
Thu, 01 May 2008
|
|
|
|
|
 |
|
 |
|
I'm using Ubuntu here, but this would work on any Debian based distribution... I want to find out what packages are sucking up all the disk on my new laptop. So, I run:
mikal@mikal-eee:~$ dpkg-query -W --showformat='${Installed-Size} ${Package}\n' | sort -n
Which will give you a list of packages sorted by size when installed. In my case, removing evolution and open office ill make a big difference to my free disk space.
Tags for this post: linux( ) ubuntu( )
posted at: 16:42 | path: /linux/ubuntu | permanent link to this entry
|
|
|
|
|
 |
|
 |
|
Sat, 29 Jul 2006
|
|
|
|
|
 |
|
 |
|
Tue, 25 Jul 2006
|
|
|
|
|
 |
|
 |
|
Sun, 19 Mar 2006
|
|
|
|
|
 |
|
 |
|
I upgraded to Dapper Drake flight 5 (the beta of the latest Ubuntu) today in order to get the on board USB controlled in my
difficult
Dell
media center PC
working nicely. It worked, and all is now well.
There were some warts in the install though. I installed with a dist-upgrade remotely over ssh, and the machine locked up at the updating PCMCIA stuff point. The box then wouldn't boot, I suspect because the initrd was horked. On boot there were errors finding the disk the root filesystem is on.
So, I downloaded the Dapper install CD, booted in rescue mode, chrooted to /target (where I had mounted the root filesystem from the machine), and ran dpkg -configure -a. All is now well again.
Oh, and the USB controller works just fine now thanks.
Tags for this post: linux( )
posted at: 22:03 | path: /linux | permanent link to this entry
|
|
|
|
|
 |
|
 |
|
Fri, 16 Dec 2005
|
|
|
|
|
 |
|
 |
|
When I created my USB2 mirrored LVMed disk array I go asked a few questions about performance of the disks, how long it took to setup, and stuff like that.
At the time it was too late to get that data as I already had things I cared about on the disk array. Now it's time to grow the array so I've picked up two more disks. I've collected some data, so I now have data on the setup process for a new LVM from two USB 2 disks, and bonnie results for the filesystem on those disks. I don't have the date with me though, so I will write it up in the next few days.
Is there anything else people would like to know before I put these disks into action?
Oh, and yes this does mean that there is now a terrabyte of disk in that array. That brings the total amount of storage I have online at my house to 1.2 terrabytes. That doesn't include the old disk array still running in Australia either. Fun fun fun.
Tags for this post: linux( )
posted at: 09:28 | path: /linux | permanent link to this entry
|
|
|
|
|
 |
|
 |
|
Thu, 24 Nov 2005
|
|
|
|
|
 |
|
 |
|
sed: can't read /etc/inetd.conf: No such file or directory
This first error is because of this poorly implemented test:
# The init script should do nothing if dovecot is being run from inetd
for p in `sed -r "s/^ *(([^:]+|\[[^]]+]|\*):)?(pop3s?|imaps?)[ \t].*/\3/;t;d" \
/etc/inetd.conf`
do
for q in `sed -r "s/^ *protocols[ \t]*=[ \t]*(([^\"]*)|\"(.*)\")/\2\3/;t;d" \
/etc/dovecot/dovecot.conf`
do
if [ $p = $q ]; then
exit 0
fi
done
done
You can see from the comment that the intention is that the init script doesn't do anything if dovecot is running from inetd. The error message is kinda bogus though, in that the code keeps executing after that failed line with the sed call in it. If you find the error annoying, then make it go away:
touch /etc/inetd.conf
In a perfect world, you'd hope that the packager would change the script to do something more like this:
for p in `sed -r "s/^ *(([^:]+|\[[^]]+]|\*):)?(pop3s?|imaps?)[ \t].*/\3/;t;d" \
/etc/inetd.conf 2> /dev/null`
Moving right along...
It doesn't start the service
I had enabled the imap_listen variable in the dovecot.conf file, but not put it in the protocols variable. The init script checks this, and bugged out without an error message. I would think an error message would be nicer.
And now it works.
Tags for this post: linux( ) ubuntu( )
posted at: 20:40 | path: /linux/ubuntu | permanent link to this entry
|
|
|
|
|
 |
|
 |
|
I've been working with publishing people recently, and they're all Macintosh users. There is a trial version of Stuffit expander for linux, but they really want me to give them money after 15 days... I've googled for an open source alternative, but can't find one. Is that because one doesn't exist?
Tags for this post: linux( )
posted at: 14:30 | path: /linux | permanent link to this entry
|
|
|
|
|
 |
|
 |
|
Wed, 23 Nov 2005
|
|
|
|
|
 |
|
 |
|
Sun, 13 Nov 2005
|
|
|
|
|
 |
|
 |
|
I've got two USB high speed disks. If I plug them into the machine with the Via 6202 PCI controller before boot, they get detected as full speed (i.e. slow) devices. If I plug them in later, they get detected as high speed devices.
But md only detects devices at boot.
So, how do I get the USB detection to work? Or, how do I detect md's after boot?
Tags for this post: linux( )
posted at: 02:07 | path: /linux | permanent link to this entry
|
|
|
|
|
 |
|
 |
|
Sat, 12 Nov 2005
|
|
|
|
|
 |
|
 |
|
One thing I didn't think about when I set up my new disk array is that SMART doesn't seem to be available on USB storage provided disks. I've just had a disk hiccup while getting ready to move it all to the US, and now I'm trying to investigate why. SMART would make that a lot easier. At this point I suspect that it's the USB storage layer, not the disk, which is having problems.
Tags for this post: linux( )
posted at: 00:27 | path: /linux | permanent link to this entry
|
|
|
|
|
 |
|
 |
|
Fri, 11 Nov 2005
|
|
|
|
|
 |
|
 |
|
lvextend -L+6G /dev/data/datalv
e2fsck /dev/data/datalv
resize2fs /dev/data/datalv
Very nice.
Update: Fixed the command line above to be correct. Additionally, I had some troubles with the fsck eating all of the RAM on the machine (it didn't have much), and I've had to add more RAM to the machine to get the commands above to work.
Tags for this post: linux( )
posted at: 21:21 | path: /linux | permanent link to this entry
|
|
|
|
|
 |
|
 |
|
Tue, 25 Oct 2005
|
|
|
|
|
 |
|
 |
|
I have an opportunity to build a new disk array for when I move house. I made a few mistakes when I built the last one (although perhaps they were because it was the best that could be done at the time), and I don't intend to repeat those mistakes. I put out a call for suggestions a little while ago, and now I've built an array I'm pretty happy with. Let's walk through it.
First off, let's start with a reminder of the requirements. Here's what I said in the previous post:
- Reliable: be that mirrored or RAIDed
- Expandable: I want to be able to drop in a new disc when I run out of space. I don't mind needing to add two identical discs if that makes point 1 easier
- Rethingable: I want to be able to remove unreliable discs from the set. If there are paired discs, then I can handle having to cycle out both at the same time.
- Non-sucky
The hardware
I now have two identical USB 2.0 external hard disk enclosures, each with a 250gb Seagate Barracuda drive in it. I picked USB 2.0 because I want the disks to be easy to move, and I picked external enclosures in the hope that this would ruggedize the disks for the trip to the US just a little. They'll be travelling in my carry on luggage.
The mirroring
Both of the disks are part of a MD mirror pair, and I must say that MD is a lot nicer than last time I played with it. Here's all I needed to do to set it up (sdb2 and sdc2 are the partitions with the MD on them):
mdadm --create /dev/md1
--raid-devices=2
--spare-devices=0
--level=1
/dev/sdb2 /dev/sdc2
mdadm --detail /dev/md1
No config files in /etc like you used to. No need to do more configuration. It just works. What happened to the first partitions on the discs? They're each an 8 megabyte FAT partition with nothing in it but a meaningful name. This is so that I can tell which disk is which no matter what if they end up falling out of their labelled cases or something.
So, we have redundancy... Let's make it expandable and shrinkable
Then I used LVM to create a volume group and a logical volume on md1, which is where I will store the data. This is so I can expand and shrink the filesystem as my storage needs grow and disks fail. I currently get a disk failure per year with the current disk array (which is currently four disks), and I currently consume a little over 230gb. Yes, I know I'm going to need to buy more disk real soon, but I thought I would wait until I am in the US.
Creating the LV:
pvcreate /dev/md1
vgcreate data /dev/md1
lvcreate -L<size> -ndatalv data
vgdisplay data
mkfs -text3 /dev/data/datalv
And we're done. Any comments?
Tags for this post: linux( )
posted at: 00:49 | path: /linux | permanent link to this entry
|
|
|
|
|
 |
|
 |
|
Thu, 15 Sep 2005
|
|
|
|
|
 |
|
 |
|
Sun, 04 Sep 2005
|
|
|
|
|
 |
|
 |
|
I wondered why the Gnome screen resize doodad has disappeared until just now, when I added it back in and was told that my X Server doesn't support screen resize. This must have happened when Debian Unstable went from X11 to X.org. It makes me a little sad... Is there a simple twiddle in X.org to make it all work again?
Tags for this post: linux( )
posted at: 18:14 | path: /linux | permanent link to this entry
|
|
|
|
|
|