Page 1 of 2

Does SheepShaver not work on Linux ?!

Posted: Fri May 01, 2020 12:38 pm
by Sebiohazard
Good morning all !

I have a problem with the Linux version of SheepShaver... I downloaded several versions here but none of them work... maybe I am missing something? The only version that installs is this one but after that I don't know how to launch SheepSahver...

Windows versions work perfectly... can someone help me with Linux?

Thanks best regards !

Re: Does SheepShaver not work on Linux ?!

Posted: Fri May 01, 2020 1:12 pm
by Ronald P. Regensburg
Did you try downloads referenced in this forum topic?
https://www.emaculation.com/forum/viewt ... 5420#35420

Re: Does SheepShaver not work on Linux ?!

Posted: Fri May 01, 2020 1:47 pm
by Sebiohazard
Hello thank you for your interest :)

Yes I have tried all the versions, none of them work except the one I mentioned in my first message, but which I cannot manage to launch...

I'm on Linux Mint 19.3 Tricia Cinnamon x64

Greetings !

Re: Does SheepShaver not work on Linux ?!

Posted: Sat May 02, 2020 9:09 am
by Sebiohazard
No one to help me ?

Why the Windows version of Sheepshaver does not work with Wine ?

Greetings !

Re: Does SheepShaver not work on Linux ?!

Posted: Sat May 02, 2020 9:22 am
by Cat_7
Except for the incidental old builds linked on the forum, we do not provide Linux builds. There are too many Linux distros to support.

On Linux your best bet is to compile the program yourself.

Best,
Cat_7

Re: Does SheepShaver not work on Linux ?!

Posted: Sat May 02, 2020 9:34 am
by Sebiohazard
Cat_7 wrote:On Linux your best bet is to compile the program yourself.
OK thanks & can you tell me how to compile ?

Re: Does SheepShaver not work on Linux ?!

Posted: Sat May 02, 2020 12:43 pm
by Ronald P. Regensburg
Kanjitalk755 source and build instructions here: https://github.com/kanjitalk755/macemu

Re: Does SheepShaver not work on Linux ?!

Posted: Sat May 02, 2020 5:20 pm
by Sebiohazard
Hello thank you for your help !

I downloaded the macemu-master.zip file & followed the procedure:

Code: Select all

cd macemu/SheepShaver/src/Unix
./autogen.sh
make
I have this error message:
You must have autoconf installed to compile SheepShaver.
Download the appropriate package for your distribution,
or get the source tarball at ftp://ftp.gnu.org/pub/gnu/

**Error**: Missing aclocal. The version of automake
installed doesn't appear recent enough.
Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz
(or a newer version if it is available)
I don't know what to do anymore I am depressed...

Re: Does SheepShaver not work on Linux ?!

Posted: Sat May 02, 2020 11:12 pm
by emendelson
Use your distro's package manager and install autoconf, automake, and libtool. Then try again.

Re: Does SheepShaver not work on Linux ?!

Posted: Sun May 03, 2020 7:04 am
by Ronald P. Regensburg
And install sdl2 (version 2.0.10 or later).

Re: Does SheepShaver not work on Linux ?!

Posted: Sun May 03, 2020 11:44 am
by Sebiohazard
Use your distro's package manager and install autoconf, automake, and libtool. Then try again.
Ok thanks i will try :)
And install sdl2 (version 2.0.10 or later).
& how do we do it under Linux ? Is it in the catalog ? If yes under what name ?

Greetings !

Re: Does SheepShaver not work on Linux ?!

Posted: Sun May 03, 2020 12:34 pm
by Ronald P. Regensburg
Sebiohazard wrote:
And install sdl2 (version 2.0.10 or later).
& how do we do it under Linux ? Is it in the catalog ? If yes under what name ?!
On the SDL2 page https://www.libsdl.org/download-2.0.php
it says: "Linux: Please contact your distribution maintainer for updates."

Re: Does SheepShaver not work on Linux ?!

Posted: Sun May 03, 2020 9:43 pm
by Sebiohazard
Good evening everyone !

I installed autoconf automake & libtool. I reinstalled this .deb file because it is the only one that installs without error.

After installation I type "Sheepshaver" in the search bar of Linux Mint but Sheepshaver does not appear ?!

I also tried the other method on the official website with these commands after downloading this file:

Code: Select all

cd macemu/SheepShaver/src/Unix
./autogen.sh
make
Nothing works... I do not understand where is the executable ? Why is it so complicated ? Can you guide me step by step please ?

Greetings !

Re: Does SheepShaver not work on Linux ?!

Posted: Mon May 04, 2020 2:42 am
by emendelson
You may want to study Linux basics before proceeding, but these are steps will built and start SheepShaver under Linux Mint. They work, though possibly some are unnecessary. I just tried them on a fresh copy of Linux Mint.

From a terminal, enter these commands:

Code: Select all

sudo apt update
sudo apt install build-essential git automake 
sudo apt install libsdl2-dev
sudo apt install libgtk2.0-dev

cd ~/Downloads
git clone https://github.com/kanjitalk755/macemu.git

cd macemu/SheepShaver
make links
cd src/Unix
./autogen.sh
make -j3
Then, before running SheepShaver, find out (by searching the web) how to enable the root account and how to access it from a terminal. Then, as root, do what this site's guide tells you to do:

Code: Select all

echo 0 > /proc/sys/vm/mmap_min_addr
I don't think you need to edit sysctl.conf but it can't hurt.

Then, back at your user account prompt, in the same folder where you were when you ran make, enter:

Code: Select all

./SheepShaver
Notice that Linux is case-sensitive, so you need to use ./SheepShaver (not "Sheepshaver). Of course you can move SheepShaver out of the src/Unix folder into some other folder that can create for it.

Once the SheepShaver GUI starts up, you'll have to enter a path for the ROM file and the disks, following the setup guide on this site. Please follow the setup guide EXACTLY, and it will tell you what you need to do.

EDIT: Having done this, and having seen SheepShaver start up to Mac OS 9.0.4, and having accessed the Unix folder, I've deleted my Mint setup, so I won't be able to provide any more help, but if you follow these steps, you will have SheepShaver running. You will probably get much better results on a Windows or a Mac, with much less hassle.

Re: Does SheepShaver not work on Linux ?!

Posted: Mon May 04, 2020 10:31 pm
by Sebiohazard
@emendelson:

Hello & thank you for your precious help :) I followed all the steps:

Code: Select all

sudo apt update
sudo apt install build-essential git automake
sudo apt install libsdl2-dev
sudo apt install libgtk2.0-dev

cd ~/Downloads
git clone https://github.com/kanjitalk755/macemu.git

cd macemu/SheepShaver
make links
cd src/Unix
./autogen.sh
make -j3
Everything went smoothly then I launched Sheephaver with the command:

Code: Select all

./SheepShaver
Sheepshaver launches (GUI) I configure the path of the ROM & the path of my HDD + ISO I click on start & nothing... Sheepshaver disappears...
Then, before running SheepShaver, find out (by searching the web) how to enable the root account and how to access it from a terminal. Then, as root, do what this site's guide tells you to do:

Code:
echo 0 > /proc/sys/vm/mmap_min_addr
I did not understand what to do at this time ? Is that why Sheepshaver doesn't start ?

Greetingd !

Re: Does SheepShaver not work on Linux ?!

Posted: Mon May 04, 2020 11:15 pm
by emendelson
Search the web (this is a SheepShaver forum, not a Linux forum) to find out how to enable the root account in Linux, and then follow the instruction that you did not follow. SheepShaver will not start until you find out for yourself how to enable the root account and enter the command (the one that begins "echo") as root.

The rest is very simple if you perform a Google search for the relevant information. You can easily finish the job on your own. I've told you everything you need to know to finish the job. Good luck!

Re: Does SheepShaver not work on Linux ?!

Posted: Tue May 05, 2020 12:41 pm
by emendelson
And I see from our friend vasi's repo page that this command might be an alternative to enabling root, but I haven't tried it because I've deleted my Mint setup:

Code: Select all

sudo sysctl vm.mmap_min_addr=0

Re: Does SheepShaver not work on Linux ?!

Posted: Tue May 05, 2020 2:39 pm
by adespoton
Mint is Debian based, so sudo should work just fine.

Re: Does SheepShaver not work on Linux ?!

Posted: Tue May 05, 2020 4:36 pm
by Sebiohazard
@emendelson

Hello I went here & I found these commands:

Code: Select all

setsebool -P mmap_low_allowed 1
ausearch -c 'SheepShaver' –raw | audit2allow -M my-SheepShaver
semodule -X 300 -i my-SheepShaver.pp
I ran them with "sudo" but that doesn't change anything... Sheepshaver doesn't start... it's very complicated on Linux why ? On Windows it's a breeze :)

Tonight I will try this new order thank you:

Code: Select all

sudo sysctl vm.mmap_min_addr=0
Greetings !

Re: Does SheepShaver not work on Linux ?!

Posted: Tue May 05, 2020 4:43 pm
by emendelson
The settings that you found are for SELinux (Security-Enhanced Linux). You are not using SELinux, so those commands will not have any effect.

Re: Does SheepShaver not work on Linux ?!

Posted: Tue May 05, 2020 4:48 pm
by Sebiohazard
Ahhhhhhhhhhhh sorry I'm completely new to Linux... I'm using Linux Mint 19.3 is this command going to work ?

Code: Select all

sudo sysctl vm.mmap_min_addr=0
Greeteings !

Re: Does SheepShaver not work on Linux ?!

Posted: Tue May 05, 2020 4:56 pm
by emendelson
Please re-read the message in which I offered that command.

Re: Does SheepShaver not work on Linux ?!

Posted: Tue May 05, 2020 9:34 pm
by Sebiohazard
Yes !!!

Sheepshaver works with the command:

Code: Select all

sudo sysctl vm.mmap_min_addr=0
It's very slow compared to the Windows version...

Thanks a lot for your help :)

Greeting !

Re: Does SheepShaver not work on Linux ?!

Posted: Wed May 06, 2020 12:31 pm
by Sebiohazard
Hello !

I downloaded this version of SheepShaver (2.4) which now works under Mint & is faster than the one compiled with the help of emendelson (version 2.5) strange ?

Greetings !

Re: Does SheepShaver not work on Linux ?!

Posted: Wed May 06, 2020 1:58 pm
by Ronald P. Regensburg
In your first post you wrote:
I downloaded several versions here but none of them work...
Apparently you missed this one. Good to hear that this build works for you.