1. Store
  2. Apps
  3. Hardware
  4. Support
  5. Solutions

ClearFoundation

Forums
Welcome, Guest
Go to bottomPage: 12345678
TOPIC: Time Machine
#6372
Re:Time Machine 4 Years, 1 Month ago  
@ Len

Len can you guide me, how to install netatalk on ClearOS? I've read the link you provided, but there installing netatalk on Ubuntu system. I'm a Linux newbie so help is very appreciated!
Marcel van Leeuwen
Platinum Boarder
Posts: 1556
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
Server: Xeon E3-1275, Intel S1200V3RPL, 16GB, Samsung 840 Pro : ClearOS Professional 6.5 | Storage: Synology RS2414+ : DSM 5.0
 
#6374
Re:Time Machine 4 Years, 1 Month ago  
Hi there Marcel first off I use vi to edit my files so if you are unfamiliar with it you can use a text editor of your own choice. First of all you need to install the Berkely Database this can be done using yum.

yum install db4 db4-devel

download and install netatalk 2.0.5 from netatalk.sourceforge.net/
I downloaded the bzip2 file

tar jxf netatalk-2.0.5.tar.bz2

cd netatalk-2.0.5

./configure --enable-redhat --with-mutex=x86/gcc-assembly

make && make install

vi /usr/local/etc/netatalk/netatalk.conf

Find the “#Set which daemons to run” part and replace the default values with these to enable just AFP and disable all unneeded services.

ATALKD_RUN=no
PAPD_RUN=no
CNID_METAD_RUN=yes
AFPD_RUN=yes
TIMELORD_RUN=no
A2BOOT_RUN=no

save the file.

vi /usr/local/etc/netatalk/afpd.conf

Scroll to the very bottom of the document and add this to the bottom (replace the whole line in case there’s already one). This is one line so be sure that there’s no line break in your afpd.conf file;

- -transall -uamlist uams_randnum.so,uams_dhx.so -nosavepassword -advertise_ssh

save the file

vi /usr/local/etc/netatalk/AppleVolumes.default

Scroll to the bottom of the document and define your Volume shares.

~/ "$u" allow:username1,username2 cnidscheme:cdb

Because we want to use the ClearOS machine as a backup server for Time Machine you should define a second volume just for Time Machine. Create a new folder in your home directory first and name it TimeMachine (or anything you like). Then add the following line to your AppleVolumes.default. This is one line so be sure that there’s no line break in your AppleVolumes.default file:

/home/username/TimeMachine TimeMachine allow:username1,username2 cnidscheme:cdb options:usedots,upriv

The usedots option is required if you want to use invisible files and folders (those starting with a dot in the name). Otherwise afpd would encode them as :2e which is bad if you have to use invisible files (like .htaccess). If you’re on Leopard and have no Tiger installed Macs in your network or mixed OS X versions in your network you should use the upriv option which adds support for AFP3 unix privileges. If you have Macs with Tiger installed just use options:usedots to avoid unexpected behavior:

/etc/init.d/atalk start

yum install avahi.i386 nss-mdns.i386

vi /etc/nsswitch.conf

Just add “mdns” at the end of the line that starts with “hosts:”. Now the line should look like this:

hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4 mdns

Create the afpd.service file

vi /etc/avahi/services/afpd.service

and add this;

<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">%h</name>
<service>
<type>_afpovertcp._tcp</type>
<port>548</port>
</service>
<service>
<type>_device-info._tcp</type>
<port>0</port>
<txt-record>model=Xserve</txt-record>
</service>
</service-group>

/etc/init.d/avahi-daemon restart

Nearly done

On the Mac side you have to enable the option to use network volumes as Time Machine drives first. Without it your freshly shared and advertised network volume won’t show up in the disk selection dialogue in Time Machine. This is a hidden option not accessible via the graphical user interface so you have to copy & paste this in Terminal (it’s one line):

defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1

Massive thanks to kremalicious for providing most parts of this tut hope you don't mind me taking it . Original howto can be found here
Leonard
Senior Boarder
Posts: 70
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/02/28 09:00 By NeoNapster.
The administrator has disabled public write access.
 
#6375
Re:Time Machine 4 Years, 1 Month ago  
Hi NeoNapster,


Thanks for your explanation. I appreciated it!

When i execute this command:
Code:


./configure --enable-redhat --with-mutex=x86/gcc-assembly



I'll get this error:
Code:


[root@system netatalk-2.0.5]# ./configure --enable-redhat --with-mutex=x86/gcc-assembly
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gawk... (cached) gawk
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.



Must i install a C compiler? Any idea?
Marcel van Leeuwen
Platinum Boarder
Posts: 1556
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
Server: Xeon E3-1275, Intel S1200V3RPL, 16GB, Samsung 840 Pro : ClearOS Professional 6.5 | Storage: Synology RS2414+ : DSM 5.0
 
#6384
Re:Time Machine 4 Years, 1 Month ago  
Yes Marcel "yum install gcc" should sort you out.
Leonard
Senior Boarder
Posts: 70
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#6632
Re:Time Machine 4 Years, 1 Month ago  
Another option is use sparse bundle and send it on its merry way to smb shares

en.wikipedia.org/wiki/Sparse_image
herballizard
Platinum Boarder
Posts: 396
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#6651
Re:Time Machine 4 Years, 1 Month ago  
Yes you could manually do this using sparse bundle

man hdiutil

I like many others don't have much free time on my hands to waste doing backups manually and prefer to spend 30 mins setting up a server to get it all automated for me, so I think I'll let Time Machine do all the work.
Leonard
Senior Boarder
Posts: 70
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/03/03 18:42 By NeoNapster.
The administrator has disabled public write access.
 
#7465
Re:Time Machine 4 Years, 1 Month ago  
This tutorial can also be found at
www.kremalicious.com/2008/06/ubuntu-as-m...time-machine-volume/
for ubuntu
xiambax
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#7500
Re:Time Machine 4 Years, 1 Month ago  
xiambax wrote:
This tutorial can also be found at
www.kremalicious.com/2008/06/ubuntu-as-m...time-machine-volume/
for ubuntu


Yes and if you fully read my original post I do give credit to Kremalicious and give a link to the site.
Leonard
Senior Boarder
Posts: 70
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#9463
Re:Time Machine 4 Years ago  
I am having trouble with this where do I add

/home/username/TimeMachine TimeMachine allow:username1,username2 cnidscheme:cdb options:upriv

in the
/usr/local/etc/netatalk/AppleVolumes.default file

is it on the same line as ~/ "$u" allow:username1,username2 cnidscheme:cdb (at the bottom) or do it modifiy that line to become

~/ "$u" allow: /home/username/TimeMachine TimeMachine allow:username1,username2 cnidscheme:cdb options:upriv

Running mix of 10.5 and 10.6 which I should use :upriv instead of usedots I guess
timbar
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/04/13 00:01 By timbar.
The administrator has disabled public write access.
 
#9630
Re:Time Machine 4 Years ago  
Anyone had any sucess creating a flexshare with afp options out of interest

I have also noticed that while the Netatalk daemon is running manually and can be started or stopped via ssh, it shows up in services in webconfig as "not started" and content in pink shows Netatalk not installed.
herballizard
Platinum Boarder
Posts: 396
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/04/16 03:43 By herballizard.
The administrator has disabled public write access.
 
Go to topPage: 12345678
  get the latest posts directly to your desktop