Archive for the ‘General Computers’ Category

Getting the Huawei E870 to work on Kubuntu (and Mobile Internet from O2)

Wednesday, March 26th, 2008

It’s a shiny express card and it promises Internet free from cables, plugs and sockets but will it work on your pretty Kubuntu laptop? Let’s hope so. This guide worked for me and hopefully it’ll work for you too!

Now before we start let me tell you my setup. I’ve got this working on a Kubuntu based Dell Inspiron using O2 as my network provider. It did not work on a separate Dell Vostro running Ubuntu 7.10 (however I did get it working on a different Kubuntu 7.10 Dell Inspiron laptop). So I’m not sure whether that was a Ubuntu or Vostro thing or just bad luck. Also, note that the below approach worked for me when setting up Huawei’s E220 USB modem too.

In any case, here’s the 6 step plan to happiness
1.) Download the huaweiAktBbo-i386.out file
2.) Create the /etc/chatscripts/huawei-e220.chat file
3.) Create the /etc/ppp/peers/huawei-e220 file
4.) Create the /etc/wvdial-huawei.conf
5.) Edit the /etc/resolv.conf
6.) Create and tailor the /home/username/bin/connectme script (and chmod it!)
7.) Tip of the day - lose the Edge!

1.) Download the huaweiAktBbo-i386.out
This can be done by visiting http://www.kanoistika.sk/bobovsky/archiv/umts/ and downloading the file huaweiAktBbo-i386. If you really want you can also build it from the C source provided (in order to build it you will need to have a C compiler and some basic tools on your system). NB: Copy the huaweiAktBbo-i386.out file to your /home/username/bin directory after downloading. If you don’t have a bin folder under your home directory then create one (’mkdir /home/username/bin’). Also ensure that it is in your $PATH environment variable. Try echo $PATH and if you don’t see it listed add the following line to your /home/username/.bashrc file

export PATH=$PATH:/home/username/bin

To get this change immediately picked up by your shell run the command ’source ~/.bashrc’. This something I didn’t learn for years!!! D’oh!

2.) Create the following /etc/chatscripts/huawei-e220.chat file

TIMEOUT 3
ABORT BUSY
ABORT 'NO CARRIER'
ABORT VOICE
ABORT 'NO DIALTONE'
ABORT 'NO DIAL TONE'
ABORT 'NO ANSWER'
ABORT DELAYED
"" ATZ
OK ATQ0V1E1S0=0&C1&D2
OK ATDT*99#
CONNECT ""

3.) Create the /etc/ppp/peers/huawei-e220 file

/dev/ttyUSB0
460800
noipdefault
defaultroute
persist
noauth
nodetach
usepeerdns
connect "/usr/sbin/chat -vf /etc/chatscripts/huawei-e220.chat"

4.) Create the /etc/wvdial-huawei.conf

[Dialer Defaults]
Modem = /dev/ttyUSB0
#Baud = 3600000
Baud = 7200000
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2
Init3 =
Area Code =
Phone = *99#
Username = ppp
Password = ppp
Ask Password = 0
Dial Command = ATDT
Stupid Mode = 1
Compuserve = 0
Force Address =
Idle Seconds = 0
DialMessage1 =
DialMessage2 =
ISDN = 0
Auto DNS = 1

5.) Edit the /etc/resolv.conf file
Add the following entries at the top of this file (they are O2’s nameservers)

nameserver 62.40.32.33
nameserver 62.40.32.34

6.) Create the and tailor the /home/username/bin/connectme script as follows (and chmod it!)
Note: See step 1 for more instructions if you don’t have a bin folder in your home directory

#!/bin/bash
sudo /home/username/bin/huaweiAktBbo-i386.out # CHANGE THIS TO YOUR 'USERNAME'
sleep 3 # wait for the USB host to settle down...
sudo wvdial --config /etc/wvdial-huawei.conf
#/usr/sbin/pppd call provider

Then just do a ‘chmod u+x /home/username/bin/connectme’ from the command line (to allow you to run ‘connectme’ from the command line directly) and hopefully you should be ready to rock! The next step is to insert your E870 into the express slot. You might start to see Linux picking up the the devices and popping dialogs asking you if you want to mount the device (you should select ‘Cancel’ for them all).Wait about 5 seconds for it to steady itself and then run ‘connectme’ from the command line. You should see

Hladam HUAWEI E220 a prepnem na modem - bbo 06
4 set feature request returned 0
Prepnute-OK, Mas ttyUSB0 ttyUSB1 (cez usbserial vendor=0x12d1 product=0x1003)
pozri /proc/bus/usb/devices
WvDial<*1>: WvDial: Internet dialer version 1.56
WvModem<*1>: Cannot get information for serial port.
WvDial<*1>: Initializing modem.
WvDial<*1>: Sending: ATZ
WvDial Modem<*1>: ATZ
WvDial Modem<*1>: OK
WvDial<*1>: Sending: ATQ0 V1 E1 S0=0 &C1 &D2
WvDial Modem<*1>: ATQ0 V1 E1 S0=0 &C1 &D2
WvDial Modem<*1>: OK
WvDial<*1>: Modem initialized.
WvDial<*1>: Sending: ATDT*99#
WvDial<*1>: Waiting for carrier.
WvDial Modem<*1>: ATDT*99#
WvDial Modem<*1>: CONNECT
WvDial<*1>: Carrier detected.  Starting PPP immediately.
WvDial: Starting pppd at Tue Mar 25 21:22:08 2008
WvDial: Pid of pppd: 11465
WvDial<*1>: pppd: H���h�[06][08]`�[06][08]
WvDial<*1>: Using interface ppp0
WvDial<*1>: pppd: H���h�[06][08]`�[06][08]
WvDial<*1>: pppd: H���h�[06][08]`�[06][08]
WvDial<*1>: pppd: H���h�[06][08]`�[06][08]
WvDial<*1>: pppd: H���h�[06][08]`�[06][08]
WvDial<*1>: pppd: H���h�[06][08]`�[06][08]
WvDial<*1>: pppd: H���h�[06][08]`�[06][08]
WvDial<*1>: local  IP address 62.40.58.185
WvDial<*1>: pppd: H���h�[06][08]`�[06][08]
WvDial<*1>: remote IP address 10.64.64.64
WvDial<*1>: pppd: H���h�[06][08]`�[06][08]
WvDial<*1>: primary   DNS address 62.40.32.33
WvDial<*1>: pppd: H���h�[06][08]`�[06][08]
WvDial<*1>: secondary DNS address 62.40.32.34
WvDial<*1>: pppd: H���h�[06][08]`�[06][08]

If you want to disconnect from the web simply press Ctrl-C twice to kill it off. The first time you press it, it talks of wanting to exit gracefully - but better to press it a second time and exit effectively ;-)

You’ll see the following

Caught signal 2:  Attempting to exit gracefully...
WvDial<*1>: Terminating on signal 15
WvDial<*1>: pppd: H���h�[06][08]`�[06][08]
WvDial<*1>: Connect time 8.6 minutes.
WvDial<*1>: pppd: H���h�[06][08]`�[06][08]
WvDial<*1>: pppd: H���h�[06][08]`�[06][08]
WvDial<*1>: pppd: H���h�[06][08]`�[06][08]
WvDial<*1>: Disconnecting at Tue Mar 25 21:30:45 2008

7.) Tip of the day - lose the Edge!
Disclaimer: this is just my opinion as to the performance of the Edge network so O2 lawyers keep your knickers on (however Apple iPhone suckers, enjoy the sheer speed of the Edge network, getting dripfeed broadband at 1500 Euros a year!). In stark contrast though, my experience with the HSDPA network have been good. Yes, as you may have already guessed, the Edge network was not really delivering for me. But a friend of mine showed me how to change your O2 broadband Express card (or USB modem) settings so that it not even bother connecting if it can’t get a proper UTMS or HSDPA signal. For this you need a Windows friend. Install the express card on their machine and from the O2 broadband application and select “Tools->Choose Network Type->3G Only”. This setting directly updates the card so even when you switch back to a using it on a Linux box it will go with 3G only. If I don’t do this I’ve found that it will flip flop between Edge (GPRS) and 3G networks and drive you mad in the process. I found it pretty much impossible to even check my email on Edge.

Special thanks to Andy and Paul on the ILUG mailing lists for their help and also to O2, Vodaphone, Three et al. for providing Mobile Internet via hardware that can actually be used on an Open Source platform such as Linux; as we hopefully move from an era of proprietary lock-in and DRM-based crippleware to software that delivers genuine value for businesses and users. Vodafone have gone as far as having their own Open Source website to help along development at Betavine. Enjoy!

The revolution will not be televised! It will be streamed over TCP/IP…

K-k-kubuntu 7.10 on a Dell Inspiron 1520

Thursday, November 22nd, 2007

Ahhh… Another day, another distro. The harddrive partitions around here are a bit like the Wizard of Oz; every day a new one joins the merry troupe. Todays turn was the KDE spin on Ubuntu Gutsy. So armed with the standard Kubuntu CD, which serves as a live distro and an install CD in one, we set on the path to enlightment (or should that be KDE - always good to end the week on a bad pun).

Generally, it seems to be recommended practice these days to install Ubunutu or its derivates off the ‘alternate’ CD when trying to set up an Inspiron to avoid things like incompatible versions of ALSA or wireless drivers working their way into the install. But the Penguin didn’t really feel like giving the whole GUI experience a miss. And so the live CD was fired up before you could say ‘Holy wireless drivers, Batman!’. A nice desktop link provided a pretty path to installation and within an hour Kubuntu was installed and ready to go.

First thing that was apparent was that the default Kubuntu appearance is quite bland. Especially when compared with something like OpenSuse’s nice crisp out-of-the-box KDE look (however nothing will ever get installed waiting around for YAST!). But the good news is that Kubuntu’s eye-candy vacuum can be fixed with a bit of tweaking. That wasn’t the initial major concern though. The lack of sound and wireless was!

The fix for the sound was easy, running ’sudo apt-get install linux-backports-modules-generic’ from the command line delivered sound after a reboot. The wireless was a lot more fiddly to get working - the strange thing is that NetworkManager was picking up all the secured networks and tantilisingly displaying them in its wireless list. But no way in the world was it going to connect to any of them. (BTW, the card is a Intel Pro Wireless 3945). However, the laptop in question is also running Ubuntu Studio out of another partition and it can connect through Gnome’s network-admin program without any probs. So there was definitely something fishy up.

Plan A at solving the problem was to install wlassistant (sudo apt-get install wlassistant) in order to try and put a different network program in the firing line. But alas still no connection. Then after a bit of head scratching we decided to install the whole bloody Gnome network admin and try and use that (sudo apt-get install gnome-system-tools) - which can be run via the ‘network-admin’ command. There was a time there when this was looking like a winning plan but no joy. Weird thing is, and the Irish Penguin has no explaination for this, is that rebooting and connecting via wlassistant did the job! Worked a charm! A lucky charm!!!

Final things on the list was to glam up that gaudy GUI. The install of Gnome’s networking stuff had left a few stray icons in the menu so they had to be wisked away as they weren’t working anyway. Then a few nice things to do are

* Right-click on the quicklauncher at left of the taskbar and configure it to have a fine big icon size - 28 looked good on the Inspiron. Big icons always look nice in KDE’s taskbar, otherwise where’s the fun?

* One of the best ways to brighten up the panel is to (right-click on the taskbar and configure) set ‘Enable background image’ for the panel and select a nice tile. This also puts a pretty sash down the left of the K-menu. Optionally choose ‘Colorize to match desktop theme’

* In the system settings keep the Style->Widget Style as ‘Polyster’ but change the Window Decoration to ‘Keramik’

* Change the window background to be a nice soft colour - a very light fawn is nice - and in keeping with the Ubuntu theme…

* And for God’s sake pic a nice desktop background!

Along the way, we flicked over to the proprietary NVidia drivers via the restricted driver management without problems. Although it did make all the fonts bigger for some reason - so they had to be tamed again using the following fix (note: changing font properties in System Settings isn’t enough to fix this). I used a dpi of 75 instead of 100 as the fix did. Another thing that was hard to track down was power management adjustment there’s no setting in System Settings - rather it can be found by right-clicking on the battery icon to the right of the task bar and selecting ‘Restore’ to bring up the dialog - of course!

So what’s the verdict after all the hard work is out of the way. Kubuntu is a fine desktop if you’re prepared to put in a little effort customising its look and feel. Because of the effort required in prettying it up - Kubuntu initially feels less polished than it’s sister Ubuntu. Package management in Adept isn’t as smooth as Synaptic. But there are some real pluses out of the K stable. Dolphin has replaced Konqueror as the default file browser and its two pane mode is great. Not quite sure why its taken so long for a two pane file manager to crop up in a modern OS but it’s not before time. All the usual great KDE apps from K3B to Amarok are in there. The Penguin’s final verdict is that it feels a little more ‘bright’ and ‘fun’ than Ubuntu which is more ‘finished’ but serious.

Microsoft to Release Windows XP as Upgrade to Vista in 2010

Saturday, September 29th, 2007

An anonymous source at Microsoft’s Redmond headquarters revealed today how the software giant plans to release Windows XP as the successor to the ill-fated Vista operating system in the next decade.

“User’s want choice and Microsoft will offer customers the choice of a mandatory upgrade cycle which will deliver value to the end user and a greater end user experience. Part of that experience will include the launch of Windows XP as the next generation operating system in 2010 and will replace Windows Vista as our flagship product.”

“We have listened to customers that have told us that they would like a responsive GUI that can offer productivity gains over Windows Vista technology. In particular, usability tests have shown that Vista’s “preparing to copy - calculating” feature, which gave the users the option to go and make a cup of tea whilst the underlying OS took 5 minutes to decide how long it would take to copy those two 4 kilobyte text files, are not proving to be the win we expected. Instead we shall revert to our patented MS-DOS technology which can perform the same task in a fraction of the time. A patent which Linux infringes.”

“Additionally we will be removing the patented ‘99 OK Click’ security functionality security feature that Vista introduced as many users asked how security was improved by providing an OK click without requesting any password. We just saw some kind of similar feature when we visited our friends at Novell called ’su ‘and ’sudo’ and we thought our users would also like that. But we also knew that they wouldn’t like entering passwords. This was borne out through extensive usability testing with rabbits in our lab scenarios. The rabbits also suggested that they liked the idea of a ribbon when working with the office programs. We were determined to deliver such productivity gains and value, not only to these rabbits, but also sheep and other users of our products.”

“We found Windows XP to be the most efficient way to deliver these gains to our users through a familiar and proven user interface as well as harnessing our synergies across the Windows brand. The good news for users is that through our software assurance policy means that their subscription plan will cover the licencing cost for the XP upgrade - unless its release gets delayed like Windows Vista. Existing Windows XP licence holders will only have to pay the licence fee one more time in order to continue to use their product.”

Rumour also has it that Microsoft are already even planning the next OS release after Windows XP which will be in 2015. The provisional codename for it is to be “Long Horn, Short Memory” and it is expected that it will be built on the Windows 3.1 codebase that delivered such rich functionality through much of the nineties…


Digg!


Momentumless Linux and the Death of Open Source - A Developer’s Response

Sunday, July 15th, 2007

A couple of blog and news posts on the Internet this week seemed to make the headlines with death knells for Linux and Open Source for a multitude of reasons, both chronic (less anti-Microsoft sentiment about) and recent (GPL 3). But on reading, I couldn’t help but feel that both posts sounded wrong, utterly utterly wrong in fact. No disrespect intended to the authors of course.

The first post Open Source Is Dead, Long Live Open Patents? by David DeJean, which took a commonly cited angle on GPL3 hurting Open Source by fragmenting the community. But that is to not understand the community. Bare in mind one important fact about community-oriented Open Source developers, of which I am one - we write the software because we love to. For the vast majority of SMD’s (Small-to-Medium size project Developers, for want of a better term) we don’t really care whether our project is GPL2 or GPL3 - why? Because they are both effective Open Source licences and they will both serve our personal purposes fine as either licence would suit our pet projects. Of course, we’ll all still get our goat up as to whether Linux or the GNU Compiler Tools should be GPL 2 or 3 - but that’s a separate issue - it’s won’t stop us writing the software we love. It is naive for commentators to think that because a new licence comes out that it will hurt the amount of FOSS produced. As for businesses, if it made sense to switch to Linux before GPL 3, it will still make sense after GPL3 - irrespective of what or who adopts GPL 3. It technically affects Tivo (although they will be able to stick with Linux 2.4 kernel) - so what? Such cases only make up a small part of the econosphere. Plenty of business providers seem to be happy. Even embedded solution providers are saying that GPL 3 won’t turn customers off, with Jason Wacha of MontaVista saying “Our customers are used to working with licenses that are much more restrictive than the GPL. In my opinion, typical proprietary licenses are much more restrictive in pretty much all instances than the GPL.”

(more…)

Viva Le Gaelic Penguin!

Saturday, June 9th, 2007

Phew! After much fiddling and tweaking I finally managed to get my header image together for this site. All the while I had the song “The Irish Rover” bouncing round in my head - which probably didn’t help matters!

But I think the above header was worth it. Veronica, my glamorous girlfriend and graphic design mentor, didn’t like it much to start with. At least I managed to pacify her by throwing in a cute penguin pic, which I did up in the absolutely fabulous Inkscape. Inkscape has to be one of the best Free Software programs ever. It’s just so easy to use and yet things just always turn out good. It’s magic. And that’s just the kind of thing you’ll be hearing more about on this blog over the coming months along with other news and discussion from the filthy dirty world of Open Source.

Just a heads up for anyone trying to change their WordPress header image - make sure that you haven’t changed the header’s colours or anything previously in WordPress. If you have made changes then you should revert them - which can be done from the dashboard. Otherwise all the image uploading and CSS styling in the world won’t be enough to get that flamin’ header to change! Now there’s an hour of my life that I won’t get back! At least I had The Irish Rover playing away in the back of my head to keep me going…

Doo do doo…

GPL V3 - Its True Purpose

Wednesday, May 30th, 2007

Recently, I read some interesting commentary on the Microsoft-Novell pact in an Linux Insider article entitled GPLv3 Could Be Risky Business which concluded with the following statement.

“Regardless of the GPLv3 outcome, it should be noted that Microsoft and Novell are two large companies with plenty of attorneys — if they want to do business together over Linux and Microsoft products, it’s not hard to imagine that they’ll be able to find a way.”

This statement didn’t seem to ring true for me - it seemed to be wrong way to view what the Free Software Foundation is doing with GPL V3. Here’s why.

Nobody wants to ’stop’ Microsoft and Novell, or any other Open Source distributor, from doing business together. In fact, it would be desirable to see Microsoft produce more Open Source software - as they have with the projects such as the Web Service Software Factory - and collaborate with other players in the Open Source software field.

Rather the point of GPL V3 is to defend the rights of Free Software developers to produce software without the fear of litigation hanging over their head - by extending the patent covenant to all of the Free Software community - not just Novell customers. This fear of potential litigation has been raised more strongly than ever by recent Microsoft comments in Fortune magazine. However, it appears that by not having an expiry date on the Linux coupons that Microsoft is distributing, Microsoft itself will become a GPL V3 Linux distributor, and finally their patent covenant will extend to every corner of the Free Software communities. This will be genuinely good for software development, for the Open Source community and most of all for Microsoft - who has a lot to offer in the field of Open Source software.

They have a lot of bright developers and engineers and it is in everyone’s interests to see these people contribute greatly to the I.T. sector over the coming years. But it is important that the playing field is level and that instead of ‘innovative lock-ins’ and restrictive file formats we see a truly great Microsoft emerge that is founded on on true innovation, engineering excellence and co-operation. The first step on this path is to build a true bridge to the Free Software community and not seemingly pretend that this intellectual property bridge is any more than an attempt to scare companies into paying a high premium for ‘Microsoft-approved’ Linux of Novell - using patents instead of file formats as the lock-in.

In summary, it is important to note that the purpose of the latest version of the GNU Public Licence is not on preventing co-operation between Microsoft and Novell with their pact, rather it is to defend everyone else who is threatened by the it. To this end, GPL V3 looks like it will do it’s job very well - winning over many of those who doubted its necessity early on in its GPL 3 draft process. And the Software Freedom Law Centre and it’s ‘plenty of attorneys’ has another feather in its cap as it shows an interesting hand in the poker game of software licensing. And if this hand is not enough for now, ‘it’s not hard to imagine that they’ll be able to find a way’ to continue to keep software development a free and democratic process. If you weren’t sure why you needed GPL V3 yesterday, you probably know why today.


Microsoft Not So Sure on Taking on World…

Tuesday, May 15th, 2007

Under pressure arising from comments made by Microsoft’s Horacio Gutierrez and Brad Smith in an Fortune magazine article earlier this week saying that Open Source software contains 235 Micrsoft patents, the company has released a statement that it does not intend to resort to litigation in an effort to halt the growth of Open Source software. So why would they highlight an issue and then when asked to state specifically which are the patents in question they respond, “We’re not going to have a discussion publicly with that level of detail.”

The answer is simple. If they publish them it is likely that most of them will be thrown out by the U.S. courts as invalid. This became much easier recently, when the U.S. Supreme court made it easier to legally challenge individual patents and get them invalidated. This is because most software patents have been granted without due consideration and aren’t actually valid for many reasons. Patents have been grantly for things that are patently unpatenable.

Once this weeds out the likely majority of patents - Open Source developers will endevour to work around what patents, if any, remain.

So, back to the question, why would Microsoft highlight a meaningless question? Well, to bring up the issue in this manner creates a degree of uncertainty in the minds of certain business owners - however misplaced. Such people must weigh up risk every day and anything that they perceive adding risk to their business they will avoid. This will take two forms, one is to avoid Open Source software and stick with closed solutions. But this is becoming increasingly difficult as it is making more and more business sense to deploy Open Source solutions every day. The other is pay royalties to Microsoft for these (vaguely) alledged infringing patents. This is a sad situation because paying ‘money for nothing’ is money that you could otherwise use to grow your business.

Microsoft Vs The World

Monday, May 14th, 2007

Microsoft is allegedly preparing it’s army of lawyers (more than 800 strong according to one commentator) to issue an almighty patent onslaught on Open Source software. It lists 235 patents which it says are being violated by Open Source software projects. Microsoft CEO Steve Balmer says that it is in the “name of honour” that he must fight the Open Source community. The battle lines are being drawn in what could prove to be the ultimate shakeup of the U.S. software patent system. As Microsoft comes under increased pressure from Open Source software it is making lawyers, not software developers, the front-line soldiers in the fight to maintain the apparent monopoly. It looks like we’re entering interesting times.

On a lighter note, here’s a clip of Steve Balmer trying to rally the Redmond programmers in better days before lawyers led software development. I wonder does he exhibit the same passion today when he stands in front of his devs or does he prefer to go into the TV lounge and flick on an episode of Boston Legal…

Installing the Netgear WG511v2 (China) Wireless Card on Linux

Saturday, May 12th, 2007

These instructions are intended to be used to install a Netgear WG511 v2 (China) on a Linux machine that dual boots with Windows. I take no responsibility for anything bad that might happen if you follow this guide (I try to avoid responsibility at every turn).

PRE-REQUISITES
* Your machine must be a dual boot system
* You must have the wireless card installed and functioning on Windows
* The Windows partition on which you installed the wireless card already must be accessible to the Linux system (my Windows partion had the FAT32 filesystem which made this easy). If not you will first have to find a tutorial that covers this. A quick google on this topic should help. It will require you to update your /etc/fstab file. Here’s an article on this file http://www.tuxfiles.org/linuxhelp/fstab.html but as I said googling around might find you even easier tutorials on this.

ADDITIONAL NOTES
* I performed this on an IBM T22 running Ubuntu Linux 5.10 ‘Breezy Badger’ and also on OpenSuse 10.2. Windows 2000 was also installed as part of my dual boot system.

* As I did this on Ubuntu I used sudo instead of logging in as root. That’s what the rest of this guide assumes. On OpenSuse, I used su from the command line in order to become the root user. Depending on your distro you may have to log in as root if it doesn’t support sudo.

(more…)

The Future?

Wednesday, May 9th, 2007

Beau-ti-ful…