Archive

Archive for the ‘linux’ Category

ubuntu global jam cape town

September 5th, 2011 No comments

 

Ubuntu Global Jam

Ubuntu Global Jam

The Ubuntu Global Jam took place around the world this weekend. The Ubuntu Global Jam is an international event in which volunteers from LoCos (Ubuntu Local Committees) all around the world get together to work on improving Ubuntu. The purpose of the event is to encourage people to get involved with Ubuntu on a large scale and learn about ways in which the can contribute to Ubuntu. For instance, people can learn about and work on bug fixing, translation, documentation, testing, packaging or anything else that interests them.

The Ubuntu-ZA South African LoCo team hosted a bug fixing event at the Yola offices in Cape Town as part of the Ubuntu Global Jam, with a focus on fixing broken packages in the upcoming Ubuntu Oneiric, set to be released in October this year.

Since many of us were from a scientific background we decided to focus on fixing broken scientific packages, though that didn’t really happen and we just ended up fixing things that sounded cool or that we were specifically interested. For instance, given that I am a huge KDE fan, I tried to focus on fixing KDE packages, though I did fix a few others.

Bug Fixers

Fixing Bugs

We ended up being quite a small group with Stefano Rivera (tumbleweed), a Debian Developer and Ubuntu Master of the Universe (MOTU) leading the group, Michiel Baird who (I think) had a bit of experience fixing Ubuntu Bugs and Marco Gallotta and I who had no experience fixing Ubuntu bugs. Stefano was great in walking us through fixing broken packages – from identifying them, to figuring out what was wrong with them, fixing them and then contributing the fixes back to Ubuntu and in some cases Debian and upstream.

The great thing about the Global Jam is that it encourages everyone to get involved, regardless of their skill level. So even if you’ve never touched source code in your life, you can still help out by testing, writing documentation or translating the software. It was a great experience for me – I’ve always wanted to put my skills to use and get involved in helping to improve Ubuntu, but have never known where to start. The Cape Town Global Jam, under the lead of Stefano, was a great way to get stuck into it and has set the ball in motion for a lot more work to come!

Software Freedom Day

Get Involved!

On a similar note, remember that Software Freedom Day 2011 is less than two weeks away so be sure to get involved! The Cape Linux Users Group and the UCT Linux Enthusiasts Group will be hosting an event on Software Freedom Day at UCT, so check out the Facebook Event if you’re interested in being part of it, even if it’s just to pop in and say hi :)

dropbox-servicemenu-kde

November 12th, 2009 No comments

I just wrote a KDE service menu wrapper around the Dropbox python CLI. For more information please go here.

On another note, if you haven’t tried Dropbox I advise that you give it a go by clicking here :)

Categories: dropbox, gpl, kde, linux, programming

mencoder webcam floating point exception solution

October 23rd, 2009 No comments

I’ve spent most of the afternoon trying to figure out how I could use MEncoder to record video and audio from my webcam and kept running into a “floating point exception” problem. In scouring the internet I realised that many people seem to be having the exact same problem. It turns out that the problem is due to a bug in MEncoder and is simply fixed by installing the latest version.

I use Kubuntu Jaunty so the problem for me lay in the version of Mencoder that comes packaged with it. To fix the problem all I did was follow these instruction for adding a thrid party repository for newer builds of MPlayer/MEncoder and then installed the latest MEncoder using apt-get.

sudo apt-get install mplayer mencoder

Thereafter I was able to capture video and audio from my webcam using the following command:

mencoder tv:// -tv driver=v4l2:width=320:height=240:device=/dev/video0:forceaudio:adevice=/dev/dsp -ovc lavc -oac mp3lame -lameopts cbr:br=64:mode=3 -o webcam.avi

Categories: (k)ubuntu, linux, open source, tech

nokia music store disappointment

June 16th, 2009 4 comments

When I first got news of the Nokia Music Store in South Africa I was really excited – finally an online music store which would allow me to buy local content without needing to have iTunes, because as a Linux user iTunes just isn’t an option. One day I was walking on campus and people were handing out pamphlets with information about the Nokia Music Store and how one can use it to buy music. I read the pamphlet and my excitement about the Nokia Music Store dropped to complete disappointment. There were two main reasons for this:

  1. The music is in WMA format and makes use of DRM – this effectively means that I can’t play it on any operating system other than Microsoft Windows and that I can’t put it on my iPod. This alone renders the service completely unuseable to me.
  2. The Nokia Music Store website only works with Internet Explorer. According to Net Applications, Internet Explorer accounts for about 66% of browser use on the Internet. By only supporting Internet Explorer, Nokia effectively prevents about 34% of their potential market from accesing their site.

