Review of Athabasca University Linux Course Comp315

Posted in Linux on February 25, 2010 by ubducted

I just finished up a course through Athabasca University called Advanced Operating Systems (Linux).  I thought some people on the list would appreciate a review on this course. 

AthabascaU is located in Alberta and provides a number of programs and courses for on-campus students and off-campus students (i.e. distance learning).  The course cost roughly $630 and includes:

  • Unix: The Textbook
  • A Tutor with whom you correspond via email
  • And 6 months before the course needs to be completed (you may purchase up to 3 two-month extensions for ~$150 each).

The textbook is mailed to you along with details for connecting to AthabascaU’s companion student website.  One thing about AthabascaU’s student/course “web portals” is that everything can be done and viewed online and it is easy to use and navigate.  I have nothing but praise for their online portals.

The Linux course prerequisite is Comp314.  I didn’t have this prereq, nor did I have the prereq’s prereq :)   Since I was already familiar with Linux and I wanted to take the course right away, I just enrolled.  But I did ask the course coordinator first.  Also note that this course is not a part of the curriculum for my program.  I just wanted to take the course. 

For those who find self-motivation difficult, having a deadline and paying the course fee may give you motivation.  For those who find self-learning difficult, distance learning is probably something to avoid.  That said, the course gives you a structured learning plan with specific objectives.  While there are free resources on the internet to learn about Linux, the course forces you to learn specific things and to apply what you learned through assignments.  It can be the difference between thrashing around in the ocean versus kayaking from island to island.  Dumb analogy, but you get the point.

Another benefit to taking the course is that there were topics covered that one may not normally spend time learning.  In the end, it makes one appreciate the Linux system much more.

I am still on the fence about whether the course is worth it.  It’s a hefty price tag, but not as expensive as other courses.  One thing is certain, it would have been more valuable to utilize the Tutor’s knowledge by asking questions.  I ended up getting full marks on my 19 assignements.  Most of the Tutor’s comments were “Good job.  Clearly written answers.”.  That’s not very helpful :P .  There were 3 questions which the Tutor clarified and that did help my learning. If you take the course, ask your Tutor questions.

The Textbook was very good, though some minor editorial mistakes are made.  The books is very well organized and contains good summaries and practice questions. The Shell scripting and the Unix history were my favourite sections.
One issue some people may have with the textbook is that some shell scripts won’t work on your system.  The author uses *nix flavour A and I’m using *nix flavour B.  In such cases, you simply browse the internet for a script that does work – you end up learning a lot more!  In other cases, the command used in the textbook is not normally used anymore but has been “replaced” with a newer command.  One example was an “admin” command to checkout files from a repository.  My machine uses CVS instead.

As for the final exam, tests are taken at a number of facilities. I took mine at the main Edmonton testing facility located downtown.  The final exam (50% of the course mark), was a written test.  I tell you, writing a shell script on paper will sure test a newbie’s scripting skills :)

Sync Palm Pilot Z22 to Ubuntu Karmic Koala 9.10

Posted in Ubuntu Linux on February 20, 2010 by ubducted

It’s always a battle to get those Palm devices working on Ubuntu.  But you’ll be cooking with gas after the initial setup. 

I accidentally buggered up my Ubuntu 9.04 machine and was forced to reinstall and forego my plans to upgrade in 2 months when 10.04 would be released.  After a fresh Ubuntu 9.10 install, my first step was to get my trusty Palm Z22 synchronizing to Evolution.  This is what worked for me:

Open a terminal and check if the “visor” kernel module is running:

lsmod | grep visor

If you don’t have output like this…

visor                  15816  0
usbserial              36264  1 visor

…then you don’t have visor setup. Install it by editing /etc/modules

gksudo gedit /etc/modules

And add the following at the end:

visor

Save the file and close. Some How-To’s say to check if visor is running by doing

modprobe visor

When I do that, nothing is returned.  Maybe that’s what it is supposed to do and maybe it throws an error if visor is not installed?

You’ll now want to add a rule to udev.  Create a file called (I believe you can actually call this file “whatever-you-want.rules”). In a terminal, just type:

gksudo /etc/udev/rules.d/10-custom.rules

And add the following line:

BUS=”usb”, SYSFS{product}=”Palm Handheld*|Handspring*”, KERNEL=”ttyUSB*”, NAME{ignore_remove}=”pilot”, SYMLINK=”pilot”, MODE=”666″

Something else that may or may not be needed is to edit your udev devices.xml.  In a terminal type:

gksudo gedit /usr/share/gnome-pilot/devices.xml

And make sure a line for Palm Z22 is there (I just changed the Zire 31 to Z22, because I saw somewhere that the Z22 product_id was 0061 but this file had it listed as the Zire 31.)

 <!– Palm Z22 –>
 <device vendor_id=”0830″ product_id=”0061″ />

Now some folks say you can just restart udev like so:

sudo service udev restart

While it does restart udev, I had to reboot.  Perhaps the reboot made the visor module initiate properly.

To check things are working nicely, you can do two things.

1) Watch your /var/log/messages to see how the Palm is connecting.  Open a terminal and type:

tail -f /var/log/messages

When you connect your Palm, you should see something like:

Feb 20 10:42:05 krypton kernel: [  625.540523] usb 5-1: new full speed USB device using uhci_hcd and address 9
Feb 20 10:42:05 krypton kernel: [  625.797189] usb 5-1: configuration #1 chosen from 1 choice
Feb 20 10:42:05 krypton kernel: [  625.802233] visor 5-1:1.0: Handspring Visor / Palm OS converter detected
Feb 20 10:42:05 krypton kernel: [  625.802310] usb 5-1: Handspring Visor / Palm OS converter now attached to ttyUSB0
Feb 20 10:42:05 krypton kernel: [  625.802352] usb 5-1: Handspring Visor / Palm OS converter now attached to ttyUSB1
Feb 20 10:43:06 krypton kernel: [  686.384045] usb 5-1: USB disconnect, address 9
Feb 20 10:43:06 krypton kernel: [  686.384223] visor ttyUSB0: Handspring Visor / Palm OS converter now disconnected from ttyUSB0
Feb 20 10:43:06 krypton kernel: [  686.384292] visor ttyUSB1: Handspring Visor / Palm OS converter now disconnected from ttyUSB1

2) After the Palm is plugged in, you can view what the symbolic link (SYMLINK) /dev/pilot points to by typing in a terminal:

ls -al /dev | grep pilot

You should see something like:

lrwxrwxrwx   1 root root           7 2010-02-20 11:40 pilot -> ttyUSB1

Now you just setup your Palm OS Devices by going to System > Preferences > PalmOS Devices

Just follow the instructions and make sure you choose the following settings:

Timeout = 2

Device = /dev/ttyUSB1 (or /dev/pilot)

Speed = 57600 (It may also work with 115200)

Once you’ve connected, setup your conduits (the items you want to sync) and press hotsync on the device.  Evolution will be updated accordingly.

For more information, you may also want to read some of the comments in the PalmDeviceSetup – Ubuntu help site and PalmZ22HowTo,

Sync PDA Memo on Evolution

Posted in Linux, Software on December 14, 2009 by ubducted

I finally got around to setting up my Palm Z22 on Ubuntu.  I use this PDA for GTD.  Although they don’t make PDA’s, this Palm Pilot is still the best electronic GTD option out there.  Smart phones just aren’t there yet.

Everything synchronized well between Evolution and the PDA except for Memo’s.  After some searching, it turns out if you have both the EMemo and MemoFile conduit options turned on, only the MemoFile will sync.  After turning off MemoFile, I finally got my Memo’s to sync in Evolution. 

Truetype fonts TTF on Ubuntu

Posted in Ubuntu Linux on December 12, 2009 by ubducted

Installing TTF fonts on Ubuntu is a breeze:

  1. Create a directory in /usr/local/share/fonts/
    I called my directory “myfonts”
    sudo mkdir /usr/local/share/fonts/myfonts
  2. Copy your fonts to the directory
    sudo cp /home/downloadedfonts/*.ttf /usr/local/share/fonts/myfonts/
  3. Then update the fonts by running:
    sudo fc-cache -fv
    (there is a space after fc-cache)

That’s it! A great site for free fonts is FontSpace.

Ubuntu Netbook Remix Rocks on Asus EeePC 701

Posted in Ubuntu Linux on November 11, 2009 by ubducted

I recently went to Australia for about 5 weeks and I brought my Asus 701 EeePC.  Before I left, however, I decided to install Ubuntu Netbook Remix which brought the netbook back to life where the default Xandros OS put it in the grave. 

Well, I should be too harsh on Xandros.  At least it worked.  I had eeeXubuntu on the 701 at one point, but it was a bit buggy and hard to use.

I am certain there are others out there that have 701′s gathering dust.  Well brush it off and install Ubuntu Netbook Remix.  You’ll have fun with it.  Everything works out of the box.

My Thoughts on Time Based Major Linux Releases

Posted in Ubuntu Linux on November 7, 2009 by ubducted

Like all organizations, it’s important to properly manage expectations.

Mark Shuttleworth asked awhile back about Meta-cycles: 2-3 year major cycles for free software.  The idea is to have time based releases for free software or distributions.  Mark wants some community discussion on the pros and cons of timed major releases for Ubuntu. Personally, one key issue here is managing expectations.

Ubuntu’s past releases have created for me the following expectations:

  • Even numbered first iteration releases are Long Term Support releases. (6.06, 8.04)   
  • Even numbered second iterations are cleaned and more stable Even numbered first iterations. (6.10, 8.10)
  • Odd numbered releases are useable playgrounds that are used to collect information for the next LTS. (7.04, 9.04)
  • Odd numbered second iteration releases are cleaned and more stable Odd numbered first iterations. (7.10, 9.10)

Wether or not the above is true, for some reason it’s the message I heard since starting with Ubuntu 5.04.  It’s now what I expect from Ubuntu releases.

If Ubuntu decides to implement a new release cycle it should have a clear understanding of current customer expectations.  Otherwise it risks putting serious strain on customer relationships with Ubuntu.  I know I’ve stopped being loyal to company brands because of failed expectations.  It’s fine to change things up, but it needs to be well communicated to users. 

Use Symbolic Links instead of vhost for localhost web development

Posted in Web on June 29, 2009 by ubducted

I spent a couple hours trying to setup some vhosts in Apache2 for developing some web applications.  The annoying thing is that my IDE (Eclipse/Aptana) uses a directory in my Home folder to store my projects.  Therefore I needed to create a vhost to point to those project folders.

What is more easy is to use the default Apache2 setup and put symbolic links in /var/www/ for each of your projects.  Soooo much easier!