Search Results: "mak"

17 February 2006

Uwe Hermann: Motorola A780 - My Shiny New Linux-Based Smartphone

Motorola A780
Motorola A780 Accessories It seems that I have become quite a gadget-whore lately. I'm spending all my money buying one gadget after the other, no end in sight... Anyways, I finally got one of those fabulous Motorola A780, a Linux-based smartphone. Getting one turned out to be way more complicated (and expensive!) than what I thought it would be. In the beginning, all sounded quite good: my cell phone contract with o2 is two years old soon, so I can get a new (cheap) cell phone. Stupidly enough, o2 doesn't offer the A780 in their shops and there seems to be no way to order one either (they do offer other Motorola phones, though). After asking the same questions in different o2 shops multiple times (and almost giving up), I accidentally saw the A780 in the local Saturn (a German electronics store). And indeed, they sell the phone, and they can even prolong my contract with o2 (there's a dedicated o2 employee working in the Saturn store), so that I can profit in the form of a cheaper phone. Or at least that's the theory... In practive, however, I have a student-contract (saves me some bucks) which has the stupid "feature" that it can only be prolonged in o2 shops. Guess what, the Saturn guys cannot give me the A780 as they can't prolong my contract, and the o2 shop simply doesn't have the A780 at all. Argh! After grumbling, asking around, googling, and even more grumbling, I finally decided to do the following: I got a new "dummy" o2 contract in the Saturn (yes, I'll have to pay that for 2 years) which enables me to get the A780 and to get it cheaper. I'll keep using my old contract and my old SIM card for simplicity and leave the new one untouched. If you take into account the money I'll spend on the new contract it doesn't save me too much money, but at least it's distributed across two years... I'll terminate my (new) o2 contract tomorrow, to make sure I don't forget about it (I don't want to have it any longer than the 2 years I'm forced to live with)... Stupid, stupid world we live in. Nobody should be required to perform such "hacks" in order to get the phone he/she wants... Enough ranting now, here's some juicy details about the phone: For details on the hardware see this wiki page. The only thing which I'm missing is WLAN, but once USB host support works (the hardware does support it), you can easily use a WLAN USB dongle... I'm pretty sure I'll be having lots of fun with this thing, and I'll quite probably be contributing to the OpenEZX project, which was started by Harald Welte (of gpl-violations.org fame) and tries to create the first 100% Free Software GSM-phone using the Motorola A780 and similar phones. Judging from these blog posts by Harald, running your own 2.6 kernel on the phone is not too unrealistic anymore, and telnetting into the phone (via USBnet) seems to work fine already... Expect more spammingblog posts about the A780 in future...

Axel Beckert: Trojans must stay out

On Heise’s security site HeiSec, Microsoft is advertising (in German) with a Flash animation of a rolling, black horse approaching the reader. Then suddenly a red gate closes and a text apprears:
Trojans must stay out.
If we translate this back to ancient greek history, it would say:
Microsofties must stay out
since Trojans were the inhabitants of Troy (German: Troja) and in the horse were the Greek aggressors. So I strongly agree. ;-) I really hate it, if people just reverse the meaning of something by abbreviating it (here by turning the adjective into a noun). And then not noticing it. The term Trojan Horse in computing is just one (unfortunately) often seen example… But no wonder that Microsoft doesn’t care about such things. They care about so less (e.g. stable software, secure operating systems, users, administrators, trust, etc.) except keeping their monopoly, making money and making even more money.

Erich Schubert: SELinux Reference Policy on Debian

So I have now installable packages and tools for the mysterious, wondrous SERefPolicy. You can grab them at http://selinux.alioth.debian.org/experimental Note that I havn't tried using the policy yet. For example, the policy is missing dpkg and apt-get rules. So don't even think of running it on a production system, there is still lots of stuff to do. But I just, for the first time, managed to use "semodule", and actually add and remove modules from the modular policy. Yay! Now we just need to rewrite tons of policy in an even cryptier language, using even more M4 macro hell... ;-) Oh, and then we need to fix that Make bug effecting unstable, so we can actually build the new policy... ;-) We definitely need more people working on SELinux support in Debian.

16 February 2006

Antti-Juhani Kaijanaho: You know it s time to emerge from hack mode when

… rereading the spec makes you realize you’ve forgotten to deal with an important cross-cutting issue, and trying to figure out what are the undoubtedly numerous changes to the design that are required to handle this issue, makes your head hurt. (Another sign: when your writing is as convoluted as your worst code.) It’s so good it’s past bedtime. There’s no trouble figuring out what to do next :)

