Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Ubuntu This forum is for the discussion of Ubuntu Linux.


  Search this Thread
Old 07-06-2015, 08:22 PM   #1
LQ Newbie
Registered: Jan 2015
Location: Monson, MA
Distribution: 14.04 LTS
Posts: 4

Rep: Reputation: 0
Wink Is there a way to run the same program (not a copy of it) in both Ubuntu and Win XP?

I need to use the same program in both Ubuntu (host) and Win XP (guest). I am using Oracle VirtualBox for the virtual machine. I can run each program independently in bot OSs. However, changes made in them when using them is not seen in the other one. I need a single data file common to both of them. The program is Mozilla's SeaMonkey. The program shouldn't matter though. If there is a solution, it should work for most any program I choose.

Old 07-06-2015, 09:03 PM   #2
Registered: Jun 2011
Location: Danbury, CT, USA
Distribution: Kubuntu, Slackware, Debian, FreePBX
Posts: 75

Rep: Reputation: 23
Is there a way to run the same program (not a copy of it) in both Ubuntu and Win XP?

you could manage this with the shared folders feature, however, some applications may cause corruption in such shared files if not programmed to treat them properly ( or the files aren't meant to be accessed by more than one instance at a time). I would recommend backups prior to testing it out.
Old 07-06-2015, 09:05 PM   #3
Senior Member
Registered: Nov 2013
Location: Tokyo
Distribution: Redhat/Centos, Ubuntu, Raspbian, Fedora
Posts: 2,529

Rep: Reputation: 622Reputation: 622Reputation: 622Reputation: 622Reputation: 622Reputation: 622
There is a mechanism in Virtualbox that allows you to share a folder on the host with the guest. I see it documented in section 4.3 of my VirtualBox help file.

Or do it manually - use Samba to create a shared drive on your Linux host, and within your Windows XP, attach that shared drive.

Put your program into the shared folder and run it from either the host or the guest.
Old 07-06-2015, 09:09 PM   #4
Registered: Mar 2008
Posts: 18,704

Rep: Reputation: 2796Reputation: 2796Reputation: 2796Reputation: 2796Reputation: 2796Reputation: 2796Reputation: 2796Reputation: 2796Reputation: 2796Reputation: 2796Reputation: 2796
Hello and welcome to LQ.

Most windows programs need to be installed in terminal server mode. You generally need a windows server OS for that and legal copies for it. That doesn't seem to be what you are saying but if it is then you might use server for linux.

What you seem to say is that you want to open a file in two programs. Generally you can't easily do that and save correctly. It may work however. Try sharing the folder where this data is to the VM and try to access it. Be sure to backup before you attempt.
Old 07-07-2015, 12:52 AM   #5
Registered: Dec 2001
Location: Oklahoma City, OK, USA
Distribution: Xubuntu 16.04 LTS
Posts: 214
Blog Entries: 1

Rep: Reputation: 39
Originally Posted by kilowatt46 View Post
I need a single data file common to both of them. The program is Mozilla's SeaMonkey.
As others have said, VBox has a "shared folders" feature that lets you access a folder (and any subfolders it may contain) from both the host and the guest. I use this feature daily, to pass information between the host and the guest, but there are a few things to watch out for. First, remember that Linux and Windows use different "end of line" conventions. Linux uses a linefeed character only, while Windows uses a CR/LF pair. Thus data written by one system MAY require conversion to be used in the other. Also, both systems cache data in buffers before writing it to disk, and if both systems are using a shared file at the same time, corruption is quite likely to happen. The only safe way to deal with this is to make sure that the file is closed in one system before writing to it from the other. That's no problem in many situations, but something to watch out for.

Hope this helps!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem getting winexe to run commands from Ubuntu 14.04 to Win 2008 gkasica Linux - Software 4 02-26-2015 09:52 AM
[SOLVED] c++ program behavior diffrent on win/ubuntu Domy Programming 12 06-16-2011 04:59 AM
How to run my C program from anywhere within the System (Ubuntu 10.10)? anis_huq Programming 8 05-02-2011 03:17 AM
how to run vb program on ubuntu ? shridhar005 Linux - Software 3 04-24-2009 04:39 PM
NTLDR missing during grub run when ubuntu 8.4 is in disk0 and win 2003 is in disk1 sksundaram Linux - Newbie 4 10-29-2008 12:50 PM > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 03:24 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration