Defcon Linux Beta Released

Introversion, the UK indie game developer of Darwinia and Uplink, just released the public beta of the Linux port of their global thermonuclear warfare sim, Defcon. The names come straight from Introversion’s forums here.

You can get the demo from links in this post.

I tried the demo on my Ubuntu 6.10 desktop. Runs without a hitch and below is the proof:

Defcon 1.4.2 Beta 2 menu screen:


…and chaos unleashed in the rolling demo:


Related Links:

Running Audacity under Ubuntu 6.10 Linux

As a “budding” radio journalist (self-styled freelancer), I quickly realized the need to practice and learn the art of audio documentaries. So I decided to upon keep radio diaries.

For recording, I am using Audacity, an open source sound editing program. Running Audacity under Ubuntu Linux 6.10 proved a bit problematic. After a bit of poking around the Ubuntu forums, and Launchpad, I finally figured out a solution.

At first running audacity refused to work with my soundcard. Having installed alsa-oss already, I ran:

> aoss audacity

The minute I started recording, audacity crashed. This time a problem with the esd mixer many Gnome applications use. I need to turn off esd, by running Gnome instead of KDE.
I then ran System > Preferences > Sound and unchecked the esd mixer option. ESD problem fixed.

But the recording still did not come through. Turns out the volume was turned down to mute. Duh. I ran alsamixer:


After some experimentation, I found I needed to unmute the Line In, and change the Input So option to Front Mic. To turn up the volume, I pressed Tab and increased the Capture volume.


With audacity worked flawlessly, and I can record myself.

Links:
Audacity – an open source (and free) sound editor
Ubuntu Forums – excellent community with support for Ubuntu problems.
Launchpad
– Canonical’s bug and developer network, and used heavily for Ubuntu development.

Running Quake 4 Demo on Ubuntu 6.10 (Edgy)

I felt the urge to do some violent gaming. So I grabbed the Linux demo of id’s Quake 4. The installation ran smoothly, but I ran into the infamous sound problem.

Turns out that the demo fails to use the right sound driver. The result doubled delayed sound that sounds like crap. The solution:

> quake4-demo +set s_driver oss

But then my Alsa and Arts mixers clash, and the game reports that it cannot use the /dev/dsp device (soundcard). Since I use Ubuntu (kUbuntu 6.10 GNU/Linx to be exact), I needed to install alsa-oss.

> sudo aptitude install alsa-oss

This gave the useful aoss command. So to run Quake 4 in all gory glory:

> aoss quake4-demo +set s_driver oss

Supposedly the +ss_driver oss argument, should be remembered but I run it this way just in case.

Like a Sitcom

Yawn. Nothing is worse than a bad sitcom ending. Everything gets resolved into nice tidy way, and life proceeds as normal for the characters. Friday and today, many of my “issues” resolved themselves. Unlike a sitcom, this is not ending thankfully.

I finally got my schedule in order. Everything from classes to study periods all works out nicely. Not that I like the amount of bus based commuting I do. That hopefully will diminish after I look for carpooling rides. Now, if I can just follow my own schedule and due dates.

On the note of schedules, I finally made peace between my Palm and my desktop. Everything works at least in the Kontact-Palm interacti0ns. It took some time to bring back my emails, but everything now is in its proper place. My desktop neatly setup with few distractions (except the entire Internet and Half-Life 2) works for me now. Now I need to do work on it.

Most of projects are started and well on their way. The power of an enthusiastic group is awe inspiring. Things get done and quickly. Now if I need to do work.

The only things still in need of resolution are actual school work, my old work and minor things like exercising. Oh and I am still waiting for a coffee date.

Do You Really Think I Study???

Many people still believe students study before exams. Right… Some students still believe they should. I, however join the ever-increasing ranks of slackers and non-studiers. That said, I will look over my notes, before taking the exam. My definition of studying… kind of unconventional.

My rationale? If I did zero work the entire semester, I sure am not going to learn anything in a single night. So instead I read over my notes. And do other things.

Today, I foolishly decided would be reinstall-Ubuntu day. Most of the morning and a good part of the afternoon consisted of backing up and reinstalling. I tried installing the newest Kubuntu. Alas, it refused to accept a JFS root directory. I wanted JFS, cause I like a fast, responsive file system. Not like Reisers which is fast and crashes hard. Not like XFS that runs like if every machine was a six-million dollar rack with more RAIDs and CPUs then a centipede has legs. And ext3, thats an ancient system… old but reliable. Still old though. After jousting with Kubuntu Edgy Eft, I popped in my Ubuntu Dapper Drake and decided to go the upgrade route.

So I am sitting right now, 30 minutes into an upgrade, copying back my backed up data, one DVD at a time. When I am done the copying, I will study. Right…

Backup Time Again!

Yes, folks its that time of year again. Backups, backups and even more backups. My system crufted up in the past few months, and I need to reformat, repartition and reinstall Ubuntu Linux again.

