About Me

Monday, April 18, 2011

Linux NFS (Net File System)


Service                       : nfs

Install                          : # yum install nfs (if there is NO nfs in fedora packages)
                                      # rpm –ivh <nfs file> (if there is nfs in fedora packages)
                                      #ls grep | nfs ==install semua y ada dlm list)

Check Status             : # service nfs status

Up service                  : # /sbin/service nfs status – check status
  # /sbin/service nfs start – start service
                                      # /sbin/service nfs restart – restart service
                                      # /sbin/service nfs stop - stop service

Configuration File     : vim /etc/exports

Parameter                  : refer to topology

Additional info          :

·         SELinux turn off          # modify /etc/selinux/config
o        set selinux = disabled
·         Iptables turn off           # service iptables stop
·                                 Uninstall nfs    : # yum uninstall nfs
  # rpm –e nfs

·                                 If PC 2 is turn off, mount file should be setting up manually
            but mount can be setting automatically by modify vim /etc/fstab
            in fstab just add this line:
           
10.1.1.56:/demo/         /otherpc           nfs       default             00


 

Saturday, April 16, 2011

Linux SAMBA SERVER

SAMBA SERVER  -untuk buat server


Service                       : Samba

Install                          : # yum –y install samba (if there is NO smb in fedora packages)
                                      # rpm –ivh <samba file> (if there is smb in fedora packages)

Check Status             : # rpm –q samba

Up service                  : # smb status – check status
  # service smb start – start service
                                      # service smb restart – restart service
                                      # service smb stop - stop service

Configuration File     : vim /etc/samba/smb.conf (link utk edit)

Parameter                  : security = share I user I server
( Replace : security = share; no need smbpassword)
                                                 
  Create share folder dibawah sekali: 
[demo]
                                                     Path = /demo
                                                     Writable = yes
                                                     Browseable = yes
                                                     Public = yes

Restart samba           : service smb restart


Additional info          :

·         SELinux turn off          # vim  /etc/selinux/config
                                     - set selinux = disabled (reboot pc after set)

·         Iptables turn off           # service iptables stop
              (Also can set by using command #setup      service tool)

·         give user authority      : # mkdir /demo
  # chmod –R 777 /demo (full access) 

·                                 create user account & samba password        : #  adduser demo
      passwd demo
  #  smbpasswd –a demo
     (restart samba)

·                                 Uninstall samba          : yum uninstall samba
                                      rpm –e samba