Install Rclone on Mac
Note: Do not install via brew, please use curl instead.
Step1. Switch to sudo
sudo su
Step 2. Install with command line
curl https://rclone.org/install.sh | sudo bash
## Test command
rclone config
Step 3. Install MacFuse
brew install macfuse
Step 4. Disable SIP
Configuring Mac Permissions for FUSE
Upon your first attempt to mount your new remote you will be greeted by a rather angry looking denied message as well as pop up explaining that you will need to change your security settings in order to allow macfuse to run.
To change the security setting on your MacBook with the M1 / M2 chip, you need to go into macOS Recovery mode.
- Turn on your MacBook holding the power button. Click “Security Policy…” on Startup Security Utility”. If you do not see the Startup disk, follow the steps below.
- Click “Continue of Options” and “Select a user you know the password for : ” will appear. Select your account and click Next. Then enter your password. Select “Utilities” on the top left and select “Startup Security Utility”. Click “Unlock”, enter your password and click “Security Policy…”.
- On the screen below, choose “Reduced Security”, check “Allow user management of kernel extensions from identified developers” and click “OK”.
- Reboot and visit System Preferences > Security and Privacy > General. Click the lock icon at the bottom, enter your password and click Allow in front of the message that says System Extension by Benjamin Fleischer was blocked.
Disable SIP
1. Shutdown your mac
2. Press power button
3. Click Options
4. Enter your password
5. Open Termial app
6. Insert command: csrutil disable
6.1 Type your username and password
7. Restart compauter
Step 5. Make a directory to mount
mkdir ~/mount/nextcloud
Step 6. Command line mount
rclone cmount allsync: ~/mount/allsync --vfs-cache-mode writes --daemon --allow-other
References:
- https://docs.usbx.me/books/rclone/page/rclone-mount-on-apple-silicon
- https://www.yourtechshow.com/2022/01/rclone-mount-on-m1-mac-step-by-step.html