Pages

05 Maret 2010

Konfigurasi Samba Server

Langkah-langkah konfigurasi samba server :

1. Install samba server.
> yast > Software > Software Management

2. Masuk ke folder samba :
> cd /etc/samba

3. Backup data smb.conf asli :
> mv smb.conf smb.conf.backup

4. Buat file smb.conf baru :
> touch smb.conf

5. Isi file smb.conf baru itu dengan :
> vim smb.conf
> isinya berikut ini :
=====================================
[global]
workgroup = Tekaje
encrypt password = no
smb passwd file = /etc/samba/smbpasswd

[ReadOnly]
path = /home/readonly
public = yes
read only = yes
writable = no

[FullShare]
path = /home/fullshare
public = yes
read only = no
writable = yes
guest ok = yes
=====================================
> Save : :wq

6. Masuk ke folder home :
> cd /home

7. Buat folder dari path yang kita tuliskan di dalam smb.conf : > mkdir readonly
> mkdir fullshare

8. Buat user untuk samba : > smbpasswd -a (nama user)
> buat password
> untuk lihat user yang sudah ada : users

9. Buat permission dari file fullshare supaya dapat di edit oleh user manapun :
> chmod 777 fullshare

10. restart sambanya :
> /etc/init.d/smb restart

Konfigurasi DHCP Server

Langkah-langkah Konfigurasi DHCP server :

1. Install DHCP server
> yast > Software > Software Management

2. Masuk ke folder /etc :
> cd /etc

3. Backup data dhcpd.conf :
> mv dhcpd.conf dhcpd.conf.backup

4. Buat file dhcpd.conf baru :
> touch dhcpd.conf

5. Isi file dhcpd.conf yang baru itu :
> vim dhcpd.conf
> Isinya sebagai berikut :
=====================================================
ddns-update-style interim ;
ignore client-updates ;
subnet 172.19.21.168 netmask 255.255.255.248
{
option routers 172.19.21.169 ;
option subnet-mask 255.255.255.248 ;
option domain-name "conscription.net" ;
option domain-name-servers 202.134.0.155 ;
range dynamic-bootp 172.19.21.172 172.19.21.174 ;
default-lease-time 21600; max-lease-time 43200;
}
=====================================================
> Save : :wq

6. Edit file dhcpd di /etc/sysconfig :
> vim /sysconfig/dhcpd
> Edit DHCP Interface = "eth1"
> save : :wq

7. Restart dhcpd server :
> /etc/init.d/dhcpd restart