Jump to content

MacIPRpi. MacIP and file sharing for a Raspberry Pi. Stable release 5.01


Recommended Posts

  • 68kMLA Supporter
Posted (edited)

Stable release is out. Read all about it:


MacIP.net gives you a MacIP gateway out of the box on a Raspberry Pi thanks to the Linux port of macipgw done by Stefan Bethke.
And the MacIPRpi is loaded with software to get you going with file sharing with almost any computer.

New or old. Macintosh or non Macintosh.

 

2020-09-09-1024x793.png


 Picture: MacIPRpi at work for a MacIP session in BaseliskII emulator
 

You can connect Macintosh computers over LocalTalk with the use of cabling between the printer ports. On this kind of network it is not possible to ‘speak’ TCP/IP to the Internet right away. To ‘speak’ TCP/IP from a LocalTalk network to a TCPnetwork, like the Internet, it is necessary to encapsulate Internet Protocol (IP) packets within the AppleTalk DDP protocol. To do this right you need a piece of hardware or software to do this. This device will ‘unpack’ the TCP/IP packages and send them to other TCP/IP networks.
In the old days we had router devices like a FastPath to do this. Now a combination of a LocalTalk bridge and a MacIPRpi can do the trick.

Their are two types of LocalTalk bridges you can use:

 

If you have a LocalTalk bridge you can use the MacIPpi. If you don’t have one you can use an emulator like BasiliskII or SheepShaver to play around.

So now a new member of MacIP.net solutions is for for Raspberry Pi.
(If you really want to have a dead cheap device look at my solution for the Orange Pi ($9.99) )
 

Download the image for a Raspberry Pi from:

https://cdn.macip.net/MacIPRpi-5.01.img (3.8GB)
MD5 hash: 86af113e0f79be5618fe605bf9610709

or the compact 7zipped version:

https://cdn.macip.net/MacIPRpi-5.01.img.7z (1.1 GB)
MD5 hash: f9bd1438ba47e439759967311d50012d

To unzip use 7Zip. Do not try to load the 7z version on the SD card.

I tested myself on a Raspberry Pi B3+. It is also (beta) tested on a Raspberry Pi 4. (Would be nice to find out on which types the image also works)

Use dd on Linux systems (and MacOSX) to put the image on the SD disk.
This will be a command like this:

dd if=MacIPRpi-5.01.img|pv|dd of=/dev/sdX bs=1M

On a Linux/Unix/MacOSX system you can check the name of the SD card with the command:

 dmesg

On Mac/Linux/Windows Etcher or on Windows only you can use a tool like Win32DiskImager (this tool is deprecated…but sometimes people work with it). Etcher is THE tool!

Connect you MacIPRpi to your network with a network cable. Do not try to connect the MacIPpi with wifi. No Appletalk over WIFI! Also don’t try to connect it directly to a Macintosh with some kind of cabling trick… Just treat it as one of you home computers and give it a cable on your local network.

It will get an IP address from your (home) router if you power it on. After a few minutes it will be ready. To be sure let it run for 5 minutes. Take this time because the appletalk daemon needs some time to settle. It is ready when the red led starts blinking. Even no need to connect a monitor.

If you want you can login from your Macintosh with Telnet or SSH. On your old Macintosh with MacIP configured you can access it by IP address 172.16.2.1.
If you want to connect from a Mac OSX, Windows or Linux machine you can connect to macippi.local. If you want to login username is: macipgw and password: macipgw

You can become root by entering

$sudo -i

and password macipgw

What does the MacIPpi gives you?

  • You can now surf the Internet out of the box with a LocalTalk only Macintosh. Or use AppleTalk (MacIP) in your emulator.
    Use the IP information as in this image:

    tcp.ip_.jpg

    credits to: https://github.com/jasonking3/macipgw
  • Newest version of the Web Rendering Proxy on port 8080.
    http://macippi.local:8080/ or on MacIP http://gw.macip.net:8080
    Just visit the MacIPRpi with your old browser and see internet pages as images. Remember that is now more ‘a browser in a browser’ then a proxy. Don’t use it as proxy in your browsers settings.

    2020-09-09-1.png

    credits to: https://github.com/tenox7/wrp
  • Full file sharing.

    – For old school Macintosh 512k, Plus, SE, etc. and System 7, 8, 9 Macs
    – MacOS X
    – Windows
    – Linux
    – iPhone
    – iPad
    – Android
    You can login as Guest.

    Also anonymous FTP is supported.
    You will always land in the same map and can share files between different computers and operating systems

    WhatsApp-Image-2020-09-08-at-23.03.35.jp


    Thanks to: Netatalk 2.2.5, Samba
  • http://netatalk.sourceforge.net/
    https://www.samba.org/

  2020-09-08.png

