Friday, July 22, 2011

file sharing on debian

############
# Using NFS
############

# Server side
==============
sudo apt-get install nfs-kernel-server

sudo vi /etc/exports
/path/to/public 192.168.1.0/255.255.255.0(rw,sync,anonuid=1000,anongid=1000,no_subtree_check)
/path/to/public *(rw,sync,anonuid=1000,anongid=1000,no_subtree_check)

sudo service portmap restart

sudo /etc/init.d/nfs-kernel-server restart

if there is a firewall between the hosts, or to fix ports of communication
http://siripong-computer-tips.blogspot.com/2011/10/nfs-ports.html


# Client side
=============
sudo aptitude install nfs-common

sudo mount -v -t nfs {Server-IP or Server Name}:/path/to/public /mount/directory


Thanks
======
http://wiki.linux-nfs.org/wiki/index.php/Main_Page
http://www.server-world.info/en/note?os=Debian_6.0&p=nfs
http://linux.sothorn.org/node/558

##############
# Using Samba
##############
http://www.reddeadresolve.com/2009/12/installing-debian-squeeze.html


#######
# ATAoE
#######

http://www.clusterkit.co.th/techblog/content_view.php?blog_id=00038


#########
# FTP
#########
If you have an SSHD running, you can sftp to that.
Protocal : SFTP
Port : {Same port as ssh}

No comments:

Post a Comment