Riku Voipio: Linux destroys evidence!

Of all the evil things Linux does (promotes communism, is cancer, has higher TCO or destroys jobs, is unamerican..), A new horror has been found: Linux destroys evidence!.

In other news, we now know Linux is used even by Fortune 500 CEOs.

Steve Kemp: This is not an exit

Xen Tools : LVM Support
Thanks to a patch from Justin Azoff xen-tools now supports creation of new Debian instances under LVM. If you’re at all interested in this code please checkout the xen-tools CVS repository. I can’t feel too justified in making a release on something I can’t test myself unless a couple of people tell me it works.

Martin F. Krafft: Not surprised... (in search of a proper UML editor)

I need a UML editor capable of state diagrams to formalise the current and future workflow related to security updates for the stable and testing releases. Most UML software in Debian's archive only knows about class diagrams, with a few notable exceptions:
  • tcm: the user interface is a nightmare and despite at least half an hour of reading the docs and trying hard, I had not managed to create a .xmi file describing a simple publication workflow. Reason enough to move away from this horrid application.
  • umbrello: 50 Mb of downloads later, I finally had the KDE-based umbrello installed and within five minutes, I understood how to accomplish what I want with the more or less intuitive user interface, although I have still not found out how to associate actions with transitions. Anyway, while I am happily clicking away, umbrello suddenly disappears without a warning, message, or output to the console. Thanks, KDE, for making intuitive software that looks good; whether it's usable and/or stable is an issue with which you need not concern yourself.
ArgoUML, a Java-based application (see how desperate I am?) doesn't even want to start with the 1.5 JRE. Lacking any usable editors, I might just implement the whole security update process in Python. At least then it's formally described. If only there was a tool that turned some sort of state description files into valid UML...

Steve Kemp: Back to reality

Steinar H. Gunderson
It doesn’t matter which shell I use for completion. (And this goes to the other people who mailed me to tell me that Zsh rulez!) The problem is that packages of Zsh and Bash both offer several completion routines which are not sufficient for me. (e.g. one missing one is completion for the various bittorrent scripts.) So I need to install my own routines for those. I also wrote custom completion routines for in-house tools, and my own personal scripts in ~/bin/. Since these are not available by default in either the bash package or the zsh package I must install them manaully upon each host I wish to use, in order to have an identical setup. And that manual installation is what my new package makes easy. (Or will when it is complete!)
Security Team Meeting
Security issue meeting on IRC went well, although I left rather abruptly since my bed was calling my name.

Julien Danjou: xend stop crashing

Howto make xend stop crashing ?
% xm sysrq mydomU 0
No more logging on console... no more xend eating 99% CPU time.

Joey Hess: don't forget the MOOs

