YOUR FEEDBACK
Werner Keil wrote: Java 6 update 10. If I'd be running Apple, I'd probably really drop dead...


2008 East
DIAMOND SPONSOR:
Data Direct
Frontiers in Data Access: The Coming Wave in Data Services
PLATINUM SPONSORS:
Red Hat
The Opening of Virtualization
Intel
Virtualization – Path to Predictive Enterprise
Green Hills
IT Security in a Hostile World
JBoss / freedom oss
Practical SOA Approach
GOLD SPONSORS:
Software AG
The Art & Science of SOA: How Governance Enables Adoption
PlateSpin
Effective Planning for Virtual Infrastructure Growth
Fujitsu
Automated Business Process Discovery & Virtualization Service
Ceedo
Workspace Virtualization
Click For 2007 West
Event Webcasts

2008 East
PLATINUM SPONSORS:
Appcelerator
Think Fast: Accelerate AJAX Development with Appcelerator
GOLD SPONSORS:
DreamFace Interactive
The Ultimate Framework for Creating Personalized Web 2.0 Mashups
ICEsoft
AJAX and Social Computing for the Enterprise
Kaazing
Enterprise Comet: Real–Time, Real–Time, or Real–Time Web 2.0?
Nexaweb
Now Playing: Desktop Apps in the Browser!
Sun
jMaki as an AJAX Mashup Framework
POWER PANELS:
The Business Value
of RIAs
What Lies Beyond AJAX?
KEYNOTES:
Douglas Crockford
Can We Fix the Web?
Anthony Franco
2008: The Year of the RIA
Click For 2007 Event Webcasts
SYS-CON.TV
TOP LINKS YOU MUST CLICK ON


Running Fedora Core 5 Under Windows XP - Tips and Tricks
For one thing XP is extremely widespread and your clients and/or users probably have it installed on theirs PCs

For one thing XP is extremely widespread and your clients and/or users probably have it installed on theirs PCs. In fact, most PCs come with XP pre-installed. And makers of peripheral devices and high-speed Internet providers adapt their products and services to work with XP. In most cases it's enough to simply plug a peripheral into an XP computer or to subscribe to a high-speed Internet service to start use it immediately.

For many IT professionals it makes sense to work with both Windows XP and Linux.

On the other hand, Linux is stable and the Linux community provides you with free high-quality Open Source software. A number of companies also offer non-commercial versions of their products for free that you can try before buying to make sure it's exactly what you need. An example of one such product will be given later in this article.

Virtualization Versus Multiple Boot
Rather than invest in two different computers (one for XP and another one for Linux) and network equipment it's convenient to have both operating systems on one PC (these days even on your laptop). There are several options on how to do that so you can try multiple boots (usually dual boots) with free or commercial products. Alternatively you can try virtualization.

Traditionally under virtualization there's a distinction between the host (the operating system under which the virtualization software runs) and the guest (the operating system or systems that run in the virtualization software). Virtualization has advantages over multiple boot in the following ways:

  1. Reliability. In a worse case scenario of virtualization software failure even if you will loose the guest operating systems you'll most likely have the host operating system up and running, while in the case of a multiple boot failure it's possible that all the operating systems will be lost.
  2. Flexibility. There's no need to make multiple partitions for multiple operating systems on your main hard disk drive. Moreover, it's possible to use an external USB2/FireWire HDD with multiple operating systems that can be easily plugged into your PC.
  3. Data exchange "on the fly" between the host and guest operating system (or systems). By the nature of the multiple boot solution only one operating system can be up and running at a time. So the process of data exchange will involve rebooting. It's possible with virtualization to exchange data between several operating systems without any rebooting delays.
For these reasons, virtualization is recommended for running XP and Linux on the same PC.

VMWare Workstations, Fedora Core 5, and XP
The best-known virtualization software is VMWare's Workstation 5 family, which currently includes versions 5.0 and 5.5. On the other hand, Fedora Core 5 is one of the best Linux free Open Source distributions.

Which operating system to make the host - Linux or XP - and which the guest is a matter of personal preference. If your PC comes with XP pre-installed and your peripherals and Internet provider are tuned to XP it's convenient to keep it this way (without spending time on operating system and/or driver reinstallation) and run Fedora Core 5 as the guest operating system under VMWare 5 using XP as the host.

VMWare 5 is very easy to install on Windows. A convenient mechanism is built into VMWare 5 for data exchange "on the fly" for officially supported operating systems.

