Search Results: "sto"

14 February 2006

Mike Hommey: How-to: switch your partitions to LVM and lose everything

(almost) I’ve had some problems with disk space for a while, so much that I was “creating space” by creating an lvm logical volume of 5GB over 3 files (through loop devices) on 3 different partitions (/usr, /var, and /home) that all had less than 5GB free. But I needed 5GB free. So, instead of continuing relying on such brain damaged solutions, I decided to just switch everything on lvm, which, incidentally, would allow me to use lvm snapshots for pbuilder or similar tools (pbuilder doesn’t support lvm snapshot, as far as I know). Since my / partition is quite small (so small that I sometimes have space problems at kernel upgrade), I just decided to keep it and just transform my /usr, /var, and /home partitions into a big lvm physical volume. The challenge was to move all the files without any resort to external devices. Yes, I have other devices on other PCs, but they all are in about the same shape : full as hell. No way I could possibly free 40GB for backup. I couldn’t even burn some data : my DVD burner died a few weeks ago and I still haven’t bought a new one. I could’ve waited but well, I wanted to do it. So, the week-end before last, I decided to go on, and do it the painful way. I used my swap partition to move /usr and /var around, so that I could free the space from these 2 partitions to create the premises of the lvm physical volume. First trick: not enough space in the swap partition, so I just deleted a bunch of files (mostly /usr/share/doc/ and /usr/share/locale files) so that all would fit. After moving all around, I’d just unpack all installed debian packages so that the files are there again. Then, I managed to move everything by packs of 4~5GB, which was laborious. It involved creating temporary lvm physical volumes on temporary partitions and then moving the logical volumes’s chunks from physical volumes to other physical volumes on the same disk. Brain damage. Anyway, the big fright came when I had this stupid idea to delete partitions and create them again. Why ? because neither fdisk (no surprise) nor parted can resize a partition. Well, parted can, but it apparently can’t without playing around with the underlying filesystem. So, I deleted and recreated the partitions. And guess what ? They didn’t end up on the same sectors… The second stupid idea was to run pvcreate on the newly created not quite the same partitions… I thought I just lost everything. Pictures, personal repositories (especially 6 months worth (well, it took 6 months of real time, not of work time, but still) of work on xulrunner), everything. It’s actually not the first time I (almost) lose everything. I once did rm -rf / in a chroot… in which /home was mounted bound… and wrote a program to scan the file-system for the precious files (that’s the story of ext3rminator, which I still have to release once and for all). That was 3 years ago. First, calm down. Second, the bits are still on the disk (except maybe the bits overwritten by pvcreate). Third, calm down. Fourth, think. All I obviously had to do was to find the correct location of the partitions, and pray that the pvcreate didn’t blow everything. Which was almost okay. I could find 2 of the LVM volumes out of 3, while the third one seemed in a pretty bad shape. A bit of search with my friend google on another computer hinted me on vgcfgrestore. So I pvcreated once more over this broken volume, and used vgcfgrestore to get the volume group correct. It seemed okay. I could mount the volume. That was close. Well, to be sure, let’s run a fsck… ouch… inconsistency in some inodes. Okay, correct it. Once, twice… a couple times. Waw, is it that fucked up ? It can’t be that fucked up. So I took another look and discovered that the third volume was offsetted by a sector. 512 octets. Ouch, letting the fsck correct things was definitely not a good idea. Correcting again the partition table, pvcreating and vgcfgrestoring again, fsck, and let’s rock and roll. Conclusion(s):
- I only lost 150MB of MP3. I don’t care.
- Never ever use parted again, and never ever use fdisk in basic mode again.
- Avoid tricky procedures with stuff you are trying for the first time.
- Backups are for the weakest.

Pierre Habouzit: satisfaction