The two issues mentioned above basically render the Nokia Music Store useless to computer users like me who don’t use Microsoft Windows and Internet Explorer. I’m a big fan of Nokia and the work that they do, though I really believe they got it wrong with their online music store. Either way, I can only hope that they’re aware of this and are working towards improving the service so that all computer users can make use of it without the restrictions.

Categories: general, linux, microsoft

getting the lenovo sl300 camera to work on linux

March 5th, 2009 14 comments

I recently got a Lenovo SL300 Laptop, with a built in camera and was pretty keen to get onto using the camera with Skype, but it wouldn’t work – I couldn’t get a video feed from the camera. To cut a long story short, after two days of Googling and playing around I found a solution (though I can’t remember where I found it) – here’s how!

Tested on (K)Ubuntu Hardy & Intrepid (See bottom for Jaunty fix)

By default the webcam works on all Linux kernels 2.6.25+. However, the problem is that when the kernel loads the uvcvideo module, it loads it with the wrong parameters.

To correct this first unload the uvcvideo module:

~# sudo modprobe -r uvcvideo

Then reload the module with the correct parameter:

~# sudo modprobe uvcvideo quirks=16

Exactly what quirks are, I’m not sure – all I know is that various values for the quirks parameter work (I tried up to 50) without any noticeable performance difference.

Automating the Process

Now one would expect that you would want to automate this process and that’s also really simple – all you need to do is add an option to pass the quirks parameter to your kernel when the module is loaded. Exactly how you do this might vary depending on your linux distribution.

On Ubuntu do the following:

~# cd /etc/modprobe.d
~# nano options

At the bottom add the following line:

options uvcvideo quirks=16

And that’s it! Either reload the module with modprobe -r uvcvideo or restart your computer, and you won’t have to worry about it again!

I’ve only tested this solution on the Lenovo SL300 running Kubuntu Hardy and Intrepid, but I’m pretty sure it will work with all UVC webcams which aren’t displaying a picture.

Update: Upgrading to Jaunty breaks this fix. I think the reason is that modprobe no longer makes use of the options file, but instead replaces it with a series of conf files. To get the camera working again do the following:

~# cd /etc/modprobe.d
~# sudo nano uvcvideo.conf

Once again add the following line:
options uvcvideo quirks=16

And then reload the uvcvideo module with “sudo modprobe -r uvcvideo” and then “sudo modprobe uvcvideo”

Edit: If anyone successfully used this solution on a SL400 or SL500, please let me know.

Categories: (k)ubuntu, linux, open source

a beginners linux distro

May 8th, 2008 1 comment

Most Linux users are sure to have heard the argument either for or against standardising Linux and endorsing a single distro. (If you haven’t, see this article to see some of the pros and cons of doing so.) At the same time, most Linux users will tell you, that, among other things, what makes Linux and Free and Open Source Software (FOSS) special is the freedom of choice that it gives users. Users not only get to choose a distribution, but they also get to choose a desktop environment, ie. KDE or GNOME and every other piece of software on their system. This is a freedom that many FOSS users are unwilling to forgo. However, when it comes to a new user of Linux, things can get quite confusing, especially if they’re not technically inclined.

Tux

When somebody asks me which “version” of Linux they should install the first thing I tell them is to go with Kubuntu, because that’s what I use, so I’ll be able to help them if they run into trouble. But then, usually a few seconds later, my advise turns to something like:

“Actually, you should probably rather use Ubuntu, because supposedly GNOME is easier to use than KDE. But then again, I’ve heard the PCLinuxOS is really easy for beginners…”

And so it goes on, as I try to figure out for myself which is the best Linux distro for a beginner to start with that will make their transition into the world of FOSS as easy as possible.

So over the last few days I’ve been thinking of exactly how one addresses the problem I so frequently encounter. I then came up with the idea of a beginner’s Linux distro. Basically, the distro would be the ideal starting point for a first time Linux user. To make it successful however, it would need to be endorsed and supported by the entire Linux community. It would need be educational, teaching users about Linux and guiding them through the transition process. It would need educate users about the reasons for, and the value in having, multiple distributions which can cater for specific needs and allow the new user to make an educated choice as to which distro would suit them best.

A beginner’s distribution would help to eliminate the confusion faced by the beginner when choosing to switch to Linux, and would ultimately make the transition process easier. Once they become comfortable with the beginner’s distribution, they could then move on to a distribution which better caters for their specific needs.

Categories: linux

the road to kde hacking

