Thoughts on Linux…

22 February 2010

start off with some non-techie stuff first…

I head back to see my surgeon next Monday,  where he will tell me that in another week or two I should start putting some weight on my leg (toe touch, or partial weight bearing?) when at my PT.  I am also hoping he will tell me it is okay to get my incision wet, as it has been making it very difficult to take showers!

ok, on to the good stuff.

So, I am not at home and do not have my desktop machine available for use for the last week, I have been going through withdrawal…  but having to work on someone else’s machine, and my wife’s laptop (I think I mentioned before, I gave her mine, and sold her old one) has taught me one important lesson, why I prefer Linux.

My number one reason for preferring Linux over Windows is system maintenance.  What do I mean? well, I mean keeping everything up to date, this latest round of Adobe patching should make this make sense to everyone.  I don’t use Acrobat on my Linux machines for this reason.  However; back to the point, when I need to check for updates on my Linux machine I open Yakuake with a quick hit of F12 and type “sudo yum update” and it comes back and tells me every single thing installed on my system that has an update available, period, end of statement.  On windows, I have to launch 5-8 different apps, find their “check for updates” button/link and wait for the results (I have learned by doing this that OpenOffice.org does not notify you of a new version being released, only if there are updates for your version.  example, I have 3.1 installed, and 3.2 is now available.  clicking the check for updates menu option tells my “There are no available updates for this version” (maybe not word for word, but that is just about what it says).  I run windows update, Acrobat Update, Java update, Picasa update, Chrome update, Firefox update, and on and on… (yes I know there is an Adobe Updater, but I don’t know how to initiate it in Windows, and never cared enough to look it up, but now that I have mentioned it I sure I found instructions and have put a link to them here).

Simple and easy to manage, most distros even let you run their package manager and it has a button to click to check for updates for your system, making it easier and more time consuming all at once to do the same thing.  (Yakuake is always running and it takes me about 1.5 seconds to type that line into the terminal, it takes a lot longer to load the package manager from the application menu and then click the check for updates button, but you don’t have to type that way!)

The actual GUI interface for Windows an Linux and even MAC are so similar these days, that I don’t care which I am using as far as that is concerned.  I have come to the understanding that there will always be applications/games for an OS, other than the one I am using, that I want to use/play (take iPhone for example, they have the best Air Traffic Controller game I have played, and I’ve hunted those down and played quite a number of them, but I don’t own anything made by Apple, and probably won’t ever, unless the 2nd gen iPad totally rocks… but I will be getting an Android Tablet this year (possibly the Notion Ink Adam, or the HTC Google Chrome OS tablet), so I still probably won’t get an iPad).  My concern at this point, as I spend more and more time as a Unix Admin is maintenance.  The system I use at home needs to be practically maint free, as most Linux and Unix machines are, they will run for years without being touched by an admin, the best I know of are an AIX Server and a OpenVMS server, the AIX server has been running since 1991 and has never been patched, updated, reconfigured, or messed with in any way.  It is setup to contact a NIM server for logins, so no new users have ever been added to it, it has never crashed, never lost power, never been rebooted.  That to me is the greatest achievement of humankind (in technology anyways, and some of these companies need to take a look at the AIX OS and learn something from it!!!).  The other machine, the OpenVMS machine has been running since before 1994, but has not been patched, never been upgraded, never been rebooted, since 1994.  now I know next to nothing about OpenVMS, and have not personally logged into the machine itself, but a friend and co-worker of mine used to be the sole admin for the OpenVMS machines at that company and although that one is the only one like this, it is still running today without interference from humans.  I am sure some other machines are out there doing the same, but these are two that I know.  The longest Windows Server I have heard of running without rebooting or crashing was about 2.5 – 3 years, after which the hardware components in the server failed and the machine was replaced.  Some people have told me about Windows servers being up for 4 years and then being restarted by some new guy, but I have no validation of it and they could not give me a more exact time frame.

not sure if I made a compelling argument or not, but I need some medication and to go prop my leg up, so I am done here.  Also expecting UPS sooner or later for an over night supersave shipment… and it takes me 5 mins to get downstairs…  :)