Unfortunately VMWare doesn't officially support Fedora Core 5 and googling the Internet with inquires like "Fedora Core 5 under Windows XP," or "Fedora Core 5 under VMWare" won't produce an easy answer on how to make the exchange. This article will introduce a simple technology that will let you to do it.

The technology won't require any changes to a single configuration file. All you'll have to do is install Fedora Core 5 under VMWare 5 with certain options and use free Open Source software.

Fedora Core 5 Installation under VMWare 5
First download the .iso images from the Fedora Core 5 CDs or DVDs from the Fedora download site or order CDs or DVDs from Fedora distributors. Although it's possible to install Fedora Core 5 under VMWare 5 from the .iso images, you may want to burn CDs or DVD anyway just to have a backup.

The following options have to be chosen from your VMWare 5 installation wizard settings for the data exchange:

  • Linux - other Linux 2.6 kernel
  • Use Network Address Translation (NAT)
  • The USB controller should be present
The end result is shown in Figure 1.

You may want to read your VMWare 5 manual for further configuration details or for how to make the choices described. You may also want to select 20GB-30GB of virtual HDD space and as much RAM as you can (700 MB or so) for the virtual machine (VM) where you'll install Fedora Core 5.

After a VM is created, you can install Fedora Core 5 under VMWare 5. The Fedora installation is described in the Fedora FAQ and there are several tutorials available on the Internet.

Now you have a couple of options on how to exchange data between Fedora Core 5 and XP "on the fly".

Using Apache FTP Server for Data Exchange "On the Fly"
The idea is to use the FTP server on your XP host running simultaneously with Fedora Core 5.

Several FTP servers are distributed for free, however the simplest and most reliable one for our purposes is the Apache FTP server. The stable version is currently 2.0, but you may want to visit Apache site for the latest updates. The good news is that installation per se isn't needed. The only configuration you'll need to do to run the server is to set up JAVA_HOME in your environmental variables. You'll also need a JDK. If you're a Java developer you already have that. If you are new to Java here are easy steps to install.

  1. Download and install the current JDK (probably jdk1.5.0_06) from http://java.sun.com. It's easy and the installation process is well documented.
  2. After that go to Start | Control Panel | Performance and Maintenance | System | Advanced | Environmental Variables | System Variables | New. Put JAVA_HOME under Variable Name and path to your JDK (for example, C:\Program Files\Java\jdk1.5.0_06) under Variable Value.
As soon as you have the JDK and JAVA_HOME set up, you can download the ftpserver-dev.zip file with the Apache FTP server and unzip it in some folder (say C:\Apache FTP Server). The important thing is that you don't want this folder to be "too nested." C:\My installations\Apache installations\Apache Servers\Apache FTP doesn't work. We'll assume you unzipped the file under C:\Apache FTP Server.

After unzipping a new folder ftpserver-dev a set of subfolders will be created. In our example the path is C:\Apache FTP Server\ ftpserver-dev. Go to C:\Apache FTP Server\ ftpserver-dev\bin and double click ftpd_ui.bat. Wait until the Swing window appears and click Start. Now click users. Give the anonymous user the ability to read and write under C:\Apache FTP Server\ftpserver-dev\res\home (it will be in shared folder on the Windows XP side).

That's it! The Windows XP side is ready to exchange files with Fedora Core 5 on-the-fly.

The only thing you have to do now with XP is to figure out what the IP address of your host is from a VMWare 5 prospective. To do this, go to the command prompt and issue an ipconfig command. Locate the line "Ethernet adapter VMware Network Adapter VMnet8:"

You'll need the first IP after this. We'll assume you use 192.168.227.1. You have to use your own, which you can get using ipconfig as we said. Please note that the said IP address will remain the same while running VMWare so there's no need to repeat the ipconfig.

Preparing Fedora Core 5 for Data Exchange "On the Fly"
A simple ftp command in the terminal window won't work (try it to see for yourself). Here are two ways to get around that obstacle:

  1. From the Gnome 2.14.0 main menu (we assume you're running a Gnome session) select Places | Connect to Server. In the window select service type - Pubic FTP server. Then type IP address you got in the previous section (we're using 192.168.227.1). If you want, you can call this connection anonymous but it's optional. Click the connect button. The connection will be mounted like a typical folder with all the file operations available (copying to and from the folder, deleting, renaming, etc.). Note that by default this folder will be automatically mounted each time you start Fedora Core 5 assuming that you start the Apache FTP server on XP side before running VMWare 5. So you need to describe these activities only once.
  2. From the Gnome main menu select Applications | Internet | Konqueror.
