Search Results: "bod"

2 August 2006

Isaac Clerencia: eBox platform is out!

So, at last, after lots of months of frenzy development, eBox Platform is out, released under the GPL. Basically eBox platform includes a framework to create modules which control system services and lots of already available modules to setup network configuration, firewall,
NTP, DHCP, proxy cache, Jabber, file sharing, mail, … and more! Of course, using Debian as base distribution :) And yup, it has been developed by my company. We really expect somebody find it useful and step into eBox development. For a quick run, you can consider trying the eBox Live CD (btw, mirrors are welcome).
:) Update: For those interested, eBox is written in Perl, using Mason to write the HTML templates, thanks to Rhonda for talking me about Mason for the first time

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 ..

1 August 2006

Steve Kemp: Its my fault, I only have myself to blame

In case anybody was ever curious I’ve explained why I’m skx. I admit at times that I’m curious how/why some developers chose/use the logins or nicknames they do .. but never quite enough to ask. If you want to share please feel free to comment, I’m sure people would be interested in learning more about their fellow developers…

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.

31 July 2006

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

John Goerzen: Fire

I never thought I'd be writing a post like this today.

As Terah mentioned already, there was a fire out at our farm today. We lost both barns and the chicken house. Several acres of mostly grass burned in all.

It's hard to see those buildings gone. There was so much history and so many memories in them. And that loss isn't just ours; so many people have fond memories from out there.

Before I go on, I've posted a few very preliminary photos. I haven't even downloaded all of them from the camera yet. Here's how our yard looks:



We're sad about this, but there's a lot to be thankful for. There are so many ways that this could have been worse. If the firefighters had been a few minutes later to the scene, we probably would have lost the only remaining buildings -- house, wash house, and elevator -- as well. The fire was starting to burn a hedge row from two sides. It got within a few feet of the house.

Somebody driving through the country noticed the fire and called it in. That in itself is fortunate, because people don't just drive through this part of the country all that often.

We're very fortunate to have such a wonderful and loving family. The people from the Goessel Volunteer Fire Department spent 7 hours of their evening out there, part of it in 100-degree heat. (The Walton Fire Dept. also responded -- I don't know how long they were there). Even our insurance agent (one of the barns was insured) came out -- and he didn't have to.

We hope that we'll get enough insurance money to let us rebuild something in the same style as the original barn.

And, most importantly, nobody got hurt.

But somehow, despite all these things, it still feels like we lost a little bit of Grandpa today.

28 July 2006

Steve Kemp: Tied to machines that make me be

According to the documentation it should be possible to setup a shared SSH key for logins to Debian.org machines. However after sending the request several days ago nothing appears to have happened. No confirmation/reject mail sent, and no key-based logins accepted on the random machines I tested against. Is this something that was tightened up post-compromise? My intention was twofold: I expected to be able to use the LDAP search to determine how many people had keys set (without getting access to the keys themselves). My attempted LDAP searchs failed, although I can’t tell whether they failed because support is removed/restricted, or if my queries were just malformed/bogus. Anybody who can post statistics on the number of keys setup, or a working LDAP query would earn a virtual beverine.

Evan Prodromou: 10 Thermidor CCXIV

I've really enjoyed reading the recent writings of Joseph Reagle on Wikipedia and online communities. Somebody sent me his Notions of Openness essay. I think it's an excellent complement to Jonathan Nolen's Open Company Test for those of us who are working in the Open Source/Open Content/Open Communities nexus. Anyways, Joseph Reagle's blog is a good read if you're interested in the WP and sociology of wiki and Open Content. I note that he quotes and references Biella Coleman's great work on Debian; I think it's pretty cool that this field of study is expanding. Joseph will be giving a talk titled Is Wikipedia Neutral?'' at Wikimania; I'm looking forward to it. tags:

27 July 2006

Evan Prodromou: 9 Thermidor CCXIV

