How to share files from Ubuntu to MacclientsDraft


1.InstallUbuntu 12.04 LTS quick start

Download ISO p_w_picpath and install aVM on Vsphere.  The installation procedureis very straight forward.  Few thingsneed to notice:

1)NIC type must be E1000, otherwise *IX system can’trecognize the NIC

Ubuntu和OSX之间通过AD验证共享文件夹(详细设置)_netatalk ubuntu OSX


2)If IP address and Proxy didn’t configureproperly during installation, we can manually change them after installation

StaticIP    /etc/network/interfaces

Ubuntu和OSX之间通过AD验证共享文件夹(详细设置)_netatalk ubuntu OSX_02


DNS /etc/resolv.conf

Ubuntu和OSX之间通过AD验证共享文件夹(详细设置)_netatalk ubuntu OSX_03

Apt-get FTP source list

/etc/apt/source.list

Ubuntu和OSX之间通过AD验证共享文件夹(详细设置)_netatalk ubuntu OSX_04


Apt-get proxy setting

/etc/apt/apt.conf

Ubuntu和OSX之间通过AD验证共享文件夹(详细设置)_netatalk ubuntu OSX_05

Install GUI

Sudoapt-get update

               Sudo apt-getupgrade

               Sudo apt-getinstall Ubuntu-desktop

               Startx

Add a newdisk


1)Adda new disk in Vsphere Client

2)ls /dev/sd* (Login as root, check current disk, sda means 1st disk, sdb is2nd , sdc is 3rd )

3)fdisk /dev/sdb setup disk info..)

4)mkfs -t ext3 /dev/sdb1 (format disk)

5)fdisk –l (verify disk)

mkdir -p /opt

mount /dev/sdb1 /opt -orw

(create a directory andmount the disk to the directory)


6)/dev/sdb1 /opt ext3defaults 1 2 (modify/etc/fstab)


2.BindUbuntu to Active Directory


open / install likewise

Sudo apt-get update
 sudo apt-get install likewise-open
 sudo domainjoin-cli join mitch.mitchells.com.au mcu-admin


Ubuntu和OSX之间通过AD验证共享文件夹(详细设置)_netatalk ubuntu OSX_06



open defautls

sudo update-rc.d likewise defaults
 sudo /etc/init.d/likewise start


Enable ‘other user’  login option in Ubuntu 12.04 LTS

/etc/lightdm/lightdm.conf

Ubuntu和OSX之间通过AD验证共享文件夹(详细设置)_netatalk ubuntu OSX_07


Login as domain account




Setup folder  permissions



Ubuntu和OSX之间通过AD验证共享文件夹(详细设置)_netatalk ubuntu OSX_08






3.Installand Configure Netatalk

Installation

$ sudo apt-get installbuild-essential pkg-config checkinstall git-core avahi-daemonlibavahi-client-dev


$ ./configure–with-init-style=debian


$ make


$ sudo make install


$ sudo apt-get install netatalk


BasicConfiguration  

Modify /etc/netatalk/afpd.conf to setup Share Computer name

Ubuntu和OSX之间通过AD验证共享文件夹(详细设置)_netatalk ubuntu OSX_09

Modify /etc/netatak/AppleVolumes.default

Setup share path and their names (options:tm will simulate a timecapsule device for Time machine backup)

Ubuntu和OSX之间通过AD验证共享文件夹(详细设置)_netatalk ubuntu OSX_10

Restart service

Sudo service netatalk restart

Sudo service avahi-daemon restart



4.Accessfrom Mac OSX

If the Mac is on the samevlan of the Linux server, it will automatically detect in the Finder

Otherwise we can manuallyconnect to it

Ubuntu和OSX之间通过AD验证共享文件夹(详细设置)_netatalk ubuntu OSX_11


You will see the share folders

Ubuntu和OSX之间通过AD验证共享文件夹(详细设置)_netatalk ubuntu OSX_12


We can also use time machine to back up files to the virtualTime Capsule device

Ubuntu和OSX之间通过AD验证共享文件夹(详细设置)_netatalk ubuntu OSX_13