ok, so I woke up and now can’t get back to sleep.  nothing new, but this time I decided to do something instead of just laying there hoping to fall asleep before the sun rises.  Now, I thought that I already had this working, but apparently not… —edit okay, so I need to note I was doing these steps while writing this post and when I got to the step to reboot Fedora, step 6, I fell asleep.

I was and am currently using, a Fedora 12 VM from my laptop, now I thought I had the shared folders from the host OS (Win XP) setup, but could not find the mount point, so I just attempted to re-mount it.  fyi I’m using VirtualBox 3.1.2  so I attempted to remount the shared folder to a simple location…

$ sudo mount -t vboxsf documents /home/finndo/Documents/local

mount: unknown filesystem type ‘vboxsf’

so I do some Googling and come up with some interesting tidbits…

so, if you didn’t look at the link, here it is in a nutshell, to get the mount to work (yes I installed the VM additions, but did not notice the error…) please read the whole post before trying this, as there are some steps you may need to do a little differently and I have noted this, but not until after I list them!

ok, let me start from the beginning…

step by step instructions for getting shared folders to work in a Fedora 12 VM on VirtualBox (after you get fedora installed)

  1. open a console window (I am a huge fan of Yakuake)
  2. type “sudo yum install system-config-display”
  3. give it your password (you may have to do this every time you type sudo)
  4. type “sudo system-config-display”
  5. this will open a window in your GUI (KDE, Gnome, XFCE, ICE, whatever) choose the options for your display (if using Yakuake you need to hit F12 to make the console window go away so you can see this new window)
  6. type “sudo yum install gcc kernel kernel-devel kernel-headers”
  7. restart the VM to boot with the newest kernel
  8. goto the Devices menu and select install Guest additions
  9. back to the console and type “sudo mount /cdrom /media”
  10. type “sudo /media/VBoxLinuxAdditions-x86.run”
  11. (special note, if you have already run the VBox Additions from the cd, skip steps 7-10 and  just type this “sudo /etc/init.d/vboxadd setup”
  12. now I do not remember if I had to create the share for My Documents in VirtualBox or if it was there by default, but I have one, called “documents” and that is the one I am using in this example. so, type the following “sudo mkdir /mnt/shared-docs”
  13. type “mount -t vboxsf documents /mnt/shared-docs”
  14. then you can now access your Windows XP My Documents folder from your Fedora 12 install in the /mnt/shared-docs folder!!!

Really not that hard, but nowhere in the documentation for VirtualBox does it tell you that you have to do all of that!

Now, you can type “su -” and give it your password, then you do not have to use “sudo” at all for the entire process.  you may ask why I do it then, and it is because I work on linux and unix systems for a living (or at least I am trying to) and for security reasons they tell you to never su to root (become the root user) as it is too easy to type an accidentally command in that will make the entire system irreversibly broken (with out restoring from a backup) and since I have been logged into some servers that are used in the monitoring/maintenance of the space shuttle and international space station, so making one of those stop working for several hours or more is a really bad idea! therefore you sudo every command you need to run as root instead of becoming root, gets annoying at times, but almost eliminates the chance of accidental termination of your employment!

Ok, so a note, I am running this Fedora 12 VM on a single core laptop with 2GB of Ram (1.5GB given to Fedora, and nothing running in the host except the VM) and when I ran step 5, it practically halted my system and took almost 30 minutes (part of the reason why I fell asleep) it would say it was downloading a 8.6 meg file and take 14 minutes to do so, at 858Mb/s (which is impossible I know, but that is what it did and said) anyway, the main reason I did this, is that I had downloaded some other Fedora .iso files and filled my Virtual HDD and needed to get them off!!

So, now you know… and as we all know… Knowing is half the battle!

[finndo@fedora12KDE yum.repos.d]$ sudo mount -t vboxsf documents /home/finndo/Documents/local
mount: unknown filesystem type ‘vboxsf[finndo@fedora12KDE yum.repos.d]$ sudo mount -t vboxsf documents /home/finndo/Documents/local
mount: unknown filesystem type ‘vboxsf’
7 visitors online now
7 guests, 0 members
Max visitors today: 7 at 09:37 pm EST
This month: 29 at 03-04-2010 08:18 pm EST
This year: 29 at 03-04-2010 08:18 pm EST
All time: 29 at 03-04-2010 08:18 pm EST