destinationtree.blogg.se

Raspbian emulator for mac
Raspbian emulator for mac




  1. Raspbian emulator for mac mac os x#
  2. Raspbian emulator for mac install#
  3. Raspbian emulator for mac update#

In my case the device was /dev/sdb1 and the UUID we’re looking for was the one below: Determine the device ID (UUID) of your USB drive Also we should get decent speeds as we also get a 1GBit/s wired connection with the Pi 4. Connect Hard drive to USB 3.0 portĪs the Raspberry Pi 4 ships with 2x USB 3.0 ports we can connect an external hard drive as our disk space for backing up data. The Avahi daemon is used for Apples “Bonjour” mDNS protocol that our Raspberry Pi server is automatically discoverable within the network.

Raspbian emulator for mac install#

We’re going to first install Samba (for SMB) which is a very popular Open Source file sharing protocol which is officially supported by Time Machine for backing up data over a network. Make sure your Raspberry Pi is running on the latest software. If you have a Raspberry Pi (or two) lying around at your place like me, this tutorial comes in handy to create a cheap and speedy backup solution.

Raspbian emulator for mac mac os x#

Time Machine is built into the system of macOS and I’m using it since the early days of Mac OS X Leopard. Mudge’s Using a Raspberry Pi for Time Machine - uses ext4 and smb as a protocol, and other steps look good but I couldn’t get the macOS Time Machine service to find it Gregology’s Raspberry Pi Time Machine - this guide is most similar to this one, but uses ext4 instead of hfsplus Similar guides to try if this fails (this guide is a mashup of these two, with some sprinking of edited commands)

  • Ensure above permissions are set, and also verify disk integrity - sudo fsck.hfsplus -f /dev/sda1 (or simply re-format).
  • Alternatively, delete the above mount-point directory ( sudo rmdir /media/pi/TimeMachine ) and reboot (this fixed an issue for me that chmod did not).
  • Set drive permissions (such as sudo chmod -R 777 /media/pi/TimeMachine ).
  • raspbian emulator for mac

  • It would be wise to encrypt your backup when macOS asks you here, since it will be plainly readable on the external drive otherwise.
  • You’ll be prompted to log in again with your pi user.
  • Go to System Preferences > Time Machine.
  • You should be prompted for your pi login info.
  • Enter afp://192.168.1.50/ (use the local static IP for your pi instead though).
  • Let’s verify the drive is being properly shared.
  • Launch services sudo service avahi-daemon start and sudo service netatalk start.
  • edit file: sudo nano /etc/netatalk/afp.conf.
  • edit smb config: sudo nano etc/samba/smb.conf and append.
  • Line hosts: files mdns4_minimal dns becomes hosts: files mdns4_minimal dns mdns4 mdns.
  • Install netatalk: sudo apt-get install netatalk -y.
  • Make sure everything looks good based on the specs of the drive. sudo fdisk -l also for a little more verbosity.
  • Reboot, and now run df -h and make sure your drive is present.
  • Add this line to the bottom of the file: UUID=8c9d728a-54f3-4948-81ea-f0482c89fc73 /media/pi/TimeMachine hfsplus force,nofail,rw,noauto 0 0 (if your username is not pi, edit this path to use your nane instead and do the same in subsequent areas).
  • Next, we want to auto-mount it to a designated folder, so run sudo nano /etc/fstab.
  • Format our drive to HFS+ format: sudo mkfs.hfs /dev/sda1 -v TimeMachine or use Gparted to repartition the drive and label it TimeMachine.
  • For the purposes of this guide, my drive reference will be /dev/sda1 and UUID is 8c9d728a-54f3-4948-81ea-f0482c89fc73.
  • raspbian emulator for mac

    Make note of the drive reference and UUID

  • Plug in your drive into a USB port on the Pi and get the drive UUID with ls -lha /dev/disk/by-uuid.
  • Install dependencies: sudo apt install samba avahi-daemon hfsutils hfsprogsĬonnecting and mounting the drive on the Pi.
  • Make sure the Pi uses a static IP on your local network (there are good guides on this, it is out of scope for this post).
  • Raspbian emulator for mac update#

    Ensure your Pi is fully up to date sudo apt-get update & sudo apt-get upgrade -y.

    raspbian emulator for mac

    Using the Pi 4B alongside some spare drives can give you a very versatile, cost-effective NAS and server. I’ve now had a few months of reliable, consistent automated Time Machine backups accomplished via my Mac and Rapberry Pi 4B now, attached to a spare 1TB 2.5″ USB 3.0 drive. SMB as the networking protocol I have not been able to get working reliably. Config also now uses HFS+ as the drive filesystem and AFP as the network protocol. Update December 2020: This appears to work on macOS Big Sur, using the latest Raspbian. Using a Raspberry Pi as a NAS macOS Time Machine (2020 edition)






    Raspbian emulator for mac