Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NFS on CentOS as a server
- Install NFS package: # yum install nfs-utils nfs-utils-lib
- Start NFS service:
- # service rpcbind start
- # service nfs start
- # chkconfig nfs on && chkconfig rpcbind on
- Make directory for sharing: # mkdir /var/nfs
- NFS configuration
- # vi /etc/exports
- add /var/nfs 10.19.1.15(rw,sync,no_root_squash)
- NFS on CentOS as a client
- Create mount point
- # mkdir /mnt/windowsnfs
- # mkdir /mnt/freebsdnfs
- Mount to windows server
- # mount 10.19.1.15:/share1 /mnt/windowsnfs
- Mount to FreeBSD
- # mount 10.19.3.15:/var/nfs /mnt/freebsdnfs
- Samba on CentOS as a server
- Install Samba package
- # yum install samba samba-client samba-common
- Auto-start at boot time for samba
- # chkconfig smb on
- # chkconfig nmb on
- Disable SELinux
- Edit # vi /etc/selinux/config
- Set SELINUX=disabled
- Add Iptables rules
- # iptables -I INPUT 4 -m state --state NEW -m udp -p udp --dport 137 -j ACCEPT
- # iptables -I INPUT 5 -m state --state NEW -m udp -p udp --dport 138 -j ACCEPT
- # iptables -I INPUT 6 -m state --state NEW -m tcp -p tcp --dport 139 -j ACCEPT
- Configure samba file
- Edit # vi /etc/samba/smb.conf
- Navigate to global setting
- [global] workgroup = WORKGROUP (Windows Server domain)
- security = share
- map to guest = bad user
- Navigate to Share Definitions
- [centsmb]
- path = /var/smb
- browsable =yes
- writable = yes
- guest ok = yes
- read only = no
- Restart samba service
- # service smb restart
- # service nmb restart
- Create directory for sharing: # mkdir /var/smb
- Samba on CentOS as a client
- Create mount point
- # mkdir /mnt/windowssamba
- #mkdir /mnt/freebsdsamba
- Mount to windows server
- #mount -t cifs //10.19.1.15/share2 /mnt/windowssamba -o username=Administrator,password=xxxxxxx
- Mount to FreeBSD
- Mount_smbfs - I 10.19.3.15 //root@cao/bsdsmb /mnt/freebsdsamba
- Configure process accounting
- # yum install psacct
- # chkconfig psacct on
- # /etc/init.d/psacct start
- X-Windows
- # yum -y groups install "GNOME Desktop"
- # startx
- FreeBSD:
- NFS on FreeBSD as a server
- Edit # /etc/rc.conf
- nfs_server_enable="YES"
- nfs_server_flags="-u -t -n 4"
- rpcbind_enable="YES"
- mountd_flags="-r"
- mountd_enable="YES"
- Start NFS service
- # rpcbind
- # nfsd -u -t -n 4
- # mountd -r
- Make directory for sharing: # mkdir /var/nfs
- NFS on FreeBSD as a client
- Create mount point
- # mkdir /mnt/windowsnfs
- # mkdir /mnt/centnfs
- Mount to Windows Server
- Mount 10.19.1.15:/var/nfs /mnt/windowsnfs
- Mount to CentOS
- Mount 10.19.2.15:/var/nfs /mnt/centnfs
- Samba on FreeBSD as a server
- Install samba package
- #pkg install samba43
- Enable Samba at boot time
- # /etc/rc.conf
- Add samba_enable="YES"
- Configure Samba
- /usr/local/etc/smb.conf
- workgroup = WORKGROUOP
- path = /var/smb
- public = no
- writable = yes
- printable = no
- guest ok = no
- Samba on FreeBSD as a client
- # mkdir /mnt/windowssamba
- Mount to windows server
- #mount -t cifs //10.19.1.15/share2 /mnt/windowssamba -o username=Administrator,password=xxxxxxx
- Mount to CentOS
- Mount_smbfs - I 10.19.2.15 //root@cao/centsmb /mnt/centsamba
- Configure process accounting
- Edit /etc/rc.conf
- accounting_enable="YES"
- touch /var/account/acct
- accton /var/account/acct
- /etc/rc.d/accounting start
- X-Windows
- # cd /usr/ports/x11/xorg
- # make install clean
- # startx
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement