Archive for the Linux Category

Backup or Sync Firefox 3 Bookmarks

Posted in Backups, Linux, Ubuntu Linux on March 20, 2010 by ubducted

It’s fairly easy to synchronize my firefox 3 bookmarks between two or more computers.  If you’ve used firefox 2, your bookmarks were stored in the mozilla firefox folder in bookmarks.html.  In firefox 3, your bookmarks are stored in places.sqlite in your profile folder in the main mozilla firefox installation folder.

Just cut and paste places.sqlite to a folder that will be backed up or synchronized.  Then select the file, right click, and select Make link (for Ubuntu or Gnome users).  This will make a soft link file which you can cut and paste back to where places.sqlite was originally (in your profile folder). 

Rename the soft link to places.sqlite and you’re good to go.

Obviously, if you are synchronizing, this won’t “merge” your bookmark entries.  One computer should be your main computer and the others just update when it synchronizes.  I.e. don’t create bookmarks on your non-main computers.  They’ll be overwritten.

 

 

 

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 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. 

Partimage Error – Cannot create temp file

Posted in Backups, Linux on April 4, 2009 by ubducted

While in SystemRescueCD and using partimage to backup an ext3 filesystem, I kept running into the error:

Error – Cannot create temp file [/dev/sda3/pi878f5c20.tmp]. Please check there is space enough and you have access rights.

The problem is that the hard drive/partition needs to be mounted. Do the following when booted into SystemRescueCD

mkdir /mnt/sda3 (you can call sda3 anything you want. It’s just a folder that you will mount the actual partition you need to store the backup onto)

mount /dev/sda3 /mnt/sda3 ( this will take the partition /dev/sda3 and link it to /mnt/sda3)

After doing this, navigate to /mnt/sda3 and see your folders.

There is a good how-to for Partimage here. It also describes how to restore your image to the partition.

Backup Your MBR on Linux

Posted in Backups, Linux on April 2, 2009 by ubducted

Use this command to backup your MBR:

dd if=/dev/hda of=/home/hda.boot.mbr bs=512 count=1

To restore the MBR (from a Live CD), use this command:

dd if=/mnt/hda1/home/hda.boot.mbr of=/dev/hda bs=512 count=1

About the dd command:

dd if=<source> of=<target> bs=<byte size>(“USUALLY” some power of 2, not less than 512 bytes(ie, 512, 1024, 2048, 4096, 8192, 16384[/b], but can be ANY reasonable number.) skip= seek= conv=<conversion>.

Source is the data being read. Target is where the data gets written.

Warning!! If you reverse the source and target, you can wipe out a lot of data. This feature has inspired the nickname “dd” Data Destroyer.
Warning!! Caution should be observed when using dd to duplicate encrypted partitions.