NeXT Computers Forum Index NeXT Computers
www.NeXTComputers.org
 
Log in to check your private messagesLog in to check your private messages

Log inLog in  RegisterRegister


Profile  Search  Memberlist  FAQ  Usergroups
What Needs to be done for a NeXT Emulator
Goto page Previous  1, 2, 3 ... , 77, 78, 79  Next
 
Post new topic   Reply to topic    NeXT Computers Forum Index -> Emulation / Virtualization
View previous topic :: View next topic  
Author Message
mmu_man



Joined: 23 Oct 2016
Posts: 8

PostPosted: Wed Nov 22, 2017 2:36 am    Post subject: Reply with quote

Oh, I haven't sent you the Haiku patches yet...
Back to top
View user's profile Send private message
mmu_man



Joined: 23 Oct 2016
Posts: 8

PostPosted: Wed Nov 22, 2017 3:56 am    Post subject: Reply with quote

For what it's worth, my current patchset for Haiku is here.
Back to top
View user's profile Send private message
neozeed



Joined: 15 Apr 2006
Posts: 691
Location: Hong Kong

PostPosted: Wed Nov 22, 2017 4:03 am    Post subject: Reply with quote

mmu_man wrote:
For what it's worth, my current patchset for Haiku is here.

crazy minimal changes.

it speaks to good code!
_________________
# include <wittycomment.h>
Back to top
View user's profile Send private message Visit poster's website
mmu_man



Joined: 23 Oct 2016
Posts: 8

PostPosted: Wed Nov 22, 2017 5:32 am    Post subject: Reply with quote

There are still some policy warning (like shared/icons as hardcoded path) but it doesn't prevent making a package.
Back to top
View user's profile Send private message
andreas_g



Joined: 30 Jan 2009
Posts: 422
Location: Austria

PostPosted: Sat Nov 25, 2017 1:32 am    Post subject: Reply with quote

Thank you for the patch! I added it to the repository: https://sourceforge.net/p/previous/code/845/

If you find out how to solve the remaining warnings, I'll gladly fix them too. Great, that Previous works on Haiku.
Back to top
View user's profile Send private message Send e-mail
mmu_man



Joined: 23 Oct 2016
Posts: 8

PostPosted: Sun Nov 26, 2017 5:34 pm    Post subject: Reply with quote

Thanks!
I didn't actually try it yet in Haiku, but it builds at least.

Btw, anyone wants to talk about Previous at the Retro devroom at FOSDEM ?
Back to top
View user's profile Send private message
Rob Blessin Black Hole
Site Admin


Joined: 05 Sep 2006
Posts: 599
Location: Ft. Collins, Colorado

PostPosted: Wed Nov 29, 2017 2:07 pm    Post subject: Reply with quote

Hello NeXT Community:

# Has anyone had success with setting up an NFS shared folder on High Sierra 10.13.1? The answer now is yes success! I was able to do this !

+ Previous 1.8 is working on High Sierra !

# I'm hoping someone will help me expand this FAQ for those of us less schooled at networking, I think I am very close to having it working

>>>> I'm answering my own questions as now I'm a networking GURU lol
a few weeks of flogging and now I make it look easy.


# = denotes where I am stuck in the process
+ = I think I'm set up correctly

NOTE: This procedure has been tested using NeXTstep 1.0a and 3.3
as client and Mac OS X v10.9 as server.



For this procedure to work networking must be setup first
(see networking.howto.txt for details).
+ I'm set up on 3.3 and networking is working
>>>>> This was the easy part!

@@@@@@@@@@@@@@@@@
X.X.X.X = Your host system's IP-Address (e.g. 192.168.0.1)
serverhostname = Your host system's hostname
clienthostname = Your NeXTstep hostname (see networking.howto)



To edit files inside /etc you need super user privileges.

# is this referring to MAC OSX ?

