lifestyle Friday, 10 September 2010 - 12:34
Publications
Comments

instalasi samba di freeBSD

Cara instalasi samba di freeBSD

Sebelumnya apakah samba itu?samba digunakan untuk berbagi file sharing antar linux dan windows, seperti berbagi file doc atau
sharing printer dijaringan dimana linux sebagai servernya dan windows adalah clientnya….

Kita langsung saja ya sebelumnya siapkan dulu

samba-3.0.24.tar.gz (klo belum gogling aja :P trus download)
freeBSD 6.1 (xixixi so pastilah)
makanan (aga lama nih nginstalnya)
minuman (biar ntar kaga mati keselek hehehehe)
winamp  (biar kaga bete nungguin instalasi, sambil denger musik ajiiib)

ok kita langsung saja ya….
extract dulu source sambanya
bsd# tar -zxvf samba-3.0.24.tar.gz

bsd# cd samba-3.0.24

bsd# ./configure

mungkin aga lama nih configurenya jadi jalanin winampnya aja dulu :P
bsd# make

ini juga lama uy xixixi

bsd# make install

Kalau sudah selesai jangan lupa copi file smb.conf.default ke smb.conf yang berada didirektori /usr/local/etc/

bsd# cd /usr/local/etc/

bsd# cp smb.conf.default smb.conf

setelah itu edit file config smb.conf

bsd# pico smb.conf

#======================= Global Settings =====================================
[global]

# workgroup = NT-Domain-Name or Workgroup-Name, eg: REDHAT4
workgroup = Samba FreeBSD

# server string is the equivalent of the NT Description field
server string = Samba Server

log file = /var/log/log.%m

# Put a capping on the size of the log files (in Kb).
max log size = 50

# Security mode. Most people will want user level security. See
# security_level.txt for details.
security = user

encrypt passwords = yes

socket options = TCP_NODELAY

local master = yes

domain master = yes

preferred master = yes
#============================ Share Definitions ==============================
[homes]
comment = Home Directories
browseable = no
writeable = yes
[tmp]
comment = Temporary file space
path = /tmp
writeable = yes
public = yes

diatas adalah file smb.conf yang telah diedit, edit sesuai kebutuhan, disitu saya mensharingkan folder homes dengan folder tmp difreeBSD

klo sudah jangan lupa disave ya….setelah itu kita test dengan perintah testparm buat melihat apakah config yang kita buat
berjalan atau tidak

tapi sebelumnya jangan lupa untuk mengopi file samba.sh.sample menjadi samba

bsd# cd /usr/local/etc/rc.d/
bsd# cp samba.sh.sample samba

setelah itu baru tes file config sambanya xixixi…..

bsd# testparm

nanti akan keluar seperti

Load smb config files from /usr/local/etc/smb.conf
Processing section “[homes]”
Processing section “[tmp]”
Loaded services file OK.
Press enter to see a dump of your service definitions

kalau keluar seperti itu berarti confignya benar, jika keluarnya ada tulisan error coba cek lagi file smb.conf nya kali aja ada yang terlewat….

habis itu kita jalankan sambanya

bsd#/usr/local/etc/rc.d/samba start

Leave a Reply

[+] kaskus emoticons nartzco
Content Protected Using Blog Protector By: PcDrome.