Search Results: "Erich Schubert"

7 February 2006

Erich Schubert: On "encrypting" (read: obfuscating) P2P: Please don't!

Recently there was a discussion on whether BitTorrent should get some encryption (or obfuscation, more likely) added. Right now, you can filter out BitTorrent traffic with the following iptables command (note: this needs iptables 1.3.4 and a recent kernel):
iptables -I OUTPUT -j DROP -m string --string "BitTorrent protocol" --algo bm --from 0 --to 100
(Note: match is not optimized, the range of 0 to 100 and algo bm is arbitrary) The nice thing is, that this match is very unlikely to match non-Bittorrent traffic. Linux users can use it to filter out all BitTorrent traffic or mark it for speed restrictions. Network operators are very interested in filtering this traffic: it slows down more important traffic (and if you are e.g. using stochastic fair queing, the large number of connections for P2P filesharing will make it get a larger share than other apps!) and can cause costs. If you have mobile users, who e.g. connect their laptop to your network, they will occasionally use BitTorrent at home, and forget to disable it when they connect to your network. That's really bad, it happens and it's not like this is intentional "malbehaviour" or "sabotage"! So back to the original topic - obfuscating BitTorrent traffic. Let me explain what network operators might do when BitTorrent can't be slowed or filtered any more (Note that this already applies to some services such as Skype or Kazaa as far as I know): First of all, they might decide to filter all connections to non-standard ports. This effectively eliminates (most of) filesharing - but also e.g. Skype and some IM and chat services. Basically any non-standard service. (Note that "professional" VoIP services using SIP may still be whitelisted). Secondly, they could decide to slow down all connections to non-standard ports. This would make filesharing, Skype, IM etc. still possible, but for example file transfers via IM will be really slow. No video via Skype, probably, depending on the limits set in traffic shaping. Thirdly, they could disable all outgoing connections and require you to use proxies for that. Then you need to enable/disable your proxy all the time when switching networks, and you'll only be able to use a limited set of services. Again, Telephony via SIP is still technically possible, using a SIP proxy or by whitelisteing major SIP providers. Skype is no longer possible. IM needs whitelisting, and will likely be blocked, too. None of these options are very favourable for the users. So please do not support "obfuscated" Protocols such as Kazaa or Skype, or an obfuscated variant of BitTorrent. Stick with stuff administrators can set up policies for - and be nice to your admins. Tunneling via non-standard ports, hiding services will only get you into trouble, and probably even make innocent other users suffer. After all, filesharing - especially illegal downloading movies and music - is not THAT important, is it? So please make the important services not suffer from it. Thank you. Oh, and please use SIP, not Skype. Because your admin can whitelist your SIP provider if you tell him you need it for work or setup a proxy for that - and with Skype, he might be afraid that you become a supernode and cause high traffic costs. And then there is a much larger software choice for SIP, including many OpenSource solutions, including PBX software such as Asterisk.

6 February 2006

Erich Schubert: Why do I always fall...

I was in kind of a bad mood recently... Why do I always fall in love with someone who does not need me? (work in progress, oh, and no, noone left me, but sometimes I'm just not happy, with no particular reason. I guess if I had a reason I wouldn't be doing computer stuff.) People often love stuff I do when I'm not happy. So maybe you like it. Not as sophisticated as usually, though. Oh, and turn up your volume (safe for work, but they will hate you), enable flash and try all the play buttons here.

5 February 2006

Erich Schubert: On window placement

John Williams, of GNOME fame, recently blogged on window placement as part of his "things about gnome that suck" series. Well, I basically agree with him - but he doesn't propose a solution. Devil's Pie isn't a solution, because it's not configurable by the average user. Or even by me, I failed to have it tell apart my terminal windows and use a sane placement for them. Just remembering the last window position doesn't work either - I'm annoyed by this "feature" by nautilus, for example. I tend to have a default position for my windows, by I occasionally have to move them away, and I do not want to have them reappear at this different position ever. My personal approach basically is to run all windows (except my terminals and popups such as IM windows) fullscreened, on dedicated desktops. Even the IM windows are usually on my "IM & Chat" desktop. This works really well, especially since I keep my terminal windows open all the time, and the default placement to minimize overlap works fairly well. Still I couldn't specify a general rule how any window manager could learn where to place my windows... so just complaining that Gnome doesn't do this good isn't all - we need to find a way to make this work just fine without the user noticing... I don't know about OSX - how does this work there? In windows it definitely is horrible. When you watch windows users, you'll often see them stating their Internet Explorer, then clicking on the maximize button. All the time.

Erich Schubert: Shouldn't Debian be Alsa by default now?

Some time ago, I installed Debian on my mothers new laptop (which worked fine once the Xorg drivers supported PCI Express and I did a Bios update). Since my Laptop is currently being repaired, I'm using hers now (she works 95% of the time on her Desktop anyway). And I noticed a couple of odnesses:
Package: libsdl1.2debian
Depends: libsdl1.2debian-oss (= 1.2.9-0.1)   libsdl1.2debian-all (= 1.2.9-0.1)
  libsdl1.2debian-esd (= 1.2.9-0.1)   libsdl1.2debian-arts (= 1.2.9-0.1)
  libsdl1.2debian-alsa (= 1.2.9-0.1)   libsdl1.2debian-nas (= 1.2.9-0.1)
This makes SDL install OSS support by default, not alsa. IMHO we should now make alsa support default. Maybe even some dmix configuration, since that is what most users will need. Similarly, lots of stuff depends on libesd0, which is the OSS library. Or to be precise, they all depend on "libesd0 libesd0-alsa", tons of packages. Each single one preferring to install the OSS version instead of the ALSA version. :-( Is it just me thinking that OSS is deprecated, while ALSA works like a charm and can do much more than OSS? Sure, you can use ALSA via it's OSS emulation, but then you lose e.g. the ability to use dmix.

30 January 2006

Erich Schubert: Laptop gone for repair

My laptop is now gone for repair of the backlight. While I have my HD at home (and an external casing for it), I don't have my usual work environment... So I will probably not do any Debian work until I have my laptop back; if you want to NMU (or adopt minit, where I did the orphan upload just yesterday), just send me an email. I should still be reading my email frequently. I hope with the repaired backlight the laptop will continue running until I've decided on a model to buy instead. Current favourites: IBM Thinkpad T43p (which supposedly is almost the same as my current laptop, and especially also has hopefully the same 1600x1200 15" display...), Samsung X20 or X50, maybe an Apple, or (which is really pretty, but seems overpriced) Samsung Q30plus. Ranked in order of importance to me: Display quality (shouldn't reflect too much, should be very fine) then weight. Everything else is rather uninteresting...

24 January 2006

Erich Schubert: Most boring IP test

Slashdot pointed out IP spotting, a rather primitive tool checking your IP for prime numbers and such. Instead of trying to come up with a high score, I was looking for a low score. The lowest I've seen so far is gluck, the main debian web server - it has the amazing score of -1. Update: 129.187.150.128 has a score of -2. And that actually is an IP in a range I administrate. Thanks to Michael for spotting.

22 January 2006

Erich Schubert: Laptop backlight died. (IBM ThinkPad A31p)

It has happened. Today I had the impression that my display was a bit darker than it used to be; and later it started by slight changes in brightness, then real flickering - and then only darkness remained... I can still somewhat read the display, since I've started using black-on-white two years ago when I noticed the increased readability in pure sunlight. Now I've hooked up a TFT, but it's not yet running optimal, since my laptop had a 1600x1200 TFT, while the 17" display I've attached has a physical resolution of 1280x1024 I guess. I loved my IBM ThinkPad, especially because of it's display. Compared with much more recent displays, it had an excellent viewing angle, next to no reflections on it, and stunning sharpness with it's 135 dpi. I'll miss it. And I'll definitely miss the page-left and page-right keys next to the arrow keys I've gotten addicted to for desktop switching... The laptop is now 3.5 years old, so out of warranty. More stuff had started breaking; just before end of the warranty the harddisk died and I got it replaced, the main battery doesn't charge any more and my secondary battery holds for half an hour. Bluetooth never worked for me, and doesn't show up on USB like in all the Howtos. Heck, even of one of the two USB1 ports (no USB2) falls apart - the plastic part to keep the pins from touching is broken off... So it definitely doesn't pay off to have the display fixed. They would need to fix just about anything there. What sucks most is that I had intended to buy myself a new laptop in 10 months. I'd like to get one with a Core CPU then, but I don't trust the early models... and I'll have to decide which brand to buy. I loved my A31p display, but 15" and 3.5 kg is too large and heavy for my current taste. I'd go for an IBM ThinkPad X* (and I'd love the X50 I guess) if they weren't a bit expensive... maybe I'll get a Samsung now, but I definitely would want to test the display first... can't stand some of the displays I've recently seen on Dell (don't even think of watching a DVD on them unless you are at most 2 people, and they reflect like shit.) Does anyone know if there is a sponsorship program for Linux developers to get new laptops cheaper? ;-) Or at least without having to buy a useless Windows licence? Of course I'd help writing drivers and document the installation process...

19 January 2006

Erich Schubert: We need debian-announce-announce and debian-devel-announce-announce lists

To handle the current influx of (annoying) announces, we need to create new mailing lists, named debian-announce-announce and debian-devel-announce-announce, as well as accompanying lists named debian-announce-announce-flames and debian-devel-announce-announce-flames with the Reply-To set to these lists. Would you please just shut up? Thank you. The original Ubuntu announcement was probably not appropriate for the list. I just ignored it when I read Ubuntu. The clownish public flame "announcement" afterwards was a nuiscance, and a certain evidence of incapacity. But the amount of pointless discussion that has sprung from it reminds me of why I don't read debian-devel any more... Please direct further comments to /dev/null. In fact, such pointless threads explain why we're using Planet.Debian so much: because our mailinglists are so bad. Fortunately, there have been rather few posts on that issue on planet yet... because I don't have a "delete thread" option there.

15 January 2006

Erich Schubert: OpenVPN goes crazy

I've been using OpenVPN to provide secure wireless for a group of around 200 students here, of which around 60 frequently use it. It was running fine for the last few months, but started doing weird stuff on friday. Dear Lazyweb, I'm lost at debugging the cause... I've eliminated the wireless links as possible cause, so here is the simplified setup:
User #1   -- openvpn  --   tap0 \                 eth1   -- DMZ net
                                 - br0  Firewall
User #2   -- ethernet --   eth0 /                 eth2   -- internet
So the firewall host has three ethernet interfaces, one of which is bridged together with the OpenVPN in tap mode. Everything works just fine for User #2. The firewall rules used all use only br0 as device, and a netmask both User #1 is in and User #2. Rule counter in iptables verify that the firewall is working correctly. User #1 can: After these two seconds, packets start being retransmitted; some of the retransmissions will then arrive at the client, but rarely enough to actually receive a simple website. I am not aware of any changes to the client or server OpenVPN configurations. The latest changes (according to SVN) in the firewall rules were completely unrelated "accept" rules... (and the retransmissions arrive, so...) Any hint? Some MTU issue maybe? Maybe "upstream" routers increased their MTU, now the packets are hitting some triggers? But why would it work for 2 seconds then each time openvpn on the client is restarted?

12 January 2006

Erich Schubert: My social disorder: Happy

Given the posts on diverse planets, this seems to be a common nerd disorder...
Your Social Dysfunction:
Happy

You're a happy person - you have a good amount of self-esteem, and are socially healthy. While this isn't a social dysfunction per se, you're definitely not normal. Consider yourself lucky: you walk that fine line between 'normal' and being outright narcissistic. You're rare - which is something else to be happy about.

); background-repeat: no-repeat;">
Take this quiz at QuizGalaxy.com