Mark Jaroski asked if I had any recommendations for Web hosting. I thought I'd share them here. Mostly I find Web hosting really difficult to evaluate -- there are just too many options. It's a really competitive business, and the hosting companies have SEO-saturated the Web hosting keyword at Google. On top of that, there are a ton of fake "hosting comparison" sites -- really just fronts for the bottom-feeders of hosting. When you get to even a good hosting company's Web site, there'll be a lot of flashing lights and gewgaws. A lot of companies try to sell you add-on features you don't need, and they'll have abusive UI to get you to click on the wrong thing, like:
 You're eligible for a big discount on our
 blogging software! Only $3.95 a month! 
 [Continue] Cancel
... where the "Continue" button adds the add-on to your account and "Cancel" is what you need to go on with your order. I think this is borderline fraud, but as far as I know nobody's been shut down or fined for it. For contrast, there are a lot of really good community-oriented and Open Source-friendly hosting services out there, like Montreal's Koumbit. They'll usually be able to devote more time and energy to individuals' technical needs. Often, though, small companies and community groups can't get the same economy of scale and thus price level to compete with the big guys. Of course, what you usually trade away for that $0.75 a month is any customer service or friendliness or control of your own site. The big guys are organized around selling hard to inexperienced people on price, then ignoring their requests for help and treating them like idiots for asking until they go away. Getting help with real problems like server downtime or misbehaviour can be as humiliating as having someone explain what "Cut", "Copy", and "Paste" mean, and probably get you as many over-the-phone eye roll pauses. "My Web site is down!" <eye roll> "Did your AOL Chat window get in front of your browser window, sir?" I think the best option for people is to look around, find a group or company that has a price you can live with and business practices that don't turn your stomach, and give them a try. Make frequent local backups of your site, and be ready to leave if you need to. tags:

Dumb Contest Julien has started a dumb bug reports contest (you be the judge of what "dumb" applies to here). What's the point? I guess if it catches on we can humiliate Debian users and keep them from filing bug reports at all. And as we all know, no bug reports means no bugs, right? Being abusive towards users has never helped a project improve the quality of its software. Our bug tracking system is one of the things that's made Debian a top-tier operating system. Making fun of Debian users for using it is a very bad idea. tags:

Yay Akron The Akron Beacon Journal has an article about suggested Akron-related topics to add to Wikipedia. That seems like a great idea. tags:

Wow Douglas Self has some cool items in his Museum of Retro Technology about old technology -- like this rocket bicycle and this gyro-stabilized monorail. Thanks to Nick Moffitt for the links, even though he probably cribbed them from somewhere lame like Slashdot or Boing Boing. tags:

Supportworthy So, I have two blog items about technical support people looking down on those who are reporting problems. And I was thinking how much I work to gain the respect of technical support people so they'll listen to my problems when I have to make a phone call. As little as I like it, I find myself working to qualify to get my questions answered and my problems fixed. So I wonder: what if there were some kind of standardized computer user certification? You could take a series of increasingly-harder tests at some training centre, and you'd give your certification level (or -- better -- your standardized identification number) when you register software or hardware or when you report a bug. People will then know that when you say, "I think postfix isn't accepting connections!", you might actually have a point. tags:

JAM on it Maj, of course, was the one who pointed me to the page for a new Wiki engine in development. Ho-hum, I know... there's already too many wiki engines. But this one is interesting in that it aims to be MediaWiki compatible and run in a Java Servlet container. That seems like a killer combination for those people who want "the wiki that Wikipedia uses" but with an "enterprise-strength" Web technology. I've only tried the software a little bit, but it definitely looks like it's already more featureful than 70% of Wiki engines. Taking MW as a model is a great idea for a new Wiki engine -- it's an extremely featureful wiki engine that "fits well in the hand" of writers and users. Already the use of images and the special support pages look good on JAMWiki. And the integration of lucene means an excellent search engine -- something MediaWiki lacks out of the box. The Roadmap looks to have some good plans in the future. Anyways, Maj likes JAMWiki since JAM is MAJ backwards. I can't tell you what to make of that, though. What I do know is that the project needs a logo real bad. tags:

Ajax in 10 weeks So, wp:AJAX is no longer as bonerific a word as it was six months ago, but it's still pretty hot. I mean, we've all stopped nattering about how fantabulous Ajaxical UI is, and just started writing code to make it work. It seems like nobody even uses "Ajax" and "Web 2.0" as synonyms anymore (well... I guess only the people who still call it "CGI/PERL".) But I was interested to see when I was looking for the Java Servlets link above that Sun is part of the cryptic Open Ajax Alliance. They've got an Ajax project incubating called jMaki to integrate Javascript programming on the server and on the client. Neato, say I. Most interesting was an external link to a 10-Week Free AJAX Programming Online Course. Starts August 4th, seems like a nice self-training tool. tags:

Stuck in ol' CGI again So, I've been getting some non-deterministic 500 errors from WiLiKi, and I'm starting to think they're concurrency problems with searching the database the WiLiKi pages are stored in. I also think there may be a FastCGI tie-in, so I've rolled-back to CGI for a while to see if it cuts down on the errors. Annoying, indeed. tags:

Enrico Zini: 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/
    
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:

    • report a bug on squid reporting the need and requesting the feature
    • download squid source code and implement the feature ourselves, then submit the patch to the squid people
  • 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 http://www.postfix.org/basic.html Difference between mail name and smarthost:
  • The mail name is the name of the mail server you're setting up (TODO: need more details on what's it used for)
  • The smarthost is the name of the mail server that will relay mail for you.
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:
    • "yoseph.org" does not appear anywhere in /etc or /var/spool/postfix
    • postfix configuration has been reloaded
    • postfix logs show that the mail has been 'forwarded'
    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:
  • dump (for ext2/ext3 file systems) or xfsdump (for xfs file systems). Makes a low-level dump of the file system. It must be used for every different partition. It makes the most exact backup possible, including inode numbers. It can do full and incremental backups. To see the type of the filesystems, use 'mount' with no parameters. To restore: restore or xfsrestore.

  • tar Filesystem independent. It can work accross partitions. It correctly backups permissions and hard links. It can do full and incremental backups. Example:

    tar lzcpf backup.tar.gz /home /var /etc /usr/local
    tar lzcpf root.tar.gz /
    
    To restore:
    tar zxpf backup.tar.gz
    
  • faubackup Filesystem independent. Uses hard drive as backup storage. Always incremental. It cannot do compression. Unchanged files in new backups are just links to old backups, and do not occupy space. Any old backup can be deleted at any time without compromising the others. It can be used to provided a "yesterday's files" service to users (both locally and exported as a read-only samba share...). To restore, just copy the files from the backup area.

  • amanda apt-get install amanda-client amanda-server It is a network backup system. It can do full and incremental backups. You can have a backup server which handles the storage and various backup clients that send the files to backup to the server. It takes some studying to set up. To restore: it has its own tool.

Some data requires exporting before backing it up:
  • To save the list of installed packages and the answer to configuration questions:

    dpkg --get-selections > pkglist
    debconf-get-selections > pkgconfig
    
    To restore:
    dpkg --set-selections < list
    debconf-set-selections < pkgconfig
    apt-get dselect-upgrade
    
    If you do this, they you only need to backup /etc, /home, /usr/local, /var.
  • To save the contents of a MySQL database:

    mysqldump name-of-database   gzip > name-of-database.dump.gz
    
    To restore:
    zcat name-of-database.dump.gz   mysql
    
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
  • rkhunter, chkrootkit
  • checksecurity
  • debsecan
  • tiger
Important keys to know in a Unix terminal These are special keys that work on Unix terminals:
  • ^C: interrupt (sends SIGTERM)
  • ^\: interrupt (send SIGQUIT)
  • ^D: end of input
  • ^S: stop scrolling
  • ^Q: resume scrolling
Therefore, if the terminal looks like it got stuck, try hitting ^Q.
Problems we had today with postfix
  • Problem: mail to efossnet@dream.edu.et is accepted only if sent locally. Reason:

    $ host -t mx dream.edu.et
    Host dream.edu.et not found: 3(NXDOMAIN)
    
    Solution: tell dnsmasq to handle a MX record also for dream.edu.et:
    mx-host=dream.edu.et,smtp.dream.edu.et,50
    
  • The problem not solved with the previous solution. Reason: postfix was making complaints which mentioned localhost as a domain name. Solution: fixed by changing 'myhostname' in main.cf to something different than localhost. Note: solved by luck. Investigate why this happened.

Problems found yesterday and today:
  • there is no way to tell squid to use another proxy for SSL connections: it only does them directly

  • if you want to configure evolution to get mail from /var/mail/user, you need to explicitly enter the path. It would be trivially easier if evolution presented a good default, since it's easy to compute. It would also be useful if below the "Path" entry there were some text telling what path is being requested: the mail spool? the evolution mail storage?

  • In Evolution: IMAP or IMAPv4r1? What is the difference? Why should I care?

  • apt-get --print-uris doesn't print the URIs if the package is in the local cache, and there seems to be no way to have it do it.

  • in /etc/apache2/sites-available/default, is the NameVirtualHost * directive appropriate there? It gets in the way when using 'default' as a template for new sites. Otherwise, one can add a new (disabled) site that can be used as a template for new sites instead of default.

  • the default comments put by crontab -e are not that easy to read.

John Goerzen: Thoughs on cfengine, bcfg2, and puppet

Yesterday I posted about my first steps with cfengine. By the end of the day today, I had things far along that I can:



Very nice.

I've had a few annoyances with the cfengine packages support, which doesn't quite seem to work as documented al the time.

I also took a look at bcfg2 thanks to a comment yesterday. It looks very interesting, but I have a few gripes about it. I find cfengine files easier to read. I can look at a file, having never used cfengine before, and have a reasonable idea of what is trying to be done and how it will be accomplished. I can't say the same for bcfg2, plus bcfg2 uses XML config files (ick) and a bunch of small otherfiles. While the architecture as the authors have described it certainly sounds appealing, I'm not sure that bcfg2 is a simple as cfengine. I am a strong believer in the KISS (Keep It Simple, Stupid) principle. But THANKS to the person that left the comment, and I hope that bcfg2 continues to evolve and provide an alternative to cfengine.

I also looked at Puppet. This thing looks very slick. Seems to be cfengine with a nicer syntax. On the other hand, it's not really clear that anybody is using it. That makes me nervous -- this is the kind of thing that can seriously harm machines if it does something unexpected.

26 July 2006

Steve Kemp: I can taste more than feel

I’m resisting the temptation to tell people to use real words when they make posts to mailing lists like this:
If u get full debian disk(2 DVDs), u can install them(binary & source) … U can choose fast mirrors to ur computer, & here is the list.
I appreciate that English is not the first language for everybody, but reading things like that just makes me want to slap people. In other news I’m enjoying work a lot this week. Compared to last week having multiple distractions this week I’ve been left alone/undisturbed enough to create code and design things is a lot of fun. I couldn’t do it non-stop, which is why I sysadmin instead of work as a developer, but I do enjoy coding. On a related note today somebody mailed me a patch to get my lua networking extension to build upon MingW which was a pleasant suprise.

25 July 2006

Alexander Schmehl: AMD bought ATI

Adrian von Bidder asked that question on debian-curiosa and stated he would like to see it on planet, but for technical reasons hasn't his blog there: I just read that AMD bought ATI. Is AMD better in terms of Linux support than ATI? Does anybody have contacts inside AMD or ATI who might be able to influence management to change the policy wrt open source graphics drivers now that the company has changed hands? Feel free to join the discussion on the list.

24 July 2006

Simon Richter: Permissions on kiosk boxes