So today I am concentrating on getting everything ready for a massive backup. I got a stack of DVDs on my right. I just want to finish organizing my music, throwing out unneeded things and grabbing some copies of my old files.

More updates as I get further.

Why Open Source Projects Make Sense Career Wise

Greetings Earthlings! (OK enough silliness for one day, back into the pocket you go Martian.) Once again I have to bring up the sort of lame excuse of being too busy to blog earlier. Well yes, it was lame too much work. Actually I killed my “1337” Gentoo box doing an update. So I basically installed the new Ubuntu 6.06, and I am in the process of setting things up. More on the new Ubuntu tomorrow.

Today’s rant is why open source projects make sense. At least from a university student’s point of view. Undergrad in CS to be exact. All other information from me will have to be extracted via torture, slyness or greasing of palm. 😉

Back to the topic, I am in the process of finding an internship position for the next 12-16 months. So far my own personal experience has mostly unsuccessful. The interesting part is that for the two interviews I have received, my interviewers were most interested in my open source projects. They glossed over my “work” experience, if you can call it that in my case. University courses were not even mentioned. Nope, the thing that stood out were the two projects I am currently actively involved in. For those in the unawares, I actually have 3 open source projects in the works. While initially I thought that working on these projects would be fun and simply educational, it turns out that they mean more than that.

There are three main reasons why I believe employers are interested. These being experience, portfolio and marketing. When you work on a project you have to not only have a grasp on the technology but also on the subtilties of team relationships, and organization. Any open source project will showcase your performance as a developer and/or project leader. The final product is interesting in itself. A look into your source code will reveal your work ethic, organization, knowledge, talent and creativity. Finally comes marketing, which applies mostly to the employer and sometimes to yourself. The words “open source” currently flow with the hype and buzzwords of the business world. By hiring an open source developer, the company gains a zen and almost messanic reputation of by part of what the business world sees as the future. Personally I think open source means plain old fashioned politeness and embraces the ethics of old (the “new” standard of “Western” ethics is quite dissettling). In some rare cases if the project is successful enough, the product becomes a brand onto itself. Any developer of said project also gains a certain amount of worth and can use this to his or her advantage when looking for work.

Well that is all great and everything but how can one gain these advantages. Simply put start a project for something that you need or want. Treat if it were a real life product to sell not just a “pet” project. This is how many open source companies themselves started out. Show your professionalism throughout the process. Try new things, and over time maybe that project will pay off in hard, cold cash.

Till tomorrow,
Dorian

Recovery!

Its been while since I’ve been online. There is a real good reason for that. I recently had a few issues with Kubuntu. Basically I started modding my setup a good bit. Things basically started not working, and I couldn’t get the system to work as I hoped to. So I attempted to reinstall Kubuntu, and thats when things went from bad to worse. Really worse.

Instead of doing something productive, I had to deal with worst case scenario reinstall. Yes worst case, without hardware failure. The past few days have been mostly picking up pieces and rebuilding my computer into a Gentoo Linux box. For those interested with the itsy-bitsy, tech-linux-geek details read on. As a sidenote after noticing other bloggers, I have decided upon writing shorter blogs. Each entry will a particular theme, not just a massive mixed stream like my previous entries.

The devil is in the details they say. Its true. Before I started to do anything to my setup I should of backed everything up using my DVD-R drive. This would of made things simpler and faster. Needless to say, I didn’t actually take my own advice, which lead to a series of nasty events…

I had read up on XFS during an Operating Systems assignment, how cool it was and everything. So I decided to use it. I was previously using Ext-3 which is the slow, but steady standard filesystem of Linux. Having a separate partition for / and /home I really wasn’t worried. So I installed Kubuntu 5.10 with an XFS root. I ignored the warning about GRUB and XFS not playing well together. (GRUB being a bootloader) The installer had wisely chosen LILO (an older bootloader), but I though nothing off switching it to GRUB being a fan of that particular program. The new system wouldn’t boot. I was stuck without a way into my Linux or my Windows partitions.

A few things I learned MUCH, MUCH later, is that XFS is meant exclusively for massive, high through-put servers. Also that older versions of GRUB would simply die when dealing with XFS. Hey, and I verified that.

So I tried a number of things. Reinstalling Kubuntu 5.10, leading to GRUB errors. Installing the funky new Ubuntu 6.06 with graphical installer. The installer took one look at my messed up partitions (compliments of Dell for being too kind and adding two extra restore partitions, then mucking them up too). So I tried going back to Gentoo. I tried the brand new Gentoo graphical installer, which died out like Ubuntu’s. I decided upon using the console installer for Gentoo. After it died, I realized to my horror that I had or it had wiped out all my partitions. Panic!!! My precious files… gone… nooooooooooooooooo…

I was honestly truely panicking. I looked for a way to boot into Windows and using a partition restorer. No luck. Now I was really in a tight spot. Most of my data was not backed up. And now I couldn’t access it. Then I read a post somewhere, that it was possible to recover it in Linux.