October 16th, 2007 No comments

Aaron Siego, president of KDE e.V recently made a post titled “Getting into KDE hacking” which reminded me of the reason I started this blog in the first place – to detail my journey into the world of KDE hacking.

Truth is though, that I haven’t posted anything related to KDE hacking since I started this blog, mainly because I haven’t had the time to do any of the great free software things I plan to do. Anyway, Aaron highlight 6 steps to getting involved in KDE hacking, and so far I’ve completed the first one which is learning Qt4. So not all is lost, I am one step closer to developing free software for the desktop environment which I have grown to love over the years (more on that another time).

Categories: kde, linux, old, open source, programming

software acceptability perceptions

October 16th, 2007 1 comment

For the last few weeks I’ve had to use Microsoft Windows for a computer science project and being a GNU/Linux user this was something which I wasn’t really looking forward to. However, using Windows while being around Windows users has taught me something about what is considered acceptable when it comes to software.

If you’re not a GNU/Linux (or OS X) user then you’ll probably have no idea of what I’m alluding to so I’ll just lay it out…software crashes. Software crashes are a natural part of software use as it’s almost impossible to create software which is completely bug free. However, I’m not talking simply about the fact that software crashes, but rather about the frequency at which it happens and the overall effect that it has on the operation of a computer.

And this brings me to the point of this post – Windows crashes all the time, brining the system to a complete halt, and it’s considered okay! “Just restart” is the most common response I get from Windows users when I tell them Windows has crashed. I find this completely unacceptable – when a user pays over R1000 for an operating system, the user should demand an operating system which is stable and secure. The notion of formatting a harddrive and reinstalling Windows as a means of fixing a problem is completely absurd.

In no way am I saying that GNU/Linux is without it problems – it definitely has it’s fair share. However, GNU/Linux crashes with only a fraction of the frequency that Windows does and when it does crash the crashes rarely result in an unusable system. Also, the idea of reinstalling to fix a problem is unheard of.

Windows users consider all the problems associated with Windows to be problems associated with computing, when in fact this is in no way true. Computing is supposed to increase efficiency, not lead to problems which usually result in data loss which in turn can result in the loss of hundreds of thousand of Rands. The poor state of Windows is in no way acceptable, and paying users should stand up and demand quality software, and if they cannot be provided with quality software then they should look to start using alternatives.

Note: If this post is somewhat loaded, it’s just my frustration at having to use crappy software for the last few weeks.

Categories: linux, microsoft, old

great open source game

October 16th, 2007 2 comments

I managed to find one of the greatest and most enjoyable open source games of all times, The Battle for Wesnoth.

From the site http://www.wesnoth.org:
“The Battle for Wesnoth is a free, turn-based strategy game with a fantasy theme. Fight a desperate battle to reclaim the throne of Wesnoth, or take hand in any number of other adventures…”

What makes the game so great is that it is truly a strategic game because of its turn based game play. You play your turn, and then your opponent plays theirs – at no time are you playing at the same time. What makes this such a great idea for a strategy game is that you really need to think ahead as to how your opponent is going to respond to the decisions you make and vice versa.

Don’t expect the most amazing 3D graphics however, they’re more like those of Warcraft 2. But don’t let this put you off. The Battle for Wesnoth is one of the most enjoyable games I’ve played in a while – in fact I usually don’t even enjoy playing games.

On Ubuntu based systems you want to install several packages from universe,

wesnoth
wesnoth-data
wesnoth-music

Those are the main ones, and then you’ll probably want to install a few campaigns,

wesnoth-ttb – A Tale of Two Brothers
wesnoth-utbs – Under the Burning Sun
wesnoth-tsg – The South Guard
wesnoth-httt – Heir to the Throne
wesnoth-ei – Eastern Invasion

I’d recommend first working through the tutorial when starting the game and then going on to play the A Tale of Two Brothers campaign.

Happy (free & open) gaming!

Categories: linux, old, open source

ubuntu south africa community

October 16th, 2007 No comments

Ubuntu South Africa

South African Ubuntu users should consider joining the Ubuntu South Africa Community.

“This Wiki is dedicated to all Ubuntu users, developers and enthusiasts in South Africa. If you use Ubuntu or have an interest in the operating system you are automatically part of the community. We want you to feel valued and at home. We call ourselves the Ubuntu-ZA LoCo Team. Ubuntu-ZA is an official Ubuntu LoCo (Local Community) Team. From https://wiki.ubuntu.com/LoCoFAQ:”

http://www.ubuntu-za.org/

Categories: (k)ubuntu, linux, old, open source