>>>> It was a general statement so on the Mac side , I had a hokie name for my server Rob's Mac Mini , if you have some thing similar go into preferences , sharing folder , then choose edit and rename your Mac , no spaces or punctuation , this simple oversite cost e a week of frustration , first figuring out spaces are replaced with dashes and the an ' in Rob's Mac Mini will not match up on the NeXTside

I chose robsmacmini and activated a to use it as a global name with an extra layer of protection robblessin as user

# is the above supposed to be added some where in the /etc directory on a specific file in MAC OSX ??? NO

# If yes which file needs to be edited , is it /etc/host ? Not needed on the MAC side

# If yes the /etc files that need to be edited =
?
?
?
# Is the editing done in the terminal application ? Yes

# Is the editor of choice we are using VI / VIM as I'm now learning this
http://www.yolinux.com/TUTORIALS/LinuxTutorialAdvanced_vi.html ?

>>>> My guess was correct here vi works great


# I'm willing to learn but if someone has the quick howto that would be great ...



@@@@@@@@@@@@@@@@

Howto: Setup NFS file sharing under Mac OS X:

# Are any of the above steps needed in MAC OSX before proceeding below ?

>>> Yes read above

# Is it OK that I have already set up everything in NeXTSTEP 3.3 first and doing everything on the MAC OSX side second?

>>> Yes

@@@@@@@@@@@@@@@@
1. Create the folder you want to share and change permissions using
this command from the command line:
chmod 777 /Path/To/Shared/Folder

+ Step one below was easy
A) I created a simply MACOSX folder called anext68k
B) opened a terminal window , typed in chmod 777
C) and drag and dropped my anext68k folder into the terminal window
D) and hit return , it seemed to like it.

>>>> yes this worked!
@@@@@@@@@@@@@@@@@@@


2. Add the folder you want to share to /etc/exports by adding this
line to the end of the file:
/Path/To/Shared/Folder -maproot=nobody

# This is where I'm stuck , in the terminal app ,
A) cd /etc changes the directory (return)
B) ls lists the files and in High Sierra there is no exports file or folder listed , is it a file or folder?
>>>> Yes it is a file!

C) It says add this to the end of the file , which I would assume exports is a file?
>>>> Yes it is a file

D) Hours later lol , I learned to create a file in terminal , the magic commend is touch but I'm not sure if it is the right kind of file .

>>>> Yes if you do not have a /etc/exports file then presto:

E) so in terminal I typed in touch exports now when , you may have to use sudo touch exports , sudo gets you to root and it will confirm by entering the root password

>>> Yes this worked!

F) Now when I ls there is an /etc/exports file

>>>> Yes this worked

G) After more hours I found out about VI and VIM
H) It looks like I can now edit the exports file to add in the line of code , needed am I on track here ? Can someone please explain the easy way to do this...

>>>>> To edit your newly created /etc/exports file in a terminal window
type vi /etc/exports . the key commands here are i = insert so you can edit it , enter the path name to your file, it did not seem to matter where in the file , esc key exits edit mode , ZZ saves your edited file saving you a ton of time lol trust me unless you new this already.

@@@@@@@@@@@@


3. Load the edited file using these commands from the command line:
sudo nfsd checkexports
sudo nfsd enable
sudo nfsd stop
sudo nfsd -N

# I tried the following commands and it hangs on the last one sudo nfsd -N , which I assume is because the previous step is being done incorrectly .

>>>>>> If it does hang something in your /etc/exports file is wrong redo it make sure there is a /Users/robblessin/anext68k worked for me


@@@@@@@@@@@@@@




4. You can confirm that the operation was successful using this
command:
showmount -e
>>>>> Should return something like this:
robsmacmini:~ robblessin$ showmount -e
Exports list on localhost:
/Users/robblessin/anext68k Everyone

If it does , I did a snoopy dance.

# Running this command showmount -e yields this Exports list on localhost:
so I would assume their would be more

>>> Yes there was above!

@@@@@@@@@@



NOTE: Step 3 needs to be repeated after every reboot of the host
system because nfsd -N is not permanent.

# rebooting the host means the MACOSX system and not previous correct?