I used gdisk to find the last known parameters of the partitions. Then I guessimated them using fdisk. I then crossed my fingers and installed Gentoo the old fashioned way, by hand. Not extremely fun, but at the end of it I had a working Linux system. After adding GRUB back into its rightful spot, I could now boot into Windows and Linux. After getting into Linux, I learnt that my partitioning was off by a little bit. After coping over the data into the working root partition, I found that only some non-essential files didn’t make it. The next few days were rebuilding, reconfiguring and yes, backing up my data onto DVD.

So the story ends happily with mostly safe data, a working Gentoo system, and I almost have it configured to my desire. Needless to say, that was a close one. Phew!

Morals: Never give up, even the seemingly irreversable is possible. And BACKUP BEFORE DOING ANYTHING SLIGHTLY INSANE!!!!

Installing Kubuntu On a New Dell Desktop

Well its been a while… since I last blogged that is. Life has been more or less alright. A number of things happened in between that time so I will spend sometime on each of the major events: installing Linux on a new desktop, impressions of my courses, impressions about Scheme (which sort of relates to my courses), the Datasphere work-study saga, the madness of acquaintances, and general lack of girl friend and major events (hey, I need to bitch about something)

I recently got a new machine, so like any real technophile (or more accurately gadgets-techs-and-other-toys-lover or simply a normal guy) I totally went nuts the day I got it. A few weeks ago I ordered a brand-new spanking Dell Dimension 9150 with a 19″ UltraSharp LCD thrown in. Naturally the morning it arrived I was on a tech-driven high. The poor Puralator guy must of thought I was nuts, bouncing all over the place. But hey, its not everyday is a Christmas equivalent, and the delivery guy basically became a Santa Claus. 😉 A few minutes later of forced calmness, I managed to drag my new toy upstairs and get it setup. The rest of the day was spent either installing stuff, or doing random chores and putting the machine through its paces. I must say that I was impressed with the machine in general, and strangely enough I enjoyed playing around with Windows XP Media Centre which I found to be very well polished and thought out for the most part.

Ater a tiny bit (read as days) playing around with Windows XP Media Centre, I got into installing Linux. All I can say to that is that one I’m a Linux junkie, and second that the target machine is a desktop, hardware issues would be less of an issue. Or so I thought. Fortunately for me I did a bit of research before deciding what kind of a machine to get (and kind of hardware it would contain). Hence the presence of a nVidia card (sorry ATi you maybe Canadian but your support is below par :(), the Intel integrated sound card (I’m not too serious in the music production scene… yet), and the Intel e1000 based network card. This time while having a much more agile machine, I decided against going with Gentoo. Simply I got tired of all the hassle of baby-sitting the system, and dealing with a never-ending stream of updates. So I decided to try out Ubuntu to see what all the fuss was about. Specifically I chose KUbuntu, since I prefer the more polished KDE over over-simplified Gnome. The installation went without a hitch, except for the network card. Aparently I have the latest generation of Intel’s Pro 100/1000 Ethernet cards, and the e1000 driver that comes with most Linux kernels was too old. Intel preceiving this released the source code for an updated e1000 kernel module. Since I was new to Ubuntu and Debian-style distributions in general, so kernel source recompilation was out of the question. I switched back to Gentoo for about two weeks. During that time I found that some compiled and posted the module for the Ubuntu. So I reinstalled Ubuntu, and I have stuck with it since.

My intial feelings about Ubuntu are positive. The distribution packaging system is based in the rock-solid apt build system (which mirrors Gentoo’s Portage), and has a decent number of packages available right of the bat. The hardware detection and setup is very well done, and I appreciate the dbus-hal-ivman automounting functionality (even thought the automatic starting of Kaffeine player when plopped in a DVD is a bit unnerving). The idea of doing sudo for everything that would normally require su-ing in as root is an excellent idea. In a matter of a day I had pretty much everything I needed to run a full scale development box. I even found this neat blogging utility that I am using now called BloGTK. All I need to figure out is a few minor issues such as DVD copying. I hope to get comfortable with compiling kernels under Ubuntu too, so that I can peacifully upgrade to any newer kernel (or slightly tweaked one), and still keep my Ethernet functionality working. Overall, I am greatly surprised how easy it is easy to install and administer a Linux computer nowadays. I think the open source community has gone a long way to making Linux a viable desktop option. I still can remember the fun and games of installing older versions of Mandrake, and SuSE on an older machine and my laptop a few years ago. You want X running on your laptop back then? Good luck. And you want to use your funky-dory nVidia card for 3d accelerated graphics??? Under X??? Dream on. Fortunately those days and experiences maybe numbered. That is all on the topic of new desktops and installing Linux.

Err… remember that I would write about more stuff earlier on? Well I guess I lied. I will continue on later tomorrow. Night.