Search Results: "dpk"

3 December 2006

Andree Leidenfrost: Upgrade Testing with QEMU

I have been really busy until two weeks ago [Shameless plug: If you need a (technical) project manager and/or hands-on Basis person to get your SAP R/3 system upgraded to ECC6, get in touch.]. Which means I've been a bit slack - so slack in fact that Andreas Barth had to resolve an RC bug in one of my packages - mea culpa.

Ridden by guilt I decided to finally do what I've been wanting to for some time: Putting the steps together to do a Debian test upgrade using QEMU. I chose QEMU because it is free and readily comes with Debian. It is slower than VMware, at least without the non-free kernel module, but still usable on somewhat reasonable hardware. The actual upgrade steps given below are independent of the virtualisation technology used, so they will apply to VMware as well.

Without further ado, here goes:
All in all, things seem to work ok. However, this is far from hitting the friendly green upgrade button and it just happens. So, I thought I try the next best thing to the friendly green upgrade button which is synaptic. Doing an upgrade with synaptic does actually work quite smoothly. It needs to be restarted a few times, leaves some cruft in terms of obsolete and orphan packages and the reboot doesn't really work from within Gnome, but other than that it is ok. Most notably, it didn't leave me with an unusable system in the middle of it all.

Robert Collins made some interesting remarks about the challenges of upgrades last week when we had dinner with Martin Krafft and a number of other great people. It looks like the Ubuntu folks are working on improving update-manager but also the underlying infrastructure to smooth out the upgrade process. Maybe there could be an opportunity to work together on this and achieve a situation where upgrades become as smooth as installs are now due to the fantastic work of the d-i people.

27 November 2006

Jon Dowland: Thecus

Yesterday I installed debian on my thecus n2100. Thanks to Martin Michlmayr for putting up with my neurotic questions during this process. Normally, this would take about 2 hours. Unfortunately I hit a bug in the r8169 network driver (or the hardware) which made the process excruciatingly slow: over 8 hours. I did delay the process somewhat by going for a stable installation first time through. You need to go for etch, for anyone following along at home. I have two hard discs in this box and I wanted to use RAID-1 for the root filesystem. Actually, the two discs were already in a linux RAID-1 set, with superblocks, an ext3 filesystem and some files, from when I was using the default thecus firmware. The following approach lets you setup RAID in the installer and preserve any existing data. You will need to have at least one connection to the installer running a shell, in addition to the one running the installer. When you enter the disc partitioner stage, you will need to fetch the udeb which gives you the md module. For the current thecus installer image, that's md-modules-2.6.18-3-iop32x-di_1.5_arm.udeb. wget it from a mirror (path pool/main/l/linux-kernel-di-arm-2.6) and udpkg -i it. Then restart the partitioner. To preserve the contents of the RAID-1, you might be able to select "don't wipe this partition", and just make sure nothing on it would clash with the directories that Debian will create. I didn't take this approach. Instead, you can drop one of the discs from the mirror, continue with the installation as normal, copy the data back across after, and re-add the disc to the mirror set. Before you select your filesystems in the partitioner: Now feel free to let the installer stick a new filesystem on the RAID set, and install the base system etc. Once the thing has booted: Periodically check on the rebuild status with mdadm -D /dev/md0. One other thing I would strongly advise is getting the installer's debconf priority to medium or lower before you get the base system installed, so you can skip the bootloader / flashing stage. Update: I've clarified the following paragraphs. At present, the default etch kernel is 2.6.17. The network device in the Thecus is not supported by this kernel, so you have to manually install a particular 2.6.18 kernel prior to rebooting, or you will not be able to communicate with the machine once it boots. Martin makes this very clear in his instructions. However, if you have no experience using a d-i which flashes the kernel (as appose to say, the bootloader prompts you get when doing an x86 install, for example) you may not be aware that by default, the flash stage proceeds without prompts. That means that if you do not prevent it from doing so, there will be a window between the installer flashing 2.6.17, and you manually installing 2.6.18, where the thecus will be in an unbootable state, should you suffer a power cut or similar problem. In my case, I left the base system being unpacked overnight (due to the fact the network was so slow). So, that window was several hours wide. This is only a temporary situation, as the release team plan to have 2.6.18 available for Etch, and the patches for the Thecus hardware are steadily working their way into the mainline kernel.

