install Samba & smbfs & winbind on ubuntu

apt-get install samba
This will install the tools to mount SMB shares.
apt-get install smbfs
If you would like to mount your SMB share using your (server) hostname
rather than the IP Address, edit /etc/hosts and add your samba server
(syntax IP Address hostname).
xxx.xxx.xxx.xxx hostname
install winbind
apt-get install winbind
By following these steps, you will be able to share a printer from your
Ubuntu computer so that Windows XP and Windows 2000 computers can print
to it.

1) Make sure your printer is installed.

2) Open the Printing window (System -> Administration -> Printing).

3) Click Server Settings in the list of printers.

4) To the right, under Basic Server Settings, check the box that reads, "Share published printers connected to this system".

5) In the list of printers, click the printer you want to share.

6) Click in the Policies tab and make sure all three check boxes (Enabled, Accepting jobs, and Shared) are checked.

7) Click the Apply button in the lower-right corner of the window.

add printer on windows:
http://:631/printers/

edit
/etc/cups/printers.conf file (i'm using cups v1.3.x)
gedit /etc/cups/printers.conf
#####################################################################

Info Hewlett-Packard HP LaserJet 1020
Location server
DeviceURI hp:/usb/HP_LaserJet_1020?serial=JL0AFT5
State Idle
StateTime 1221645018
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy retry-job


Info PDF
DeviceURI cups-pdf:/
State Idle
StateTime 1208886882
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy retry-job

#####################################################################
view detail here:
https://help.ubuntu.com/community/SettingUpSamba
https://help.ubuntu.com/community/NetworkPrintingFromWinXP
https://help.ubuntu.com/community/ActiveDirectoryWinbindHowto

Nhận xét

Bài đăng phổ biến từ blog này

Ký tự viết tắt trong chat & email

dung lượng RAM lớn nhất mà HĐH cấu trúc 32-bit nhận được

Ubuntu LAMP Server