Search Results: "agi"

15 March 2006

Martin F. Krafft: udev and grey hair

It won't be long before I grow grey hair if udev keeps pulling tricks on me. Yesterday, an upgrade to 0.087-1 hosed one of my systems. The system is sarge-based, but it is connected a to a cable modem needing the cdc_ether driver, which 2.6.8 does not have. Since I don't expect backports of 2.6.15 to sarge (Update: backports.org has a 2.6.15 backport, but it won't solve my problem it seems), but also don't want to migrate my system to testing, I simply decided to pin linux-image-2.6.15-1-686 and all its dependencies to unstable with APT:
Package: linux-image-2.6.15-1-686
Pin: release a=unstable
Pin-Priority: 600
Package: initramfs-tools
Pin: release a=unstable
Pin-Priority: 600
Package: udev
[...]
The install worked, and off I went to reboot... but the machine did not come back up, and booting 2.6.8 with the new udev also failed. Great. At first, I thought I knew the problem, but at closer inspection, it was something else: udev's ide.agent hung itself up and timed out. It turns out it was looking for hd141 instead of hda, and once I found that out, it didn't take long to put two and two together: 141 is ASCII 97 is 'a'. And if you echo hd\141 just like that, the shell will swallow the backslash. Marco, the udev maintainer blamed a broken shell, and I identified busybox-cvs-static to be the problem; Replacing it with busybox from unstable fixed the issue. Now all that remains is to convince Marco that the bug has nothing to do with initramfs-tools when it occurs in a script provided by udev. initramfs-tools depends on busybox-cvs-static busybox since it works with either. If udev doesn't work with busybox-cvs-static, it has to conflict, which is not really an option though, due to a libc6 upgrade loop. Fortunately, the 2.6.16 kernel will make ide.agent obsolete, so the problem shall vanish in smoke. With one problem solved, I woke up this morning to find another. I use udev's network interface renaming feature to ensure that my interfaces always have the names I expect, and that their names give me a hint as to what they're connected to. Sure, using /etc/modules to ensure a defined load order would work fine, but I have too many machines under my control to want to remember that eth2 on this machine is the wireless LAN. So I use the following udev rules:
wall:~# cat /etc/udev/rules.d/local-interfaces.rules
KERNEL="eth*", SYSFS address ="00:02:8a:80:21:31", NAME="internet"
KERNEL="eth*", SYSFS address ="08:00:46:b1:2d:ee", NAME="lan"
KERNEL="eth*", SYSFS address ="00:50:04:5b:ec:b3", NAME="wlan"
KERNEL="eth*", SYSFS address ="00:04:23:72:4e:6c", NAME="wifibackup"
Update: Bas Zoetekouw suggested to match against something else than MAC addresses, for testing. Thus, I tried PCI IDs (using the topmost SYSFS device entry in the udevinfo output):
KERNEL="eth*", SYSFS device ="0x24c4", NAME="internet"
KERNEL="eth*", SYSFS device ="0x103d", NAME="lan"
KERNEL="eth*", SYSFS device ="0x5157", NAME="wlan"
KERNEL="eth*", SYSFS device ="0x1043", NAME="wifibackup"
The problem remains the exact same. It also remains the same if I completely remove wlan and wifibackup. When I woke up this morning, I found the following mess:
wall:~# ip addr
2: internet: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 08:00:46:b1:2d:ee brd ff:ff:ff:ff:ff:ff
3: eth0_ifrename: <BROADCAST,MULTICAST> mtu 1500 qdisc noop qlen 1000
    link/ether 00:02:8a:80:21:31 brd ff:ff:ff:ff:ff:ff
4: wifibackup: <BROADCAST,MULTICAST> mtu 1500 qdisc noop qlen 1000
    link/ether 00:04:23:72:4e:6c brd ff:ff:ff:ff:ff:ff
5: wlan: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:50:04:5b:ec:b3 brd ff:ff:ff:ff:ff:ff
    inet 192.168.14.129/25 brd 192.168.14.255 scope global wlan
    inet6 fe80::250:4ff:fe5b:ecb3/64 scope link
      valid_lft forever preferred_lft forever
The wlan and wifibackup interfaces are configured correctly (I use wifibackup to hook into the various open WLANs around, when my provider goes down, or I need more bandwidth). But internet was assigned to the LAN interface, and eth0_ifrename, well... that's just whacked. Looking at the udev code, this seems to be due to a patch Marco pulled from Ubuntu, which is to guard against race conditions in the renaming. For instance, if eth0 needs to become eth1 and vice versa, udev renames the first to eth0_ifrename and waits until the other has finished its identity change. The patch, however, is a hack: it tries endlessly to rename the interface to its final target name, which, in my case, obviously goes on forever.
10:18  * Md just copied it from the Ubuntu package
10:18 < madduck> why???
10:19 < Md> because it worked in my artificial setup
Unfortunately, this isn't the first time that Ubuntu's "giving back to Debian" (which requires Debian to go out and fetch) is two steps back rather than one forward. I would hope that maintainers of criticial packages (such as udev) would exercise more care when pulling from Ubuntu. And that Ubuntu would please stop adding hacks to packages and instead concentrate on fixing issues at the root the Debian way. So my problem still persists, and even given Ubuntu's ifrename patch problems, I can't figure out what is actually going on. It does not help that udev also suddenly stopped logging interface name changes. Yes, just like that.
KERNEL="eth*", SYSFS address ="00:02:8a:80:21:31", NAME="internet"
KERNEL="eth*", SYSFS address ="08:00:46:b1:2d:ee", NAME="lan"
How can these two rules actually trigger the rename conflict? The only way I could imagine is that udev gets confused and falsely renames 08:00:46:b1:2d:ee to internet. Then, when it gets to the other card, a name collision occurs, udev chooses eth0_ifrename as temporary workaround, and then tries forever to rename eth0_ifrename to internet, which will never succeed. So why does udev get confused in the first place? Why would it ever name the interface 08:00:46:b1:2d:ee internet? Beats me. But I better end here because the world surely doesn't need just anoAther udev rant. Update: I forgot to mention that the renaming works just fine when I unload/load modules from the command line. It's only during the boot process that things go wild. Update 2: I should not that it does not work fine some of the time if the modules are loaded in quick succession.

13 March 2006

Martin F. Krafft: Keeping the disk spun down with squid?

I am trying to set up an older laptop for use as a router in my flat. I chose this approach over a stand-alone device (such as this one) because I want to have fuller control over my router, such as the ability to add a transparent caching proxy (squid). A main concern with setting up this machine is noise. Ideally, I want it to be completely silent, but I do need a hard drive. Thus, I am trying to configure the drive to spin down when not in use. Thanks to the laptop-mode-tools package, and syslog-ng's caching functionality, this works like a charm... ... until I start squid. For some reason, squid likes to read blocks on /var every few seconds, even if it is not being used at all. I imagine this is some cache replacement/maintenance stuff. So now I need to find out how to disable it, or how to control the interval. Ideally, I would like squid to doze when it's not in use. Only when it serves requests is it allowed to do cache maintenance. If you know how I could accomplish this, please let me know! Unfortunately, I do not have enough RAM to put my entire cache onto a shmfs.

Lars Wirzenius: Debian: Why I don't make watch files

Eric Dorland writes about watch files, which are a way to keep track of whether there are new upstream versions of a package. He urges everyone to add them to their packages. I don't want to do that. First, I'm also the upstream of most of my packages, so my need of them is small. When I'm not upstream, I keep track of what upstream does anyway, so I'm informed of new releases that way. I realize that watch files are not useful only for the package maintainer, but also other interested parties, but, hey, I'm lazy, so I need some incentive apart from "some people think they're cool" before I take on a duty to maintain yet another aspect related to packaging. Second, I don't think watch files belong in the package. If upstream moves to a new domain, for example, the watch file needs to be updated. If it is in the package, that needs the package needs to be updated. I'd rather see watch files kept in a central server so that the package doesn't need to be changed in this situation. This would also avoid the need of having the package maintainer co-operate. Thus, I propose that those seriously interested in watch files create a "watch.debian.net" service, which keeps watch files in a centralized location, and allows them to be maintained in a wiki-like fashion.

Martin F. Krafft: Brief touchdown at Chemnitzer Linux-Tage

It's now been over a week since I visited my brother in Leipzig, with the intention to head over to Chemnitz on Saturday morning to attend the Chemnitzer Linux-Tage. It turned out that Saturday was just too nice a day (and Friday night too long), so I skipped the fair on that day and stayed with my brother, which wasn't a problem as my only required appearance in Chemnitz was Sunday morning for a talk on the Debian package lifecycle. So Saturday we ate an extensive breakfast, hung around, took a walk, met some folks, listened to a bunch of tunes, played countless Stratego games (this will have to be my favourite board game), and generally had a marvelous chilling time. So Sunday morning I got up early, hopped on a train and arrived in Chemnitz around 9:40 with ample time to make it to the campus where my talk was to be held at 11:00. Ample time -- or so I thought. Public transport in Chemnitz doesn't really wake up until 10:30, and the train schedule isn't descriptive of what actually happens on the track. So with a bunch of running, I finally ended up on a train to the south station, from where I walked. My talk went very nicely. I talked about what happens to a package between the developer's machine and Debian stable, giving insights into dak, the various parallel archives (such as stable-proposed-updates and experimental), and describing how security updates as well as volatile and backports fit in. The slides are accessible through your browser (but are German-only, sorry), thanks to the wonderful magic of docutils and S5 -- a great presentation system based on XHTML and CSS2 (it's written by one of the CSS gods). You can get my template with bzr. It and the slides are available under the terms of the Artistic Licence. Also in Chemnitz, my publisher Open Source Press officially released the German translation of my Debian book. It's good to see that finally out of my way. :) I left the campus early because I was too tired. I regret it because the Chemnitzer Linux-Tage seem like a nice event, and there were a bunch of talks I really wanted to see, but I simply couldn't. Till next year.