Please note that we aren't, nor do we claim to be, psychologists. This quiz is for fun and entertainment only. Try not to freak out about your results.
Another quiz meme: You scored as Mathematics. You should be a Math major! Like Pythagoras, you are analytical, rational, and when are always ready to tackle the problem head-on!
Mathematics
100%
English
100%
Engineering
92%
Journalism
92%
Philosophy
67%
Theater
58%
Linguistics
58%
Psychology
42%
Dance
33%
Sociology
33%
Chemistry
25%
Art
25%
Anthropology
17%
Biology
0%

4 January 2006

Erich Schubert: Enemies of Carlotta and postfix

I've been setting up EoC lists on a SELinux postfix box recently. It was rather painless, and I have enough experience with SELinux to quickly write a SELinux policy for EoC. The most difficult thing was that basically file descriptors from the postfix delivery process were inherited all the way to bounces for nonexistant lists. I tried different setups; using EoC directly in .forward, using procmail, and using a shell wrapper like this:
#!/bin/sh -e
# verify the list exists
/usr/bin/enemies-of-carlotta  --skip-prefix=eoc+ --domain=list.foobar.tld \
  --is-list --name "$RECIPIENT"   exit 67
#  deliver to EOC
exec /usr/bin/enemies-of-carlotta --skip-prefix=eoc+ --domain=list.foobar.tld \
  --incoming --quiet
