Search Results: "mak"

2 August 2006

Isaac Clerencia: Love- -, friends++, FLOSS++

So that’s all, my three-year relationship with my wonderful (ex)girlfriend finished as fast as it started and a bit more painfully ;)
To be fair, it has been really great, which just makes the whole issue a bit worse just now, but at least I don’t have the feeling of “having lost my time”, which is a really good thing. I’m kind of devastated now, but discovering that you have tons of great (old and new) friends ready to help you through it and that FLOSS development still inspires you, makes things look really brighter. In addition, I’m going to finally get rid of long-time procastinated items in my todo list, like getting my driving license and improving my spoken English. PS. Wesnoth 1.1.2 is out!
PS2. Oh, I’ve just known about ETA cease-fire, now that’s good news, well, not for all.

Luciano Bello: cuasi-custom kernel in a non-traditional way

I'm averse to compile programs for productive machines. Lot's of developers and maintainers have been working (and work) hard to make a wonderful binary for you. But sometimes you need a customization. Especially if it's about a kernel. I was needed support for 8GB ram.

Most of the people would download a kernel from www.kernel.org, would configure it and would compile it.

If it's about a Debian user, he would probably compile it by-the-Debian-way, with make-kpkg.

But I only needed a really small change from the debian official kernel image. So, I tried to made a custom kernel image, without wasting the work from the kernel team, making as less changes as possible.

$ apt-get source kernel-image-2.6.8-3-686-smp
$ vi kernel-image-2.6.8-i386-2.6.8/config/686-smp

Add support for HighMem64G:

CONFIG_HIGHMEM64G=y

wq!