MacIPpi seen from a Windows machine

 

WhatsApp-Image-2020-09-08-at-22.46.18.jp

MacIPpi seen from an Apple MacBook

WhatsApp-Image-2020-10-02-at-21.26.45.jp


MacIPpi seen from a iPhone

 

 

For ‘power users’ who want to do more with a MacIPpi.

 

  • It is a full usable Linux machine. LXDE as window manager. You can connect to it with X2go or RDP. Or add a monitor.
  • You can use SheepShaver and BasiliskII Macintosh emulators. Sheepshaver executable on board and BasiliskII has to be compiled. Have a look at /opt/basiliskII
  • Gparted for disk management
  • Rpi monitor on http://macippi.local:8888/
  • sshd started at boot. You can login with ssh. User macipgw can login with ssh. Password is also macipgw. If you like to be root login as root with password macipgw or do a sudo su and enter the macipgw user password: macipgw
  • pi user password is macipgw
  • telnetd started at boot. You can login with telnet. Use user macipgw and password macipgw
  • Host name resolution. You can point to gw.macip.net and it is resolved as 172.16.2.1 and you can point to mac04.macip.net as your Macintosh with IP address 172.16.2.4.
  • Dynamic motd . You see a lot of information, like all the Macintosh and Appletalk devices in your network
  • Small image, automatic resize to the max of your SD card on first boot. But works also on a 4GB SD card with more then 400MB free space.
  • Installed nmap for testing
  • Installed aecho for testing
  • Installed nbplkup for finding AppleTalk devices
  • Installed tcpdump for listening to atalk packages.
  • Some more old services can start up, like tftpd, finger, daytime. Nice for testing old MacTCP applications. See /etc/inetd.conf
  • For ftp login with the macipgw account with password macipgw. Or anonymous login with user anonymous and any password
  • Web server on port 80 so you can test a web browser. With MacIP point it to http://172.16.2.1 and you will see a historic web page based on the first web site of CERN.
    See http://info.cern.ch – home of the first website
  • Lynx web browser. The text only web browser so you can surf the web like in the old days.
  • Elinks web browser. The text only web browser so you can surf the web like in the old days.
  • You can find more information about macipgw and the linux port on: https://github.com/zero2sixd/macipgw
  • Raspbian OS with kernel 5.10.17-v7+
  • raspi-config for advanced configuration
  • Avahi zeroconf in place. You can find it on your network with DNS: macippi.local
  • Add any package you want to add. Use apt install .. or apt-get install .. to install and apt-cache search … to find packages

If you have feedback or tips you can reach me at info (at) macip.net

Edited by mactjaap
Link to post
Share on other sites
  • 1 month later...
  • 2 weeks later...

I got this set up on an RPi 4 this week and it works tremendously well. I had a couple of issues with the RF kill switch on the first two boots but third time around it worked like a charm and has done since. Everything works perfectly and it is so surreal to connect to a Pi via AppleTalk – I love it!

 

The web proxy is fantastic. I spent about a month trying to design my own solution to the HTTPS -> HTTP issue but came up short in too many different areas, including the woefully low compute power of my old RPi. Your implementation is fantastic. 

 

I upgraded from an RPi B+ (single core 700MHz, 512MB RAM) and this new one (quad core 1.5GHz, 4GB RAM) is like a different world. It's fast enough to actually use as a personal computer and not just a gadget that makes LEDs blink! I plan to turn this setup into my one-stop personal file server. 

 

Please let me know if you need beta testers for new releases and thanks again for putting so much hard work into this.