18 November 2006

Enrico Zini: pbuilder-tips

pbuilder tips Many thanks to Arnaud Fontaine for providing me with the solutions to all pbuilder problems I had during the last years. This is what happens to me: someone reports a bug in debtags, and it turns out that the bug needs fixing in libwibble. I start by fixing libwibble, then I need to recompile libtagcoll2-dev, then use it to recompile libept-dev, which I can finally use to rebuild debtags. A normal pbuilder setup would only take dependencies from apt sources, so I need to create an APT source with the packages I just built and feed it to pbuilder. Now, thanks to Arnaud's suggestion, I have the easy way to create the APT repository:
$ cat update-aptsource
#!/bin/sh
cd /var/cache/pbuilder/result
dpkg-scanpackages . /dev/null   gzip -9 > Packages.gz
echo "Running pbuilder update..."
su -c "pbuilder update"
Since pbuilder works in a chroot environment, the easiest way of making it access the repository is via http. First I put the new repository online:
ln -s /var/cache/pbuilder/result /var/www/debian
Then I add it to /etc/pbuilderrc:
OTHERMIRROR="deb http://localhost/debian/ ./"
Then I tell pbuilder to update the configuration inside the chroots:
pbuilder update --override-config
And finally I can build my stack of packages. This is probably not rocket science for many DDs. What I'm really appreciating here is using the minimum amount of pbuilder customization and of lines of code of extra infrastructure to maintain. Now, at every compile round, I just need to run that update-aptsource script to inject into the system the dependencies that I have just built. Update: Josh Triplett sent the configuration options to avoid using an HTTP server and use pbuilder's bind-mount facility:
OTHERMIRROR="deb file:/var/cache/pbuilder/result/ ./"
BINDMOUNTS="/var/cache/pbuilder/result/"

6 November 2006

Barry Hawkins: The missing ingredient in commercial desktop OS options; a package management system

Having spent the better part of two days provisioning my new MacBook Pro’s OS X, Debian, and Windows XP instances, I am keenly aware of how much the Debian distribution’s package management system and its volume of packages have spoiled me. In that two days, the amount of time required to provision Debian was negligible, even though it is configured to completely match my Lifebook’s Debian Sid instance. In fact, the sum total of time to set up Debian, including every application I use, was about 45 minutes of my involvement. Those who know Debian (and Ubuntu, Linspire, Xandros, Mepis, or any other Debian derivative) are coolly nodding their heads, while others are probably thinking I am a lying, biased Linux zealot. It’s no lie; here are the steps I had to take: Compare that to what it takes with either Mac OS X or Windows XP to get all of your applications installed and configured. Even if you don’t know a thing about Linux or even the more technical side of those operating systems, you can tell from the brevity of that set of steps that the Debian setup is remarkably simple. Now, some will already be keying in their comment posts with exclamations of “Hey! There’s DarwinPorts/Fink/Cygwin!” Yeah, each of those is a nice start; however, they pale in comparison. Fink at least has the robust apt/dpkg foundation, but even it has a relatively meager package selection. I am sure I’ll be writing more on life with Fink and DarwinPorts in the near future. I still don’t have half the stuff installed on XP that I plan to use. I get tired just thinking about the installs. 8^)

5 November 2006

Stefano Zacchiroli: versioning etc w bzr

Versioning /etc with bzr for fun and profit Since mid October I rented a room to Godog, here in Bologna (erm ... Italy :-)). Living with another DD so far has been utterly fun: our lives proceed normally, but when we occasionally met it's like hack time: brainstorming and implementation of the first hackish ideas that come to mind. The first idea we deemed nice to be implemented has been versioning /etc of our server (which we co-administer) with bzr. The requirements we set forth where:
  1. who is changing stuff should be somehow forced to document and commit its changes;
  2. automatic changes performed by package upgrades should be automatically versioned.