(This is a copy of my response to the LWN article Toward a free metaverse, which won't be freely available itself for another week or so.) There's an unconcious bias in this article toward 3d graphical worlds, and I think it's important to realise that that's not a necessary component of a virtual world, although it's certianly a component that will appeal to a lot of people and that fits in nicely with some current ways of working with computers -- ie, sitting in front of expensive screens weilding a mouse. Long ago we had MOOs, MUDs, etc, and they were text based. Just words, you know. And nearly all of them were free software. It might well be that text, or speech, or the like ends up being a better interface to virtual worlds of the future, especially if they are tightly integrated and layered on top of the real world. And I'm increasingly convinced that if these worlds don't integrate into the real world, if the ideas that have been bubbling up out of ADVENTURE and the MUCKs and the MMORPGs and such don't spread out and become something larger and more inclusive than their own little pretend world, then in the end that whole area has been nothing but pointless games. Which I hope it hasn't, but perhaps I'm getting old.. Speaking of freedom, there are levels and layers, and it's possible to build the free on top of the non-free. After all, I'm typing this on a device that is present in the er, First Life, which is not particularly free in its implementation; it has non-free firmware and BIOS, and is composed of atoms of some substances that are less easily available than air, and which follow some annoyingly inflexible physical laws, and it needs a constant input of metered electricity to run. But on top of all that is some free code that gives me a measure of freedom. Similarly, it would be possible to run free code in Second Life, and given how rare it is overall for such services to support coding at all, let alone explcitly give a program (or object's) creator the freedom to make it Free, that Second Life does so seems encouraging to me. If we get a distributed standardized free online world by 2010, I'll be happy indeed. (Disclaimer: I write text based MOOS, and have never used Second Life, though I chatted with someone there on the phone today.)

15 February 2006

Erich Schubert: When XSLT gets really messy...

XSLT is an outright ugly language. Thats why I often just hate it. In some (rare) cases it's very elegant, but most often incredibly clumsy. I've been redoing my homepage completely, and I'm using XSLT to render my data XML files to the XHTML output. That works quite well so far, but I hit more and more special cases. First I wanted to add a language chooser. This required finding out which lanuages my document supports (read: blocks with that language attribute exist) and check for uniqueness. Some things where rather easy to solve (with some experience in XSLT), so where extremely ugly. First of all, I want my template file to be a valid XHTML file, I don't want to have any layout parts in XSLT. Then I have a separate sitemap, needed for generating the menu. So I have to process three documents at the same time in XSLT. Ouch. But doable, using variables. Basically I have three modes - in one mode, the template is mostly copied over, unless I've specified some special rule, e.g. to insert the page title, meta information or content. A second mode uses the current chunk of the template document as template for the contents a couple of times to iterate over data chunks from the data source file (read: put text blocks from my source files into the output template format). The third mode does the same for the sitemap. Unfortunately, it started to get even messier... Big problem number one: Make a list of the available languages for the current page. Make this information reuseable throughout the page transformation. Part one: make a list of available languages by finding unique (!) @lang attributes. (usual approach: grab all nodes with @lang attributes, check if they have the same node id like the first occurence with this @lang value for uniquness, then output. Ugly as hell, but string magic sucks as much.) Big issue number two: Assume we now have a variable with en in there, access these nodes to transform them. Unfortunately, the generated nodes are "result nodes", and you cannot iterate over them with for-each. Luckily the exslt node-set extension to solve this. But now came the third big issue along... this is where I give up. I want my pages to have a nice modification date... my data pages are stored in subversion... Subversion has keywords expansion like CVS, which I can use nicely to automatically update the last modification date of the file. Unfortunately, the date will look like this: $Date: 2006-02-15 21:29:10 +0100 (Mi, 15 Feb 2006) $ Whereas in a web page meta information it's recommended to use ISO8601. Now if I only had regular expressions and proper date handling functions... I guess I'll stop writing ugly, hackish XSLT code and chose pretty Python code instead. Maybe use TAL or KID for XMLish templating...

Martin F. Krafft: The point of repeating passwords

If I set a password for a resource, it's good to be able to enter it twice and have the system verify that the two passwords equal each other, or else a typo may bring some unpleasant surprises. If, on the other hand, I let a system know the password for an existing resource (such as a WPA-PSK for a WLAN), there is no need in entering it twice! If it doesn't work, you probably entered the password wrongly. It's amazing how little many software vendors think when coding. "Password?" -- "Ah yes, two input fields, it's safer that way." The problem is especially annoying when the software needing the password is buggy, such as the Windows XP SP2 WLAN configuration: it cannot properly process WEP passphrases with special characters, so you have to enter the 13 bytes in hex. That's 26 keystrokes, and just to be sure you don't enter the password wrongly, make that 52. Some will say that Windows users are so stupid that requiring them to enter the password twice to guard against typos and subsequent hotline calls because it doesn't work. Let them say that. PS: Erinn, this Windows-related post I dedicate specifically to you.

Steve Kemp: Words are very unnecessary

Today I started to get annoyed when my bash completion code wasn’t available upon my laptop. To fix this I’ve created a simple Debian package called steve-completion - with the intention that I’ll move all my custom completion code into it. This should make my environments more sane and uniform. Right now I’ve just added support for completion of upload targets to dupload, and completion of the options for the pyzor package. Over the next few days I’ll add my other code. To avoid naming conflicts the files are named /etc/bash_completion.d/foo.steve. I dislike the Steve-suffix, but I dont want to trample on files which may be made available by package maintainers. (Assuming I get round to filing wishlist bugs.) This is comparible to the steve-base virtual package I made/use which exists solely as a package to pull in dependencies such as screen, sudo, etc. (These are packages which I miss when they are not available.) I wonder how many other people have similar packages? I know I got the idea from mdz .. Update: - CVS repository.

Andres Salomon: well said

http://pkg-ruby-extras.alioth.debian.org/upstream-devs.html. I’m getting really tired of attempting to package (or even just use) ruby things, and discovering that they only distribute (and require) RubyGems. I’m talking to you, collaboa. You lost a developer to Trac by making your software a pain in the ass to install.

14 February 2006

Joerg Jaspert: Another DVD image finished

Yesterday evening, around 17:00 UTC I finished building another DVD image after beeing up for almost 33hours. This time it is for the Cebit edition of the german Linux Magazin and Debian (we will have a booth there, see our Events page for more info, together with Credativ). If you are there you can grab the image there, or alternatively at the booth of Linux New Media/Linux Magazin. I built the image together with Alex (Tolimar), who did a great job keeping me focused on it, compiling stuff, helping with documentation, package selection and many other different things that needed to be done. We had our first big run with this image from (I think) Wednesday til Thursday, not taking any sleep in the night, to get it finished in time. Unfortunately we got the message that it needed some more changes, so we had the weekend to sort through it, and started again on Friday evening. Alex left on Sunday afternoon, where the image was basically nearly finished. Due to some little hickups it then needed until Monday 18:00 to really be final and sent out, which made me stay awake from Sunday, 09:30 til around Monday, 18:00 (local time). As usual (like the last 3 images I built for events in Germany) this is a multi-architecture image, again with i386, amd64 and powerpc included, ready to boot into our nice debian-installer for sarge. The kernel was updated to 2.6.12 for i386 and amd64, to support a few more newer machines. We also included a preseeding magic, so you can install a complete Debian Desktop only by deciding how to partition your harddisc and entering the username / password you want to use. You end up with a nice little Gnome-System, having a custom background, some links on the Desktop and bookmarks in Firefox and a disabled root account (use sudo :) ). This nearly automatic installation is available for german and for spanish, as we will bring some of these DVDs to the DebianDay in Mexico. For the spanish part Marga did a great job with the translation of all the various included Readme files to spanish in a normally much to short timeframe (we asked somewhere on Saturday IIRC), many thanks to her for that work. But it would be boring to have only those bits on this DVD, so we decided to include a few backports from backports.org too. There is a newer X, a newer OpenOffice, spamassassin and others included for at least i386. And still - we have included more. We included a recent build of openwrt and also the small edition of grml on this DVD. All in all users have around 45 - 50 different ways to boot from this DVD, which is a nice and big selection. Right now its hard to think of a collection that makes it “better/bigger/whatever” than that. Im sure there will be something with which we can outperform this, but right now its hard to imagine. Of course an etch d-i could be a point, maybe together with a Debian Livesystem (real Debian, not just “based on with random additions”), maybe many more preseeding configurations and not only one, we will see. If you have suggestions please mail me. If you want it: Yes, you can freely download the image, if you cant grab it on DVD while Cebit is running / from a LinuxMagazin, but this download will only be available after Cebit finished plus a few days more. Its never good to have a DVD for a magazine freely available before that magazine is public. :)

