Linux Programmer | RHCE | RHCSA

Search This Blog

Thursday 26 July 2018

Windows shared network printer issue in ubuntu 18.04

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


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
Second: Then edit /etc/samba/smb.conf and right unser the workgroup = WORKGROUP line add this line to change the default:
Code:
client max protocol = NT1
Third: Install samba packages.
Code:
apt-get install samba
and reboot.... Yes reboot..
fourth: Install CUPS:
Code:
apt-get install cups; apt-get install cups-bsd 

fifth: Install python3-smbc:
Code:
apt-get install python3-smbc
 Now try to find network printer from system-config-printer 

it works !!!

7 comments:

  1. If you need to add Epson xp 235 wifi setup to a wireless network then in that case on the printer machine press the home button further press the arrow on the printer then as you see the wi- fi set up option press the OK button. If in case you are still in need of more information or help then ask for it from the experts.

    ReplyDelete
  2. Thank you again for all the knowledge you distribute,Good post. I was very interested in the article, it's quite inspiring I should admit. I like visiting you site since I always come across interesting articles like this one.Great Job, I greatly appreciate that.Do Keep sharing! Regards, best barcode label printer

    ReplyDelete
  3. I am really enjoying reading your well written articles. It looks like you spend a lot of effort and time on your blog. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work. cheap rdp

    ReplyDelete
  4. If Epson XP 446 setup is to be done then for that the user should unpack and remove all the tapes as well as sheets from the machine further the user should turn on the power button on the laptop after that should insert the CD in the laptop, if you are still looking for more information or help then, in that case, it is advisable that the user gets connected with the certified Epson printer technical team.
    Epson Printer Help UK

    ReplyDelete
  5. nano /etc/samba/smb.conf
    add below:
    client max protocol = NT1

    nano /usr/share/applications/system-config-printer.desktop
    Find this line:
    NotShownIn=KDE;GNOME;
    And remove the KDE part:
    NotShownIn=GNOME;

    ReplyDelete
  6. laser, double-sided, color, or high-speed. In addition to printers, most rental agencies carry scanners and fax machines, in case they are needed too. renting impresoras barcelona

    ReplyDelete

SSH not working with password after upgrade ubuntu 22.04

Issue: In recent upgrade of ubuntu 22.04 we are not able to login server with SSH password. but when we try to login with key then it allow...