18
Last night I spent a few hours getting Liverpool LUG’s website on its own Xen VM, so hopefully we can provide some services to members, like webhosting and email aliases. This was my first venture into creating a Xen VM for myself, previously Chris has spent the time to set it up for me.
I’ll name this little adventure: Trip on the Fail Boat
Ok, so I was a little stupid. I didn’t read any existing documentation and bungled through it based on a few commands in the bash_history file. I know, stupid. For a while I hissed and cursed about incomplete setup which I thought debbootstrap would do, reading the documentation this morning has highlited how much of a monumental idiot I actually was. So now i’ll go through my idiotic bitching and explain why I was wrong…
1. 4Gb Fixup error messages
When I started up the VM I was assaulted by thousands of messages regarding a “4Gb memory fixup” or something to that nature. Of course, I was too busy trying to edit files in vi to actually look at the issue but was more than happy to shout and scream at my console formatting getting mixed up.
The fix? Install libc6-xen, or move /lib/tls to /lib/tls.disabled
2. Missing network config
The VM couldn’t see eth0, or lo for that matter. After hammering my head against the table checking the Xen config files I finally realised that updating /etc/network/inferfaces could help.
3. “Why is the hostname dom0?”
Stupidity ensues, thankfully I noticed before I issued the shutdown on dom0.
4. Services randomly failing to start up
Missing loopback network device, no actual 127.0.0.1. You would be suprised how much this can effect your system.
So for now, The VM is working. I’ll get round to posting some more details about LivLUG services soon, but for now i’m going to get some coffee…
filed under: linux, projects | comments (0) | read more...
7
So, in my last post I described how it was using the E160G with Debian. All in all it’s very good and i’ve not experienced any major issues, bar a few minor apt-get and NetworkManager issues. So, heres a quick rundown of how to get it on your machine.
So first, you need to get the hardware to work correctly under Debian. Plug in your E160G and check dmesg to see if the device recognises correctly. If you see ttyUSB0/ttyUSB1 appear you can skip this step.
First, you need to download USB_Modeswitch:
# wget http://www.draisberghof.de/usb_modeswitch/usb_modeswitch-0.9.4.tar.bz2 # tar jxvf usb_modeswitch-0.9.4.tar.bz2 # cd usb_modeswitch-0.9.4/ # ./compile.sh
Now you have the usb_modeswitch program, as this will be executed by udev it needs to be in a sensible location, personally i’d copy it to /usr/local/sbin/
# cp usb_modeswitch /usr/local/sbin/
Also, you need to grab the latest config file from the usb_modeswitch website and put it into /etc
# wget http://www.draisberghof.de/usb_modeswitch/usb_modeswitch.conf # sudo mv usb_modeswitch.conf /etc/
Now, by default the config file comes with the section commented out, so edit the file and uncomment the section for the E220 (which is essentially the same device).
# sudo $EDITOR /etc/usb_modeswitch.conf
One last step, you need to add a small configuration file to udev to detect the E160G and run usb_modeswitch, put this file in you /etc/udev/rules.d/ folder:
SUBSYSTEM=="usb", SYSFS{idProduct}=="1003", SYSFS{idVendor}=="12d1", RUN+="/usr/local/sbin/usb_modeswitch"
Restart udev, and plug in your E160G…
sudo /etc/init.d/udev restart
and you should see something similar to:
[ 16.085904] usb 5-3: GSM modem (1-port) converter now attached to ttyUSB0 [ 16.086033] usb 5-3: GSM modem (1-port) converter now attached to ttyUSB1
So, the device is detected and you have your USB ports, first a quick overview. The E160G shows two serial ports, one is a data port, the other is for control signals. NetworkManager only makes use of one of these ports but the Vodafone Connection Manager uses both. Now you have a choice, install Network Manager 0.7 to gain native GPRS/UMTS data support or use another package. I went for Network Manager, while it’s still in beta and i’ve had a few run-ins in the past with it I decided to give it a go.
So, it was a simple case of adding the 0.7 repositories to /etc/apt/sources.list, updating, then installing the needed packages.
# echo "deb http://debs.michaelbiebl.de/ unstable main" >> /etc/apt/sources.list # apt-get update # apt-get -t unstable install network-manager
You might need to remove any old Network Manager packages before you do this, as network-manager-openvpn collides with the new package.
Hopefully thats give you the overview you needed, and you should be up and running!
filed under: linux, projects | comments (0) | read more...
3
I went to the post office and got my hands on the Huawei E160G with my reduced contract, and so far I am very pleased with it. The modem itself is a large USB stick, very comparable in size to a cigarette lighter. What is interesting is that the electronics can now be packaged in such a small kit, why ain’t they producing mobile phones of this size?
My first step was to get it working on Windows, I plugged in the modem on my old Windows PC and followed the numerous (and strange) online prompts to setup the software. After a lot of beeping, detecting new hardware and other jiggery pokery, I was presented with the Three Modem Manager application. The modem manager is a simple too that enables you to run the “dialup” connection through the modem. I whipped open the setup manual which informed me that no other setup was required bar setting up the software. So I clicked “Connect”…
… and it failed?
According to the tool I had to check my settings to see if they’re correct. This is a fresh setup of the tool, why would I need to check the settings when Three’s own guide mentions theres no setup needed. After 10-15 minutes poking around in the settings menu I finally threw in the towel. Sod it, I wanted to run this thing on Linux anyway so why am I putting myself through the pain?
Linux is, well, the way it was supposed to happen. I plugged in the stick and straight away I had numerous devices available, the “CD-ROM drive” for the drivers, the MicroSD reader, and the “tty” ports for the actual GSM modem. At this time I could of gone the route of setting up Gnome PPP and related tools to dialout to the provider and start using my new fancy net connection, but I’d heard that Network Manager 0.7 had the features to use 3G/GPRS built in without any extra settings. I decided to investigate the new version of Network Manager.
After much digging around on the ‘tubes, I finally found a Debian repository containing a build of the lastest Network Manager SVN. A little apt pinning and installation later I had the new version of the tool install. I browsed the existing menu and found a new option: “Auto connection to 3G/GPRS” , I selected the option and it connected.
I have to have a little moment to reflect here, “Mobile Broadband” is a new fad at the moment for most telecoms providers worldwide, so you would expect the Linux software support to be a little sketchy and buggy, but as it turns out the Linux method is alot simplier and easier to use. I’m not sure if I was missing anything obvious in Windows, but isn’t this stuff just supposed to work?
So, signed on to 3G I decided to give it a run for it’s money. I’m running these tests at 1:08am so it maybe a little bias, as I doubt many people would be actually using the APs at this time. I seem to be getting a variable speed of about 1-2mbps, and 150kbps upstream, not bad at all for a mobile provider. The documentation mentions that you should expect up to 2.5mbps, not the 7.2mbps advertised on some sites, all in all Three do a good job of pre-warning you that the speed on the box is not always what you get.
So far I’m happy with it, I’ve had a few minor issues with the stick not registering on the network but I’m not sure if this was down to my settings or just a small outage. I’ll post a guide in the next few days on configuring Debian up for Network Manager 0.7 and setting it up to work with the E160G.
filed under: projects, technology | comments (10) | read more...
2
At first, when the likes of Three and Vodafone released their “Mobile Broadband” services I was a little skeptical that it’ll be worth the money. 3G data is notoriously rubbish in the UK, either services are capped back to GPRS speeds or are heavily firewalled to make a “walled garden” of approved content. The premise is as follows, Three are starting to reduce their monthly cost in a attempt to get the customers in to back their massive HSDPA expansion in the UK, along with sites like Quidco offering interesting discounts on contracts and special half-price deals, it looks even better…
So I bought in.
On Wednesday I bought Three’s 5GB/month offer package through Quidco, which came to £7.50/per month and £12.50 cashback. For me, the 5GB limit is perfect as I doubt i’ll ever use over that amount in a monthly period. A few people have pointed me to similar packages on T-Mobile, but you can see just from a quick look in that list that the actual price is quite high for what you get, the only bonuses of that package would be the free T-Mobile wifi access (which theres alot of access points for in the UK) and the AUP style limiting, in that if you go over your limit you don’t get charged, you only get kicked up to the higher package if your a constant abuser.
So what’s the catch? Overage. Three charge you £1/per MB in overage, so a extra GB would cost you £1024. In today’s modern telecoms world that is an insane price, which again many people have pointed out to me. If you have no intention of using up to the bandwidth limit, what’s the issue?
Well, I got a useful Royal Mail red slip through the post yesterday, so I have to head down and pickup the equipment. Hopefully by the end of today I can give it a test and write down some more thoughts on it.
filed under: technology | comments (0) | read more...
23
It might of happened a while ago, but i’ve only noticed today! Folly have posted the video and audio for the various gigs that happened as part of Open Source City. As I missed the gigs it’s nice for me to listen to these artists for the first time, and also your helping (a little) to support Open Source!
filed under: Uncategorized | comments (0) | read more...
23
Tuesday night was a slightly reorganised Manchester Free Software, due to a small admin and booking error. It was decided to keep the talk on the 22nd as Ian Forrester had already agreed to the date. Really, the date change didn’t matter to the crowd that turned out, some interesting people from various areas, I also spotted one of the Folly guys in the crowd as well.
Ian Forrester was, up until recently, BBC Backstage, that was until a new member of staff started recently. Backstage is the “freen and open” side of the BBC, spearheading the production of open APIs, free content, and sharing within the BBC. For a media company this may be strange, but due to the “unique way the BBC is funded” we almost have a right to the production content of the BBC to be free and open to all UK license fee payers. As described by Ian, Backstage are at the forefront of new media in the BBC, keeping a eye on new “Web 2.0″ trends and trying to adapt existing data and services to acheive new levels of interaction with the mass public.
Ian described a time where anyone syndicating BBC News stories were instantly sent a C&D order. After stern warnings internally from Ashley Highfield via the Ariel magazine the BBC decided to change its ways an allow access to the services of the BBC by the general public via APIs, and Backstage was born.
Overall, Ian’s insight into the inner workings of the BBC explained alot. He mentioned the Backstage Wild West servers where anyone within the BBC is allowed to use space for any purpose, subverting the already existing Siemens infrastructure. While I was discussing this with Simon this morning he noted that it shows there are key problems within the BBC if a group has to circumvent the normal operating proceedures to carry out their work.
For all those who missed Ian on Tuesday, he’ll be speaking at Geekup Liverpool on 29th July, signup on Upcoming and check it out.
*Edit*
Ian’s video is now available on the BBC Backstage blog.
filed under: technology | comments (0) | read more...
22
Well, the “final” LUGRadio has been and gone, what a weekend!
After the initial fighting with trains, hotels, and various other things, I managed to get down to Wolverhampton with plenty of time to spare before the Friday night unofficial piss-up. After much Hoegaarden and other ales I managed to stumble back to my hotel to continue drinking. As you imagine this didn’t really help me for the next day…
So, mildly hung over, I stumbled down for breakfast at the local greasy spoon, the directions were a little vague and made reference to “The man on the horse” in Wolverhampton city centre. Lucky, some of the more organised members of the group worked out the directions before hand. The choice was good, from a small breakfast up to a 17 piece “death by breakfast” deal for £4.20. Due to the wicked hangover, I was hardly the most social person and proceeded to plow through my food without even a whisper to anyone else.
The event started later on with much fanfare as the previous show, and the jury-rigged improvement to the Atrium stage was a simple canopy over the projector screen, Ingenious. The layout remained the same as 2007 and while we had a little more walking room than last year in the exhibition space it still ended up as a maul to try and walk around.
First talk of the day, for me anyway, was Kevin Sandom on the Lightning Talks stage showing his Bash based clustering solution called GroupHug, as you can imagine the crowd chuckled at the initial idea of it, but as the presentation went on you could actual see use for it, possibly not by sysadmins, but for home projects. The project is amazing, and it seems to work extremely well for such a crazy idea. Maybe it would be useful as a replacement to the MythTV job queue system, but that’s for another post.
Andy Robinson from the OpenStreetMap Foundation was next on the stage, discussing the project as a whole and a brisk introduction to acquiring data for the project. The bright, Hi-Viz jacket amused a few people, I guess they’ll be great for getting the name out there in the public. His talk was straight to the point and gave a excellent overview to a very interested crowd. After the talk I ended walking back to the stall and had a very interesting discussion with Andy regarding the future of OpenStreetMap. In a ideal world, Andy would like to see an expansion in the database to allow dated entries, allowing for the generation of maps for a specific date period. So for example, you could generate a map of what the town looked like in the 19th century, He acknowledged that it would be a massive change in OSM to support this but the interest from the Genealogy crowd would be worth it.
After a quick lunch, I went to see Jeremy Allison from the Samba project on the main stage. Jeremy’s talk gave a quick insight into the milestones and issues Samba had getting to the point it’s at today. Various quips about the state of Microsoft went down well, and the talk was very insightful into the early days of open source software.
Glyn Wintle from the Open Rights Group gave a whirlwind talk on various topics that the group have looked at in the last year. The most interesting is the poor woman who was sued by the BBC for producing knitting patterns for Dr. Who characters, with the help of the ORG and some heavy beating by the likes of the Times and even CBeebies, the BBC backed down and licensed the lady’s works.
Glyn is also responsible of enlisting me as a support of the ORG, while I was slightly intoxicated may I add. I don’t have any regrets as the work they are doing is interesting to me. I hope i’ll be able to support the ORG for quite a long time and hopefully get involved when I can.
After another short break, It was time for LUGRadio Live, the final one. A lot of reminiscing and slander, as per usual. The shock announcement was that after some discussions the night before they have decided to continue the Live shows. The recording will appear in the next few days and you can have a listen yourself, if you missed it that is.
The nighttime entertainment at the venue was something not to be missed. Add Karaoke, quite a lot of drunk people, and you have a situation. Needless to say many people made a complete arse of themselves but it was all in good spirits, and the results can be seen on astopy’s Vimeo. Again, I had too much Guinness and ended up (some how) back in bed.
Day 2, a return visit to the greasy spoon and a groggy entrance into the event. The morning introduction was short and to the point, much to the delight of the hung over crowd. First talk of the morning was dotwaffle / Matthew Walster showing off the demoscene. As my brother was in a demo group called Crusaders while I was growing up, I had to go along to this one. Matthew showed a few demos from the “modern era”, initially I was disappointed that it was all heavily 3D based then later on with the showing of Kewlers/MFX - 1995 I started to liven up a little, a return to the “good old days” from my view. Matthew finished with a little invitation demo to Sundown 08, the Sundown event is accordingly the rebirth of the demoscene parties in the UK. I wish Matthew all the best in getting the UK back on the map for parties.
The Mass Debate was very interested. mrben, Jeremey Allison, Matthew Garrett, and Max Spevack all took the stage to discuss hot topics suggested by the audience, It was a slow start but after a few threats from Matthew regarding the GPL it started to move quickly. Most of the discussion has slipped my mind but I’m sure someone else will be able to go into more details about the topics.
Later on in the day Chris Jones gave a overview of his Terminator application, which might I add, i’m now using as a replacement to Gnome Terminal. The more interesting part is a overview of how he fostered a community around this new application. I’m going through a similar time now with my MythView application, while some basic code is there I need feedback on what feature people would like to see. Chris gave a great talk, which was sadly cut short due to overrunning.
So, it’s all over. The show closed with prizes being handed out and a few last minute slapstick jokes. All in all it’s been a excellent weekend of drinking padded out with talks and I’d highly recommend anyone to keep a space open in July for next year’s event.
photo credit: sheilaellen
filed under: technology | comments (1) | read more...
28
Peter pointed out on the ManLUG mailing list that Liverpool will play host to a “micro-festival” on open source software in media production. The Open Source City festival is running from the 17th – 22nd of June at Mello Mello and various other sites across the city centre. This event has twigged interest from me due to the presentation on open source software from a speaker on IP from the Green Party, i’ve always known that the greens are very pro-open source but i’ve never heard it “from the horses mouth”.
So, my name is down and it’s booked into my calendar. Drop me a message if your also visiting.
filed under: home, linux, technology | comments (0) | read more...
13
I’ve been quite busy over the last two weeks, catching up on home projects and other things. After a few quick fixes and features sent over to the LottaNZB guys I was added to the development team, which is quite a change for me considering the last project I was on was over 4-5 years ago. Anyway, it’s been good to get my Launchpad user ID” back in use as the LottaNZB project is hosted on their services.
As well as LottaNZB, I’m also adding to the Python bindings for MythTV. At the moment the existing bindings only support simple operations and I’m expanding it out to abstract out most of the major concepts within the DB, for example channels and programs. Hopefully, they’ll provide useful in the future when I need to do a channel rescan.
filed under: home, projects | comments (0) | read more...
31
The eee-acpi module, hacked by Asus from the asus-laptop module, currently manages the kill switches for the various extra hardware (wifi, cardreader, webcam) and also handles the extra Fn keys via ACPI events.
While hotkeys via ACPI are well supported by acpid and its ilk it is no longer the best way to handle these types of keys. Generally, the drivers for the mainstream laptops (ibm/lenovo, hp) have moved over to the input framework to communicate these key presses, usually displaying as an extra input device under /dev/input. These input devices can be handled by HAL and notifications of key presses send over the dbus allowing for desktop environments such as GNOME to handle these events without any strange hackery and fakekeys calls.
Thanks to the previous work of the asus-laptop developers there’s a patch that exists to disable the existing ACPI events and provide a input device for the extra keys, I’ve managed to hack together a version of the eeepc-acpi module using the Debian 1.01 source to export the “Asus Extra Buttons” input device.
After you have the inputs available, it’s a simple matter of producing a FDI for HAL to identify the device and map the scan codes to the actual keys. After the initial FDI was created I could use the volume keys without any extra software and also map the two application buttons (marked as VGA switch, and AP button) in GNOME to call scripts. The wifi key (Fn+F2) presented more of a problem, while it was mapped to “wifi” HAL didn’t know how to actually switch off the Atheros card. The killswitch for the card would need to be implemented as a program that listens to dbus, something a little outside my skill set.
The other buttons on the keyboard (sleep, brightness) are pure ACPI calls. This presents a problem that the keys produce events via the input layer and the ACPI layer at the same time, so for example you hit the brightness down button and HAL will pickup the notification and display the brightness OSD, but it quickly goes out of sync as what HAL sees and what the ACPI are doing are completely separate. Again, this is outside my skill set but I’d probably approach it by filtering out the keys in the kernel and let the ACPI events do their work.
The guys over at Fedora have a similar idea of moving over to an input based module, but for the moment no source has been produced. Due to the numerous little issues I’ve had I’ve decided to put this little project on the back-burner until I see what the Fedora people have produced, after all they’ll have people that are more experienced in this type of thing, whereas I am not.
I’ll get round to posting the source deb for the modified eee-acpi tonight or tomorrow.
filed under: home, linux, projects | comments (0) | read more...