Amaya Rodrigo: It is that time of the year again

Jacobo, nice try, but you can make much better: at least three more atmospheres are needed. I am all flattered, though, but no, thanks, no .

<Yoe> Hmm. is someone pressurizing Amaya to go for DPL? ;-)
<helix> I love it when non-native speakers say unintentionally funny things
<Yoe> helix: hmm? Am I saying funny things, or are you referring to someone else?
<helix> you
<jamessan> pressurizing
<jamessan> that s like putting someone in a hyperbaric chamber
<helix> yeah
<Yoe> ahh. hmm :-)
<helix> you mean pressuring... I hope :)
<Yoe> likely :)
<jamessan> either that or there s a top secret DPL chamber candidates have to be put through
<nickr> amaya must be at three atmospheres before she can run for DPL
<Yoe> three... atmospheres?
<helix> haha
<nickr> its a measure of pressure
<jamessan> ~31k Pa
<Yoe> ah, three bar.

I d like to pressurize Vorlon instead, but Patty would kill me. And I really would love to have a Finnish DPL also.

Eric Dorland: Firefox definitely could be better

Martin F. Krafft writes about Firefox's un-UNIX-like behavior. I mostly agree with him. Aside from the X forwarding bug in the remote implementation (which has been reported numerous times already), the main problem is the inconsistency in the interface. If I run firefox from the command line everything works fine and it behaves like a normal UNIX application (ie taking over the terminal unless I background it). If I go to another terminal and run firefox file:///tmp/foo.html, this will open a new window or tab in Firefox and immediately exits. This is very un-UNIX-like, there's no way to know if the program is actually exiting or if it's just launching a new window. These leads to fun bugs with programs that call firefox as an external viewer (see #278990 and #284174). If running firefox causes it to connect to an already running instance, it should wait(2) on that process, since that would make a lot more sense from the UNIX perspective (and perhaps a -remote flag to have the "fire-and-forget" functionality we have now, because that does make sense in some situations too).

