Since my last tutorial on how to get Time Machine working on Ubuntu, 11.10 of Ubuntu was released which breaks Time Machine and all OS X sharing capabilities. Fortunately its pretty straight forward to get you back on the road again should you follow this tutorial. Some of it you might be able to skip if you have set this up before
Login to your Ubuntu box and open up Terminal, type:
sudo apt-get remove netatalk –purge
sudo rm /etc/netatalk -r -f
Login to your Ubuntu box and open up Terminal, type:
sudo add-apt-repository ppa:jstrunk-math/ppa
Open up Terminal and enter the following:
sudo apt-get update
sudo apt-get install netatalk
This should then start downloading the latest version of Netatalk from the repo’s added in the first step.
Once the download has completed, you can check the version installed by typing:
dpkg -s netatalk
Hopefully, it should say that we have version 2.2.x installed.
Now Netatalk is installed, we need to modify the apfd.conf to get it working. In Terminal type:
sudo gedit /etc/netatalk/afpd.conf
At the end of the file, enter this:
- -tcp -noddp -uamlist uams_dhx.so,uams_dhx2_passwd.so -nosavepassword
Now Netatalk is installed we need to go ahead and tell it what to share. Open up Terminal again and type the following:
sudo gedit /etc/netatalk/AppleVolumes.default
Go to the bottom of the file and look for the line that says:
~/ “Home Directory”
What you need to do is delete this line and add in the location of your backup drive, a name and some options. Heres what I put in mine:
/media/backupdisk/ “Time Machine’ cnidscheme:dbd options:usedots,upriv,tm
The next step is to restart the Netatalk service. Just open up Terminal again and type:
/etc/init.d/netatalk restart
Easy!
Go back to your OSX Lion machine and open up Terminal. Type the following:
defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1
Then reboot your Mac.
Once rebooted open Finder and click Go -> Connect to server.
What you need to enter here is the ip address of your server using the following layout:
afp://<server ip>
Login with your Linux account details when it asks. Then open the shared drive through Finder so it gets mounted
There are several ways of doing this, all which seem pretty complex. So instead, download this makeImage.sh file to your OSX Lion machine from here:
Make sure you save it as a .sh file and not a .txt.
Open up Terminal in OSX and navigate to the folder the .sh file was downloaded to. The run the following command:
sh ./makeImage.sh 1000
This will create a sparsebundle of 1000GB in size. Just alter the number for the amount of GB you want
The last step is to copy the sparsebundle that has just been made to the share you mounted earlier. Once copied over, leave the shared drive mounted and open up Time Machine as usual. Select the mounted shared drive and away you go