This last had the drawbacks that I would have to write some additional policy, or maybe make the wrapper part of EoC. With little benefit over the procmail solution. (BTW: IMHO the Debian enemies-of-carlotta package shouldn't depend on procmail.) I've seen a solution which used a pipe transport from within postfix with a similar wrapper (basically passing $RECIPIENT and $SENDER via commandline instead of having the local delivery agent set them); but I'm not sure about the benefits I get from that (except maybe even more SELinux policy work). There are two drawbacks with my current solution: Hmm... since newer EoC versions now have --sender and --recipient parameters, I guess I'll try running eoc in the pipe transport without any wrapper now... Update: I've now setup EoC to run as pipe without a wrapper; this didn't solve the first wish, but caused some extra SELinux violations and despite using the --quiet option a really bad error message for invalid adresses... Patching EoC right now to exit with 67 in that case... Here's the diff:
--- /usr/share/enemies-of-carlotta/eoc.py       2005-12-22 01:05:00.000000000 +0100
+++ eoc.py      2006-01-04 19:50:43.000000000 +0100
@@ -1642,7 +1642,17 @@
             debug("Not a mailing list: <%s>" % list_name)
             sys.exit(1)
     elif operation == "--incoming":
-        mlm.incoming_message(skip_prefix, domain, moderate, post)
+        try:
+            mlm.incoming_message(skip_prefix, domain, moderate, post)
+        except BadCommandAddress:
+            sys.stderr.write("Bad command address.\n")
+            sys.exit(os.EX_NOUSER)
+        except BadSignature:
+            sys.stderr.write("Bad signature.\n")
+            sys.exit(os.EX_NOPERM)
+        except UnknownList:
+            sys.stderr.write("Unknown list.\n")
+            sys.exit(os.EX_NOUSER)
     elif operation == "--cleaning-woman":
         mlm.cleaning_woman()
     elif operation == "--show-lists":
which works much better when used as transport like this:
eoc       unix  -       n       n       -       3       pipe
        flags=R user=eoc-lists argv=/usr/bin/enemies-of-carlotta --sender=$ sender  --recipient=$ recipient  --incoming

3 January 2006

Erich Schubert: Linux: two leaps ahead

I just read my logcheck email, and one box scared me:
Jan  1 00:59:59 dumbledore kernel: Clock: inserting leap second 23:59:60 UTC
Jan  2 00:59:59 dumbledore kernel: Clock: inserting leap second 23:59:60 UTC
It had two leap seconds. None today though... All the others, running the same software, had only one leap second, on 1.1.

2 January 2006

Erich Schubert: Debian SELinux mailinglists created.

I've added two SELinux on Debian mailing lists on Alioth: SELinux-user and SELinux-Announce. The first one is an open SELinux on Debian user mailing lists, the second will be used for announcements (mostly when something important changes, new stuff is added, something breaks etc.). Every SELinux on Debian user should probably subscribe to the second. Since there aren't that many user, I guess the -user mailinglist will be rather low-volume for some time, and needs love by those who are already running SELinux on their boxes. Current SELinux packages contain some breakages... updates are stuck in NEW right now, and I've written some extra notes to the mailing list: notice about SELinux changes. BTW: On the long run, Debian will likely drop it's current "strict" policy, and migrate to a serefpolicy-based Policy like Fedora already uses. Any volunteers to debconficate the setup process?

1 January 2006

Erich Schubert: The best blondes joke of all time

this joke certainly is an all-time high. You have to read it!

Erich Schubert: Linux: a leap ahead

Maybe Intel should donate their new slogan to Linux instead: Linux servers reporting the leap second This is a small farm of Linux servers, each reporting that it has added the leap second, and logcheck on each of the machines (not running remote syslog yet) reports this line as "unknown or important log message", sending an email each to my off-site account. Guess I'll have to file a bug against logcheck to add a statement for this line, so I won't see it next year. or in 2600, if they maybe add a leap hour instead. On the other hand, this is a nice new years mail from your servers: Nothing interesting happened, so I had to add a leap second. ;-)