Yesterday, one user of whitelister reported me a bug. That made my day : this meant that there was actually users in the world that used whitelister, and thought it worth the effort to report a bug ! It motivated me to fix a couple of problems that I knew where there, and I released (and uploaded) a new version yesterday. I have to mention that whitelister will also soon be in production of a quite big mail system (even if not a FAI, we talk about MX that do more than 300k mails per week, which is not nothing). I have to mention that I also changed the license to BSD, I'm quite afraid of the direction the GPL is taking, and BSD is definitely better, spam is a too big problem, and if people want to do money with my idea, let them do it, if that can stop spam GPL has no sense at all when you don't plan to exploit the software yourself. When I'll release 1.0 (there is a couple of things I'd like to fix in how the configuration file is handled before) I'll try to give some public visibility to the project, because I really think it's based on a really good idea.

Daniel Baumann: Debian Live Initiative

I already got some feedback about the "device driver check CD"-thing. People got confused about it, so I will tell you a bit more about my intentions (although I wanted to start doing this not until next week, duuh). What is wrong with current live systems? There are already several Debian-based live systems and they are doing a great job. But, from the Debian perspective, most of them have one or more of the following disadvantages: Why create our own live system? Debian is the Universal Operating System: IMHO we should have an official live system for showing arround and to officially represent the true, one and only Debian system with the following main advantages: Creating the Debian Live framework Such a life system framework would allow to create different images for different scenarios: The last one is this "confusing" thing I mentioned before. Wouldn't it be nice to have a live system to easy detect hardware? Imagine, you could take such an image, burn it on a CD or copy it on a USB-stick, go to your hardware shop and boot it. Since this system would use only official Debian packages, you can easily verify if your favourite piece of hardware is supported by Debian. Doubts like "it runs with Knoppix, so hopefully it runs with Debian too" are history by that. Maybe someone could implement then some sort of application which checks the hardware against Kenshis Debian GNU/Linux hardware compatibility list and displays some sort of report about the compatibility level of the tested hardware. I will definitely work on that goal. But first, I have to do a bit of research about the best techniques and create the framework arround it... Thanks to Myon for setting up the record live.debian.net.

Andrew Pollock: [tech] My Asterisk configuration for use with Engin

This is the relevant bits of my sip.conf:
register => 073117xxxx:passwoid@byo.engin.com.au
[engin]
canreinvite=yes
dtmfmode=inband
fromdomain=voice.mibroadband.com.au
fromuser=073117xxxx
host=byo.engin.com.au
insecure=very
musiconhold=framed
nat=yes
port=5060
qualify=1000
realm=mobileinnovations.com.au
reinvite=yes
secret=passwoid
type=friend
username=073117xxxx
context=default
Obviously the number is the number provided by Engin, as is the password (as opposed to the password you provide when you create your website account). This sends inbound calls to the default context in extensions.conf, which for me looks like:
[default]
exten => s,1,Wait,1                     ; Wait a second, just for fun
exten => s,n,Answer                     ; Answer the line
exten => s,n,Goto(menu,s,1)
exten => t,1,Goto(s,1)
For routing outbound calls via Engin I have:
[internal]
; for standard Australian 8 digit numbers
exten => _01161XXXXXXXXX,1,Dial(SIP/engin/0$ EXTEN:5 ,60)
exten => _01161XXXXXXXXX,n,Hangup()
; for 1800/1300 style numbers (10 digits)
exten => _01161XXXXXXXXXX,1,Dial(SIP/engin/$ EXTEN:5 ,60)
exten => _01161XXXXXXXXXX,n,Hangup()
; for 13 style numbers (6 digits)
exten => _01161XXXXXX,1,Dial(SIP/engin/$ EXTEN:5 ,60)
exten => _01161XXXXXX,n,Hangup()
And I make my internal SIP handsets use the internal context like this:
[sipura]
type=friend
secret=passwoid
nat=yes
host=dynamic
reinvite=no     ; this
canreinvite=no  ; and this may be unnecessary
qualify=1000
dtmfmode=inband
regexten=1000
realm=andrew.net.au
disallow=all
allow=ulaw
allow=alaw
allow=gsm
context=internal
I'm fairly happy with everything now. When I get time, I'll implement QoS, for what it's worth, and tweak the dialplan to send telemarketers to hell. I also need to get a card to hook it up to the PSTN. So far an X100P via ebay seems the cheapest way to do it. I'm actually surprised at how difficult it seems to be to purchase a Wildcard TDM400P online (none of the resellers seem to offer online purchasing), and how expensive they are (at the Digium store).