Link to post
Share on other sites
  • 68kMLA Supporter
On 5/4/2021 at 11:02 AM, History_SE30_Dude said:

On the preconfigured disk-image the password macipgw is not working for sudo.

I don't see the problem. Do you have the lastest version?

 

I tried this:

 

Login as user  macipgw

When you login do a sudo su

Give password

And you have become su

 

Link to post
Share on other sites
  • 68kMLA Supporter
1 hour ago, PowerMac_G4 said:

I got this set up on an RPi 4 this week and it works tremendously well. I had a couple of issues with the RF kill switch on the first two boots but third time around it worked like a charm and has done since. Everything works perfectly and it is so surreal to connect to a Pi via AppleTalk – I love it!

 

The web proxy is fantastic. I spent about a month trying to design my own solution to the HTTPS -> HTTP issue but came up short in too many different areas, including the woefully low compute power of my old RPi. Your implementation is fantastic. 

 

I upgraded from an RPi B+ (single core 700MHz, 512MB RAM) and this new one (quad core 1.5GHz, 4GB RAM) is like a different world. It's fast enough to actually use as a personal computer and not just a gadget that makes LEDs blink! I plan to turn this setup into my one-stop personal file server. 

 

1 hour ago, PowerMac_G4 said:

Please let me know if you need beta testers for new releases and thanks again for putting so much hard work into this.

 

 

Thanks for your compliments!

 

My main goal is to combine the software which is made for this purpose, like macipgw, the WRP proxy, file sharing, etc. on one small (cheap) device.

So it is not my software ...but more a kind of "distribution"
And...I want to have it working "out of the box" So you can have fun with it right away. And if you want you can build new things on it.

 

If you want you can also use it as a full Linux desktop. You can connect a screen or use a remote desktop tool like X2go or RDP.

 

Thans for helping out with beta testing! Not many users in the world, so help is appreciated! I will send a PM.

 

 

Link to post
Share on other sites
  • 68kMLA Supporter

This Sunday I plan to update my setup and try out the new stable release! Thank you for what you are doing, MacIP was a boon for my setup and I rely on it every day - be it for transferring files, making backups or just being able to do things I never would have or could have done with my compact!

Link to post
Share on other sites
  • 68kMLA Supporter
7 minutes ago, BacioiuC said:

This Sunday I plan to update my setup and try out the new stable release! Thank you for what you are doing, MacIP was a boon for my setup and I rely on it every day - be it for transferring files, making backups or just being able to do things I never would have or could have done with my compact!

 

 

Great! Let me know if everything is working fine or if you need help!

Link to post
Share on other sites
  • 68kMLA Supporter

@mactjaap I've been working with the VM and Pi 4 versions of MacIP for some time now but have only been able to connect over AFP by IP address (which rules out System 7 and earlier). I can't figure out why it never populates in Chooser. I have a Ubiquiti/UniFi home networking setup - not terribly complex not plug & play either. Do you have any ideas on what could be knocking down the AppleTalk packets? (I also have an AsanteTalk bridge but nbplkup doesn't list it) 

Link to post
Share on other sites
  • 68kMLA Supporter

Hmmmm. Interesting... but frustrating!

 

I would first test the AsanteTalk. Do you “see” it on your System7 machines? With a tool like Checknet?

 

If not then power off the AsanteTalk and power on until you see it. 
if you see it then login to the Rpi and see if it pops up at the login MOTD or use nbplkup. 

if you see the AsanteTalk on the Rpi you will see the Mac connected to it too. 

Link to post
Share on other sites
  • 68kMLA Supporter

No luck... I have even installed a fresh image on another Pi 4 (400 actually). I can see that netatalk is failing on both Pi's, I just don't know why...

 

I know it's technically beta on the Pi 4 but I can't think of why that would matter here.

 

May 18 17:46:25 macippi netatalk[16460]: Starting Netatalk services (this will take a while): eth0: multicast may not
May 18 17:46:25 macippi netatalk[16460]: atalkd is already running (pid = 1287), or the lock file is stale.
May 18 17:46:25 macippi systemd[1]: netatalk.service: Control process exited, code=exited, status=1/FAILURE

 

 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...