Wednesday, August 28, 2019

Mengakses printer windows XP dari ubuntu

bila dari windows bisa pakai http:
http://yourcomputersIPaddressorwinshostname:631/printers/yourprinters-exact-name

Bila dari ubuntu, untuk cek printer:
smbclient -L rice -N
atau
smbclient -I 192.168.1.25 -L rice -N
cek SMB:
ls -l /usr/lib/cups/backend/smb
Bila tidak ada
ln -s `which smbspool` /usr/lib/cups/backend/smb
tambah manual printer:
lpadmin -p RicePrinter -v smb://rice/INKJET -P /root/inkjet.ppd
enable RicePrinter
accept RicePrinter
lpadmin -d RicePrinter
lpadmin -p RicePrinter -h 192.168.1.25 -i smb://rice/inkjet-P /root/inkjet.ppd


tes printer:
/usr/bin/smbclient -L {Server_IP} -U {ad.domain.name.com}/{domain_username}




  1. On system settings -> printer -> properties, set the authentication details as follows:
    Username youruser@domain.com
    Password yourpass
    VERIFY
    
  2. Print test page

setelan lain:
1) sudo vim /etc/samba/smb.conf

search for 'workgroup' and set the value to be whatever your workgroup/windows domain is.

2) sudo vim /etc/cups/printers.conf

search for DeviceURI 
Update the string to contain your domain, username and password e.g.

DeviceURI smb://MYDOMAIN\MyUsername:MyPassword@printerhost/printername

3) sudo service cups restart

4) Print a test page

nama domain harus uppercase:

In my case the domain name points to a netbios print server and as: 1) netbios names are (almost) always uppercase and 2) we (in UNIX/Linux) assume case sensitively then it should be in UPPERCASE


mb:// username:password@192.168.2.82/HPLaserJ atau

No comments:

Post a Comment