Our current solution consists in a couple of hacks: What's next? Well, Enrico already set forth the idea of an housewarming bug squashing party with all DDs living in the Bologna area. Sounds cool!

27 October 2006

Sven Mueller: Re: Wacky ideas #9: rerun maintainer scripts for changes in related packages

Interestingly, Simon Richter write about rerunning maintainer scripts for changes in related packages just when I thought that it would really be nice to get SpamPD (a SMTP-proxy in Perl which scans mails for spam using the Mail::SpamAssassin Perl module) restarted when SpamAssassin gets updated. Or to get spamd (which is part of SpamAssassin) restarted when a plugin is updated, removed or installed. Of course the second one is easier since the plugin package “knows” that SpamAssassin is affected by the change and can thus reload/restart spamd.
One idea I had for this is to create a hierarchy to which an admin or maintainer could add scripts (effectively providing hooks), like this:
/var/lib/dpkg/hooks/<package>/(removal update install)/(pre post)/<hook-package>
Where <hook-package> would be the package installing the hook while <package> is the package for which the action is to be “monitored”.So that I as the SpamPD maintainer could make the spampd package install a script in
/var/lib/dpkg/hooks/spamassassin/update/post/spampd which would get called whenever spamassassin is updated, after the update, to be exact.
An alternative on per-package basis would of course be:
/var/lib/<package>/hooks/(pre post)inst/<hook-package> or /var/lib/spamassassin/hooks/postinst/spampd for the above example. I would be quite intested to hear what other devs think about this.

25 October 2006

Sven Mueller: New to planet.debian.org

Since I just started my blog and added it to planet.d.o, I thought I should introduce myself a little. I’m in my mid 30s (ouch), working as a sys/net admin (Linux based, mostly Debian these days) in a nice little company. I first encountered Linux back in the 1990s, before the 1.0 kernel got released. Back then, I used Slackware (which, surprisingly, seems to still be around), later switching to Mandrake. About 5 years ago, I got introduced to Debian and immediately liked it for the ease and clearness of administrating it (apt+dpkg+dselect was so much better than rpm used to be at that time). For about two years now, I’m contributing to Debian, including some involvement in the earliest pre-implementation phases of the volatile repository (mainly advocating a few ideas that actually led to it’s implementation, BTW thanks to those who did the work in the end), some small packages I maintain and involvement in some small teams. Mainly the cyrus-imapd packaging team, but also (to a much smaller degree) in the cyrus-sasl, initscripts-ng and (extremely little, since noone bothered to add me to the alioth group for it yet) the php packaging teams.
Letting computers aside, my interests are quite diverse, they range from wheelchair-basketball to books (SciFi and Fantasy mainly) and RC helicopters, among others.
More interesting posts will probably follow later.

19 October 2006

Joachim Breitner: dpkg-statoverride halt

Do you run a colocated server somwhere? Do you regularily work on it as root? Do you often have several consoles running? Do you sometimes not pay attention to the host information on the prompt? Do you shut down other computers, as your own? Then I strongly recommend you:
dpkg-statoverride --update --add root root 644 /sbin/halt
(To whom it concerns: Sorry for the downtime.)

16 October 2006

Marc 'Zugschlus' Haber: Me? A nice guy? Never!

Andreas, I am not a nice guy. I am only lazy. If the change to exim4 (it now displays a debconf note to everybody who tries do dpkg-reconfigure exim4, -base or a daemon package telling them to dpkg-reconfigure exim4-config) saves #debian from answering the question “how do I reconfigure exim4, dpkg-reconfigure exim4 does nothing!” twice a day, it is a good change. I basically agree with you that people who not read the minimum basics of documentation are a nuisance, but they’re unfortunately real. You need to hurl the docs into their faces. And even then they’re going to ignore them and google for answers instead. And on google, they’re going to find wrong or outdated docs.

