- Installl samba
$ sudo apt-get install samba4
(install samba, server can not start, i don't know why)
$ sudo apt-get install smbclient
- Configure /etc/samba/smb.conf
[global] security = share
[share] comment = chenorui path = /home/chenorui/share public = yes guest ok = yes browsable = yes writable = no
- Restart samba server
$ sudo /etc/init.d/samba4 restart
- Look at what services are available on a server
$ smbclient -L //yourIP Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.5.4] Sharename Type Comment --------- ---- ------- IPC$ IPC IPC Service (chenorui server (Samba, Ubuntu)) share Disk chenorui HP-LaserJet-M1522 Printer HP LaserJet M1522 Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.5.4] Server Comment --------- ------- Workgroup Master --------- -------
- Login share profile
$ smbclient //yourIP/share smb: \>
- mount share profile
$ sudo smbmount //yourIP/share /tmp/test
搜尋此網誌
2011年1月7日 星期五
ubuntu samba server
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言