13 February 2006

Kenshi Muto: HCL: bit thought

My pleasure, liw :-) And I'm very glad to see Roland and Daniel are inspired from my HCL and are trying to make more brilliant things. My hcl system is stored in my personal SVN. Anybody can see and take components from http://kmuto.jp/svn/hcl/trunk. Although I've extra time to develop at this time, I'd like to improve codes in the future, at least around updating existent data.

Ross Burton: Why I Don't Use GnomeFiles

My Top Five Reasons as to why I don't update the information for Sound Juicer in GnomeFiles often:
  1. No programmatic way of uploading new versions. Freshmeat has a XML-RPC interface and sample implementation, freshmeat-submit. This means I could integrate posting new versions into my make release script, which also uploads source tarballs to ftp.gnome.org and puts the latest DOAP file on burtonini.com. Ideally GnomeFiles will let me specify a DOAP URL and the server will fetch it regularly, updating the information when it changes.
  2. When adding a new version I need to fill in the download location field from scratch. For every Sound Juicer release this is going to look like http://ftp.gnome.org/pub/gnome/source/sound-juicer/2.[something]/sound-juicer-2.[something].tar.gz. It's a good assumption that if one version was at some URL, the next version will be at a very similar URL, so why not pre-fill that field with the previous version's URL? Freshmeat does this, and it turns typing in a long URL into changing a single number.
  3. I need to fill in the file size of the file at the URL. Why can't the server do that? If the download is over HTTP it could do a HEAD request and extract the Content-Length header.
  4. No support for branches. There are two branches of Sound Juicer development at any moment: stable and development. I have to pick one of these to publish, so am either publishing only the stable release, or the development releases. People who want to know about the other releases can't find this information out.
  5. This one is petty, but it bugged me. Description of the file to download eg. "Binary" or "gnomefiles.org Server". One of those is a description of the file, the other is a description of the site.
NP: Black Diamond, Angie Stone

Erich Schubert: SELinux hack of the day: disable history when not sysadm_r

zsh: can't write history file /root/.zsh/history You'll get this error message on logout when your ssh login is to a userid which may not write your home directory (such as staff_t, when logging into root whose files usually are sysadm_home_r). Here's a simple workaround for you zsh users:
if id   grep -q sysadm_r; then
        export SAVEHIST=1500
        export HISTFILE=~/.zsh/history
        export HISTSIZE=1500
fi
This will only enable history when you are sysadm_r. Bash users probably can use
if ! id   grep -q sysadm_r; then
       shopt -u cmdhist
fi

12 February 2006

Andrew Pollock: [life] Massive road trip coming up

Given that next weekend is a long weekend on account of President's Day, we've decided to go visit our friends Craig and Sarah in Phoenix. My manager has kindly allowed me to work from Phoenix for the remainder of the week, so we'll head back again on the following weekend. I just fed all the relevant data into Google Earth, to get a bit of a perspective on how long and how big the trip is going to be (and it looks big). I've never used Earth for routing before, and it's really cool to "play" the trip's route and have it zoom into each turn. So from home to Craig and Sarah's place is 727 miles (1169 kilometres), but we're going to meet up in the desert, which is only 575 miles (925 kilometres), and then we'll do the remaining 216 miles (347 kilometres) on Sunday night after we've stayed with them in their enormous caravan (or trailer as I guess they call it over here) and fool around in their dune buggy. Here's the direct route from home to Craig and Sarah's place in Phoenix, for perspective. The desert stopover (marked) is a little bit south of this route: Route of our road trip to Phoenix We're planning on stopping over in Los Angeles (Hollywood to be precise) on the way back so we can briefly check it out.

Jose Carlos Garcia Sogo: Crash (2004)

