Jump to content
  • entries
    10
  • comments
    27
  • views
    21,336

Thoughts on Linux

Sign in to follow this  
tmoulder

3,876 views

  

9 members have voted

  1. 1. Was this post helpful to you?

    • No thanks, Linux scares me
      1
    • I'll keep what I've got, thanks anyway
      2
    • I'm already rocking this setup! You're late, playa!
      5
    • Hmm, gonna have to give this a try...
      2

Like alot of people, I still use Windows XP for running my work-related programs. I know, lost in the 90's, but it works well for me.

About a year ago, I had a PC crash that set me back severely. I didn't lose any data - for years now, I've kept all my project data in a single folder, and copy-pasted to my backup hard drive regularly. However, it took three days to reinstall all the software after I recovered the PC.

That got me thinking - there's got to be an easier way to do this.

As the first entry on this blog describes, I've dabbled with Linux for a while, and with some sound advice, I decided to make the leap. I wiped Windows from my PC and installed Linux Mint 11. Then I downloaded VMware Player, created a new Vitrual Machine, and installed XP on that.

I was prepared for a raft of headaches arising from this - oh no, linux! oh no, vmware! - hardware issues, software issues, pain, hate, discontent! What I got was - nothing at all. No problems, no issues. The whole thing ran magnificently. Best of all, I can now back up my entire windows virtual machine to my backup drive.

Why is this so grand, you ask? Because my work PC is now essentially indestuctable. I can drop my laptop in the swimming pool, buy a new one, load Mint and VMware, drag-drop my saved VM into my home directory, and get right back to work. Alternatively, I can upgrade to a new pc and get rolling equally fast.

In the process, I've learned a few things, so if you decide to go this route, you may find these experiences helpful -

1. You can't do this with a netbook, at least not an Acer. Not enough ram, and atom chips lack the needed horsepower. Get a laptop with a 64-bit architecture, that you can upgrade to at least 8 Gig of Ram, and a hard drive large enough to accomodate everything you'll need. On the ram side, get as much as you can - mine has 5 gig, and I'll be upping it to 8 gig after the holidays.

2. The temptation is to use a minimalist distro, so you can allocate maximum resources to the VM (where you are doing all the work, after all). Resist this. I've played with Puppy, DSL, Bodhi, and Mint LXDE, and what you gain in performance for the VM is neglible, particularly in relation to the difficulty of using a minimal distro (unless you're into that kind of configuration headache).

Choose something that provides all you need up front. Linux Mint is an excellent option - it's based on the widely used Ubuntu, but includes alot of extras that Ubuntu makes you find yourself. I'm using Pinguy OS, which is derived from Linux Mint, and offers even more eye candy - who wants an ugly desktop?

3. As you can probably guess, I tried a lot of distros. Everybody makes a big whoop about live cd and live usb, but I found testing them that way to be a little pointless - you can't add software (need to test with VMware) and performance lags going that route, so you don't get a true flavor of what you'll have when installed. Apart from seeing if you like the screen, you'll pretty much have to install it to try it out.

So the first time you go to set up linux, create a home partition on your hard drive. When you install most distros, you'll have the option to assign this partition as your home directory. You can install the new system into the rest of the drive, and usually not have to move your important personal files around.

WARNING - that's not fool-proof, so make sure you back up your files first. If it works, it will save you alot of time and aggravation. But if something gums up, it'll kill you if you haven't backed up first.

4. When creating your Windows VM, dedicate some thought to division of responsibility. Simply put, if it doesn't need to be in the VM, put it in the linux host instead. I have about 2 gig of PDF reference files that used to be under windows, that now rest comfortably in my linux home directory, outside my VM. Accessing them is a breeze, with or without windows open, and it keeps the VM smaller. When you do run a backup, you can just backup the contents of the home directory - drag, drop, done - and preserve everything you need, including your VM and external files.

On the hardware side, 99% of everything I've tried has worked great. The most obscure thing I use is PCanOpen Magic Pro, with a USB adapter, and it worked right out of the box. I use an Iconcepts USB to serial adapter for most programming jobs, and it runs flawlessly.

