Login  •  Register


The time is now: Sat Nov 18, 2017 4:25 am

Emaculation wiki  •  Delete all board cookies



Post new topic  Reply to topic Page 1 of 1 [ 6 posts ]
Print view Previous topic  |  Next topic
Author Message
PostPosted: Sun Jul 23, 2017 8:00 am 
Offline
Space Cadet

Joined: Fri Jul 21, 2017 3:27 am
Posts: 9
Is there a way that I can call SheepShaver using a preferences file that is not the ~/.sheepshaver_prefs file?
This will help me a lot to have more than one instance of SheepSahver running at the same time.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sun Jul 23, 2017 8:21 am 
Offline
Expert User
User avatar

Joined: Thu Feb 09, 2006 10:24 pm
Posts: 4828
Location: Amsterdam, Netherlands
One can use .sheepvm virtual machines to have different setups, each with its own prefs file, see the the description in the setup guide:
http://www.emaculation.com/doku.php/she ... l_machines

To run the VMs at the same time, you will need multiple instances of SheepShaver application and launcht the VMs by dragging them each onto a different instance of SheepShaver.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Mon Jul 24, 2017 10:03 pm 
Offline
Forum All-Star
User avatar

Joined: Fri Nov 27, 2009 5:11 am
Posts: 1835
Instead of having multiple copies of SheepShaver, you can also write a script that calls
Code:
open -n MySheepVM.sheepvm
where -n signals it to launch in a new instance of the application instead of an already running instance.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Tue Jul 25, 2017 12:30 pm 
Offline
Space Cadet

Joined: Fri Jul 21, 2017 3:27 am
Posts: 9
Almost...

In each folder for each virtual machine, I have a .sheepshaver_prefs. The launch should be
Code:
cd "$( dirname "${BASH_SOURCE[0]}" )" && HOME="$(pwd)" open -n ../SheepShaver.app

The use of HOME is to force SheepShaver to use the preferences file from the VM folder.
This script also ensure that SheeepShaver is called from within the folder where the start scrip is located.
I just tested and works. I can have multiple SheepShaver VMs running at the same time.
Contents of each .sheepvm folder is as follows
Code:
-rw-r--r--+  1 afberendsen  staff        8192 26 Jul 00:19 .sheepshaver_nvram
-rw-r--r--+  1 afberendsen  staff         754 26 Jul 00:21 .sheepshaver_prefs
-rw-r--r--+  1 afberendsen  staff         667 23 Jul 23:59 .sheepshaver_prefs.backup
lrwxr-xr-x   1 afberendsen  staff          26 22 Jul 14:04 Mac OS ROM -> ../mac_oldworld_rom4mb.rom
-rw-r--r--@  1 afberendsen  staff  1073741824 26 Jul 00:22 MacOS76.dsk
-rwxr-xr-x+  1 afberendsen  staff          51 26 Jul 00:21 start

File reference inside the _prefs file should use absolute path references.
Image


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Tue Jul 25, 2017 7:45 pm 
Offline
Expert User
User avatar

Joined: Thu Feb 09, 2006 10:24 pm
Posts: 4828
Location: Amsterdam, Netherlands
Follow the setup of the VMs exactly as described in the setup guide.

You start with each folder containing:
An empty prefs file that should be named "prefs", not .sheepshaver_prefs.
A rom file Mac OS ROM

The startup volume can be in the folder.
A keycodes file can be in the folder if needed.

Then you add the extension .sheepvm to the folder name. The folder will turn into a package and will get the SheepShaver icon. The name for a VM with System 7.5.3 setup could thus be "System-7.5.3.sheepvm"

When you double-click that VM, SheepShaver will launch and you can set up the VM as you would a regular setup, using the files inside the VM package. The settings will be written to the "prefs" file inside the VM. Also a "nvram" file will be created inside the VM.

If you have multiple VMs, you can use the script to run them simultaneously.

To open the "System-7.5.3.sheepvm" VM, you use the command:
open -n System-7.5.3.sheepvm
SheepShaver will use the prefs file inside that VM.

Edit: You do not open the VMs simultaneously, you open them separately but you can keep them running at the same time.
Edit: To use the VMs, you do not launch SheepShaver itself, but you start the VMs.


Last edited by Ronald P. Regensburg on Tue Jul 25, 2017 8:20 pm, edited 3 times in total.
 


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Tue Jul 25, 2017 7:51 pm 
Offline
Space Cadet

Joined: Fri Jul 21, 2017 3:27 am
Posts: 9
I will try again following the instructions.
Initially I had an outcome that my preference files were overwritten.


Top
 Profile  
Reply with quote Post a reply  
Display posts from previous:  Sort by  
Post new topic  Reply to topic Page 1 of 1 [ 6 posts ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
 

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group