On my way to England, since I was flying RyanAir, I needed to print my boarding pass myself (I could alternatively have chosen to stand in line for two hours). Problem is, I don't have a printer at home, which led to me visiting an Internet cafe.
They were running Windows, and basically had everybody logged in as an admin. When I needed Acrobat Reader, the shopkeep said I should just install it, it would be fine. As the installation looked pretty clean to me, I assume they just reinstall the machine after every customer.
Could that be an idea also for Linux based kiosk setups, a virtualised box where you'd be running out of an LVM snapshot so wiping the box is basically the same as forgetting the changes; then giving users the permission to install stuff?

Bdale Garbee: Paperless?

For a couple years, I've routinely used Ampad Quad Ruled Steno Books to make notes to myself on just about everything. This morning I realized I'm using the last one from my most recently acquired package of 12... so, naturally, I tried to order some more. They're gone. Apparently, nobody sells a quad-ruled steno pad any more. I even called Ampad corporate customer service, where a very helpful woman poked around on her computer and confirmed that the product has been discontinued, and the last case in their inventory shipped out as part of an order to a university bookstore in early April. There aren't any more in stock, and they probably won't ever print any more. Grumble. At least I can still buy quad-ruled engineering pads, even if they are clumsier to carry around...

23 July 2006

Junichi Uekawa: linux-uvc package on its way.

I'm working on a linux-uvc package for Debian.I was hoping that it was going to be easy, but apparently, it's not too easy.Firmware loading seems to work, looking at diff of lsusb -v.Things look as if it's functional, but I can't get any application working.This is kernel 2.6.18-rc1.Could anybody else confirm this?Package is available in deb http://www.netfort.gr.jp/~dancer/tmp/20060723 ./,you can build and install the package with module-assistant auto-install linux-uvc.... after trying, I could get it working with ekiga. The v4l2 driver wasn't installed per default,but after installing it, I can see my silly self.

22 July 2006

Carlos Villegas: Now preloading worked (SoC 2006)

One again I've tried the preload program from Behdad Esfahbod (a result from SoC2005) but this time positive results. The cause of the difference might have been an incorrect deinstallation of parallel booting (insserv/startpar). The boot time showed a 2 second time improvement. The preload.conf parameters mapprefix and exeprefix were set to empty such that all files would be accepted. The results were compared with mapprefix being set to the directories used by some of the init scripts (strace -f initscript), adjusting the quantum time of preload (cycle parameter) and changing the position of the initscript to start just after hwclockfirst.sh. The results were the same: a 2 second time improvent. See the bootcharts here.

21 July 2006

John Goerzen: RedHat Gripes

Lately we are looking at groupware options, and have been looking at Scalix and Zimbra. We may need the features in the proprietary versions of these products, unfortunately.

So I downloaded an evaluation copy of Scalix.

They say they support RedHat and SuSE. Fine, I think, I'll just alien the RPMs to debs and be happy.

Not so fast. They have a whole proprietary install system. They check for /etc/redhat_release or /etc/SuSE_release (or something like that) and do different things depending on what is there. Ugh. Why can't these proprietary vendors just target LSB? The differences seem mostly related to init anyway.

So I touch /etc/SuSE_release into existence, run the installer again. It complains that DISPLAY is not set. UGH. I log in with ssh forwarding, to root (sigh), and run it again.

Now it complains that the SuSE_release file doesn't contain a valid release. I google a bit, but the file format doesn't seem to be documented anywhere. I extract it from an RPM somewhere, but no luck.

So, I figure at this point, let's try an actual RPM distro. I'm running this in a Xen domain anyway, so it should be no big deal, right?

I think CentOS will be a good choice. It's RHEL with the non-free stuff stripped out. And they support RHEL and don't need any non-free stuff. I google, and find instructions for installing via rpmstrap for Xen uses.

Let me say, rpmstrap is not nearly the nice tool that cdebootstrap is. rpmstrap totally hosed the networking on the Xen host machine, requiring me to reboot to get it back to proper state. The resulting install wouldn't boot, either -- I later found out that, even though I listed explicit devices in /etc/fstab like usual, it requires labels on all my partitions to boot. Ugh. There are a host of other problems with the rpmstrap-installed chroot, and it's broken beyond my ability to repair due to problems with the rpm database.