In the Konqueror location type ftp://anonymous@192.168.227.1. Type anonymous in the user name of the dialog. You'll be connected to the folder. All the usual Konqueror operations open to files will be available. You may want to create a bookmark to the FTP server in Konqueror.

Options 1 and 2 are available simultaneously and you can use both of them at your convenience.

To sum up, although Fedora Core 5 isn't officially supported by VMWare due to the steps outlines we got the same functionality for a shared folder as for officially supported systems. And only free and Open Source products were used besides VMWare 5 and no configuration files were changed.

What If You Want To Exchange Big Files This exchange won't be done "on the fly" by using a shared folder, but you can do it without rebooting any operating systems.

If you invest under $100 in an external USB 2 HDD (say 40GB-60GB) and you have a free USB2 port available (or buy a USB2 hub), you'll be able to exchange really big files between Fedora Core 5 and XP. Suppose you use, say, a 60GB USB2 external HDD for data exchange together with another external 200 GB USB2 HDD in which VM with Fedora Core 5 resides. Here's how to do it.

Plug your 60 GB USB2 external HDD into a free USB2 port. For it to be captured by XP click on the Safely Remove Hardware icon. After you see the message "Safe to remove hardware," unplug it, make VM capture the cursor, and then plug the device in again. Now Fedora Core 5 will capture it and you'll see the icon that represents the device under the computer folder. To let Windows capture it again one has to unmount the folder that represents the device and unplug it. Then you have to release the cursor from VM to XP and then plug the device in again. When the device is captured either by Fedora Core 5 or by Windows you can work with it as you usually do for these operating systems (copy files to and from device, delete, and rename files, etc.).

Resources


About Anatoly Krivitsky
Anatoly Krivitsky has a PhD in computer science and has more than 24 years of working experience in the IT field. He's the author of 20 published papers and books and five patents. For more information, please visit http://www.myjavaserver.com/~akrivitsky/index.html.

YOUR FEEDBACK
.NET News Desk wrote: For one thing XP is extremely widespread and your clients and/or users probably have it installed on theirs PCs. In fact, most PCs come with XP pre-installed. And makers of peripheral devices and high-speed Internet providers adapt their products and services to work with XP. In most cases it's enough to simply plug a peripheral into an XP computer or to subscribe to a high-speed Internet service to start use it immediately.
LATEST LINUX STORIES
Hans Reiser’s children Rory, 8, and Niorline, 7, represented pro bono by Morrison and Foerster, the big-time San Francisco law firm, have sued their father for the wrongful death of their mother, seeking unspecified damages for being deprived of her “love, support, companionship, c...
Two years ago this weekend Linux programmer Hans Reiser murdered his estranged wife. Friday he was sentenced to 15 years to life as part of a deal that reduced his first-degree murder conviction and its mandatory 25 years-to-life sentence to second-degree murder in exchange for taking ...
Two of the biggest launches in Rich Internet Application history took place in 2007/2008 when Adobe launched AIR 1.0 in February '08 and Microsoft launched Silverlight (September '07). At the 6th International AJAXWorld RIA Conference & Expo in October SYS-CON Events is delighted to be...
Red Hat CTO Brian Stevens, Citrix CTO Simon Crosby, Egenera CTO Pete Manca, Allen Stewart, Group Manager, Windows Virtualization at Microsoft, and Brian Duckering, Sr. Director of Products and Alliances at Symantec were the top industry executives who joined Jeremy Geelan in the 4th Fl...
Microsoft is going to pump up to $100 million more into Novell for additional certificates that it will sell or give to customers to redeem for SUSE Linux support. Novell should get the money on November 1 right before the second anniversary of the widely loathed Microsoft-Novell pact ...
IBM introduced a series of new products, services and initiatives that further expand IBM's commitment to Linux and open source by enabling the next generation of Linux. As the company marks ten years of support for Linux, IBM announced a number of cross-company initiatives to driv...
SUBSCRIBE TO THE WORLD'S MOST POWERFUL NEWSLETTERS
SUBSCRIBE TO OUR RSS FEEDS & GET YOUR SYS-CON NEWS LIVE!
Click to Add our RSS Feeds to the Service of Your Choice:
Google Reader or Homepage Add to My Yahoo! Subscribe with Bloglines Subscribe in NewsGator Online
myFeedster Add to My AOL Subscribe in Rojo Add 'Hugg' to Newsburst from CNET News.com Kinja Digest View Additional SYS-CON Feeds
Publish Your Article! Please send it to editorial(at)sys-con.com!

Advertise on this site! Contact advertising(at)sys-con.com! 201 802-3021


SYS-CON FEATURED WHITEPAPERS

ADS BY GOOGLE