Scanner Support in Ubuntu

I recently had to scan in my passport while staying at my girlfriend’s house in the US and I was impressed how easy it was in Ubuntu 10.04. I plugged in her HP PSC 1200 printer/scanner/copier and opened Applications->Graphics->Simple Scan. I pressed the scan button, cropped the image, and saved the scan.

Scanning in Ubuntu was a lot easier than in Windows XP, where you have to install drivers and software first. I’m really impressed by the usability of scanning in Ubuntu.

Posted in Uncategorized | Tagged , , | Leave a comment

My first Wine patch got accepted!

bit.ly/9Z4Q5Z

Posted in English, linux | Leave a comment

My usb.ids patch got accepted!

I have finally made a contribution to Linux that got accepted! I bought a new webcam earlier this year. The webcam works, but it wasn’t recognized by its name. USB device names are stored in a file called usb.ids, so I made a patch with the name of my webcam and sent it to the maintainer. It’s so cool to be able to contribute!

Posted in English, kernel, linux | Leave a comment

IPv6 now!

I currently sit on a very fast network at my dorm (100 Mbit fiber). My cheap Linksys wrt54gl is currently often the limiting factor when I’m downloading big files, such as Linux ISOs or video podcasts, from the web. The speed is often limited by it to around 3 MB/s. It’s annoying to have such a fast connection to the world and not being  able to host anything, because you’re behind a NAT’ed address. This is a problem that IPv6 can solve.

My ISP doesn’t support IPv6 themselves, so I was forced to use a dynamic tunnel at sixxs.net. I’ve set up two dynamic tunnels, so I can access my desktop computer from my laptop, no matter where I am in the world. A short test transferring The Source video podcast using SCP gave the following result:

the_source_episode007.mp4        100%  128 MB 989.5 KB/s   02:12

That’s pretty impressive! These speeds makes Pv6 very usefull at this stage, for anything I would care to use it for. Seems like the broker sixxs.net is not a serious bottleneck.

It’s very easy to setup a dynamic IPv6 tunnel in ubuntu. First request a dynamic tunnel from a broker, e.g. sixxs.net, and then install the aiccu tunnel client:
$ sudo apt-get install aiccu
The installation will ask you for the user name, password and possibly the ID of the tunnel. Test the connection afterwards by going to ipv6.google.com. Welcome to the world of IPv6!

Posted in English, IPv6, linux, ubuntu | Leave a comment

GNOME Do Rocks!

I just found a really cool application for GNOME called GNOME Do. This video gives a pretty good introduction to it:

Install it on ubuntu by using:
$ apt-get install gnome-do
Or alternatively go to the official website.

Posted in English, gnome, linux | Leave a comment

Cool historical Linux talk

Found this link on the Linux Journal. Linus Thorvalds gave a cool talk about the history of Linux at the Computer History Museum. Very cool

Posted in English, linux | Leave a comment

Maple keyboard bug

I’ve just upgraded to Maple 11 on Ubuntu Linux 7.10 Gutsy Gibbon. The keyboard issues haven’t gone away so it still isn’t possible to enter a caret key ^. This is a very old bug related to the old crufty version of Java Maplesoft is using. I got an email from the Team Lead at Maplesoft telling me that I could try using another version of Java. So I did the following. First I installed Maple 11 to /opt/maple11 and then I installed Java 6. Then I changed the Maple Java to the system Java by making a symbolic link:

  1. /opt/maple11$ mv jre.IBM_INTEL_LINUX jre.IBM_INTEL_LINUX.bak
  2. /opt/maple11$ ln -s /usr/lib/jvm/java-6-sun jre.IBM_INTEL_LINUX

That made it possible to enter a caret key! I wonder why Maplesoft still is shipping such an old version of Java with Maple?

Posted in English, Java, linux, Maple | 1 Comment

Gumstix adaptor

I’m currently doing a project a my university The Technical University of Denmark involving a Gumstix computer (connex 400xm). I got money from my institute to buy it as they thought my idea sounded novel. My team and I are building an adapter to update an electronic weight. The Gumstix computer is a tiny Linux computer with a serial and an ethernet port. We are writing software to make it translate xml-rpc from the network into serial commands the weight can understand. We are also looking into using Zeroconf to make it easy to find the weight on the network, and talk to it through another computer.

We downloaded version 1541 of buildroot for the Gumstix using a guide on the Gumstix wiki:

$ svn co -r1541 http://svn.gumstix.com/gumstix-buildroot/trunk gumstix-buildroot

We then changed to the gumstix-buildroot directory and ran the following commands:

$ make defconfig

I chose option 11 xscale when asked which target architecture variant i
wanted and pressed enter at the rest of the options. I then ran
menuconfig, which gives you a menu system where you can add and remove
parts of the system:

$ make menuconfig

I selected “Target Options” and set the “Pad Output” to 0xEC0000 (the size of the internal flash). I also removed the option “Use sumtool to write…”. I went down to “Package Selection for the target” and pressed enter. I deselected a lot of packages that didn’t have weren’t going to be needed such as: alsa, aumix, bluez, gpsd, madplay, pcmiautils, pppd, wifistix, wireless tool and more. I then went all the way down to python and pressed space. That gave the option of including pyserial and pexpect, which I added as well. I exited out of the menu and answered yes to saving the configuration. The buildroot system was now ready to compile so I issued:

$ make

After a little while it asked which frame buffer device I wanted. As I wasn’t going to use a display I just hit enter. The compiling went on for a very long time.

After the compiling was done I found out that I couldn’t upload to the Gumstix as it was loaded with u-boot 1.1.4 and not 1.2… It seemed like I would have to update it which I didn’t want to, as this is a very risky operation that can brick the Gumstix. I thought I was out of luck and tried some older versions of buildroot, but those made python seg fault. I googled franticly and stumbled over a page by RoboMontreal by accident. It said to do the following after a make:

$	mkdir -p build_arm_nofpu/root/boot/
$	cp uImage build_arm_nofpu/root/boot/
$	rm  rootfs.arm_nofpu.jffs2
$	make

This copies the kernel to the root image, which solved the problem with u-boot as it wasn’t able to find the kernel. I copied the file rootfs.arm_nofpu.jffs2 to the MMC flash card and put it into the Gumstix. I connected to the Gumstix with a serial null cable set with the following settings:

  • 115200 baud
  • 8 data bits
  • 1 stop bit
  • No parity

I turned the Gumstix on and hit enter when u-boot started. This gave me a simple console, which I used to replace the root file system:

GUM> mmcinit
GUM> fatload mmc 1 a2000000 rootfs.arm_nofpu.jffs2
GUM> protect on 1:0-1
GUM> erase all
GUM> cp.b a2000000 40000 ${filesize}
GUM> boot

This system booted and Python seemed to work with pyserial and xmlrpclib which we need for the project. It took me a lot of hours to figure this out but now we finally had something working.

Posted in English, Gumstix, hardware, linux | Leave a comment

New York, Day 1

I felt like taking a good long walk after the flight the day before, so we started the day by taking the subway to Brooklyn. We wanted to walk across Brooklyn Bridge but had some trouble finding it even though we got directions:

Asbjørn at the state court house

We finally found the Bridge and it was amazing to walk with the NYC skyline in front of you:

Two cool guys ;-)

To cool guys on Brooklyn Bridge

New York is a very noisy and busy place:

Men at work

Ground zero was not so zero anymore:

Ground Zero

And I met Mr. Wallstreet:

Mr. Wallstreet

The NYSE was quite a view:

NYSE

We went down to the Staten Island Ferry as it was free:

Staten Island Ferry

It was a nice little tour, about 15 min. each way. We even got to meet this famous lady:

The Statue of Liberty

We wanted some more action after the quite trip and went to Times Square:

Times Square

We met our first cowboy on our trip:

A naked cowboy :-)

We walked to Central Park and sat for a while enjoying the incredible view:

Central Park view

I met an old guy in Central Park I knew from my home town!

Hans Christian Anderson in Central Park

We went to Best Buy to find a plug converter for Asbjørn. We discovered that was a special entrance for us in Central Park…

Engineers' Entrace Central Park

We ended walking almost the whole way around Central Park by accident, so we had quite a long walk that day. Some rest would be nice now :-)

Posted in English, New York, Vacation | 2 Comments

New York, Day 0

Yawn… We had to catch a bus from home at 4 A.M in order to get to the airport two hours before departure. Asbjørn didn’t go to bed the evening before, but was surprisingly awake when we went to the airport, but that sure changed :-)

Asbjørn travels with style as you can see on this picture from Copenhagen airport:

Asbjørn in Copenhagen airport

We had to fill out a couple of papers before they would let us into the country:

Filling out papers on the way to USA

It took a while to get into the country. They had to check a lot of things, take our fingerprints and take our picture(why can’t they just use the information on the passport?!?). We took the skytrain from JFK to Jamaican station and the subway from there. It was really easy to use the public transportation and we actually got to the hostel half an hour before expected(I was afraid we would be late).

The Hostel is Virginia Guest House in 128 East 112 street. The area is a bit shady, outskirts of Harlem, but ok:

View from the hostel

We went around the area looking for a cable for our laptops as the first thing and found some:

I'm connecting our laptops to the power grid
We crashed after that and slept very well in spite of the trains going by our window.

Posted in English, New York, Vacation | 1 Comment