This is default featured slide 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

Minggu, 31 Agustus 2014

CARA INSTALL DAN KONFIGURASI SAMBA DI UBUNTU SERVER 12.04

samba linux Install Dan Konfigurasi Samba di Ubuntu Server 12.04 (Bagian 1)
Samba adalah protokol jaringan untuk sharing file yang bisa digunakan antara Windows – Linux maupun sesama Linux. Sebelumnya saya sudah menulis tutorial Samba untuk versi Ubuntu Desktop, tutorial kali ini untuk Ubuntu Server dengan instalasi dan konfigurasi via terminal.
Install Samba
1
$ sudo apt-get install samba
Samba Share Full Akses dan Tanpa Login
Membuat Folder Share
1
2
$ sudo mkdir /home/share_full
$ sudo chmod 777 /home/share_full

Konfigurasi Samba
Edit file konfigurasi Samba smb.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$ sudo nano /etc/samba/smb.conf
 
#nama workgroup
workgroup = WORKGROUP
 
#"security = share" client bisa mengakses Samba tanpa username dan password
security = share
 
#Tambahkan pada baris paling bawah
[Share_Full]
 path = /home/share_full
 writeable = yes
 guest ok = yes
 guest only = yes
 create mode = 0777
 directory mode = 0777
 share modes = yes
Restart service smbd
1
$ sudo service smbd restart
Mengakses Samba
Melihat daftar folder yang dishare pada IP 10.10.10.1
1
2
3
4
5
6
7
8
9
$ smbclient -L //10.10.10.1
Enter musa's password:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.3]
 
    Sharename       Type      Comment
    ---------       ----      -------
    print$          Disk      Printer Drivers
    Share_Full      Disk     
    IPC$            IPC       IPC Service (ubuntu-server server (Samba, Ubuntu))            
Mount Share_Full pada IP 10.10.10.1 ke folder /mnt tanpa username dan password
1
$ sudo mount -t cifs //10.10.10.1/Share_Full /mnt -o username=,password=
Melepas mount atau unmount
1
$ sudo umount /mnt



Samba Share Dengan Login
Membuat Folder Share
1
2
$ sudo mkdir /home/share_login
$ sudo chmod 777 /home/share_login

Konfigurasi Samba
Edit file konfigurasi Samba smb.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$ sudo nano /etc/samba/smb.conf
 
#nama workgroup
workgroup = WORKGROUP
 
#"security = user" client harus memiliki user account pada Ubuntu Server untuk mengkases Samba
security = user
 
#Tambahkan pada baris paling bawah
[Share_Login]
 path = /home/share_login
 writeable = yes
 browseable = yes
 create mode = 0770
 directory mode = 0770
 valid user = smbuser
 share modes = yes
Restart service smbd dan nmbd
1
$ sudo service smbd restart
Mengeset Password dari User yang sudah ada
$ sudo smbpasswd -a smbuser
New SMB password :
Retype new SMB password :
Mengakses Samba
Melihat daftar folder yang dishare pada IP 10.10.10.1
1
2
3
4
5
6
7
8
9
$ smbclient -L //10.10.10.1
Enter musa's password:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.3]
 
    Sharename       Type      Comment
    ---------       ----      -------
    print$          Disk      Printer Drivers
    Share_Login     Disk     
    IPC$            IPC       IPC Service (ubuntu-server server (Samba, Ubuntu))     
Mount Share_Login pada IP 10.10.10.1 ke folder /mnt tanpa username dan password
1
$ sudo mount -t cifs //10.10.10.1/Share_Login /mnt -o username=smbuser,password=smbpass
Melepas mount atau unmount
1
$ sudo umount /mnt
selamat mencoba icon biggrin Install Dan Konfigurasi Samba di Ubuntu Server 12.04 (Bagian 2)

referensi :