Windows shared network printing issue in ubuntu 18.04.
- printers are installed in windows 8 machine and shared.
- when try to find the network printer from ubuntu 18.04 using the ip of windows machine then it is showing an error
"no network printer found"
- even, when we found the shared folders using smbclient command then it will showing an error
syslog option deprecated,
Enter WORKGROUP\root's password:
Sharename Type Comment
--------- ---- -------
ADMIN$ Disk Remote Admin
Backup Disk
bk Disk
bkp Disk
C$ Disk Default share
Canon UFR II Color Class Driver Printer Canon UFR II Color Class Driver
Canon-LBP2900-toc64 Printer Canon LBP2900
Canon2900 Printer \\MUIN-KHAN\Canon-LBP2900
D$ Disk Default share
Data Disk
HP-LaserJet-M1005 Printer \\KESHA\Hewlett-Packard-HP-LaserJet-M1005
IPC$ IPC Remote IPC
libjack Disk
print$ Disk Printer Drivers
raj Disk
Users Disk
Reconnecting with SMB1 for workgroup listing.
Connection to 192.168.1.20 failed (Error NT_STATUS_RESOURCE_NAME_NOT_FOUND)
Failed to connect with SMB1 -- no workgroup available
it is showing an error as showing in bold letter.
even if are checking the syslog then it will be like,
Jul 26 10:01:03 localhost dbus-daemon[712]: [system] Successfully activated service 'org.freedesktop.hostname1'
Jul 26 10:01:03 localhost systemd[1]: Started Hostname Service.
Jul 26 10:01:20 localhost python: io/hpmud/jd.c 93: unable to read device-id
Jul 26 10:01:20 localhost python: io/hpmud/jd.c 745: invalid ip 192.168.1.20
Jul 26 10:01:20 localhost hp-makeuri: hp-makeuri[13665]: error: Device not found
Solution:
First: Ubuntu does not install a smb.conf in 18.04 so I suggest you install the samba client package:
Second: Then edit /etc/samba/smb.conf and right unser the workgroup = WORKGROUP line add this line to change the default:
Third: Install samba packages.
and reboot.... Yes reboot..
fourth: Install CUPS:
fifth: Install python3-smbc:
Now try to find network printer from system-config-printer
it works !!!
- printers are installed in windows 8 machine and shared.
- when try to find the network printer from ubuntu 18.04 using the ip of windows machine then it is showing an error
"no network printer found"
- even, when we found the shared folders using smbclient command then it will showing an error
smbclient -L 192.168.1.20
output: syslog option deprecated,
Enter WORKGROUP\root's password:
Sharename Type Comment
--------- ---- -------
ADMIN$ Disk Remote Admin
Backup Disk
bk Disk
bkp Disk
C$ Disk Default share
Canon UFR II Color Class Driver Printer Canon UFR II Color Class Driver
Canon-LBP2900-toc64 Printer Canon LBP2900
Canon2900 Printer \\MUIN-KHAN\Canon-LBP2900
D$ Disk Default share
Data Disk
HP-LaserJet-M1005 Printer \\KESHA\Hewlett-Packard-HP-LaserJet-M1005
IPC$ IPC Remote IPC
libjack Disk
print$ Disk Printer Drivers
raj Disk
Users Disk
Reconnecting with SMB1 for workgroup listing.
Connection to 192.168.1.20 failed (Error NT_STATUS_RESOURCE_NAME_NOT_FOUND)
Failed to connect with SMB1 -- no workgroup available
it is showing an error as showing in bold letter.
even if are checking the syslog then it will be like,
Jul 26 10:01:03 localhost dbus-daemon[712]: [system] Successfully activated service 'org.freedesktop.hostname1'
Jul 26 10:01:03 localhost systemd[1]: Started Hostname Service.
Jul 26 10:01:20 localhost python: io/hpmud/jd.c 93: unable to read device-id
Jul 26 10:01:20 localhost python: io/hpmud/jd.c 745: invalid ip 192.168.1.20
Jul 26 10:01:20 localhost hp-makeuri: hp-makeuri[13665]: error: Device not found
Solution:
First: Ubuntu does not install a smb.conf in 18.04 so I suggest you install the samba client package:
Code:
sudo apt install smbclient
Code:
client max protocol = NT1
Code:
apt-get install samba
fourth: Install CUPS:
Code:
apt-get install cups; apt-get install cups-bsd
fifth: Install python3-smbc:
Code:
apt-get install python3-smbc
it works !!!