In order to not generate all the images for all the platforms (I'm not sure that i386, k7, etc. are platforms) I delete those files from kernel-image-2.6.8-i386-2.6.8/config:

$ rm 386 686 k7 k7-smp

Then... let's bulid a package (compile in a DD-way :P)!

dpkg-buildpackage

And now I have a package with my non-too-much-custom-kernel-image, ready to be used.

Steve Kemp: Rats are we you can t break free

I started doing some bug triaging yesterday night after going over bugs in some packages I’m interested in. (I have a small list of packages which I can’t use, or need to be fixed in some way, before I can start using them and every now and again I check on progress. eg. I want the nvidia-kernel-source module to work with Xen.) Since I was tired I only did a few things, but I’m going to do some more today; merging duplicates and closing older ones, simple stuff. None of the packages are ones that I can NMU (OK I guess I could, and fix a couple of minor bugs, but they won’t be improved enough to make it worthwhile - if that makes sense?) Talking of NMUs .. anybody is welcome to upload “my” packages if there is a need, and feel free to poke around at my bug list. I can sometimes be slow with them. I’ve been semi-seriously considering the idea of dropping all my packages, and working exclusively on security stuff instead.. I haven’t made a decision yet but I’ll mention it here in case I do ..

Daniel Burrows: Amazing the things you learn when you fiddle

I recently bought a new laptop, specifically a Fujitsu P7120 (based in large part on Joey's plug for it). I'm generally happy with it, but I haven't been able to get the headphone jack to work.

Today I had a few minutes and was fiddling around with it, when I noticed that there was an extra column in alsamixer labelled "headphone jack mode". This isn't a volume bar; it just displayed the text "50". Just on a whim, I tried hitting "up" on it, and quickly cycled through "80", "Line In", and then "Line Out". Jackpot! All of a sudden, sound started piping out of the headphones.

So, just in case anyone else is puzzling over this problem, make sure you've checked ALL the knobs alsa lets you turn!

I still wonder why alsa is defaulting to using a headphone jack as a microphone input...but I'm not so curious to, say, stay up even later trying to figure it out.

Lars Wirzenius: Debian: LowThresholdNmu at 102

The LowThresholdNmu wiki page is now up to 102 people. It's been mentioned a few times on debian-devel lately, which probably explains the sudden quick growth rate. It was dormant for a long time before that. LowThresholdNmu is about keeping a list of maintainers who don't mind ifyou make a non-maintainer upload immediately, without the two weeks of minimal delay mandated by the Debian Developer's Reference.

1 August 2006

Roland Mas: Migrated to Ikiwiki

I finally took some time to migrate my blog from a (very old) Wordpress to a fairly new Ikiwiki. As I write these lines, the version of Ikiwiki I'm using isn't even released, and it includes two patches made by yours truly (and submitted upstream, of course, as bugs #380680 and #380743), allowing the creation of monthly archives and the possibility of making these archives RSS-less (it doesn't make much sense to have an RSS feed for something that's supposed to be static). The whole blog is now static, since I haven't investigated the comments system. I will probably enable the comments eventually, and I will of course migrate the existing ones (much like I migrated the existing articles, with a combination of a Perl script and some hand-tuning). In the meantime, I'll enjoy a spamless blog. The other regression is the lack of a search facility, but from what I can see it was hardly ever used anyway. Note to readers: old URLs should still work (thanks to Apache's magic mod_rewrite), but please update your bookmarks and feed readers and agregators and so on to use the new ones, since I'll probably disable URLs at some point. Update: I also hacked a new plugin, linkbar.pm, which appends a static Markdown string to all *.mdwn pages before they are rendered. So you should now see the lovely navigation menu on all pages, including the article pages.

Simon Law: 2006 Ottawa Linux Symposium


Penguin and his boy
Originally uploaded by sfllaw.
The Ottawa Linux Symposium is arguably Canada's biggest conference about Linux and its associated technologies. It happens every year, right after the Kernel Summit, which virtually guarantees that some famous people stick around afterwards to attend OLS. Now the Kernel Summit is a small gathering of Linux developers where they hash out big issues in the kernel. After all, it's a lot easier to get your point across when you're sitting in the same room as the person you're talking to. Mailing lists are just not the same. OLS, however, is a free-for-all. If you pay in time, you get to show up. This makes for an astoundingly large conference, about 850 people in total. I brought along [info]wlach, who had never been to OLS before. So I was doing my part in inflating the number of people there. I think he ended up in the right crowds. Which is difficult, because there are a lot of crowds there. People walk past in a blur and you can never quite remember if you've met someone before.

Bowtied
Originally uploaded by sfllaw.
At the conference, there are four tracks of presentations, at any one time. Some of these are perennial talks, like the tutorial on writing your own kernel module. And others change as the years go by. The big topic this year was Xen, the free virtualization software that really got huge in the past two years. Xen allows people to run multiple copies of their operating system inside one computer, with very little overhead. This makes it attractive to a lot of people, be they system administrators, software developers, or people who like fiddling with their machine. I met a consultant from Chicago that sells Xen-based solutions. She builds a big server and runs various virtual servers for small business inside that one box. It's very cost effective and is a good way to make server maintanance easy. Whenever I wanted to find her, I'd just pop into one of the ubiquitous Xen talks. The amount of work that gets done at this conference is astounding. You'll see people sitting around at tables hashing out designs and beating out flaws. Hackers huddle around laptops in an attempt to get the C library building on PA-RISC again. That's because the bandwidth to communication is very high and the latency is inconsequential. There were times when I wanted to pull out my laptop and do some work. But then I remembered that I left it in the hotel. Because it's heavy. There's actually a lot of space at OLS, because it's spread across the three floors of the Ottawa Congress Centre. It's really easy to miss someone for weeks before bumping into him at a party. Like [info]opalmirror, for example, who I was very glad to meet in person. And are there ever parties.

Super balls
Originally uploaded by sfllaw.
Ostensibly, you go there for the talks. And talks there are: some of them quite good and the vast majority are rather mediocre. They're the results of a year of hacking, months of academic research, or inspired observation. I have to admit that I get a bit lax when attending speakers. It reminds me too much of the classroom. And just like university, I buy the course notes to mitigate my guilt. They make for good reading when finals come along. It's the conversation that you go there for. When you get to sit down with Alan and have a good laugh about geeky topics. Or buy Donald a drink for working on those ugly network cards all those years ago. You get to connect with people that you've only seen online, or read as their names flashed past in the boot messages. That's that kind of bonding that people yearn for. I'm looking forward to next year already.

Josselin Mouette: Some transitions can go quite smoothly

I am quite happy to see that we will be able to make GConf FHS-compliant in etch.

Here are the packages still shipping files in /etc/gconf.

That makes really few, given that:


This leaves only 2 bugs : #380728 (apt-watch, I only noticed it today) and #369858 (gnome-panel). Gnome-panel is the only case that couldn't be handled by dh_gconf, and I'll try to push one of the solutions that were thought of ASAP.

Thanks to everyone who made this possible, especially package maintainers who updated their packages so quickly (e.g. one hour for goobox).

MJ Ray: z39.50 search debugging

I found a small loop in koha's z39.50 search results page which did:
(define (output-page)
  (display (current-results))
  (if (pending-results?) (output-page)))
On the face of it, that makes sense. The problem comes if all searches complete between the display and the more-results? test: if so, the last batch of results won't be displayed. So far, I've only noticed it causing a problem on fast connections. I've fixed it in CVS to do:
(define (output-page)
  (let ((refresh? (pending-results?)))
    (display (current-results))
    (if refresh? (output-page))))
Worst case, it displays an unnecessary page. If only all bugs were so shallow.

Gintautas Miliauskas: Localization coordination for Debian #5

There have not been updates for an extended period of time as I have taken a completely unplanned and unexpected holiday. Now I'm back on track. Work I have accomplished since the last update: Here's what I want to do next week:

Gunnar Wolf: Israeli mistakes

Reading Jordi's blog, I cannot but agree with him (in most points): I plainly cannot understand Israel's actions in the last weeks. I can sadly understand how some people defend them, specially people not living in Israel - I was talking with a friend today, a friend who does not share a single political viewpoint with me, but still... The world seems to be completely polarized. Some have the impression that Israelis live under constant shelling, that life is unsustainable in that poor country, the last corner of civilization in that mess called the Middle East, and that the Arab countries (which are huge and petroleum-rich) just want to throw Jews to the sea or worse. The rest of the world think that Israelis are mass-murderers who decided to take a heavily populated bit of land and martyrize its originary population by any possible means, establishing an Apartheid.
Both views are false. But of course, both views hold their bits of truth.
I cannot claim to be neutral on this: Although I lived there in total for ~18 months, I am an Israeli by choice (I adopted the Israeli nationality in 1996 and wanted to live my life there - I came back to Mexico for personal reasons, and I later decided to stay here). I have not been to Israel since then - But I try to keep myself informed. And, living in a Jewish family, it's hard not to be somewhat informed - and of course, shocked at your relatives' opinions. Jews outside Israel tend to be right-wingers. I lived in a kibbutz, and I still sympathyze with Meretz, the most leftwing Zionist party.
I won't restate what Jordi eloquently said. I know not everybody who reads my blog reads Jordi's as well - Please do. If you missed it some lines above, here is the link. I insist: I agree with most of what he wrote. What could Israel do to protect itself from its enemies? The answer is simple: Don't give them a reason to hate you.
One year ago, I was optimistic because Israel was heading the right way. Of all people, Ariel Sharon (one of Israel's most hawkish, right-wing strongmen of all times) decided to withdraw from Gaza, and hinted that areas in the West Bank would follow. No, not the best way possible, not as his predecessor Menahem Begin did with Egypt leading to a strong and long lasting peace, and certainly not in the very notable way Itzhak Rabin did with Jordan, getting peace and even friendship. But at least, Sharon accepted the reality, and seemed he meant to let Palestinians build their state. When he organized a new party which reduced Likud to a shadow of its past, one of Israel's most prominent figures for the peace camp, Shimon Peres, joined. Amazing.
But still, there is too much hatred. Of course, life in Gaza is plainly not sustainable. You can walk the Gaza strip side to side in less than one hour, and North to South it's less than 50 Km long. Still, over 400,000 people live in there. The area is simply unsustainable.
Gaza depends for everything from Israel. Of course, according to the never-stable security status, the border between Gaza and Israel opens or closes every day. When I lived in Zikim, mostly every day there were five or six Arabs working with us... Except for the days when they weren't there. And, of course, Israel also depends on the Arabs for much of its hard labor jobs (as it's always the case when two economically disparate populations live together).
Anyway, back on track: Besides giving the Arabs their slice of land (which in a squeezed area as Israel is always hard; people have fought for such small spaces it's hard to believe), the only thing Israel can do is help them. It has worked before: Israeli Arabs (the Arabs living inside the internationally recognized borders of Israel) are full citizens. Yes, there is racism in the country towards them, and yes, they are not really equal with Jewish Israelis - But they have voting rights, they have the right to be elected, they can optionally join the army (it's not compulsory as it is with the Jewish population), and they get government aid. Arab towns are poorer than Jewish towns, yes, but they have their dignity.
The problem in Gaza and South Lebanon (somewhat less so in the West Bank, but also) is that it's plainly all made up of refugee camps. Refugees that were born there, and whose parents were born there as well. And, let me emphasize this, they are not Israel's fault. The refugees fled the newborn Israel because the Arab states said (in May 1948) they would enter Palestine and butcher everybody, inviting Arab civilians to flee and then get back home - of course, 700,000 (out of 1,300,000 who lived in Palestine by then) Arabs did so. And when the Arabs lost the war, the Palestinians were denied citizenship by all the Arab countries except for Jordan (not surprisingly, the most stable of them all, and with which Israel has the closest relation). They were given refugee camps to live, one over the other. When Egypt signed the peace with Israel, it demanded back every inch of the Sinai - But not an inch of Gaza. And not a single Palestinian refugee.
I agree here with Jordi as well: There is a huge military operation in Gaza, but it's more spectacular in Lebanon today. The media talks about Lebanon, but not about Gaza. And the crisis in Gaza is not easier. But how can it be solved in a permanent way? Israel does neither have land to spare to give to the Palestinians - and even if it did, most of Gaza is surrounded by the Negev, a desert where it would not be easy for them to get anything better than what they have inside Gaza. As desirable as it would be to have a completely independent Palestinian state, Gaza would just remain a concentration camp. There is too much hatred, and neither Arabs nor Israelis want to keep working together, not trusting each other. The only solution I can find to this is to have an agreement with Egypt, where Egypt opens its border with Gaza, gives either nationality or work permits to Gazan Palestinians, and Israel injects capital to develop Northern Sinai, to give some hope of survival to the almost half million people.
The same in Lebanon: Israel was widely applauded to withdraw from South Lebanon in 2000. The area is mostly peaceful - For $ DEITY 's sake, what is the kidnapping of two soldiers in a six year period compared to soldiers being killed in the occupation army every week or two? Israel did well to leave Lebanon. Lebanon was starting an incredible national rebuilding process, as Robert Fisk tells us (Spanish only. I could find only the first paragraphs of the original English version, which appears to require subscription) of the wonders of the rebuilding process, reduced to rubble again. Of course, Israeli and Syrian armies left Lebanon. The Lebanese government and army are plainly too weak to care for the country. Hezbollah (which, indoubtely, is a terrorist entity, no matter how many benefical aspects it does have) have poured tremendous amounts of money to rebuild its area of influence, South Lebanon. Of course, they rebuilt, healed and educated with a strong ideological inclination, and that's not good for Israel. What can Israel do to leasen the Islamist influence? Simple: Send aid. Don't just leave. Don't leave a void, don't invite bad people to loot, don't invite extremist people to recruite future bombers. Turn occupation into aid. Build hospitals. Build houses. Give money, give infrastructure. Do it behind your back, as you gave money to the South Lebanon Army for almost 20 years. But make the people see you don't want to kill and rob them - Make the Lebanese Arabs feel their neighbour as a friend, although different. Bring back the good border. What's that? That's the nickname for the Lebanese border between +- 1950 and 1970 - The only border that was stable, that was not filled with hatred, where Israeli doctors treated Lebanese patients across the fence. And still today, the border is just a simple fence.
How can you convince a people of not killing themselves to kill the invasor? Don't act as an invasor. Act in all your best self-interest - Save them from poverty and from indignity.

Erich Schubert: Speeding up Bittorrent

I've recently used bittorrent a bit. For example, I loaded the Ubuntu installer CD with it. For power users, I think rtorrent is a good client. I tried freeloader, but apart from some obvious bugs (it doesn't save the maximum bandwidth settings value), i'm lacking interesting information such as the number of peers or of distributed copies. When toying around with rtorrent and it's options I noticed a couple of interesting things. First of all, if you're firewalled, you'll be much slower. Allowing incoming connetions (and having a port forwarding in your router) makes a huge difference in the number of peers. My estimates are that 70% of peers are firewalled; if both of you are, you can't transfer data! The other thing is that apparently BitTorrent clients use some kind of "Tit for Tat" strategy. They request a packet, you request a packet. If you don't send them data, they'll stop sending you any. They'll still eventually retry (maybe you were overloaded), but largely your download speed will be related to your upload speed. I don't know how much peers (and seeds) trade information on who has which parts or is sharing how much upload speed. I guess they do somehow to deflect cheaters. Assuming that the illegal file sharing tools work similarly, this gives some interesting (theoretical?) ways to recude illegal file sharing:

31 July 2006

Erich Schubert: Microsoft PhotoSynth - Vapourware?

Some might have seen the videos of Microsoft PhotoSynth. That of course makes many people go all "ooooh, must, have!". Actually, the videos from University of Washingtons PhotoTour are much more impressive. And it actually tells you how it works. Read the PDF of the paper published at this years SigGRAPH, also linked from that site, for more details. The Microsoft video only shows the UI; while the Washington video gives a bit more information, but still doesn't really talk about the "backend requirements". You can get some facts from the published paper, though. Basically it's a smart combination of existing technologies, together with some good optimization (I guess). It uses SIFT feature extraction and matching (use also by panotools: autopano-sift, but unfortunately this is patent encumbered in the US; I doubt it's patentable in Germany because of it's very mathematic nature) and basically does the same as panorama tools, except in 3D - using "Structure from Motion" approaches. So you might wonder why I still call this vapourware, when there is a sigGRAPH paper backing it, and an interesting demo? Well, in the paper they mentioned their test machine to be a 3.4 GHz computer. And that the Notre Dame photoset took two week to process, and that 597 of the 2635 images were actually placed; the others maybe had too much other stuff on them, or didn't match properly. This yields the impression that for this to work you need
  1. lots of CPU time
  2. lots of well-suited images (clean projection, not too many moving people on it etc.)
  3. no gaps inbetween pictures, but a complete covering
I don't want to talk down the scientific work done here, but the Microsoft annoucement makes it sound (well, just look at who they imply in the video that their users are) like it would be a product for everyone to use within a year. It won't. Thats why I call it vapourware. It's good research, but not a realistic product. It will be very interesting for professionals, however. They can set their camera to a well-behaved angle (no fisheye; I don't expect the software to like fisheye artifacts much) and take tons of photos, trying to cover all of a building. The software will then eventually allow them to construct and texture a 3D model, with some weeks of computation. The viewer is still interesting, for data sets computed by someone with access to excess CPU power. E.g. for a company to offer virtual sightseeing.

Jordi Mallach: Qana, Lebanon

I've been watching the Lebanese bloodshed since it started. It really makes me sick. I have discussed this with many friends. There was little discussion though: we all thought this is a plain war against civilian targets. I tried discussing with people who could maybe be more supportive of the Israeli points of view. I tried talking to some of my right-winger relatives... and I haven't been able to find anyone that can say a word of support of what Israel is doing in Lebanon. In three weeks, I have seen how Hizbullah killed some Israeli soldiers in some area around the border between Lebanon and Israel. As far as my (as an international online paper reader) judgement can tell, the location where this happened is disputed. Some say it was inside Lebanese territory, the others say it was an Hizbullah incursion into Israeli soldiers. I really don't care. The immediate result of this action was a campaign of air strikes against Beirut and other Lebanese cities aiming to give a measured response (cache, and beware this is explicit) to Hizbulla's aggression. This, apparently, included destroying any vital infrastructure in heavily populated areas of Beirut, including bridges, power plants, hospitals and apparently random buildings. While the Israeli army said the military operations were aimed to get rid of the Hizbullah camps and infrastructures around the border where they fire their rockets against Haifa and other Israeli cities, and their headquarters in Beirut and other southern cities, what the world espectated during the first three or four days of air strikes was pure horror. Hizbullah-controlled areas were like ghost quarters, so any bombing of those were very unlikely to take any Hizbullah victims. On the other hand, the rising number of civilian victims was the first bits of news that I could hear in my radio as I woke up every morning. All of this, with a great amount of cinism and unlimitted cruelty. The Israeli army declared that the civilian population in the South should be leaving their homes (measured response), while they knew they were doing exactly what was needed to prevent this, by locking them up around destroyed bridges, harbours, airport and roads. The first columns of the lucky refugees who could afford fleeing to the North were greeted by Israeli bombs, leaving a good number of scattered bodies. In Spain, the news shocked the public opinion and Zapatero, along with Chirac (IIRC), declared those actions were untolerable and unproportionate, and should be stopped immediately. This brought some local politics fun, when on one side the Israel ambassador in Spain accussed Zapatero of being antisemitic, and the right-wing leader Rajoy called the thousands of people who spontaneously demonstrated against the war in a few cities "clowns" and "ignorant". Watching what the UN has done to stop these warcrimes, I really think it's a great moment to shut down that useless organisation and let some big corporation buy their nice building in New York City to build their offices in it. Once again, when some countries tried to come up with some resolution that forced Israel to stop, the United States waived their vetto flag. Once again, the Security Council has done nothing to put an end to another chapter of violence in the Middle East. The vettoing powers of some of the members is so ridiculous that it makes it totally inoperative. So, as the UK and US governments were not going to do anything to stop the air strikes, Israel had carte blanche to do whatever they wanted for a week. And then, Israel's measured response destroyed one of the UN's buildings in Lebanon, killing four annoying observers, despite their calls warning that the bombs were falling too near their location. Only then, the United States decided to send Condie to have a look around the area, surprise visit to Beirut included. I wonder, what phone number must the innocent women and children who cannot escape their cities and towns dial in order to warn the Israeli army about the proximity of their bombed targets? After two visits of Condie to the region, nothing has changed, as the fourth week of operations starts. This is getting on my nerves. I don't, and won't, justify any of the Hizbullah attacks on civilian targets using Katyushas, or the kidnapping of soldiers, or whatever. What I see is that unless Israel takes a radically different approach to their problem, nothing will change either. Violence isn't at least. Apparently, their military operation isn't going well at all, and is not damaging much of Hizbullah's military capacity. What are they going to do? Will they occupy southern Lebanon for 20 more years? The social movements this kind of actions are generating is also very, very worrying. On one hand, I read that around 85% of the Israeli population approve this war and think this is what their government needs to do to make them safe. This is pretty shocking. On the other hand, everyone still in Lebanon, even the Christian community, are united against the attack, helping each other in their survival quest, while the popular support to Hizbullah is rising, with big concentrations of people cheering them in the streets. This is just two years after similar demonstrations in Beirut forced the Syrian military out of the country. While the Israeli war against Lebanon (I won't buy the "It's against Hizbullah" bullshit), sadly all the media, cameras and journalists have given their back on Gaza, which is under similar, but probably more brutal and savage military operations by Israel, as another soldier was kidnapped just one week before all of the Lebanon stuff started. The press doesn't have any news of how things are going in Gaza. The last thing I remember is that the UN was warning about the threat of a humanitarian disaster due to the lack of any kind of supplies in Palestine. If Palestinian kids are starving, the media are not letting us know. Yesterday, 54 civilians were killed in an improvised underground bomb shelter in Qana, most of them being children. The Lebanese civilian death toll must be well over 500 as of this writing, with a ratio of at least 1:10 compared to Israeli military victims. When will Olmert have enough? The only way I see this will end up for good is when the Israeli public realises being at war in three fronts is quite expensive and damages their home economies. Maybe, at that point, people start hearing what the Meretz party minority in the country have been saying for years. Israel has the right to defend itself. This is the official motto of Israeli and American leaders. When this right is extended and abused to the point the main targets and victims are civilians, Israel walks quickly away from a perdurable solution. Today, hostility against the state of Israel is even greater than last month. Hizbullah in Lebanon, Hamas in Palestine, will probably be the winners of the conflict when the bombings end. Not the best recipe for a peaceful future.

Enrico Zini: ninth-day-in-addis

Ninth day in Addis SSH To enable remote logins with ssh apt-get install openssh-server Then you can login with:
$ ssh efossnet@proxy.dream.edu.et
To verify the host key fingerprint of a machine:
$ ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key.pub
Note: you need to verify it before logging in! More information at http://www.securityfocus.com/infocus/1806 Example ssh usages To log in:
    $ ssh efossnet@proxy
To run a command in the remote computer:
    $ ssh efossnet@proxy "cat /etc/hosts"
To copy a file to the remote computer:
    $ scp Desktop/july-18.tar.gz efossnet@proxy:
To copy a file from the remote computer:
    $ scp efossnet@proxy:july-18.tar.gz /tmp/
Beware of brute-force login attempts Warning about SSH: there are people who run automated scans for ssh servers and try to login using commonly used easy passwords. If you have an SSH server on the network, use strong passwords, or if you can it's even better to disable password authentication: in /etc/ssh/sshd_config, add:
    PasswordAuthentication no
To log in using public/private keys:
  1. Create your key:
    ssh-keygen -t rsa
    
  2. Copy your public key to the machine where you want to log in:
    ssh-copy-id -i .ssh/id_rsa.pub efossnet@proxy
    
  3. Now you can ssh using your RSA key
If you use ssh often, read these: proxy Problems we had today with the proxy: ssl does not work Reason: squid tries to directly connect to the ssl server, but the AAU network wants us to go through their proxy. Ideal solution: none. There is no way to tell squid to use a parent proxy for SSL connections. Solution: update the documentation for the Dream university users telling to setup a different proxy for SSL connections. Longer term solution: get the AAU network admins to enable outgoing SSL connections from the Dream university proxy. Other things that can be done: Browsing normal pages returns an error of 'Connection refused'. In the logs, the line is:
1153294204.912    887 192.168.0.200 TCP_MISS/503 1441 GET http://www.google.com.et/search? - NONE/- text/html
That "/503" is one of the HTTP error codes. Explanation of the error codes: Reason: the other proxy is refusing connections from our proxy. Solution: none so far. Will need to get in touch with the admins of the other proxy to try to find out why it refuses connection to our proxy, and how we can fix the problem. postfix on smtp.dream.edu.et Basic information is at http://www.postfix.org/basic.html. Difference between mail name and smarthost: Quick way to send test mails:
apt-get install mailx
echo ciao   mail efossnet@localhost
To configure a workstation not to do any mail delivery locally and send all mail produced locally to smtp.dream.edu.et:
  1. install postfix choosing "Satellite system"
  2. put smtp.dream.edu.et as a smarthost.
To setup a webmail: apt-get install squirrelmail (on a working apache setup). To setup mailing lists: apt-get install mailman, then follow the instructions in /usr/share/doc. Mail server issues we encountered When a mail is sent to efossnet@localhost, the system tries to send it to efossnet@yoseph.org Investigation: Cause: the user efossnet had forgotten that he or she had setup a .forward file in the home directory. Solution:
 rm ~efossnet/.forward
Apache To add a new website:
  1. cd /etc/apache2/sites-available
  2. sudo cp default course
  3. sudo vi course:
    1. Remove the first line
    2. Add a ServerName directive with the address of your server: ServerName course.dream.edu.et
    3. Customize the rest as needed: you at least want to remove the support for browsing /usr/share/doc and you want to use a different document root.
  4. sudo a2ensite course
  5. sudo /etc/init.d/apache2 reload
More VIM Undo: u (in command mode) Redo: ^R (in command mode) You can undo and redo multiple times. To recover a lost password for root or for the ubuntu admin user Boot with a live CD, mount the system on the hard disk (the live CD usually does it automatically), then edit the file /etc/shadow, removing the password:
enrico:$1$3AJfasjJFHa234dfh230:13343:0:99999:7:::
becomes:
enrico::13343:0:99999:7:::
You can edit the file because, in the live CD system, you can always become root. After you do this, reboot the system: you can log in without password, and set yourself a new password using the command passwd. Installing packages not on the CDs To get a package for installing when offline:
  1. apt-get --print-uris install dnsmasq
  2. Manually download the packages at the URLs that it gives you
Otherwise, apt-get --download-only install dnsmasq will download the package for you in /var/cache/apt/archives. You can install various previously downloaded debian packages with:
dpkg -i *.deb
Backups There are various ways: Some data requires exporting before backing it up: You can schedule these dumps to be made one hour before the time you make backups. Scheduling tasks As a user:
crontab -e
As root: add a file in one of the /etc/cron.* directories. In cron. hourly,daily,weekly,monthly you put scripts. In the other directories you put crontab files (man 5 crontab). If the system is turned off during normal maintainance hours, you can do two things:
  1. Change /etc/crontab to use different maintanance hours
  2. Install anacron (it's installed by default in ubuntu)
For scheduling one-shot tasks, use at(1):
$ at 17:40
echo "Please tell Enrico that the lesson is finished"   mail efossnet@dream.edu.et
^D
When and how to automate
  1. First, you manage to do it yourself
  2. Then, you document it
  3. Then, you automate it
Start at step 1 and go to 2 or 3 if/when you actually need it. (credits to sto@debian.org: he's the one from which I heard it for the first time, said so well). Interesting programs to schedule during maintanance Important keys to know in a Unix terminal These are special keys that work on Unix terminals: Therefore, if the terminal looks like it got stuck, try hitting ^Q. Problems we had today with postfix Problems found yesterday and today

Aigars Mahinovs: Spot focus

For a long time I have considered F-Spot to be a nice concept application, but not really fit to be the center of Linux digital photography experience due to general bloat and (most importantly) due to the lack of many important features that would compensate the interface lock in that this application demands. In this post I will try to list all the deficiencies and lacking features of F-Spot that I have found while using it to manage my photo flow.
First let’s talk about the bloat. I will compare F-Spot to GThumb. There are few points of comparison: first start up, viewing a bunch of photos and importing a bunch of photos. When starting up GThumb uses 17 Mb RSS memory (10 of them shared with all other Gnome programs) while F-Spot uses 33 Mb RSS memory (17 of them shared with other Mono programs, of which I do not have any). When viewing a folder with couple hundred photos GThumb uses 25 Mb RSS memory while F-Spot grows to 55 Mb RSS. On import GThumb calls gphoto that adds 3-5 Mb RSS to the memory usage, while F-Spot seems to implement some/most of the photo protocol internally and can easily grow in memory up to the size of the photos being imported (which is kind of problematic while importing a gigabyte of photos), but usually the memory usage on import hangs around 250-300 Mb and hovers around that level for some time after the import is complete. For me personally it does not make much a difference (I have 2 Gb RAM now), but conservative memory usage is still critical for a good Linux application because people expect Linux to be faster and high memory usage can slow down anything. In my opinion no photo management operation should take more then 50 Mb of private RSS memory (even importing several gigs of RAW files from the camera).
Now let me try to describe the optimal work process of a (semi)professional photographer, so that we can see what is missing in F-Spot to accommodate such work-flow and what is done right.
  1. The photographer takes one (or several) cameras, lenses, flashes, memory cars, spare batteries and tripods and goes to an event/photoshoot/modelling session/walk in the park/wedding/…
  2. He takes 3-5 Gb of pictures from lots of different angles with different cameras, different lenses on different memory cards with different settings. Most of them will be the highest quality available on the camera, usually those will be RAW images.
  3. Upon getting back to his computer, the photographer wants to drop all the data to a staging place dedicated to this event. He wants to do it fast and simple without sorting trough the photos at the moment, but at the same time he might want to split the staging areas (multiple models within one session) or join them (one model from different cameras). Sometimes he might not even have time for that and would just want to dump the data now and run to another event.
  4. After several shooting events the photographer finally has reserved the time to sift trough some of the photos from the staging area (modelling jobs first, then the friends wedding and the walk in the park as last)
  5. First the photographer decides to check if the times on the photographs are correct and discovers that at some shooting sessions one of the cameras was set to another timezone. He select all shots from that camera across several (but not all) staging areas and adjusts the time.
  6. Now he rechecks the logical groups of photos (which photos should be in which staging area) by dragging the photos around, splitting and joining the staging areas
  7. When the overall structure is clear, the photographer selects one (most important) staging area and starts working with images in that staging area not caring about any other images
  8. First he browses in full screen trough all the photos rating them in quality scores form 1 to 9 by pressing corresponding number keys. Rating a picture automatically advances to the next picture, which happens very fast because the software precaches several photos ahead for speed and displays without any flicker. Speeds in the order of 2 photos per second are expected on good enough hardware. One key operations for “view 100% zoom”, “rotate”, “view exif” and “quick note” are available. RAW images are automatically translated for preview with default settings.
  9. With couple clicks bad photos (with score of 4 or under) are selected and erased
  10. Now the photographer starts working with individual photos
  11. First step is the RAW->Jpeg conversion. An appropriate tool is brought up with default setting already applied and a preview of the photo showing up (like in dcraw). The photographer adjusts the conversion parameters (including and option to make a HDR-like effect by compressing the dynamic range of high bitness pictures). The converted Jpeg is saved as a version of the original photo and becomes the default for operations that do not understand RAW.
  12. A separate plugin is used to reduce digital photo noise from the pictures (new version)
  13. Photographer makes adjustments to the image inside F-Spot. Each modification makes a new version.
  14. Still not satisfied, the photographer starts Gimp from inside F-Spot and make further edits. Each time Gimp saves the file, F-Spot makes another version.
  15. The photographer erases some versions of the picture and also joins multiple near-duplicate shots into one picture as versions of that picture. One version is always marked as the top version and the photographer can easily change it.
  16. The good photos are tagged and imported to the main collection
  17. A subset of the photos is exported to: Flickr, personal Gallery installation, plain html photo album, a zip file with small (1024x…) versions of the photos, … Only the top versions of photos are exported. If unconverted RAWs are top versions, then they are converted to Jpeg with default settings. In most cases photos are also downsized before export according to the preferences. Highest quality downsizing is used (anti-aliasing) and also additionally small unsharp mask is run on each photo
  18. The photographer does advanced searches and advanced tag selections to select and display or export subsets of his main collection
  19. The photographer has three instances of F-Spot: his laptop, his main work PC and a backup hard drive that can be attached to either of them. He needs to keep his F-Spot photographs synchronised between the three locations for backups and for distributed work. Also after some point the main photo archive becomes too big to store it (with all versions) on the laptop or even on the main PC, so the photographer selects a set of older photos and selects an option to archive them. The next time a connection is established with the backup drive, all versions of archived photos are copied to the backup harddrive and the laptop and the main PC only keep 90% quality Jpeg format picture of the top version of each photo downsized to exactly fit the display resolution of the device. If even that takes too much space then “Archive Only” option is selected which insures that the backup harddrive has the copy of the photo and then erases it from primary data stores completely.
  20. When the backup harddrive is connected it is also very simple to make DVD/HDDVD/Blueray backup copies of subsets of photos from the archive with all the metadata and versions in such a way that other software (and even dedicated media devices) could easily browse the top versions of photos directly from the backup media. Of course, restoring from such backups also must be tested.
So, to summarise, the changes needed for F-Spot are: As you can see, many of those issues are already reported to F-Spot bugzilla, but have recieved little attention. So what shall we do about it?

Andrew Pollock: [life] Lady in the Water

Tonight Sarah and I went to see Lady in the Water with Sean and Louise. Best. M. Night Syhamalan movie. Ever. Sarah and I (and I think Sean and Louise) are big fans of Night's work. This movie made a much more pointed excursion into the fantastic, but remained (for me) absolutely rivetting, right through to the end. Shyamalan makes much less of a cameo appearance, and is more of a supporting actor in this one, and there are his usual plot subtleties littered throughout. I also want to see 5 out of 6 of the trailers that preceded: If you're looking for me in November/December, I'll be at the movies.

Ian Murdock: Two-way email synchronization without Blackberry Enterprise Server?

I’ve been thinking a lot about software above the level of a single device lately, so I set out this weekend to finally get two-way email synchronization working on my Blackberry. My main goal is to have a single inbox I can access from multiple devices without having to ever deal with the same message twice (i.e., if the message is read/filed/deleted/etc. on one client, it’s marked read/filed/deleted/etc. on all clients), with full support for disconnected operation. (I care much less about the oft ballyhooed push email feature—I’m perfectly content to wait 15-20 minutes for email to be delivered.) Since what I want more or less perfectly describes IMAP, I figured Blackberry Internet Service, which uses standard Internet protocols for mail delivery and supports IMAP, would be sufficient, and that I wouldn’t need Blackberry Enterprise Server, which hooks into Exchange and other “enterprise” messaging systems. Unfortunately, I appear to have been wrong. While messages read and deleted on the Blackberry are reflected on the IMAP server, the reverse is, surprisingly, not true (surprisingly because, unlike POP, which behaves similarly in BIS, IMAP is a bidirectional protocol). In other words, when messages are read or deleted on another client (e.g., the Thunderbird running on my laptop), those changes aren’t reflected on the Blackberry; so, as a result, the Blackberry accumulates every message I receive when it’s not in use, making a periodic “Delete Prior” necessary to get rid of all the accumulated junk (which obviously deletes the useful messages too, like, ahem, the ones with my flight information in it). Worst of all, after several days of trying to figure out why IMAP wasn’t working the way I was expecting it to, I discovered this is the expected behavior (see note 5—”Messages deleted from the source mailbox are not automatically deleted from the device”), rather than a bug. What to do? I could obviously break down and upgrade to Blackberry Enterprise Server. I’m not too keen on setting up an Exchange server just for this (which would cost hundreds of dollars, particularly after the cascading upgrades typical of Microsoft products, e.g., I’d need to get Windows Server too). As an alternative, there appear to be a number of companies that offer a BES hosting service. However, the costs add up pretty quickly—another $10/mo. to T-Mobile to allow BES traffic through (the “business tax”), $10/mo. for BES hosting, and $10-15/mo. for Exchange hosting on top of that (BES hosting is an add-on to Exchange hosting in every plan I’ve seen). That’s a grand total of $35/mo. just to get email marked read or deleted on my Blackberry when I read or delete it in Thunderbird. Hrmmph. Another idea is to find a Blackberry IMAP client, but there seem to be a dearth of these. The main one that comes up both in web searches and that’s described in Blackberry Hacks is from a company called Reqwireless which, tantalizingly, was acquired by Google last year but whose products, frustratingly, are no longer available. In any event, I want something that integrates with the Blackberry’s excellent inbox, which aggregates email, SMS, missed calls, Google Talk messages, etc. in a single stream, and I’m not sure if a separate IMAP client will be able to do that. Other observations: This page says that “two-way [Blackberry] sync is coming soon” to Yahoo Mail. However, “coming soon” doesn’t really help me. Funambol looks very promising, but it’s going to take me a little while to wrap my head around what exactly I need to do to deploy it. Not exactly point and click. Scalix offers Scalix Wireless Solution that works with Blackberry and is integrated with the Enterprise and Small Business Editions. At $60/user with no minimum number of users and a free trial, this looks promising too. Zimbra offers Zimbra Mobile, which “includes the ability to leverage Zimbra’s third party mobile partners that offer two-way sync to Blackberry and other devices” (whatever that means). However, I’m assuming this comes bundled with the Network Edition, which is sold with a minimum of 25 users, and that probably makes it unaffordable to an individual user like me. Any other suggestions?

30 July 2006

Daniel Burrows: People suck, news at 11

Continuing the saga of the lost wallet, it turns out that my uneasy premonitions about "Sidney"'s phone message were entirely correct.

He called me up at work, gave me a long spiel about how I should be glad he came from such a "respectful" family, mentioned that "someone" had gone through the wallet and taken the cash, and then asked again if there was a reward. Rude, I thought, but hey, rewards for wallets aren't unheard-of and he is doing me a favor...so I said, sure, I'll give you $20. There was a long pause, and then he said "that's really insulting, you know?" Taken aback, I asked what he was thinking of, and he said that he was thinking of more like a few hundred dollars.

A FEW F**ING HUNDRED DOLLARS?

That isn't quite what I said, I just said "No" and "I don't know what makes you think that's a reasonable amount." At this point he started asking again about "don't you want your wallet back?" and making vague threats about what would happen if it got into the "wrong" hands. I made one mistake, raising my bid to $40 (I shoulda just cut him off there), but finally told him I had to get off and get to work. He wouldn't give me a number to contact him at but said he'd call me later.

So, at this point it was obvious that a pretty nasty character had my wallet, so I double-checked that all my important cards were cancelled and started ordering duplicates of the remaining ones. I called my apartment manager (since my provisional license had my home address on it) and warned them to keep an eye out for suspicious people hanging around my apartment, just in case.

I did try calling the police; however, they were just as useless as you'd expect (considering I didn't know how to get in touch with the wannabe extortionist). The only thing they could suggest was that I try making arrangements to collect the wallet, then arrange to have a police officer arrest the guy when he showed up. Given the fact that I have no actual evidence of the extortion, though, I figured the main result would be to leave someone that I already know is a bad character, and who has my personal information and address, a grudge to hold against me. Not a good long-term move.

What depresses me most about all this is that "Sidney" is far more representative of the average person than I am, or (I assume) most readers of my blog; and he may very well be better adapted to the world than I am. People suck, life sucks, and the world sucks; I should be grown-up enough at age 25 to not care by now, but I still do. :-(

Kenshi Muto: Debian pkg-gs Project started

Although Masayuki who is Debian Ghostscript maintainer has already created pkg-gs project on alioth, it wasn't organized well for a long time. Current ghostscript quality in Debian is far from good for Etch, and Masayuki is a quite busy person. Last week, we discussed on IRC and decided to reorganize this project. Therefore we started the mailing list (pkg-gs-devel) and SVN repository. (thanks alioth's admin!) For first step, I was starting to create gs-esp 8.15.2 package. Here is current status. After fixing some problems (such as crashing with ttf-kochi font), I'd like to upload this. Our short term goals are: I'll be happy and give a beer if someone make CMap DFSG-free...

Next.

Previous.