13 October 2006

Ian Murdock

Joe ‘Zonker’ Brockmeier: “If the Sun folks are really interested in luring Linux users over to Solaris or OpenSolaris, they should take a cue from Nexenta and adopt APT and dpkg for their package management.”

9 October 2006

Adam Rosi-Kessel: Absurd Copyright Law Case of the Day

I’m visiting my parents’ house in Vermont, where they finally got cable after the provider agreed to dig up the ground and run a mile or so of cable to their house in return for a two year subscription agreement. (I think after two years the cable company will almost have broken even on the cost of the installation). Having been absent myself from the cable world for some time, I am impressed by the variety of interactive and “on demand” options. My parents’ low-end package includes dozens of free on-demand movies and music videos, as well as built-in easy-to-use tivo-like functionality. The on-demand music videos show one brief ad before the video — it seems the tradeoff is that if you are really going to watch the ad, they can get more money and show you fewer ads. (Or, maybe I’m wrong — if it’s one ad per video, I suppose that would be more ads, but it feels like fewer because of the “on demand” nature. I guess it’s a perceptual trick.) Anyway, getting to the title of this entry. Anybody in the field of intellectual property these days has got to find Weird Al Yankovic’s music video for Don’t Download This Song (warning, myspace page, authorized by Weird Al!) (or, here) (warning, YouTube page, also authorized by Weird Al!) at least a little amusing. If you haven’t watched it, see it now. The opening verse goes like this:
Once in a while maybe you will feel the urge
To break international copyright law
By downloading MP3s from file sharing sites
Like Morpheus or Grokster, or Limeware or Kazaa
But deep in your heart you know the guilt would drive you mad
And the shame would leave a perminant scar
Cuz you’d start out stealing songs, then you’re robbing liquor stores
And selling crack and running over school kids with your car
On the cable video-on-demand channel, however, the names of all the filesharing services (Morpheus, Grokster, Limewire, and Kazaa), are all replaced with beeps, as if they were vulgarities unfit for broadcast. Or cable. If you had never seen the video online, you’d actually be likely to think this was another Weird Al joke — that he can’t even sing the names of (the mostly now defunct) filesharing services publicly. But I’m pretty sure the video was censored by the cable provider or distributor and the irony is wholly unintended. There are a couple of possibilities here. One is that the distributor was trying to avoid inducement liability under the Supreme Court’s decision in MGM v. Grokster. Could a funny song about filesharing actually meet the inducement standard? I sure hope not. The other possibility is that the distributor just found the references too abhorrent to leave in — basically the equivalent of the seven dirty words banned from broadcast TV and radio. Either way, if Weird Al were dead, I’m sure he’d be spinning in his grave. We’re lucky he’s still kicking. (“case” is kind of a misnomer for the title here, but is included for consistency).

6 October 2006

Andree Leidenfrost: Easy Peasy AFS on Debian

Bug #385790 prompted me to set up an AFS client on my sid installation. This is something I hadn't done since I left uni almost nine years ago. Back then it was a bit fiddly to get the Transarc AFS client for Linux to work if I remember correctly.

Things have quite obviously improved since then. The following is all that was required (with some helpful information provided by the submitter - thanks, Kevin!):
  • install packages openafs-modules-source and module-assistant
  • follow the instructions in /usr/share/doc/openafs-modules-source/README.modules, i.e:
    • module-assistant prepare openafs-modules
    • module-assistant auto-build openafs-modules
    • dpkg -i /usr/src/openafs-modules-.deb
  • install package openafs-client and configure like this:
    • leave AFS cell of workstation at default, i.e. local domain
    • leave cache at 50000 kb
    • leave DB server host for home cell blank
    • answer 'Yes' to 'Run Openafs client now and at boot?'
  • if this doesn't work, run dpkg-reconfigure openafs-client like this:
    • leave AFS cell of workstation at default, i.e. local domain
    • leave cache at 50000 kb
    • answer 'Yes' to 'Run Openafs client now and at boot?'
    • answer 'Yes' to 'Look up AFS cells in DNS?'
    • answer 'Yes' to 'Encrypt authenticated traffic with AFS fileserver?'
    • answer 'Yes' to 'Dynamically generate the contents of /afs?'
    • answer 'Yes' to 'Use fakestat to avoid hangs when listing /afs?'
    • leave DB server host for home cell blank
    • answer 'Yes' to 'Run Openafs client now and at boot?' (again)
  • ...and restart openafs-client afterwards