I watched last weekend Crash, a movie from 2004 that was played this year in Spanish theatres. It's is also an opera movie in which there are quite a lot of different stories happening at the same time and that are completely tied in one or other different ways. Very well written it is sometimes a drama and sometimes a thriller, or perhaps both at the same time, showing how differently behave and think characters with different racial backgrounds. One interesting thing is to see how stressed cops are in Los Angeles, because of everyone carrying a gun (or possibly), and how they behave aiming first their guns and being rude. This is completely different in Spain (and most of Europe), where a cop have to had a very powerful reason to pull his gun out of its holder.

Jose Carlos Garcia Sogo: Manuale D'Amore

I went to the cinema yesterday evening, and not having a clear idea of which film we wanted to watch, we decided for Manuale D'Amore, an Italian movie. It was great, funny almost all the time but with very emotive moments, all them mixed very well. The history is very simple. The movie introduces different couples that are in four different moments of their love: falling in love, the crisis, the traition and being abandoned. Every chapter is very well driven, and the actors play fairly well their roles. This movie, and the last one I watched, Los 2 lados de la cama, are good examples of European cinema very well made. In my opinion, if European cinema had followed this path more often, and with a bit more advertising, it will get more success than now, in which there are a lot of movies made trying to be different. P.S: I HATE people eating nachos in theaters.

11 February 2006

Axel Beckert: SuSE sucks!

Since SuSE closes the security support two years after release and the recent KDE JavaShit remote code execution hole wasn’t patched as fast as I would have expected it (the patch came out after the upgrade I’m writing about here) in the SuSE 9.0 which was installed on my 2.66 GHz AMD desktop at work (it started as in 2002 as a SuSE 7.3 on a 400 MHz box and has been upgraded since then to 8.0, 8.2 and 9.0 IIRC), I decided, it’s now really time to upgrade to SuSE 10.0. (Although 10.1 will be out soon, I just don’t want to wait for it.) And since my boss only wants SuSE boxes and neither Debian (which I would prefer) nor Gentoo (which a colleague prefers), I couldn’t simply install Sarge on this box although I would have chosen that option if it would have been available. Since my former SuSE experiences told me that this would mean a lot of trouble, I took notes from the beginning, once for the blog and once for my boss to show him, that most trouble doesn’t come from me being a power user used to being allowed to touch any config file (like I am on Debian). Preparations So I begin with the preparations: Starting the 400 MHz Debian Woody box on my desktop (whose operating system is more than a year older than SuSE 9.0 and still has security support, yeah!) I usually need to build custom Debian packages for customers. There I could chat in IRC and took notes while trying to upgrade and get the whole thing working again. When everything was ready, I put the SuSE DVD in — just to notice, that it’s just a CD-ROM. So I put the SuSE 10.0 CD1 in the CD-ROM drive and typed “sudo shutdown -r now” in the shell. The box starts shutting down and tells me:
Please stand by while rebooting the system…
But it didn’t reboot. I waited for several minutes, nothing happend. Well, seems as if the SuSE upgrade already starts as I expect it to end: Horrible. Read more…

Lars Wirzenius: Debian: Device driver check page

It has been a while since kmuto advertised this: Debian GNU/Linux device driver check page. It is time to advertise it again, I think. Basically, you paste the output of "lspci -n", and it tells you which hardware on your PCI bus is supported, and by which driver. Very, very cool, and makes it much easier to see what to buy (assuming you can find a store that lets you, say, boot a machine with a live cd). Many, many thanks to kmuto!

Andreas Metzler: Broken threading

I wished people would stop sending broken mails without In-Reply-To or References headers to deeply nested discussion threads.

Daniel Baumann: Eiffel packaging considered painful

Our Chair of Software Engineering at the ETH Zurich is addicted to the Eiffel programming language. Thus, a PhD student is working on an Eiffel Multimedia Framework, named EiffelMedia, and I'm doing the Debian packaging. After working the second year with Eiffel stuff now, I can say that packaging Eiffel programs (not the language itself) is a major PITA, with respect to the following two aspects: Eiffel is different Eiffel is non-free

There are not one... not two... but three incompatible Eiffel compilers arround. Oh yeah... Except from some fundamental programs like Gobo Eiffel or the Eiffel Wrapper Generator (they support both all three compilers), nearly all programs are written according to the current Eiffel specifcation. So there is no real alternative to the proprietary EiffelStudio. Beeing binary-only is a major drawback too: EiffelStudio on Linux/powerpc is dynamically compiled against glibc-2.3.5, but Sarge has glibc-2.3.4. So one needs a backport of glibc, which taints the system in an unneccessary and stupid way. Please: Eiffel Software, if you are reading this, open the sources of EiffelStudio now and turn it into free software, for the greater good of us all. Make additional ports to other architectures possible and allow us, the packagers and upstreams of Eiffel programs, to drop the cumbersome support for other ancient Eiffel compilers. Let's focus us to one, single implementation and improve it.

Andrew Pollock: [life/americania] The Social Security Administration strikes again

I'd been planning on waiting to blog about the issuing of my Social Security number until I actually received the card, but as it seems that it has been lost in the mail, I could be waiting a while... So I was doing my regular weekly "what the fuck is going on with my Social Security number application?" phone call to the San Jose Social Security Administration office on January 12, when for a change, they couldn't actually find my application by the reference number that they'd given me. Lo and behold, my number had been allocated two days earlier. They told me that my card would be mailed out in 10 working days from the date of allocation, or that I could come into the office and get a bit of paper that told me what the number was. Let's just say that I'm glad I didn't wait for the card, or I'd still not be getting paid... So ten working days passed, and then some, and no card. This made me somewhat concerned, since everyone's been telling me how the SSN is the Primary Key of All Things, and that if it gets stolen, you're screwed as your identity can be stolen, with all the bad things that accompany that. So I rang the San Jose office back, to see if they had anything useful to say for themselves, and of course, they didn't. They couldn't tell me anything. They couldn't even tell me what address they had on record to ship the card to. They couldn't offer any postal tracking information, and they said that if it bounced for some reason, it would go back to Baltimore, where it would be destroyed. Oh goody. So after the trip to the DMV today, I thought I'd drop into the Mountain View Social Security office to request a new card. Well, let me just say that I can see why they zip-tie the chairs together... After waiting for over an hour and a half to get to speak to someone, they said that they would need to request secondary verification of something or other before they could issue me a card, and that it could take up to four weeks (the same secondary verification that took nearly 2 months in the first place). Or I could go to the San Jose office, where they already had the verification on file, and they could request a new card for me immediately. I was so flabbergasted that I just walked out of there. In hindsight, I should have told them to just go ahead and request the secondary verification, as so far I haven't actually needed to present the card to anyone wanting my SSN, and it's a lot more convenient (I think) to have to deal with the Mountain View Social Security office than the San Jose one. What absolutely blows me away is that there is no trust, no communication between offices. The fact that one Social Security office has already requested (and received) secondary verification of my existence from Immigration isn't sufficient for another office. They can't even ship a copy of that from one office to another? The mind boggles at the inefficiencies. I want that hour and a half of my life back.

Andrew Pollock: [life/americania] Licensed!

Last Monday, Sarah and I visited the fine institution that is the California Department of Motor Vehicles, so that we could get ourselves California drivers licences. We had to do both a written test and a behind the wheel test. The written test was your standard multiple-guess exam (36 questions, maximum of 6 incorrect answers to pass). Annoyingly, all the material on the exam was not in the California Driver Handbook, which the handbook tried to make out was the case. Fortunately it was largely a case of common sense. I got two wrong. The funniest thing was that Sarah and I both got the same exam paper, and Sarah did her test just after I finished mine, and we were allowed to keep the paper, so she could see which two I got wrong. One of the more unusual things I found about the process was that they allocated me a licence number before I'd even sat the test. Last Thursday Sarah had her behind the wheel test, and today I had mine. It was pretty easy. No reverse-parking, no emergency stopping. I just had to drive around for 15 minutes. I passed without any faults. Given it took me four attempts to get my original licence in Australia, I was pretty pleased with this. (I failed my Queensland licence a number of times due to nerves). The other thing that I was amazed to discover was that I don't get the licence for another four to six weeks! They mail it out. The DMV processes over here are just mind boggling. The fact that you can't get a licence on the spot, and that it takes something like three months to get licence plates for a new car just blows me away. It's nothing like the process in Australia.

