XP = PC Server
Ubuntu = PC Clients
------------------------------------------
peer to peer
1. install samba di ubuntu
as user
tukulesto@ageshaaa:/home/tukulesto# sudo apt-get install samba
as root
root@ageshaaa:/home/tukulesto# apt-get install samba
2. samba configured
tukulesto@ageshaaa:/home/tukulesto# /etc/init.d/samba stop
Next
tukulesto@ageshaaa:/home/tukulesto# sudo mv /etc/samba/smb.conf /etc/samba/smb.conf.template
Next bikin file kosong
tukulesto@ageshaaa:/home/tukulesto# sudo touch /etc/samba/smb.conf
kemudian
tukulesto@ageshaaa:/home/tukulesto# sudo gedit /etc/samba/smb.conf
isi sama code di bawah
[global]
; General server settings
netbios name = HOSTNAME
server string =
workgroup = WORKGROUP
announce version = 5.0
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192
passdb backend = tdbsam
security = user
null passwords = true
username map = /etc/samba/smbusers
name resolve order = hosts wins bcast
wins support = yes
printing = CUPS
printcap name = CUPS
syslog = 1
syslog only = yes
; NOTE: If you need access to the user home directories uncomment the
; lines below and adjust the settings to your hearts content.
;[homes]
;valid users = %S
;create mode = 0600
;directory mode = 0755
;browseable = no
;read only = no
;veto files = /*.{*}/.*/mail/bin/
; NOTE: Only needed if you run samba as a primary domain controller.
; Not needed as this config doesn't cover that matter.
;[netlogon]
;path = /var/lib/samba/netlogon
;admin users = Administrator
;valid users = %U
;read only = no
; NOTE: Again - only needed if you're running a primary domain controller.
;[Profiles]
;path = /var/lib/samba/profiles
;valid users = %U
;create mode = 0600
;directory mode = 0700
;writeable = yes
;browseable = no
; NOTE: Inside this place you may build a printer driver repository for
; Windows - I'll cover this topic in another HOWTO.
[print$]
path = /var/lib/samba/printers
browseable = yes
guest ok = yes
read only = yes
write list = root
create mask = 0664
directory mask = 0775
[printers]
path = /tmp
printable = yes
guest ok = yes
browseable = no
; Uncomment if you need to share your CD-/DVD-ROM Drive
;[DVD-ROM Drive]
;path = /media/cdrom
;browseable = yes
;read only = yes
;guest ok = yes
[MyFiles]
path = /media/samba/
browseable = yes
read only = no
guest ok = no
create mask = 0644
directory mask = 0755
force user = USERNAME
force group = USERGROUP
cari Workgroup di WINSHIT tau kan caranya ?
ex: workgroup = MSHOME
-> wins support = yes
3. bikin folder samba
tukulesto@ageshaaa:/home/tukulesto# sudo mkdir /home/samba
-> path = /media/samba/
-> force user = USERNAME
-> force group = USERNAME
ex:
force user = tukulesto
force group = tukulesto
save filenya yang tadi ( smb.conf )
ganti permission filenya
tukulesto@ageshaaa:/home/tukulesto# sudo chmod 0777 /media/samba
4. Start samba
tukulesto@ageshaaa:/home/tukulesto# sudo /etc/init.d/samba start
pastikan semuanya telah benar, kalo salah ya ulang lg.
5. add password untuk sambanya
tukulesto@ageshaaa:/home/tukulesto# sudo smbpasswd -L -a username
tukulesto@ageshaaa:/home/tukulesto# sudo smbpasswd -L -e username
harus sama dengan settingan di windowsnya, jangan sampe beda.
contohnya
tukulesto@ageshaaa:/home/tukulesto# sudo useradd -s /bin/true icd
tukulesto@ageshaaa:/home/tukulesto# sudo smbpasswd -L -a ict
tukulesto@ageshaaa:/home/tukulesto# sudo smbpasswd -L -e ict
6. Network Settings di winshit
- klik "START"
- klik "Control Panel"
- klik "Network Connections"
- Find your "LAN Connection"
- klik kanan icon, select "Properties"
- pilih "TCP/IP" Protocol klik "Properties"
- klik "Advanced"
- pilih tab yang namanya "WINS"
- klik "Add"
- tulis IP di ubuntunya disitu
- klik "Add"
- pilih "Use NetBIOS over TCP/IP"
- klik "OK"
- klik "OK"
- klik "OK" yang terakhir
- restart itu si PC winshit nya
7. add di bagian [general] yang ada di smb.conf
interfaces = lo, eth0
bind interfaces only = true
jadinya kaya gini
[global]
; General server settings
netbios name = HOSTNAME
server string =
workgroup = WORKGROUP
announce version = 5.0
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192
interfaces = lo, eth0
bind interfaces only = true
wahhhhhhhhh kelar jug akhirnya...
ckckkckc panjang bener ngetiknya ;))
TESTED ON
EeePC with WIN XP SP3 MEDIA CENTER EDITION as SERVER wireless :D
PC with UBUNTU 9.10 ( karmic koala )