Oddly, the only thing I've had trouble with is a Unitronics 1040 PLC - can't do direct USB to the panel. Apparently, there is a known issue with the linux driver for the usb-serial chip Unitronics used in this device. It's a linux issue, not a Uni issue (just to make that clear). So I just use my usual serial port adapter instead - no problems there.

Detailed instructions for how to do all of this are readily available on the web. Personally, I've found it a huge help (already recovered once [me and my distro hopping]).

Best of Luck, and remember - backups are your friend. This mainly about making them more complete and portable.

TM

Sign in to follow this  


6 Comments


Recommended Comments

A few more helpful tidbits:

1. When you set up your virtual machine, choose "multiple files" for your virtual hard drive. Makes copying alot easier if, as I found out too late, your backup drive is FAT32, and won't accept a single file larger than 4 gig. Theoretically, it can lead to a performance hit, but I haven't noticed one.

2. Don't pre-allocate the drive space. There's really just no reason to, and why use space you don't need?

3. If, like me, you have an original XP install disk, go out RIGHT NOW to microsoft's website and download the service pack stand-alone installers (1a, 2 and 3). MS has discontinued support for any version of XP prior to SP3, and you won't be able to get updates unless you install these directly. SP1a and SP2 can be downloaded through linux, but for whatever reason, MS only allows downloading SP3 from a windows environment.

On a side note, if you have a kvetchy program that doesn't like the later SPs, you can create a VM with any combination you like going this route.

TM

Share this comment


Link to comment

Interesting!

At work, I 've got no say in the matter.

At home, well, I guess if everything crashes and I have to rebuild from the ground up, I might give it a whirl--so thanks for the tips!

Share this comment


Link to comment

Linux is great!! I'm running 2 servers with Gentoo at home and 1 at work. My servers at home have been through more motherboards than I've had cooked dinners and they are still running the same install when I started about 6 years ago! Their roles have been continuously evolving and Gentoo allows me to keep all the software up to date without ever reinstalling. If only VM's would give direct access to the graphics card I wouldn't ever need to install Windoze directly onto hardware. That being said, I'm quite happy with Windoze 7 so I'm not a complete M$ hatertongue.gif.

Share this comment


Link to comment

I use Linux+KDE as Desktop for about 10 years now and I am happy. For all applications where Windows is essential I have seperate VMs in Virtualbox. One for each Application such as KEIL51/166 IDE, Cadece/Altium schema/pcb and now one for Visilogic/UniLogic and so on. By doing so, I can select the optimal OS for the application. I use Windows XP/7/8/10. The only drawback is the amount of RAM (have 64GB yet) needed, but thats negligible facing the all the other advantages.

Quote

Oddly, the only thing I've had trouble with is a Unitronics 1040 PLC - can't do direct USB to the panel. Apparently, there is a known issue with the linux driver for the usb-serial chip Unitronics used in this device. It's a linux issue, not a Uni issue (just to make that clear). So I just use my usual serial port adapter instead - no problems there.

I have no problems with USB/serial devices + direct routing USB to VMs with Virtualbox at all. By direct routing raw USB (at kernel level), a Linux Driver is not necessary bc the Driver runs in (virtual) Windows. If this is not possible with VMWare you can try to adapt your UDEV rules for USB on your Linux host. Linux is a little bit stubborn, when non root users try to alter things on USB other than drives and network devices.

Share this comment


Link to comment

I did my first Linux install in 1999. We were using Iconics SCADA which used Microsofts SQL. Microsofts SQL had a problem releasing pointers which caused the trends to flat line so we bought in a Dell PowerEdge server with Red Hat. I transferred the database to Red Hat and it never flat lined again. Linux has come a long way since 1999. What I love about Linux is that you install just what you want. If I had control of our IT department I would use Linux on every machine.

Share this comment


Link to comment

Win 7 and up you can create a system image on an external HDD. Drop computer in pool? System image restore. XP had no simple complete OS backup.

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×