>>>> yes when you reboot the Mac you have to remount the file.

############ I have everything below set up correctly !

>>>>> I tested omniweb browser to make sure I had done this correctly in Previous and was indeed surfing the net For this procedure to work networking must be setup first
(see networking.howto.txt for details).
+++++++

Howto: Setup NFS file sharing under NeXTstep 3.3:

1. Edit the file "/etc/hosts" by adding your host system to
the last line of the file (host system IP-Address followed
by hostname of file server):
10.0.2.15 clienthostname
X.X.X.X serverhostname

>>>>>

10.0.2.15 next68
192.168.1.2 robsmacmini


2. Edit the file "/etc/fstab" by adding the shared filesystem.
Add this line at the end of the file:
serverhostname:/Path/To/Shared/Folder /Net nfs rw,net 0 0

robsmacmini:/Users/robblessin/anext68k /Net nfs rw.net 0 0


3. Load the edited files using these commands from the command
line:
su
niload hosts / < /etc/hosts
su
niload fstab / < /etc/fstab

>>>>> These should go with out issues, remember to su to root first on each command or it won't work!!!!

4. Reboot. The shared folder should be accessible from /Net
directory. You can confirm that the operation was successful
using this command:
/usr/etc/showmount -e serverhostname

remember to reboot then run this command !

/usr/etc/showmount -e robsmacmini


Howto: Open the above files using root privileges (NeXTstep 3.3):
a Open the /etc directory with this command in Terminal:
"open /etc"
b Select the file to open and from Workspace select
Services > Open Sesame > Open As Root.


Congratulations you can now create a text document and drop it into your shared folder , to change permissions on it on previous go to next tools inspector and highlight the file so read write end execute are all activated . so you can now pass files back and forth . I'm stoked .

NeXT up is trying to run apps , we shall see .....
_________________
Rob Blessin President computerpowwow ebay sales@blackholeinc.com http://www.blackholeinc.com
303-741-9998 Serving the NeXT Community since 2/9/93
Back to top
View user's profile Send private message Send e-mail Visit poster's website
brams



Joined: 27 Dec 2005
Posts: 511
Location: Blackburn, England

PostPosted: Sat Dec 02, 2017 9:24 am    Post subject: Previous network configuration Reply with quote

Hi All,

OK wow Previous is amazing, I've just tried it for the first time, very well done to all concerned!.

Using Previous 1.8 (not tried any older versions) I cannot ping anything outside of Previous, loopback is OK (127.0.0.1), gateway is OK (10.0.2.2). DNS is down (10.0.2.3). I have been trying all day with NS 3.3 & OS 4.2 all y2k patched etc. I have tried the same disk image on macOS 10.13.1 & Arch Linux x64 both with the same result. Please can somebody with a working network configuration check my settings and let me know if they can see anything wrong?.

Thanks
brams






_________________
NeXTcube Turbo Dimension, NeXTstation Turbo Color, MP2100, Q840av, Q650, WS G4 500, Pismo G4 550, SGI Octane R12K MXE, BeBox 133.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
neozeed



Joined: 15 Apr 2006
Posts: 691
Location: Hong Kong

PostPosted: Sat Dec 02, 2017 9:35 am    Post subject: Reply with quote

SLiRP won't let you ping outside. Try something TCP like.

try telneting to 172.86.181.35
_________________
# include <wittycomment.h>
Back to top
View user's profile Send private message Visit poster's website
brams



Joined: 27 Dec 2005
Posts: 511
Location: Blackburn, England

PostPosted: Sat Dec 02, 2017 10:00 am    Post subject: Reply with quote

neozeed wrote:
SLiRP won't let you ping outside. Try something TCP like.

try telneting to 172.86.181.35


Great thank you, that worked, not quite sure I understand why though, so IP traffic is passed from the host to the guest, but you cannot ping?

brams
_________________
NeXTcube Turbo Dimension, NeXTstation Turbo Color, MP2100, Q840av, Q650, WS G4 500, Pismo G4 550, SGI Octane R12K MXE, BeBox 133.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
neozeed