(The need to reconfigure may be a bug, not sure.)

In summary, OpenAFS and Sam Hartman's packaging effort make AFS a breeze to install on Debian!

Now all I have to do is find the time to fix the bug. ;-)

[Update] Important detail I forgot to mention: Open port 7001 on your firewall for UDP.
[Update] Added what to answer, i.e. 'Yes'. Doh.

2 October 2006

Erich Schubert: SELinux and package install scripts

The horror of providing full SELinux support out of the box are install scripts. Installing files of a package is rather easy. Install them, relabel them. This can be added to the package manager. (And I believe dpkg already does that). However, package install scripts are becoming more and more complex, and they aren't SELinux aware. And there is a lot of stuff that can go wrong here. For example, a package might want to generate a configuration file for the service you just installed. If this configuration file is to have the same context as the directory containing the configuration file, there won't be a problem - but if it's to have a different context, the generated file will be incorrectly labeled. I see two basic solutions to this: Any other smart solution for these problems? Sometimes I wish we could do without turing-complete postinst scripts...

1 October 2006

Junichi Uekawa: Playing still with apt-listbugs.

After the hacking sessions, I have versioning support into apt-listbugs.There are two problems; amount of memory consumed, and speed.Soap4r memory consumption is pretty bad; it consumes like500MB when it receives bug information via SOAP when I do apt-getdist-upgrade.Also, the speed of comparing versions stems from having to fork dpkg every time version comparison happens.

27 September 2006

Uwe Hermann: Towards a moderately paranoid Debian laptop setup [Update]

