Archive for the 'Linux' Category

Messages! From Outer space!

OLPCI finally got to play with a pukka One Laptop Per Child laptop on Friday. I’d heard sniffy things about it, and indeed I bought an Asus eeePC for myself as you can’t buy the OLPC in the UK. I expected to be unimpressed, but it’s a very nice machine - and the display is brilliant. Turn the backlight off and you get a very, very crisp monochrome display that can be read in direct sunlight. It even folds back on itself to become an ‘ebook’-style tablet. The OLPC and my eeePC made a very sweet couple sitting side-by-side.

I got to play with one thanks to Tom Hannen in the BBC World Service, and good luck to him in trying to get folk there to do something for it - it should be right up the World Service’s street. He’s written a great little Speak and Spell toy for it, and I fancied having a go at writing a simple program myself. So I’ve been messing around with emulators - sadly it’s too slow to be useful on my old Apple G4 PowerBook, but I got it to fairly fly on a WindowsXP laptop which can take advantage of having an Intel / X86 processor.

This is a bit odd, though… check out these weird symbols that appear VERY briefly twice when you shut down the OLPC. It’s like something out of Lost:
olpc warning

Setting the Asus eeePC clock using NTP


For some mad reason the Asus eeePC doesn’t have any option to set its time and date using an NTP server - not even when running in the advanced desktop mode.

Here’s a quick way to add the function if you are running in advanced mode. You don’t need to install any software - the command line tool you need is called ‘rdate’ and it’s already on your eeePC.

In your advanced desktop, go to the Launch menu, Applications > System > Menu Editor. Expand the Applications list and highlight Utilities. Click on File > New Item.

In the name box type something like ‘Set clock’ and in the Command box enter something like this:

sudo /usr/sbin/rdate ntp2d.mcc.ac.uk

replacing ‘ntp2d.mcc.ac.uk’ with your local NTP server of choice (I picked my alma mater for sentimental reasons rather than geographical proximity…)

Untick the ‘Enable launch feedback’ box and save and close. It should then do some system updates and then you should see a new item in your Launch menu under Applications > Utilities that when you click on it, updates your eeePC’s system clock. Now why couldn’t Asus have just left the NTP option alone in its Xandros version of Linux?

TillyPaint on eeePC

tillypaintI got TillyPaint working on my eeePC - it’s a very simple finger-painting program wot I wrote aimed at very young children. The idea is that you can make a mark without clicking the mouse, which almost all paint programs require you to do. You can find versions of it for MacOS X, Windows and Linux here.

The Linux version isn’t quite right - it clearly doesn’t run full-screen like it should and holding down the shift key doesn’t stop it drawing like it should, but the basic idea works.

To install it, I just downloaded the ZIP to my personal folder, right-clicked on it in the file manager to unzip it then did the same to change its permissions (under properties) to make it excecutable and then launched it by double-clicking on it in the file manager. This is probably a hideous crime against Linux, but then I’m no Linux power-user let alone developer… :-)

eeePC - the photographer’s friend

gimp on a eee pcThe Asus eeePC is great for the photographer on the hoof - especially if your camera uses SD cards which you can just pop in the slot in the side. The default image viewers are okay but leave a bit to be desired if you want to do anything slightly unusual… I tried a couple of others such as Google’s Picassa and Digikam but they weren’t quite for me either… specifically I wanted to be able to crop images to a fixed aspect ratio for making wallpaper. I was pretty sure that The Gimp would do the trick - using it is easy for anyone familiar with Photoshop. I had a look at this interesting post on eeePC tools for photographers - worth noting that to install it I had to press ctrl-alt-T to get a terminal and then type
sudo apt-get update
(note ’sudo’) and
sudo apt-get install gimp
to get the install to work. (Thanks to Eric for pointing out my error here, now corrected).
When running the Gimp for the first time (type ‘gimp’ at the command line) the install wizard buttons will be off the screen, so hold down the alt key and click and drag the window up to get at them. You can use this trick to make sense out of the crowded Gimp screen too!

Less is More - the Asus eee PC

OR: NEVER MIND THE $100 LAPTOP, GET A LOAD OF THE £200 LAPTOP!

log in on a tuppenceI’ve had my Asus eee PC for a couple of days now, and can set some thoughts down… as you know this is a tiny £200 sub-notebook computer, that almost perfectly fits my long-held dream of a tiny laptop with no hard drive which would boot quickly enough to allow me to write something on a short train journey, let me get on the net using wifi, write that coruscating best-seller!

