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

How to share files from Ubuntu to MacclientsDraft


1.InstallUbuntu 12.04 LTS quick start

Download ISO image 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

135233139.png


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

StaticIP    /etc/network/interfaces

135255889.png


DNS /etc/resolv.conf

135316865.png

Apt-get FTP source list

/etc/apt/source.list

135336946.png


Apt-get proxy setting

/etc/apt/apt.conf

135355377.png

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


135415408.png



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

135501487.png


Login as domain account




Setup folder  permissions



135530761.png






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

135554422.png

Modify /etc/netatak/AppleVolumes.default

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

135612689.png

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

135628211.png


You will see the share folders

135646723.png


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

135810176.png











本文转自 beanxyz 51CTO博客,原文链接:http://blog.51cto.com/beanxyz/1274210,如需转载请自行联系原作者
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值