31 December 2005

Erich Schubert: Happy new Two-Oh-Oh-Six

Just a few hours remaining here until the longest 24h hours in years...

30 December 2005

Erich Schubert: Why does Intel pick bad slogans: "limp ahead"?

No more "Intel outside", but now now a "limp ahead"? Intel has a new annoying marketing slogan. Congrats. Now, could you stop sueing poor users for using regular english words such as inside? (No, I'm not affected, just annoyed) Will you now fight anyone using the word "ahead"?

28 December 2005

Erich Schubert: Automagic fixing quotation marks for LyX

My mother uses LyX (and thus, LaTeX) to layout her books. She doesn't need much help, but does almost everything herself. Except she was lacking an editor which could replace the quotation marks appropriately, because they are handled somewhat special in LyX (you need an editor which can replace by multiline text, such as VIM). So every now and then, mostly when she's started layouting a new book, she'll ask me to fix the quotation marks in a lyx file for her. I decided to write a small python script for it, since she has python installed on her box anyway (also on Windows, although she also has Linux on it). Maybe someone else has the same problems, so here you go:
#!/usr/bin/python
import re, sys
 
# Use full regexp power to detect as many " properly as possible...
# Note that this is a lot more sophisticated than just \b" and "\b
# and will be able to handle all the 'something ...", said foo' cases, too!
# But yeah, you can do even more, and maybe separate it into more regexps...
qrp1 = re.compile(r'(^\s* \b[:]?\s+[.:,;?!\-\(]*)"(\b)', re.M)
qrp2 = re.compile(r'(\b[.:,;?!\-\)]* \b \.\.\.)"([.:,;?!\-\)]*(\s+\b \s*$))', re.M)
 
# These are for >>-style quotes, german bracketing. If you want other
# quotes, adjust to your style yourself (hint: look at your .lyx file)
q1 = r"""
\\begin_inset Quotes ald
\\end_inset
"""
q2 = r"""
\\begin_inset Quotes ard
\\end_inset
"""
 
# Iterate over all input files...
for name in sys.argv[1:]:
        # Load input file
        fi = file(name, "r")
        data = fi.read()
        fi.close()
        # Replace quotes
        data = qrp1.sub("\\1"+q1+"\\2", data)
        data = qrp2.sub("\\1"+q2+"\\2", data)
        # Write output file with new name
        newname = name + ".quotes.lyx"
        fi2 = file(newname, "w")
        fi2.write(data)
        fi2.close()

27 December 2005

Erich Schubert: Fixing planet

Today I've been fighting Planet, the well-known blog aggregator tool. After a while I had found out how/why it was scrambling Atom feeds horribly. I'm not sure if actually is a planet bug - maybe it is fine with older python versions. The SGML parser of python2.4 however fails on tags such as <br />, a very common case in blogs and thus in atom feeds. Strage additional > brackets appeared in the output. The reason is, that the SGML parser as of Python2.4 is looking for <tag/foo/ as an equivalent to <tag>foo</tag>, and thus treats <br/><br/> the same as <br>><br<br>> with the inner chars somehow magically escaped... The fix is quite simple: add
sgmllib.shorttag = re.compile('<([a-zA-Z][-.a-zA-Z0-9]*)/(/*)>')
to your feedparser.py file in the obvious place (next to sgmllib.tagfind). This will break support for these true SGML short tags, but I've never heard of a blog feed using them anyway. I told you that I'm not really sure whether this is a planet bug: It might be a bug of pythons sgmllib, too. But maybe Planet should just use a XML parser for XML files, and fallback to an SGML parser (or maybe a robust XML parser) for other files (unfortunately, many blogs - including mine - do not ensure correct XML). And Planet could use some proper XML handling, too, anyway... Right now, the code is so string-array-based, it makes me sick. You might also want some extra magic to re-fold <br/> tags to not confuse older browsers.

Erich Schubert: Skype - Internet telephony that just doesn't work

Some time ago I tried skype... now I wanted to use it to call someone, tried starting it... the main window came up, and immedeately closed itself again. Nothing I can do about it, no error message, nothing I could do differently. So I was looking for a different/newer version, and found out that Skype itself provides downloads for Skype on Debian. Except they are uninstallable. What a crap! Use an open standard, like SIP, which works much better - and where you can use different applications such as linphone or kphone.

Next.

Previous.