It really does fulfill my dream. It boots in seconds and wakes from sleep even faster. The screen is a mere 800×480 pixels but it’s very sharp - quite high resolution - and most web sites look just fine. Quite a lot of scrolling required but BBC News and Flickr work ok. You can hook up an external monitor via VGA and get some pretty huge resolutions - I did this at work today and it was hard to believe that this tiny box was producing a great big picture.

The keyboard is a bit clackety, but I’m typing this on it now without too much trouble. The trackpad is surprisingly good - not up to my PowerBook’s but it does have a scroll strip on the right which is almost as good as Apple’s 2-fingered salute. Frankly I thought the click button was faulty until it dawned on me that it does left or right click depending on which side you press - double-tapping the trackpad is easier for a left-click.

It’s got 3 USB 2.0 ports, which is one more than my PowerBook that cost 10 times as much. It’s got an ethernet socket, a built-in web cam and stereo speakers and headphone and mic sockets - along with a built-in mic at the front just underneath. There’s also a slot for additional memory via SD cards, which I’ll need. My unit has 4GB of flash storage, much of which is taken up with the OS and 512MB of RAM.

Although you can install WindowsXP on it, it comes pre-installed with a special version of Xandros Linux. There’s a huge range of useful open source software included - Firefox, of course - which you can add an FTP plugin to. OpenOffice for word processing and whatnot. The media players do a nice job of playing MP3s and have coped with the few various video files I’ve chucked at them. There’s also Skype - not open source but potentially makes this device worth the money on it’s own. I’ve got the Skype 2.0 beta running using the web cam - this machine is so tiny you could just leave it on in the kitchen and use it for phone calls and checking the news headlines and train times.

Of course as a Linux machine you’re a bit limited in what peripherals you can use - no problems with my Kingston memory stick but when I plugged my Nikon D40 camera in (without much hope) oddly it mounted a drive called ‘D40′ but couldn’t see anything on it. No great loss as I can plug the Nikon’s SD card straight into the eeePC’s internal card slot - in fact this little gizmo means that if I carry it with my camera I can file pictures from anywhere I can snaffle some WiFi connectivity.

But peripherals are hardly the point - a memory stick goes a long way. You can even boot off a USB keyring if you want to try an alternate Linux flavour without trashing the default configuration. One mad fool has even got MacOS X running on one…

There are a few niggles so far - the WiFi is a bit flaky at first and nowhere near as easy to set up as a Nintendo DS (which is my gold-standard for simple WiFi configuration - those guys make Apple look sloppy!) - a couple of times I’ve just bitten the bullet and rebooted, but that itself is so quick and Firefox opens all its tabs just where you were.

Other oddities are the fact that this is a single user Linux - amazingly you cannot have multiple accounts without installing another Linux distro, which I don’t want to do. This is a pity and tragically means that I can’t let the kids have the eeePC after all, what with the lack of parental controls as well. Oh well.

Also they seem to have stripped out the option to set the clock from an NTP server, which is very very odd, especially as it’s mentioned in one of the help pages. Annoying thing for them to have dropped - quite handy when you’re out and about, to get the right time off the interweb!

But all in all a lovely dream machine… it is, as Stephen Fry would say, my mother, my lover, my strumpet of the boudoir. If only I’d managed to get one in black…

Asus eee PC

Asus eee PC

Just got my tiny £200 Asus eee PC laptop. Will write a proper review when I’ve played with it for a few days… initial response is very positive… few odd gripes:

Had to start broadcasting the SSID on my WiFi router to get it to connect - not sure if there’s a way round that.

It can’t do multiple logins with the default Xandros Linux… annoying but this might not be such a problem because…

This machine is MINE dammit. Not for the kids. No parental controls, so they’ll have to stick with MacOS X.

Skype works - just need some friends to call, ha!

Date & Time control panel is missing the NTP setting box that the help file says it has - very odd.

Plugged my Nikon D40 camera in, not hoping for much - oddly it mounted a drive called D40 but couldn’t see anything on it.

Happilly played a random selection of mp3s and a MOV and an AVI off my Kingston memory stick - sound quality pretty good on internal speakers, nice on headphones if a little quiet. Need to get some MMC SD cards…

