May 20, 2005
Resizing LVM2 physical volumes
People keep running into situations where they’ve grown a block device (by repartitioning or md-fiddling) and want to grow the LVM2 physical volume on that device. Once when I wanted to do this, I managed to find a post to the linux-lvm mailing list explaining how to resize an LVM2 physical volume given that LVM2 has no pvresize. I’ve blogged it here so that I don’t have to remember the exact search terms to find it again, and hopefully Google will find it too and help others in the future.
May 14, 2005
Sigh
As a result of viewing an over-large jpg in Gimp, I ran out of disk space on ~ today whilst I was fiddling around trying to ssh to localhost and X forward something so I could run ethereal on lo and see what it was doing. The upshot of this was that my X auth cookies got munched when ssh tried to fiddle with them, so I was unable to open any new X clients and was forced to restart my session, so decided to try and make X listen on tcp to avoid the ssh hassle. In the process, I discovered two things:
- Editing
/etc/gdm/gdm.confto remove-nolisten tcpfrom the X server command line is apparently not sufficient - it adds it on the end of the line anyway. I had to useXnestin the end. - Rhythmbox has a thread which saves your playlists into an XML file. It makes a temporary filename, calls xmlSaveFormatFile to write the playlist to the temporary file, and then renames the temporary file to the original one, with absolutely no regard as to whether or not the previous function worked or not. So I’ve lost all of my Rhythmbox playlists. Again. One RC bug coming up.
Sigh.
Update: When going to update my todo list, I discovered that stickynotes-applet ate it. I am unamused. Rather than the active idiocy of making a temporary file and failing to check if it was successful before clobbering the original (did someone get distracted when writing that? a bee came into the room?), this is just sheer idleness. It fails to make a temporary file at all and just unleashes the same xmlSaveFormatFile on the only existing copy of all of your notes, giving me my 2nd RC bug of the day. Marvellous. Just because it says xml doesn’t mean it can never fail. I’m not trying to find them, they’re forcing themselves on me. Sorry, but there’s just no excuse for throwing my data away like that.
May 12, 2005
Scowl
Recently I received a pleasant package of forms and information from college about graduation. One of them is a pleasant reminder that if I owe any money to college by the (previously unheard of) Friday 5th June 2005, I will be removed from the list of graduands. Given that my last bill was £3,300 greater than what it was supposed to be, because my LEA lost my original student support application, so I submitted a replacement application over two weeks ago, and have heard nothing since. I phoned them today and they checked on their computer system, had a wander round the office, and assured me that the last they’d heard from me was my form for last academic year. They then went on to blame me for probably not putting enough postage on when I handed the fucking form in at a post office, and they weighed it and charged me the appropriate amount of postage. So now I have to fill out and send them another of their stupid forms (taking no chances - recorded delivery this time). Thanks guys, it’s not like I have enough to worry about with my dissertation being due in 8 days time.
On the up side, I rewrote half of the code between Monday and Wednesday, meaning it’s 1500 lines shorter, but has the benefit of actually working now. As a consequence, I also have a lot more to write about (testing it, demonstrating it works, why the first one didn’t work, etc) rather than something which is a poor reimplementation of strace. On the down side, you get no marks for the code, so I’d better get back to the writing about it. Yay.
May 3, 2005
Seven Gummie Sins
Spotted this link on IRC, a series of photos on flickr which depict the Seven Gummie Sins. Just thought they were really cool.
May 2, 2005
Pwned!
Was helping a friend with his Debian box, he thought he had some filesystem corruption after an unclean shutdown, so we booted from a live CD and unpacked coreutils into /tmp/asdf and started replacing the corrupted files including /bin/ls which was segfaulting. Then set about doing the usual dpkg -l | grep ^ii | awk to get a list of packages to reinstall, but then ls started segfaulting again, and grep got Aborted. Hmmm…
livecd:~# /tmp/asdf/bin/cp /tmp/asdf/bin/ls /bin livecd:~# /tmp/asdf/bin/ls -la /bin/ls /tmp/asdf/bin/ls -rwxr-xr-x 1 root root 75948 Apr 29 16:20 /bin/ls -rwxr-xr-x 1 root root 75948 Jul 16 2004 /tmp/asdf/bin/ls livecd:~# grep Usage: grep [OPTION]… PATTERN [FILE]… Try `grep –help’ for more information. livecd:~# /tmp/asdf/bin/ls -la /bin/ls /tmp/asdf/bin/ls -rwxr-xr-x 1 root root 80611 Apr 29 16:20 /bin/ls -rwxr-xr-x 1 root root 75948 Jul 16 2004 /tmp/asdf/bin/ls livecd:~#
Pwned! Turned out to be unstable from about February 2004 with kernel 2.4.22… aaargh. Gave him Ubuntu so that he gets a little pop-up icon when there’s security updates to install in future, and he’s very pleased with it. Might try and do some forensics later, but in the meantime I’ve got some dissertations and finals to stress about for the next month.
Of course, I managed to find time to sponsor a shiny new unison 2.10.1 package, complete with long-overdue Gtk2 support, coming soon to a mirror near you. The old 2.9.2 version is now provided in a unison2.9.2 package for compatibility with woody systems.
If anyone wants to help woody to sarge upgrades for Gaim users by forward porting the ability to import at least your IM accounts from old .gaimrc files, which was removed in Gaim 0.7x-ish, please let me know. I don’t really have time to dedicate to doing it right now.
April 24, 2005
Things that just don’t work
I’m getting increasingly annoyed with quirks in Rhythmbox’s UI and don’t have enough patience to track them down and patch them by bumbling through the strange bonobo hoops and layers of object abstractions they’ve used at every stage to implement what is at first glance not that hard a problem (although as a disclaimer, I don’t really appreciate the issues involved, it just *seems* highly overcomplicated). I had a browse around for some other music library program for GNOME, and found Sonance, which is fully buzzword enabled with C#, Glade and GStreamer, and initially started as an XMMS-type queue songs and play them thing, but looks in SVN trunk to have grown into a program that quite resembles Rhythmbox’s UI for a music library, but might grate less initially and be much easier to hack. Worth a try at least, so I installed Mono 1.1.6 and Gtk# stuff from experimental (why do people insist on building packages in experimental against eg experimental’s libc? I’d have happily waited for that one to hit unstable), checked gst-sharp (the only remaining dependency) out of Mono CVS, and tried building it. The result?
robot101@alpha:~/projects/sonance/gst-sharp$ ./autogen.sh
**Warning**: I am going to run `configure' with no arguments.
If you wish to pass any to it, please specify them on the
`./autogen.sh' command line.
Running aclocal ...
Running autoheader...
Running automake --gnu ...
Running autoconf ...
configure.in:9: error: possibly undefined macro: PKG_PATH
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
**Error**: autoconf failed.
robot101@alpha:~/projects/sonance/gst-sharp$
The line in question just says PKG_PATH= to clear a variable before using it, and has been the same in gst-sharp CVS for about a year, so autoconf must’ve changed its mind about what’s allowable. As a consequence I’m unable to try Sonance or any other gst-sharp based programs such as Muine which I’d have also liked to try. Guess I have to stick with shouting at Rhythmbox for the moment. This awesome t-shirt suddenly becomes more tempting.
Update: Interesting. That *ERROR* actually meant it produced me a configure script anyway. Wow… cool.
April 19, 2005
Low-competence Education Authority (LEAs)
I’ve just been billed by my college for an extra £3300 of college fees which are supposed to be paid on my behalf by my LEA (Local Education Authority). They sent me a form to arrange this during last summer, some time around July, with a covering letter saying it was meant to be with them by 24th May or something. I sent it back to them by return of post, and they lost it. Hence, my college havn’t received the money so they’ve billed me instead. Curiously, my LEA did send me a letter earlier this year asking why I hadn’t submitted a form for this academic year, and so I phoned them and asked them to send me another. Which I’m now filling in so I don’t need to pay college, except for the fact they sent me a PHOTOCOPY of their STUPID PASTEL COLOURED FORM, making it practically illegible, mostly irrelevant to me, half in Welsh, DOESN’T MATCH THE ACCOMPANYING NOTES BOOKLET they sent me, and to top it off, IS REQUESTING EXACTLY THE SAME INFORMATION I GAVE THEM LAST YEAR AND THE YEAR BEFORE, AND THIS YEAR’S FORM IF THEY HADN’T LOST IT. FUCKING SORT IT OUT!
Update: Oh… this piss poor excuse of a photocopied form they sent me is the WRONG ONE, which is why it doesn’t match the notes they sent me along with it. EXCELLENT. SO VERY, VERY GOOD.
April 15, 2005
Debian Planet
NOTE TO THE SLEEPY: This post is about Debian Planet (founded 2000), not Planet Debian (founded 2004).
Sorry about the needless verbosity of the previous post. I’ll try keep this one shorter because I’d like some feedback on it. robster (who founded it) and I are essentially the only active staff of Debian Planet, and neither of us are able dedicate much time to it because we’re both kept busy with all manner of university-related stuff, both academic and not. It’s been suggested by some people within Debian that DWN and especially Planet Debian render it defunct and nobody reads it anyway. However, robster and I don’t really share this opinion - Planet Debian contains opinions, hacks, experiences, recipes and stuff that can be very interesting if you know the people involved, but really doesn’t necessarily perform the function of making Debian’s development more translucent to the outside world if you’re not on the mailing lists (although certain relevant blog posts can be highlighted, as DWN does). DWN seems to be aimed at a fairly technical audience who is generally aware of the projects’ internals but wants to keep up with day-to-day issues - it frequently includes stuff that’s not hugely relevant to the big picture unless you’re inside the project.
As far as we know there aren’t any other sites that are aimed at demystifying Debian for users, and with the advent of Ubuntu, depending on your viewpoint we stand to lose or gain (indirectly) many more users too, some of whom may take (or retain) an interest in Debian development (and we can cover Ubuntu too). The site does something in the region of 30 GB a month, a lot of this down to RSS feeds, so I’m sure articles that are posted actually do get read by quite a few people. Posts to the site itself asking if we should continue, and in what form, have prompted a surprising amount of positive feedback, and have been enough to dispel any ideas of closing down the site, although we’ve been quite lax at following up the resultant offers of assistance thus far (an ESR style list subscription of anyone who shows interest is exceedingly tempting).
What we’d like to do now is make it easier for other people to contribute (our editorial control has been an iron grasp thus far, with most articles being written or mostly rewritten by a very select few), and find some more people to help us out with keeping up with goings-on in the project, and we’ve also potentially got to find new hosting over the next few weeks. Are we misguided? Should we bother securing new hosting for the site and keep it going, or is it as needless as people say? Does anyone who’s reading this agree with our goals and want to help us out?
April 15, 2005
Today is not your day, tomorrow doesn’t look good either…
I’ve just been round at robster’s room helping him replace the AMD Sempron 3000+ which he had in his new Biostar 210V (similar to my 200V) and the BIOS apparently didn’t recognise. We put in an SB Live 7.1 because on-board VIA 82xx sound is crap (even if the planets are in alignment, DXS is in the right randomly numbered mode, and you manage to get ALSA and friends to do the appropriate resampling to 48kHz, it still sounds crap as a consequence - although do let me know if you know how to make it sound good), a 60GB HDD I had lying around while he’s waiting for CCL to replace or give him credit for his 2nd broken pair of HGST Deskstars, and swapped the Sempron for an AMD Athlon XP 2800+.
Unfortunately it was recognised by the BIOS as a 1250MHz processor or something… so I looked at the motherboard manual and found some jumpers to set the front-side bus speed. Firstly we were amazed it had jumpers (can’t BIOSes autoconfigure this stuff nowdays?), and secondly how the defauly setting was for a 100MHz FSB speed. The consequence was that the DDR400 RAM was running at DDR266 and the processor was running massively slowly. Setting the FSB to 166MHz made the processor and RAM run at the correct speeds, indicating that probably the Sempron would’ve worked anyway. Oh well, the Athlon XP is a better chip, and given the hassle with the actually broken hardware, CCL definitely won’t refund the Sempron if it’s not broken.
We set about installing Debian, really enjoying the partition manager in sarge d-i rc3, setting up LVM on degraded RAID arrays and such like, although it’s a shame that it falls back to crappy old lilo when installing on XFS root partitions. If sarge had a kernel where XFS wasn’t completely fucked, unlike 2.6.8, then the xfs_freeze/unfreeze hack in grub-install would work. I just switched to the shell and installed 2.6.11 and grub manually before the reboot. I get the feeling joeyh really wouldn’t appreciate any kernel change right now though. Anyway, I digress…
The first boot was a disaster, the kernel was oopsing all over the place in all sorts of random locations, and usually ended up panicing some way into the boot. My assumption was that 2.6.11 was broken somehow, so we booted the install CD again to change it, and the kernel on that was hosed too. Uh oh! I was worried that I’d fried the processor with static whilst installing it, but it’s easier to eliminate the possibility that the RAM wasn’t broken. I removed one DIMM and it started working… but when I tried that DIMM on it’s own, the system worked too. I tried all permutations of the two DIMMs in the two slots, and discovered that when they were both in, the system screwed up, but when one or other was in either slot, the system worked fine. Apparently the CCL value RAM didn’t actually work when it actually got clocked at DDR400, so it needs to go back for replacement or credit too. Interestingly, memtest86 didn’t find any problem with any configuration within any sensible amount of time, and for me in the past it’s either found problems very quickly, or never found them at all.
A few lessons learnt (or re-learnt):
- Double check for for relevant jumpers on your motherboard if CPUs run at the wrong speed. Apparently some computers on sale now still have them!
- Don’t buy cheap RAM, it’s a false economy, life’s too short…
- If you’re planning to set up a RAID1 array in a new system, buy two different brands of disk or they’ll be from the same batch, experience the same wear, and fail in the same way at the same time. This happened to me with my system about a year ago, when both 3-month old HGST drives failed within 24 hours of each other (I now have a Seagate I bought at the time to recover my data onto, use one of the HGST replacements, and sold the other), and robster’s on his 2nd pair of broken HGST drives from the same batches…
Some people seem to be lucky with hardware and it works for them, or fails in obvious or non-critical ways whilst within warranty, and some people seem to be very unlucky and everything goes wrong - horribly, insidiously, and without any suitable recourse. In general I seem to be one of the former people, and robster, my brother and most of my friends are the latter people, embarrasingly including quite a few people I’ve helped to build their own computers. Although saying that, lightning will probably now strike all of the hardware that I own… I’ll keep you posted.
April 12, 2005
Pathological incompetence
<rant rage=”incandescent”>I’d rashly assumed that the optician service at Boots would be competent, being as it is a large nationwide corporation who are likely to only hire appropriately qualified staff. This is, I think, true in the case of the actual opticians, who I have seen two of, and have been impressed and had no cause for complaint. However, the woman whose job it was to teach me how to insert, remove, clean, etc my new contact lenses is clearly *not* qualified to do so, and deserves to die horribly after being painfully disfigured in some kind of freak lawnmower accident.
Today was my 5th day of wearing contact lenses, and thus far I’d been finding it very difficult to put the lenses in correctly, have them stay in place and not fall out, sometimes experienced blurred vision, etc. It’s now exceedingly obvious why this is, but I’d been putting it down to lens n00bishness - not being used to them, or being inexperienced at putting them in. When putting the lens in today I noticed it had numbers on, which actually say 123, but I thought they said 125 and indicated the prescription of the lens. This surprised me given my prescription is -1.75… aha I thought… wrong lenses? Looking at the box, I saw they were correct, but that the numbers were there to correctly orient the lens. The diagram quickly revealed the reason for my discomfort and persistent problems - the woman at Boots clearly, explicitly and repeatedly explained to me the COMPLETELY INCORRECT AND UPSIDE-DOWN orientation of the lens, with the edges forming a convex shape rather than the obviously correct concave shape (much like that of the cornea, no?).
If they think I’m going to sign up to their “vision care plan” and give them a penny more after the humiliating torture of having the woman sit and watch me try for an hour to put a lens in when it was upside-down, followed by these 5 days of absolutely inexplicable frustration, they can go and fuck themselves with a cactus. I’m going to go and firebomb them tomorrow. BASTARDS!</rant>
Update: Went to see them today… spoke to a “Team Manager”. She apologised and said she’d talk to the person involved, and gave me 1 months’ free lenses. Not sure that quite makes up for the level of incompetence and the discomfort I faced. I may still write to them, complain next week at my aftercare appointment, or just change optician.
Calendar
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Jul | ||||||
| 1 | 2 | |||||
| 3 | 4 | 5 | 6 | 7 | 8 | 9 |
| 10 | 11 | 12 | 13 | 14 | 15 | 16 |
| 17 | 18 | 19 | 20 | 21 | 22 | 23 |
| 24 | 25 | 26 | 27 | 28 | 29 | 30 |
Links
Archives
- July 2008
- June 2008
- April 2008
- May 2007
- January 2007
- December 2006
- June 2006
- April 2006
- March 2006
- November 2005
- October 2005
- September 2005
- August 2005
- July 2005
- May 2005
- April 2005
- March 2005