Community Forum

Resolved
0 votes
Honestly I'm disappointed in Microsoft. That said i was looking for a other client OS. See my other post. I tried different Linux Distro's. The one i like is Mint, but i searched further. A friend of my has a iPhone so i played with this device, and i must say a nice device. A very fast user interface. Way better than Windows Mobile. Then the idea came to install Mac OSX snow leopard on my desktop computer. I wanted to try this client OS. Now i'm writing this post from behind my Mac OSX machine. What a fast OS i'm impressed. Way better as Windows 7. I will test this OS for a couple of months to see i can used to it, and maybe i will buy a Mac Book Pro.

My first suggestion is it possible to set up a forum for Mac related problems and a forum for Windows related problems and of course for Linux.

Now my question is there a forum member who has Time Machine working with ClearOS? Can you point me in the right direction. I tried different things, Googled but get stuck... Thanks.
Monday, February 22 2010, 07:21 PM
Share this post:
Responses (75)
  • Accepted Answer

    nuke
    nuke
    Offline
    Wednesday, February 20 2013, 11:58 PM - #Permalink
    Resolved
    0 votes
    Having done a fresh install of COS5.2sp1, I need to get Netatalk reinstalled. As Netatalk 3.0.2 is the current stable I thought I'd give it a try to install. It was much easier to install than the earlier versions. Here are the steps for those who are interested.

    I'm not sure if all the following were required but they were listed in one or other of the earlier posts, so I decided to be safe and install them anyway. Note that avahi was already installed. (I'm thinking to upgrade to a more recent version but decided to hold off.)

    yum install gcc
    yum install libgcrypt
    yum install openssl-devel
    yum install openssl-devel gcc libgcrypt-devel pam-devel
    yum install db4-devel
    yum install avahi-compat-libdns_sd.i386
    yum install avahi-tools.i386
    yum install avahi-devel


    Download Berkeley DB from Oracle's site. I downloaded the most recent version which is Berkeley DB 5.3.21.


    tar xzf db-5.3.21.tar.gz
    cd db-5.3.21/build_unix
    ../dist/configure --with-mutex="x86/gcc-assembly" --with-uniquename
    make
    make install


    Note from the messages that Berkeley DB 5.3.21 was installed in /usr/local/BerkeleyDB.5.3/lib. You'll need this soon.

    In an earlier post we downloaded and installed nss-mdns-0.10-2.el5.i386.rpm. So here it is again:
    wget ftp://ftp.pbone.net/mirror/atrpms.net/el5-i386/atrpms/stable/nss-mdns-0.10-2.el5.i386.rpm
    rpm -Uhv nss-mdns-0.10-2.el5.i386.rpm


    Changed the /etc/nsswitch.conf file as follows:
    change the line hosts to:
    hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4 mdns


    Create or update the afpd.services file in the /etc/avahi/services/ directory

    touch /etc/avahi/services/afpd.service 
    vi /etc/avahi/services/afpd.service


    Copy and paste the following into the file

    CTYPE 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>



    To restart avahi and avahi-dns are running with the following commands:

    /etc/init.d/avahi-daemon restart
    /etc/init.d/avahi-dnsconfd restart


    Now to Netatalk. Download netatalk-3.0.2 from the Netatalk site.

    tar xzf netatalk-3.0.2
    cd netatalk-3.0.2
    ./configure --with-init-style=redhat-sysv --enable-redhat-sysv --with-bdb=/usr/local/BerkeleyDB.5.3/ --with-pam --with-acls
    make
    make install


    To make sure that Netatalk & Avahi start after a reboot:

    ntsysv


    select netatalk & avahi & avahi-dns in the list so they start on reboot.

    Now start Netatalk.

    service netatalk start


    If all went well, you should get "OK" back.

    Now you have to change the ONE configuration file to meet your needs. In the older versions there were numerous config files. Please read the documentation on afp.conf at the Netatalk site for all the options.

    So you have an idea of what I did, here is the original and new afp.conf files.

    ;
    ; Netatalk 3.x configuration file
    ;

    [Global]
    ; Global server settings

    ; [Homes]
    ; basedir regex = /xxxx


    New afp.conf with my comments. Please remove the comments.

    ;
    ; Netatalk 3.x configuration file
    ;

    [Global]
    ; Global server settings
    loglevel = default:warn #set up logging
    log file = /var/log/afpd.log
    afp listen = 192.168.1.1 #Netatalk takes the first IP address it finds. So I want to make sure it pick the server and not our WAN connection.
    hosts allow = 192.168.1.0/24 192.168.2.0/24 # These are the only segments allowed to access the server via Netatalk
    mimic model = RackMac #Make the server look like an XServe in the Mac Finder and Bonjour

    [Homes]
    basedir regex = /home

    [ShareFolder]
    path = /home/ShareFolder
    valid users = user1 user2 user3 user4
    time machine = no
    unix priv = yes

    ; [My AFP Volume]
    ; path = /path/to/volume


    If you want to use Time Machine you can use this afp.conf as a starting point.

    ;
    ; Netatalk 3.x configuration file
    ;

    [Global]
    mimic model = TimeCapsule6,106
    log level = default:warn
    log file = /var/log/afpd.log
    hosts allow = 192.168.1.0/16


    [TimeMachine]
    path = /mnt/timemachine
    valid users = tmuser #Whatever your user's name is that is using Time Machine
    time machine = yes


    So now you have your afp.conf set up. You have to do:

    service netatalk restart


    So you can properly use extended attributes (all those resource forks and dot files) you should do the following in your /etc/fstab for /home volume. In my case I have /home on a separate drive. So in my fstab I added user_xattr and it now looks like this:


    /dev/sdb1 /home ext3 defaults,user_xattr 1 2


    Then do a
    mount -a
    to remount all drives without rebooting.

    Your done. Have fun with Netatalk and Time Machine on your COS5.2!
    The reply is currently minimized Show
  • Accepted Answer

    nuke
    nuke
    Offline
    Friday, December 28 2012, 11:08 PM - #Permalink
    Resolved
    0 votes
    Hi Tim.

    I gave up getting Time Machine backups to work properly some time back. I find that I don't like Time Machine. It is a resource hog and flakey as hell.

    I'm still running COS5.2 with the Netatalk and Avahi as per the earlier posts. It works like a dream. All Panther, Tiger, SL, Mountain Lion clients connect to the COS without issues. I'm connected to the server all day with a MBP running ML 10.8.2.

    I have a separate Backup image on the COS which is accessed by each client using rsync to update the /User files each day. To automate I ended up using Carbon Copy Cloner. It was a free cloning tool using rsync but recently started to charge a small fee. It was worth paying for it as it also has helped migrate files and make full bootable images from older macs.

    What I've recently noticed is that Apple doesn't use Samba anymore in Mountain Lion. I read that they don't like the GPL3 license, so they are cobbling something together themselves. As with many "new" technologies from Apple it doesn't work properly at the start. Probably will be OK in 10.9 or 10.10 ....

    So if your macs run ML and are trying to connect to COS with smb then that could be the problem.(??)

    I'm going to look at compiling Samba myself for ML and see that fixes connecting to windows shares. If that is of interest, I'll start a thread but I think it's a bit off topic for COS.
    The reply is currently minimized Show
  • Accepted Answer

    Tim Burton
    Tim Burton
    Offline
    Friday, December 28 2012, 09:22 PM - #Permalink
    Resolved
    0 votes
    Bump...

    Anyone have this working with Mountain Lion yet?

    If so, a "how to" available?

    Loved it when it worked... back in the Snow Leopard days.
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, November 19 2011, 06:58 AM - #Permalink
    Resolved
    0 votes
    Yes it worked but it was just a quick install and test experiment. I'm not sure yet which way to go (desktop; Linux, Mac OS or Windows). So i spent no to much time with this experiment.

    Edit: oh you ask specifically of it works with Lion? Yes i had running Lion on my Hackintosh.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, November 18 2011, 10:39 PM - #Permalink
    Resolved
    0 votes
    Marcel van Leeuwen wrote:
    herballizard wrote:
    Has anyone gotten the new version of the Berkeley DB running yet


    I did some testing with ClearOS 6.1 Beta 1. The Epel repo has a rpm of Netatalk 2.2.1. See Tim's post.

    Link


    Hey marcel did you end up getting it to work with lion?
    The reply is currently minimized Show
  • Accepted Answer

    nuke
    nuke
    Offline
    Wednesday, November 16 2011, 09:26 PM - #Permalink
    Resolved
    0 votes
    I gave up getting Netatalk 2.1 or later to compile and ended up using v2.0.5. I could get all the dependencies relatively easily for COS 5.2 when using v2.0.5. I've not upgraded Netatalk since it seems to work OK.

    There is some neat stuff in v2.2.x though.
    Summary of hot stuff and enhancements in 2.2

    AFP 3.3 support (necessary for TimeMachine and Lion)

    Robust network disconnect/reconnect, especially important for Time Machine

    Support for fast AFP searches (CNID backend "dbd" only)

    POSIX draft 1e ACL support

    Complete Netatalk volume compatible ad file utility suite

    Dynamic filesystem cache

    Builtin Zeroconf registration of the AFP server and TimeMachine volumes

    Support for ACLs without a common Directory Service between server and client
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, November 16 2011, 08:51 PM - #Permalink
    Resolved
    0 votes
    herballizard wrote:
    Has anyone gotten the new version of the Berkeley DB running yet


    I did some testing with ClearOS 6.1 Beta 1. The Epel repo has a rpm of Netatalk 2.2.1. See Tim's post.

    Link
    The reply is currently minimized Show
  • Accepted Answer

    nuke
    nuke
    Offline
    Wednesday, November 16 2011, 02:18 PM - #Permalink
    Resolved
    0 votes
    I'm not at home, but I think I have v4.6 running. I did get help from some people in the forum. If you search on my userid, the solution should come up. I don't remember it being particularly complicated except there were a bunch of dependencies to find, download and install manually.
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, November 16 2011, 12:46 PM - #Permalink
    Resolved
    0 votes
    Has anyone gotten the new version of the Berkeley DB running yet
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, November 12 2011, 01:37 PM - #Permalink
    Resolved
    0 votes
    I did a build from source (no rpmbuild). You need at least verso 4.6.0 of Berkeley's DB and ClearOS has version 4.3.29. Pfff... CentOS 5 is getting old...
    The reply is currently minimized Show
Your Reply