You can get a terminal up easily in the file manager.

Found an FTP plugin for Firefox that should serve my FTP needs - text editor with FTP would be nice for quick fixes.

BETTER GO TO SLEEP NOW,,,

Tiny cheap solid-state laptop

Tired of waiting for the One Laptop Per Child laptop?

How about one of these cuties from RM / Asus? It’ll be £169, uses flash memory not a hard drive, has WiFi and runs Linux. Ticks all the boxes for me…

Why Your Neighbour’s WiFi security is so poor

I think I might now know why there are so many unsecured wireless computer networks around.

I could never understand this, it seems so stupid to leave your network wide open. Security is easy enough to set up with MacOS X, a snip with a Nintendo DS - I even managed it using command line tools on a cut-down version of Linux.

Then I tried to get 3 different Windows XP laptops to talk to my wireless network; I entered my SpeedTouch 570 router’s SSID, I carefully added the WEP key, I used ipconfig /all at the Windows command line to get the MAC address of each wireless card so I could add them to the router’s permitted list of MAC addresses. Nothing. Each time the only way I could get the Windows XP machines to see my network was to disable WEP entirely - hence why I now see why many people might think ’soddit, I’ll turn the security measures off’.

In the meantime, I did discover that partially dropping security might help - by default my router only allows computers with the correct SSID to connect; turning off that basic security measure seems to have helped. But why should Windows XP force me to drop my security? Even a toy like a Nintendo DS can manage it.

WiFi Linux on a shoestring

xubuntu xfceCAUTION: this is a geeky Linuxy post that’s really just here because I’ll forget how I did this in about a week and I might want to do this again some time…

Ages ago I put Xubuntu - a cut-down version of Linux - on an ancient Toshiba Tecra 8000 laptop. The other day I found an old Cisco Aironet 350 wireless PCMCIA card lying around and it occurred to me that if I could get it working then this old laptop could be a bit more useful - if only for web-browsing in the tree house without worrying about the kids damaging my PowerBook.

The XFCE graphical environment I installed has very few bells and whistles - there’s certainly no GUI to tweak WiFi settings, so I plugged the Cisco card in the top PCMCIA slot and went to the command line and tried iwconfig to see what was wirelessly going on inside, if anything; it looked a bit like this, suggesting some WiFi action was possible on the eth1 interface:

interface:myname@tecra8000:~$ iwconfig

lo no wireless extensions.

irda0 no wireless extensions.

eth0 no wireless extensions.

eth1 IEEE 802.11-DS ESSID:” ”
Mode:Managed Frequency:2.417 GHz Access Point: 00:00:00:76:FC:04
Bit Rate:11 Mb/s Tx-Power=20 dBm Sensitivity=0/65535
Retry limit:16 RTS thr:off Fragment thr:off
Power Management:off
Link Quality=90/100 Signal level=-50 dBm Noise level=-98 dBm
Rx invalid nwid:14 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:4253 Missed beacon:0

So then I edited the interfaces file like this:

sudo pico /etc/network/interfaces

to make the primary network interfaces section read like this, including the name of my wireless router and its WEP key:

# The primary network interface
auto eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet dhcp
wireless-key abcdef123456
wireless-essid MyRouterSSID

And then I restarted networking like this:

sudo /etc/init.d/networking restart

Then to get the machine to start the graphical environment as soon as I log in at the command line, I added these lines to /home/myname/.bash_profile:

if [ "$(tty)" = "/dev/tty1" -o "$(tty)" = "/dev/vc/1" ] ; then
startx
fi

Brilliant!

Dreams come true

I kept dreaming of a new kind of laptop. I kept drawing it and doodling it.

It would be about the size of an A4 sheet of paper, have Wifi, run some kind of Linux and - crucially - have no hard drive. A Cambridge Z88, an Apple eMate for the internet age.

Turns out the One Laptop Per Child project are thinking along the same lines. The project aims to design and build cheap, robust laptops for the third world. $100 laptops. Not for me, of course, but for children who really need them.

There was some ballyhoo in the media a while ago that the project - whilst still not going commercial, not selling them in Europe or the US - would let you buy one if you bought one for the developing world. A brilliant idea. Buy 2, get 1.

It’s not quite clear from their web site if they’re really going to do this or not. I hope they do. I want one of these so much, it hurts.