Jonathan McDowell: Scanner Access really is Now Easy.

I finally replaced my aging SCSI scanner over the weekend. It was making really odd noises while scanning, and had somehow upset my SCSI chain such that the BIOS could load GRUB ok, but GRUB then couldn't load the kernel. I have better things to do with my time than sacrifice goats, so I went looking for a cheap 'n cheerful replacement. Oddly enough PC World provided an acceptable option. They have a system whereby you can reserve an item on the web for pickup from your local store, and get a reduction off the in store price. I have no idea why they don't just reduce in store prices anyway. I ended up with a Canon LiDE 60 for £44.82, slightly less than ebuyer charge before P&P and with the added advantage that I could go and pick it up on Saturday. I had, of course, done some research beforehand to ensure this was a supported scanner, however it turned out I'd misread. I thought the version of SANE in Debian was a little old; turned out the versions for sane-frontends and sane-backends differ and I'd looked at the former instead of the latter. Plus I thought I was going to need to pull a CVS or snapshot copy to get the support I needed. So I unwrapped the scanner, plugged it into a spare USB port and checked lsusb showed it up. Then, just to see what would happen, I tried scanimage -L and was rewarded with device genesys:libusb:004:009' is a Canon LiDE 60 flatbed scanner. Rock. scanimage just worked and produced a nice PNM of my Electric Six CD inlay. I don't think installation could have got any easier than that. Admittedly I already had SANE installed as I'd had a previous scanner, but if I hadn't the only addition would have been aptitude install sane-utils.

