![]() ![]() Remember that the biggest benefit with AFP is the built in proper support for both resource + data forksĪllowing u to drag files frm your mac to any afp share. Prompted me for a user + pass to which i entered my windows 7 username + passwordĪnd the share was mounted instantly. typed in the ip of the windows 7 machine. The Time Machine from there on will be auto-mounting the share to perform the backup.It creates a folder on your C: drive called C:\MacServerIPVolume Pick the available share from the list (named as configured in nf above). Now that is it mounted, go to Time Machine settings in System Preferences, and click Select Disk.Pick the Time Machine share and press OK.Press Command+K in Finder, type afp://windows-host-name.local, press Enter.Then on macOS, try to connect to it: Connecting from macOS and configuring Time Machine To test the whole thing, including the scheduler item, restart windows host. Enter the administrator account credentials as requested. Add arguments: -ExecutionPolicy Unrestricted -File c:\Scripts\wsl_startup.ps1. ![]() Delay the task: 15 seconds (just in case).Security Options: Check Run with highest privileges.Security Options: Select Run whether user is logged on or not.search for Task Scheduler and launch it.Using Task Scheduler, create a new task to launch the script on each Windows start: If logging is not needed and therefore the contents of the script condense to a single line it can be directly scheduled in the Task Scheduler (program name wsl, arguments sudo service netatalk start). To configure firewall to access the WSL instance, we will build on the excellent script shared here: Īdditionally, it may be helpful to start the logging service as well, just to be able to troubleshoot any possible runtime issues with the netatalk in the future.Ĭreate the script somewhere accessible, like c:\Scripts\wsl_startup.ps1, with the following content: Consequently, mDNS/Bonjour won’t work to advertise AFP shares and Time Machine services, but that’s not a big deal: windows host supports mDNS, so we can connect to it directly in the finder via Command+K, afp://windows-host-name.local. Unfortunately, it is not feasible to make it external without breaking everything around it, so we’ll instead create a port mapping. WSL 2 runs in a separate internal network connected to an internal Hyper-V virtual switch named WSL. Netsh advfirewall firewall add rule name = "Allow AFP connections" dir = in action =allow protocol =TCP localport =548 WSL 1 has better performance across file systems, which our use case might benefit from. ![]() As a workaround, the amount of memory available to the VM can be limited, as described in the Advanced Configuration
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |