LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 07-06-2015, 07:22 PM   #1
kilowatt46
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.

Thanks!
 
Old 07-06-2015, 08:03 PM   #2
paladin.michael
Member
 
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, 08:05 PM   #3
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
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, 08:09 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,976

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
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 2X.com 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-06-2015, 11:52 PM   #5
JimKyle
Member
 
Registered: Dec 2001
Location: Oklahoma City, OK, USA
Distribution: Xubuntu 16.04 LTS
Posts: 214
Blog Entries: 1

Rep: Reputation: 39
Quote:
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!
 
  


Reply



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
[SOLVED] Problem getting winexe to run commands from Ubuntu 14.04 to Win 2008 gkasica Linux - Software 4 02-26-2015 08:52 AM
[SOLVED] c++ program behavior diffrent on win/ubuntu Domy Programming 12 06-16-2011 03:59 AM
How to run my C program from anywhere within the System (Ubuntu 10.10)? anis_huq Programming 8 05-02-2011 02:17 AM
how to run vb program on ubuntu ? shridhar005 Linux - Software 3 04-24-2009 03: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 11:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 04:47 AM.

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