As far as I'm concerned the whole profile mechanism is a waste of code and a hold over from the old Netscape days, for people without multiuser systems. It should be dropped completely. Although we'd probably need to be able to run multiple Firefox processes on the same profile before it could be stripped out.

There is definitely a strong Windows mentality that pervades Firefox. I still remember when the extension mechanism was first introduced back in 0.9 and you needed to run as root (or the Administrator under Windows) for it to work properly. Madness. Although UNIX does seem to be more suited to an environment where processes are lightweight and short-lived. Big, monolithic applications are a more recent phenomenon.

Erich Schubert: <tt>make bug</tt> with SERefpolicy

Aargh. Yesterday I spend hours trying to find out why SERefpolicy would not build. There was a suspicious message in the build process, about a circular dependency being removed, and it was obviously due to this dependency that the build did not work. But: I couldn't find anything like a circular dependency. The dependencies for this file were trivial, just two input files that are not being modified or generated or anything. Today I decided to downgrade make to the stable version (which unfortunately conflicts with current kernel-package...) - and now it compiles. Smells like "make bug" to me... You can grab the completely untested (last build didn't work, and my test machine is currently down) packages at http://selinux.alioth.debian.org/serefpolicy/ in case you want to try SERefpolicy yourself. I'd love to have a SELinux policy system which does not involve any such make and m4 black magic. The makefiles are a PITA to read, the whole thing is totally unmanageable IMHO.

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

Joey Hess: patch followup

Followup on my previous review of Ubuntu's patches to my packages: So things have improved for my packages, at least after I made a stink about it and some people pretty clearly made it a priority to fix it. I doubt that this can be extrapolated to any other set of packages though. Total useful stuff gleaned this time: One minor build-depends fix, one icon.
Total estimated time to subit those to Debian BTS: approximatly 2 minutes.
Total time it took me to extract them from the diffs: about an hour.

Next.

Previous.