Joined: 15 Apr 2006
Posts: 691
Location: Hong Kong

PostPosted: Sat Dec 02, 2017 11:51 am    Post subject: Reply with quote

brams wrote:
neozeed wrote:
SLiRP won't let you ping outside. Try something TCP like.

try telneting to 172.86.181.35


Great thank you, that worked, not quite sure I understand why though, so IP traffic is passed from the host to the guest, but you cannot ping?

brams


SLiRP really pre-dates common NAT. So that is correct you cannot 'ping'. If you want to ping something you can ping slirp, 10.0.2.2

The problem for things like ping is that ICMP isn't something you can proxy and intercept from user mode just fine. But most people want TCP or UDP which can be passed just fine.. I've mounted NFS shares through SLiRP fine, although I did tune the window down, just to make sure.

I should add that FTP is a rather complex protocol, and SLiRP has no provisions to understand it, and it will not work.
_________________
# include <wittycomment.h>
Back to top
View user's profile Send private message Visit poster's website
andreas_g



Joined: 30 Jan 2009
Posts: 422
Location: Austria

PostPosted: Sun Dec 03, 2017 1:23 am    Post subject: Reply with quote

I think it would make sense to add some alternative networking interface to Previous. PCAP was mentioned as a more advanced option.

If anyone knows how to interface with PCAP I'll be glad to add it as an option to Previous.
Back to top
View user's profile Send private message Send e-mail
neozeed



Joined: 15 Apr 2006
Posts: 691
Location: Hong Kong

PostPosted: Sun Dec 03, 2017 1:48 am    Post subject: Reply with quote

andreas_g wrote:
I think it would make sense to add some alternative networking interface to Previous. PCAP was mentioned as a more advanced option.

If anyone knows how to interface with PCAP I'll be glad to add it as an option to Previous.


Pcap isn't hard to do. The caveat is that you cannot talk to the host machine. Tun/tap is another popular one too, although I haven't written glue for it, but it didn't look too crazy.

Tun/tap requires you to connect it to a bridge to really take advantage of it, but the host can talk to it. But then you either bridge it to a physical nic, or a loopback, and Nat at the host...
_________________
# include <wittycomment.h>
Back to top
View user's profile Send private message Visit poster's website
andreas_g



Joined: 30 Jan 2009
Posts: 422
Location: Austria

PostPosted: Sun Dec 03, 2017 2:26 am    Post subject: Reply with quote

Thank you neozeed, but I'm afraid I just understand nothing of what you have written Laughing

I just gave PCAP a try, but it seems to need super user privileges to work. I don't want Previous to require super user privileges. I want to keep it simple for the user.
Back to top
View user's profile Send private message Send e-mail
neozeed



Joined: 15 Apr 2006
Posts: 691
Location: Hong Kong

PostPosted: Sun Dec 03, 2017 2:32 am    Post subject: Reply with quote

If you want i have that old Mac Emulator I'd hacked apart a while back, and this is the ethernet 'glue' code.

https://sourceforge.net/p/cockatrice/git/ci/master/tree/BasiliskII/SDL/sdl_pcap.cpp

With pcap they say the best practice is to actually load it dynamically as sometimes OS's like to replace it adhoc with other 'work-a-like' libraries and whatnot, so there is that minor fun thing...

SIMH also has code for pcap as well.

Oh yeah for pcap you will absolutely require elevated privilege, to call it directly as you are not only monitoring the NIC traffic, but you are forging traffic as well. On Windows there is a service you can talk to as a user, although I'm not sure if there is an analogue on OSX/Linux
_________________
# include <wittycomment.h>
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    NeXT Computers Forum Index -> Emulation / Virtualization All times are GMT - 7 Hours
Goto page Previous  1, 2, 3 ... , 77, 78, 79  Next
Page 78 of 79

 
Jump to:  
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
You cannot vote in polls in this forum



Powered by phpBB © 2017 phpBB Group