Wouter Verhelst: Bureaucracy.

I'm typing this blog entry on the train. Opposite of me is a gentleman of approximately 35 years old, who's got a paper lying on the table between us. That paper would seem to be approximately 20 pages thick, and is entitled...

Technical Specification

Sandbag With a header above that which tells me that it's from some government body to do with the "Civiele Bescherming", an agency which is mainly used when something happens in the country that could threaten the citizenship at large (natural disasters such as storms or flooding, large-scale electrical failure, water poisoning, etc). It's obvious why the civiele bescherming needs to have sandbags. It's quite funny to see how they need to write twenty-something pages on what a sandbag should look like. After all, it's just a bag filled with sand...

10 February 2006

Sergio Talens-Oliag: IICISL Slides

Well, the Conference starts next week and I've just finished the slides for my talk; comments are welcome. I suppose it is too much content for 15 min. and without more explanation is a little bit dense, but it is a step forward.

Gerfried Fuchs: PHP mail() Considered Harmful

I know for myself that picking up unparsed userdata is teh evil. But we also all know that the usual webpage and mailer script coder isn't thinking. And to my knowledge the php mail() function is the only one that perverted to parse the headers additional to an explicit given recipient list for additional recipients. Yes, you read right. Often enough people use things like mail("myown@addre.ss", "subject", $body, "From: $_POST['name'] <$_POST['email']>") without thinking about it, because, there is this extra to field anyway. Right?
Wrong! SPAMers will come and send things like email="some@jo.ke\nBcc: my@sp.am, list@is.bigg.er, than@you.rs". People that put up such webmail scripts usually don't notice it anyway, they just delete the spam right ahead, not noticing that it was an abuse of their form. And the ISP has to deal with having to get the system out of the blacklists again.... At least none of the hosts on which customers are able to put up such scripts directly affect our own mail system, it's just the shared hosts they use... Still, deadly annoying. And then people are claiming that such misfeatures aren't a problem in PHP but in the coders? If it would at least be documented in the description of the function, but if one can claim it that it is it's at most just very vague hinted...

Meike Reichle: Off to Cambridge

In about an hour I'll finish work and leave for Cambridge. The plan is to take a train to Berlin-Schönefeld, then fly to London Standsted and take a coach from there to Cambridge, where I'll arrive somewhen between midnight and 1am and hope to find (1) King's College and (2) someone who knows who I am and where my bed is.

I usually don't suffer from travel nerves, though this trip is so far foreshadowed by a chain of unfortunate events:
Firstly I scalded my hand with hot oil last weekend and it is now in the state of getting rid of the old burned skin, exposing the tissue underneath that is not real skin but some thin algesic replacement. Ouch!
Secondly my laptop, beloved dropkick, lost its display this week. Well, not physically, but when I booted it up on Thursday the colors where heavily distorted. I tried to fix it yesterday but at some point it just stopped working alltogether. :( Background lightening still goes on and off but nothing is displayed. I am pretty frustrated by this. Not only because I had planned to use the laptop this weekend but also because I really like it and have grown kind of attached to it. Since a professional repair would probably cost almost as much as the thing is worth and I am pretty broke at the moment I'll try to get a used display and replace it myself. (Relevant hints and advice are welcome!)
Lastly, I haven't packed yet, my belt loop is ripped and the prospect of spending long waiting periods with only a book plus pen and paper as means of distraction is not too thrilling.

Anyway, still looking forward to the weekend! (<phlox>Optimism!</phlox>) I'll let you know how it went (and what further mishaps struck me) when I return. :)

Next.

Previous.