So then I downloaded the "Server" CD for CentOS, which is supposed to have just the stuff a person would need for a server, and leave off all the graphical tools, multimedia, etc. I fired up VMware and did an install. Then I booted Debian From Scratch in VMware and used tar and netcat to copy the installed image over to Xen.

I got it booting fairly easily. But now I start to remember why I had this instinctive gag reflex last time I used RHEL.

First off, the network configuration, by default, is tied to the MAC address of your ethernet card. So if you replace your Ethernet card, your network is broken by default.

Then, there's the way the network is brought up. It uses arping as part of its procedure to bring up a NIC. If it sees a reply anywhere on the network with the IP you're trying to assign, it leaves the NIC half-up -- it's been ifconfig'd up, but without an IP. So that's right, if somebody happens to have a rogue device plugged in at the moment your server boots, your server will come up without a network configured. This is *Enterprise* Linux and it's pulling this sort of thing. Terrible design.

Next, there's the way the network is *configured*. There are commands such as system-config-network-tui, -gui, -cmd, -druid, etc. I go for -tui. to start with. It's a dialog-like interface, and asks the basics like IP address, etc. It doesn't have any way to configure more than one Ethernet card that I can tell. And some of the settings -- like nameserver -- apparently require you to press F12 to visit. But the program doesn't recognize F12 as sent by an xterm, so it doesn't work.

All the other options require X. So, I reluctantly ssh -X into it as root and run system-config-network-gui. It doesn't work -- complains it can't find DISPLAY. Strange, I think; DISPLAY is set properly to localhost:whatever. It turns out that /etc/hosts is empty by default, so the thing can't resolve localhost! Argh. I add a line to /etc/hosts and it fires up.

This tool works decently. I save, uncheck the tie to a MAC address box, and exit. I then think it might be good to fire it up again and see what it did. I try running it again, and get the same error about DISPLAY. The stupid tool blew away /etc/hosts and replaced it with an empty file! This is NOT what I would expect from an Enterprise Linux. You don't blow away a config file the administrator touched without asking, EVER.

Next, I figure, let's try installing the XFS tools so I can switch the root filesystem to xfs. I start with "yum update", which doesn't quite do what I expect. (It is more like apt-get update && apt-get -u dist-upgrade) So I hit Ctrl-C, but -- surprise -- IT DOESN'T WORK. I press it a few more times, and it seems to just make the downloader cycle through mirrors because of a "download error". So I hit Ctrl-Z and kill %1. I have my prompt, but it's STILL DOWNLOADING STUFF and spewing all over my console. Ugh.

I finally use ps and kill -9 and eventually get it killed off. Stupid thing.

I don't understand why anybody would want to use RedHat Enterprise Linux in an enterprise. It seems more suited to a hobbyist system at home. From reading some forums, it seems there are quite a few people out there using Debian for enterprise systems for similar reasons.

So now, maybe I'll have the chance to actually try Scalix.

(BTW, our intern got Zimbra installed on Debian just fine, so that's a plus for it.)

20 July 2006

Arnaud Vandyck: Everybody wants to open source

It’s strange to follow state of minds of big companies about open source (they rarely speak about Free Software but that’s another story;-)). Dalibor Topic, Mark Wielaard and all friends from GNU Classpath spent a lot of time talking with Sun to try to open source Java (or even just be able to get the tools to make open source java virtual machines and API). They are some moves in that direction and people like Tom Marble is working hard to make Sun’s JDK license DFSG compatible and integrate Sun’s JDK in the Debian distribution. Robert Brewin, co-CTO of Sun Microsystems’ software group, said: “I believe that we will have components of Java released into open source within the year,” meaning by next June, Brewin said. “I think [release of] the whole thing will take a little bit longer.” One more step. Another amazing interview is the one of David Kaefer, director of Business Development, Intellectual Property and Licensing at Microsoft who called the open source software movement a “very powerful force in the industry.” He also wants us to believe that Microsoft will be more and more open… Wait and See ;-)

Next.

Previous.