I was planning to set up my laptop from scratch for a while now... so I did. Preparation BIOS Installation / Setting up full-disk encryption using dm-crypt
  • Enable shadow passwords. Allow login as root (I feel confident that I won't do stupid things as root).
  • Choose a good root password, and a (different) good user password. Don't enter a full name for the user.
  • Choose the latest kernel (old kernels might have security issues). Do not participate in popcon.
  • Do not install any tasks (no "desktop", no "base system"). We want the smallest installation possible, and add only the packages we really need. Fewer packages means fewer security issues (statistically).
  • That's it. Eject the CD-ROM, reboot, change the BIOS to only allow booting from hard drive.
  • Post-installation tasks Networking, Upgrading and Apt-secure SELinux Now install and set up SELinux. This section is based on notes from Erich Schubert (thanks!), and will soon appear in the SELinuxSetup wiki page, too. Behaviour Further ideas That's it. You can take off that stupid tin-foil hat now. Update 2006-09-29: Fixed typos. Mentioned sxid. Added two-factor authentication.

    Uwe Hermann: Towards a moderately paranoid Debian laptop setup

    I was planning to set up my laptop from scratch for a while now... so I did. Preparation BIOS Installation / Setting up full-disk encryption
  • Enable shadow passwords. Allow login as root (I feel confident that I won't do stupid things as root).
  • Choose a good root password, and a (different) good user password. Don't enter a full name for the user.
  • Choose the latest kernel (old kernels might have security issues). Do not participate in popcon.
  • Do not install any tasks (no "desktop", no "base system"). We want the smallest installation possible, and add only the packages we really need. Fewer packages means fewer security issues (statistically).
  • That's it. Eject the CD-ROM, reboot, change the BIOS to only allow booting from hard drive.
  • Post-installation tasks Networking, Upgrading and Apt-secure SELinux Now install and set up SELinux. This section is based on notes from Erich Schubert (thanks!), and will soon appear in the SELinuxSetup wiki page, too. Behaviour Further ideas That's it. You can take off that stupid tin-foil hat now.

    25 September 2006

    Rodrigo Gallardo: Geeky meme

    This looks like a ‘planet-acceptable’ meme. My most often executed commands:
    $ history awk ' print $2 ' awk 'BEGIN FS=" " print $1 ' sort uniq -c sort -rn head -10 56 cd
    49 ls
    37 less
    35 gnuclient
    33 man
    32 find
    28 apt-cache
    25 sudo
    24 nice
    13 dpkg
    So, it seems I spend my time moving from place to place and seeing what’s there. Maybe I should play nethack more often.

    23 September 2006

    Andrew Pollock: [meme] My top 10 Unix shell commands

    Update It helps if you give sort a -n option apparently. The results make a bit more sense now. Well it kind of varies, because I have a weird mode of operation. I SSH into caesar, in my cupboard, which is my local general purpose box. It runs a screen session, which includes an SSH session with daedalus, my server co-located back in Australia, where I read my email via mutt, and then I do really local stuff on my laptop, icarus.
    daedalus
         37 fg
         32 ls
         31 sudo
         19 blog
         12 cd
          7 df
          6 vi
          6 mutt
          5 less
          4 man
    
    Unsurprisingly, fg wins out here, because I'm usually in mutt and just background it to get a shell prompt. blog is a funky shell script I wrote to better manage blog posts with Blosxom.
    caesar
        152 sudo
         61 ls
         38 less
         35 cd
         27 screen
         19
         13 dpkg
         11 apt-cache
         10 man
          9 ssh
    
    icarus
    156 play 103 ls 54 sudo 45 ssh 12 cd 12 apt-cache 10 dpkg 8 wget 8 host 6 telnet play ranks so highly because I was recently listening to all of the audio files that come with Asterisk to stitch together a particularly hellish purgatory for telemarketers.
    So it's interesting seeing how the different machines get totally different use.

    Erich Schubert: Meme time: top 10 shell commands

    Note: the script posted originally had a bug in sorting, as seen here. I used history 1 awk ' print $2 ' awk 'BEGIN FS=" " print $1 ' sort uniq -c sort -nr head -10 (this is for zsh history; the fix is the -n flag to sort)
        254 ls
        141 cd
        131 vim
         86 svn
         77 grep
         70 apt
         65 sudo
         60 ssh
         51 rm
         45 dpkg
    
    Boring meme. I work on files, edit files, use subversion, grep and eventually run apt-get or dpkg. "apt" is a small script of mine which will call apt-cache search or "sudo aptitude" as appropriate; somewhat merging the functionality of these into one command). Followers up:
         45 cat
         43 man
         33 debuild
         28 apt-cache
         18 dch
    
    debuild, dch - yeah, I have been doing some Debian work recently. Mostly SELinux, like a week ago or so. [Clint, I didn't invent that double-awk pipeline. I just fixed the sort issue. I'm currently more annoyed by awk because it uses isatty() on regular files, which in turn does ioctl, which in turn triggers SELinux audit errors...]

    Andrew Pollock: [meme] My top 10 Unix shell commands

    Well it kind of varies, because I have a weird mode of operation. I SSH into caesar, in my cupboard, which is my local general purpose box. It runs a screen session, which includes an SSH session with daedalus, my server colocated back in Australia, where I read my email via mutt, and then I do really local stuff on my laptop, icarus.
    daedalus
          7 df
          6 vi
          6 mutt
          5 less
          4 man
          4 grep
          3 mkpasswd
          3 du
          3 cat
         36 fg
    
    caesar
          9 ssh
          9 ps
          9 fg
          8 dict
          8 df
          6 I
          6 dmesg
          6 a
         61 ls
          4 Upload
    
    icarus
    9 dpkg 8 wget 8 host 6 traceroute 6 telnet 6 ping 5 less 5 ip 5 HEAD 52 sudo
    So it's interesting seeing how the different machines get totally different use.

    Next.

    Previous.