Eric Dorland: watch files considered helpful

I spent some time yesterday putting watch files in most of my packages. Watch files have been around for a long time in Debian, but hasn't reached the exposure it perhaps deserve. They're used by uscan to check for newer upstream versions of the source. What's even more useful than running uscan is the Debian Watch Health Status pages (which are also helpfully linked from the QA developer's page, but that functionality appears to be broken at the moment) which parse the watch files as well and provide a nice web interface to look up your packages and others and see where upstream is at. Unfortunately, for this to work properly the package needs a watch file, and according to the statistics, only 1/3 of all packages have watch files. So here's a quick tutorial, just plop a suitably modified version of these examples into the debian/watch file in your package and you're off to the races. If you're packaging foo and the source tarballs are on ftp.foo.org your watch file will look something like this:
version=3
ftp://ftp.foo.org/pub/foo/foo-(.*)\.tar\.gz
Some things to note: the version line is just there to allow for future enhancements without breaking backwards compatibility. For the location specifier, the last part after the final / is a regular expression (notice the .'s are escaped). The pattern inside the parentheses is what gets parsed as the upstream version number. For HTTP the syntax is almost identical:
version=3
http://www.foo.org/files/foo-(.*)\.tar\.gz
This snippet will download http://www.foo.org/files/ and look for href's corresponding to the rest of the pattern. For projects hosted on Sourceforge, there's a handy syntax for that, and uscan will take care of figuring out its annoying mirror system. If it's project bar, and the source is called libbar:
version=3
http://sf.net/bar/libbar-(.*)\.tar\.gz
There are many more details in the uscan man page. I think it would be great if more maintainers put watch files in their packages. It's one of those touches that really sets Debian apart from the rest.

12 March 2006

Mirco Bauer: Mono 1.1 Suite Uploaded to Debian/Unstable

The invasion of the Mono 1.1 suite has reached the archive of Debian/Unstable!
All packages were accepted within minutes (because of the preparation in Debian/Experimental and the good work of the ftp-master).
Here the full list of uploaded source packages with version:
cli-common (0.1.3.0), mono (1.1.6-4), monodoc (1.0.6-3), libgdiplus (1.1.7-2), gtk-sharp (1.0.8-2), gtk-sharp2-unstable (1.9.5-1), gecko-sharp (0.6-3), gecko-sharp2 (0.10-2), gtksourceview-sharp (0.5-6), gtksourceview-sharp2 (0.10-1) and last but not least monodevelop (0.7-1) The mission of the master Debian Mono Plan is almost completed with this step.
The Debian CLI Policy draft is now in work and an announce to all maintainers of Mono based applications will follow soon. The new packages use a different layout and allows easier packaging for maintainers. The existing packages should be migrated (if you have such package please visit #debian-mono on freenode or/and read/comment the new CLI policy draft), the main rules are already known but not written down yet (a discussion on #debian-mono is desired). When CLI policy draft is finished and all current packages follow those, it's ready for going in Debian/Etch (Sarge must be released before that of course).
At that time we will work on backports for Debian/Sarge and provide them via the official Mono project page. I have to send some special thanks to the Debian Developer who allows that all my work is actually hitting Debian (because I am not an official Debian Developer yet), it's the man called Ingo Saitz (aka Salz) who is sponsoring all my uploads to debian and pointing me sometimes to issues he may see. Thank you Ingo for all work you did to make this possible! [/Academy Awards speech]

Mirco Bauer: Mono 1.1 in Debian update, I can use it already

After 2 days hardcore packaging the rest of the Mono suite, like Gtk#, Gtk#2, MonoDoc, Gecko#, Gecko#2, GtkSourceView#, GtkSourceView#2 and MonoDevelop I am kinda exhausted. But the packages work and everybody is happy. libgdiplus though causes problems to work with libcairo1 (0.4.0), it expects the 0.3.0 API, and even ships cairo 0.3.0, but that means I can not use extra features like glitz. A mono developer is trying currently to port libgdiplus for the 0.4.0 API, hope it will work out. If you like to try those new preview packages here is the APT source: deb http://debian.meebey.net/ ./
It contains the whole Mono 1.1 suite. The 1.1 suite will be uploaded to debian/experimental as soon I got a some positive or negative feedback (latest next weekend), have fun monoing wink.png

Wouter Verhelst: New waffle iron

I was baking waffles today, using my not-so-secret recepy. I needed about fifteen of them, and murphy helped me let it take far longer than initially expected. I had already made some errors in creating the dough (though nothing that I couldn't fix), and when I had eventually finished it and was halfway through baking those waffles, my waffle iron broke down. Which wasn't totally unexpected, given how this is a waffle iron that was part of the inheritance of an aunt of my dad's who had died even before I was born, which must have been approximately fourty years ago. Still, it had me sitting there with a broken waffle iron, a promise that I'd be baking waffles for a fundraising activity, and only half the number of waffles that I needed. I had found myself a slight little problem. So, I went to a local shop, had a look at the waffle irons that they had for sale, and chose one that looked OK to me. I hadn't taken a close look at the box, but the saleswoman had shown me the device and it looked well suited for my needs. Once home, I showed it to my brother. Who promptly exclaimed that 'it is the same as the old one'. At first, I wanted to protest; but on close examination of the picture on the box, I had to agree that he was right! They had restyled the one inside the box—given it a different colour, and used a temperature dial with a more modern look—but it was, indeed, the same model. And this redesign must have happened fairly recently; the illustratory pictures in the user manual still show the 'old' style design, which is identical to the old waffle iron, modulo approximately fourty years of technical evolution. In fact, the single most drastic change between the old device and the pictures in the manual of the new one would seem to be the fact that the company producing these devices changed names in the mean time. They also appear to be having a website, which contains pictures of yet another design of the same appliance. I was baffled. I mean, sure, home appliances are not computers, and I could imagine how a waffle iron, designed five years ago, would still be in sale today. But after that long? What I haven't checked yet, for lack of time, is whether the irons of the old device would fit in the new device. I'll do that tomorrow, because the old device had a 4x6 "Brussels waffles" iron, whereas the new only came with a double 4x7 "Home-made waffles" iron, and an iron for six heart-shaped biscuit waffles. If that would fit, then that would save me an expense of 32 euros—I love baking Brussels waffles, so any waffle iron I use needs to be able to do those. Even if it can only do so one waffle at a time. The ability to use the iron of that 40-year-old thing in the new device would be... great.

11 March 2006

Clint Adams: Everyone loves Magical Trevor

All this niggling about delegations disturbs me. You would have thought that Ian Jackson would have cleared this up but he seems to have confounded the issue by paragraphs of equivocation after a firm and sensible statement. For someone used to nearly-nonexistent labor protections, the idea of not being able to fire someone without due process is one step away from a totalitarian dystopia. Americans look at European employment laws with amazement and horror. The employees might see the added job security as comforting, but the knowledge that one can quit on 5 minutes' notice is comforting as well, and it is not a freedom that most would sacrifice. Employers see the added security as a potential nicety, but also as a terrible burden. Not only do we have to keep paying them after we fire them, we have to give them places to sit! It's tantamount to Evil Communism. I'm sure you can guess what Europeans think of American labor laws. Anyway, having anyone with augmented privileges not be fireable at the drop of a hat seems like madness to me. So I'll continue to believe that we can can anyone on the org chart any time we damn well please. Any other situation would mean that they have too much power.

Aigars Mahinovs: ReadThemAll GPL book reader for Palm

Many people complain that it is hard for them to read ebooks. The thing is you simply have not seen the best way to do that. The right hardware and software. The right hardware for most people is a Palm. Palms are great organizers and generally a very good portable computing device with nice battery life and good screens. The right software to read ebooks in Palm is the GPL ReadThemAll. The killer feature is the "spotlight" autoscroll. The idea is simple - you open a document, a screenfull of text is shown, you press down and start reading, as you read the lines at the top of the page start becoming transparent - they fade out, when you have read 'till the end of the screen the fadeout has propagated down to ~middle of the screen and on the top the text from the new page is fading in, so when you have read the last line on the screen you just raise you eyes and start reading from the top again and the new page is already there. The text only fades in and out, it does not move around the screen. Works like magic. You can press up to stop the scrolling. If you press down when the scrolling is active, it will speed up. If you press up when the scrolling is not active it will reduce the scrolling speed. It also has the normal page-by-page mode, remembers your place in books, reads the normal Palm document files (utf8) and allows adjusting the font. Wonderful piece of software, I read a couple books a month with it and my Palm Treo 600. It has actually become my catch all activity - if I have nothing else to do for even 5 minutes, I take out my Treo and continue reading my book. (P.S. Discworld rules!)

8 March 2006

Robert McQueen: Now hiring

My company, Collabora, is seeking one or two experienced free software developers to hire or subcontract. We are working on VOIP and Instant Messaging software using Glib, D-Bus and GStreamer, and our focus is creating and working on completely open source projects. As well as contributing frequently to D-Bus and GStreamer, our main projects at the moment are the Farsight library for negotiating and setting up GStreamer pipelines for peer-to-peer voice and video streams over a variety of protocols, and the Telepathy framework for allowing IM/VOIP server connections to be implemented as D-Bus services, so that the connections can be shared and integrated into your desktop, exposing the different functions of the servers in the appropriate parts of the UI. If this sounds up your street, drop us a line with a CV and details about relevant experience or free software projects you have contributed to.

Ross Burton: Lotus Notes On Linux?

From Groklaw:
At the end of the presentation, Andreas Pleschek revealed that the laptop he used for the presentation was running a pre-release of their new platform, the Open Client. It is actually a Red Hat work station with IBM's new Workplace Client, which is built in Java on top of Eclipse. Because of Eclipse, it runs on both Linux and Windows, and they have been able to reuse the C++ code in Lotus Notes for Windows to run it natively on Linux via Eclipse. Internally in IBM, for years, they have had a need to run Lotus Notes on Linux, and now they can. And they will offer it to their customers. Workplace uses Lotus Notes for mail, calendar, etc. and Firefox as their browser. For an office suite, they use OpenOffice.org.
Does anyone know more details about how the C++ code in Lotus Notes for Windows is magically turned into native Linux code via Eclipse? I don't entirely understand what they've done here. Maybe the backend is the original C++ with a new frontend built using SWT? NP: Liquid Swords, GZA

Andrew Pollock: [tech] Master of Networking and Systems Administration

From the "Things the make you go 'hmmm' department"... In the mail today I received a flyer for the upcoming Australian System Administrator's Conference (aka SAGE-AU'2006). Along with said flyer was another flyer, one for a new offering somehow associated with Charles Sturt University, with the above degree. Whilst it looks moderately interesting on the outset, it reeks of vendor-specificity when you dig a bit deeper. I'd hope that it teaches a lot of general skills that could be applied anywhere. Certainly, the above Masters degree, whilst sponsored by Novell, only has one subject that sounds excessively Novell-specific, namely "Novell Administration". Hopefully the "Linux Fundamentals", "Linux Administration", "Managing Linux Enterprise Servers" and "Linux Enterprise Security" subjects are sufficiently distribution-agnostic so as not to produce graduates that are hopeless entrenched in one vendor's way of thinking. Of the the other programs they are offering, they mostly sound excessively Microsoft or Cisco specific, except for the Master of Information Systems Security, which looks like it gives a pretty broad coverage of multiple vendors. It would certainly be interesting to see how a graduate of the Master of Networking and Systems Administration stacked up in a Google Sysops interview...

Clint Adams: Forced voting

Steve, I think this is a crock. We have enough uninformed voters as it is; encouraging more people to vote without caring does not seem like it would have positive effects. At the very least, I would expect it to elicit more protest votes than we've had in the past.

7 March 2006

Joey Hess: DPL..

Since I find the DPL position increasingly uninteresting except as a position of technical leadership, I will probably use the following simple metric (which I think of as the "degrees from Bruce Perens" metric) to rank my choices for Debian Project Leader in this year's elections:
  1. Order the candidates based on the perceived solidity of actual technical changes they propose to make to Debian.
  2. Rank "further discussion" above the first candidate whom I could not bear to see as DPL.
I won't bother listing the result, it's pretty predictable. But I will here excerpt all the at least vaguely technical content from the candidate's platforms:

Junichi Uekawa: soundtracker package update.

Although there are quite a few pending things with soundtracker, since it's a new upstream release, rejoice.I've updated Japanese translation for the package, and found several upstream packaging bugs, but all in all, it's a functional tool, which is pretty decent.Nice.

Erich Schubert: LaySVN rewrite

Today I've rewritten most of my "laySVN" layered subversion tool. Tests had shown that most of the time was spent calling the "status" command of the underlying subversion client. This is probably due to locking, and the workaround is pretty simple: avoid calling it on single files, instead run it on the whole repository at once. This of course requires major changes to the code, so I've started a rewrite. I've already applied for a alioth project for it, I'll make the source available via svn.debian.org soon. "Layered subversion" means that you basically checkout multiple subversion repositories on top of each other. A file found or ignored in an "upper" layer will not be checked out in lower layers; ignoring a file in a layer will effectively "hide" it if it were in lower layers. This is an interesting alternative to branching. In branches, you have to "carry forward" changes from one branch to other branches. The base case - merging changes from a "lower" layer into an "upper" layer is usually quite easy. The other direction can get quite messy however. Assuming that multiple files were modified in the checkout, how are you going to commit these changes to the correct branches? Basically you'll have to commit the files to the correct branches, then do the merging magic. Along comes laySVN, where this common usage pattern is much easier. Changes will automatically be committed to the highest "layer" the file is in. A checkout will update the file to the version of the "highest" layer. The only case which is a bit more complex is when you want to make changes to a file on a different layer. Then you actually have to "add" the file to the appropriate layer. Not really difficult either, is it? A different name for "layered subversion" would probably be "difference branches", which are very similar.

6 March 2006

Meike Reichle: Back from Chemnitz

I am back from Chemnitz, at work now, feeling a bit tired but otherwise okay.
How it was:

5 March 2006

Uwe Hermann: HOWTO: Anonymous communication with Tor - some hints and some pitfalls [Update]

Warning: Very long post ahead. You have been warned! What? Tor is a Free Software project (revised BSD license), developed by Roger Dingledine and Nick Mathewson, which creates an infrastructure for anonymous TCP communication. From the project website:
Tor is a toolset for a wide range of organizations and people that want to improve their safety and security on the Internet. Using Tor can help you anonymize web browsing and publishing, instant messaging, IRC, SSH, and other applications that use the TCP protocol. Tor also provides a platform on which software developers can build new applications with built-in anonymity, safety, and privacy features. Tor aims to defend against traffic analysis, a form of network surveillance that threatens personal anonymity and privacy, confidential business activities and relationships, and state security. Communications are bounced around a distributed network of servers called onion routers, protecting you from websites that build profiles of your interests, local eavesdroppers that read your data or learn what sites you visit, and even the onion routers themselves.
Tor also allows you to set up and/or use a so-called Tor hidden service, i.e., a server which offers some service (a website, ssh access, or similar) without revealing its IP to its users. Why? Why would you want to use Tor? Well, because you probably don't want anybody (neither state agencies, nor companies, nor "hackers", nor any other individuals or groups) to be able to record, analyze, and (ab)use information about your web browsing habits, or any other communication habits. For instance, you don't want Google to have a complete search-profile of you, which — even worse — might some day get in the hands of other parties. In the days of massive data retention you don't want all your electronic traces to be recorded, stored for ages, analyzed, and data-mined for dubious reasons and with even more dubious results and false conclusions drawn which might negatively affect you. If you're a human rights activist in China, you want anonymous communication. If you're a whistleblower, you want anonymous communication. The list is endless. For securing your communications, so that nobody is able to sniff your emails, your chat messages, your passwords, your private documents and conversations, you use encryption. For communicating anonymously you can use Tor. Combine both, and you have secure and anonymous communication. In case you're wondering whether criminals might abuse Tor, read the Tor Abuse FAQ. Short answer: yes, but if you're willing to break the law, you already have anonymity (open access points, stolen/prepaid mobile phones, etc.). You don't need Tor to do bad things if you're a criminal. If you're one of those horrible "oh, but I don't have anything to hide" guys, consider this: Say you have a drug/alcohol problem and want to visit an anti-drugs/anti-alcohol website or forum for help. Would you want the whole world, your neighbors, your co-workers, your boss, to know that, or would you rather want to keep that a secret? Say you have AIDS and want to get information on the web? Or, to make the example even more dramatic: Would you want some random guys to be able to watch you while you fuck your wife? No? So you have something to hide after all, right? My point is: Everyone has something to hide, even more, it is a basic human right to have the ability to hide something. It's called privacy. How? Tor implements a form of onion routing to, basically, push encrypted data through multiple Tor nodes (servers), before it reaches the final destination (e.g. a website). The result is that neither the website owner, nor a local eavesdropper, nor any single Tor server knows who requested that specific website, hence you are communicating anonymously. For more technical details, read the Tor overview and the Tor documentation pages. In order to use Tor, you have to install and run a local Tor client/daemon (this is not necessarily a Tor server!). On Debian, type apt-get install tor, on other systems you can get the respective binary packages or download the sources and compile Tor yourself. Usually Tor is used together with Privoxy, a configurable HTTP proxy which sanitizes your web-browsing experience by removing nasty banner ads, pop-ups, JavaScript, webbugs, cookies etc. etc. So: apt-get install privoxy. After installing and starting Tor and Privoxy, you can now configure your webbrowser to use Privoxy as an HTTP proxy (see below), and Privoxy will in turn use Tor to anonymize your communication if you add "forward-socks4a / localhost:9050 ." to your /etc/privoxy/config. Anonymizing various applications Most (but not all) of the following information is also covered in the very useful Torify HOWTO in the Tor wiki (I will add the missing information there, ASAP). As I'm pretty paranoid, I have checked every single of these configurations with Ethereal to ensure that the traffic is really anonymized. However, if you are paranoid, you shouldn't trust me, but rather test this stuff for yourself! Warning: DNS Leaks:
The biggest problem with many applications is that they leak DNS requests. That is, although they use Tor to anonymize the traffic, they first send a DNS request untorified in order to get the IP address of the target system. Then they communicate "anonymously" with that target. The problem: any eavesdropper with more than three brain cells can conclude what website you visited, if they see that you send a DNS request for rsf.org, followed by some "anonymous" Tor traffic. The solution: use Tor together with Privoxy, that prevents DNS leaks. Many non-HTTP-based applications are usually torified using a small tool called torify (e.g. by typing torify fetchmail), but often this approach has DNS leaking problems, see below. You might also want to check out toraliases, a small shell script you can source from your ~/.bashrc file. It defines some functions and aliases which transparently direct the traffic of some (but not all!) programs through Tor. Applications which cannot easily be torified Anything not using TCP usually cannot be torified, as Tor only works for TCP. Pitfalls to be aware of More information More information is available in the Tor documentation, the Tor wiki, and especially in the Tor FAQ. In addition, there's an IRC channel on Freenode (#tor), some slides and a video (torrent) about Tor you might find interesting. If you would like to help, you can run a Tor server, donate some money, or volunteer to do other things (code, debug, document, translate, and more). That's it for now. I'm very grateful for comments and suggestions, especially for hints on how to anonymize more applications. Also, if you notice any dumb mistakes I made, please leave a comment. Update 2006-03-07: Fixed typos, added link to the toraliases project (thanks Benjamin Schieder).

Next.

Previous.