Unable to set Zebra ZPL Printer as shared on CUPS

'User made' tutorials related to Porteus Kiosk edition.
Official kiosk documentation can be find here: http://porteus-kiosk.org/documentation.html
PedroAleRib
White ninja
White ninja
Posts: 9
Joined: 02 Sep 2022, 08:58
Distribution: Slackware Linux

Unable to set Zebra ZPL Printer as shared on CUPS

Post#1 by PedroAleRib » 02 Sep 2022, 10:45

Hello everyone.

I'm trying to share Zebra GK420t over the LAN on Porteus Kiosk 5.4.0, but printer always show up as "not shared" in the CUPS web interface. At this address http://localhost:631/printers/Zebra I get:

Zebra (Idle, Accepting Jobs, Not Shared, Server Default).

i.e. I can print locally to the printer, but the share cannot be accessed, as I said above, the printer says it is always Not Shared.

This is the porteus kiosk config to this machine:

connection=wifi
dhcp=yes
wifi_encryption=wpa
wpa_password=******
ssid_name=*****
proxy=
browser=chrome
homepage=https://***********
hostname=CTPrinter
allow_icmp_protocol=yes
primary_keyboard_layout=pt
allow_popup_windows=yes
printer_connection=direct
printer_model=Zebra ZPL Label Printer
disable_private_mode=yes
right_mouse_click=yes
root_password=**********
shutdown_menu=reboot restart-session shutdown
timezone=Europe/Lisbon
vnc_interactive=yes
vnc_password=*****
additional_components=09-x11vnc.xzm uefi.zip 08-ssh.xzm 10-printing.xzm
additional_components=10-printing.xzm
run_command=sed -i 's#/run/cups/cups.sock#172.16.31.142#g' /etc/cups/client.conf
printer_connection=direct
paper_size=Letter
share_printer=yes
printer_name=Zebra


I don't know why this printer would always fail to show up as shared?

Can you help me oh this please?

Cumpz.

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5660
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Unable to set Zebra ZPL Printer as shared on CUPS

Post#2 by fanthom » 02 Sep 2022, 16:06

Hello Pedro,

1) This must be a CUPS web interface bug, the printers are shared in your local network.

You may go to http://127.0.0.1:631/admin and you will see this option enabled:
"Share printers connected to this system"


2) You never said from which system you are trying to print to the shared printer.

When connecting other Porteus Kiosk systems to your shared printer please ensure you use following parameters:

Code: Select all

printer_model=Generic IPP Everywhere Printer
printer_connection=ipp://192.168.1.22/printers/kiosk-printer
I have tested them and they work for sure.
Just update the IP address to match the kiosk's IP which is sharing the printer and printer name (if its different than default).

Thanks
Please add [Solved] to your thread title if the solution was found.

PedroAleRib
White ninja
White ninja
Posts: 9
Joined: 02 Sep 2022, 08:58
Distribution: Slackware Linux

Unable to set Zebra ZPL Printer as shared on CUPS

Post#3 by PedroAleRib » 06 Sep 2022, 13:48

Hi fanthom,

First of all, I'll thank to you for your reply.

Replying to point 2) "You never said from which system you are trying to print to the shared printer." --> I'm trying to print from a web server (Windows server), sending directly to share \\ip\printer, that in this case is \\ip\Zebra.

I will also check what you mentioned in point 1) and then I come to give the feedback.

Thanks in advance.

PedroAleRib
White ninja
White ninja
Posts: 9
Joined: 02 Sep 2022, 08:58
Distribution: Slackware Linux

Unable to set Zebra ZPL Printer as shared on CUPS

Post#4 by PedroAleRib » 20 Sep 2022, 08:11

Hi again fanthom.

I tried to do what you recommended, but without success unfortunately.

I can never get to share the printer, either through this terminal or from another PC with OS Windows.

Tell me something, if you can...I couldn't find Samba in this Linux packages...Is it not necessary for Linux to have this protocol (Samba) for the source from wich I'm sending the print (Windows server) to be able to communicate with the destination (in this case, this Porteus Linux) where I have the printer shared?

Thanks in advance.

PedroAleRib
White ninja
White ninja
Posts: 9
Joined: 02 Sep 2022, 08:58
Distribution: Slackware Linux

Unable to set Zebra ZPL Printer as shared on CUPS

Post#5 by PedroAleRib » 20 Sep 2022, 08:16

Let me tell you just one more thing.

The only way I was able to print from a PC with Windows was by accessing the cups Admin page and sending a print test page for instance.

But I can never access the share wich is what I want.

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5660
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Unable to set Zebra ZPL Printer as shared on CUPS

Post#6 by fanthom » 20 Sep 2022, 11:00

You can print from Linux to a shared printer which is connected to our system just fine.
The issue which you described is not related to our system. It is your Windows configuration fault.

I'm not a Windows expert so I cannot help you.

Thanks
Please add [Solved] to your thread title if the solution was found.

PedroAleRib
White ninja
White ninja
Posts: 9
Joined: 02 Sep 2022, 08:58
Distribution: Slackware Linux

Unable to set Zebra ZPL Printer as shared on CUPS

Post#7 by PedroAleRib » 20 Sep 2022, 15:41

fanthom wrote:
20 Sep 2022, 11:00
You can print from Linux to a shared printer which is connected to our system just fine.
The issue which you described is not related to our system. It is your Windows configuration fault.

I'm not a Windows expert so I cannot help you.

Thanks
No fanthon.

Unfortunately, I can't print from my Porteus Linux to a shared printer wich is connected and config in CUPS Linux.

Thanks in advance.

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5660
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Unable to set Zebra ZPL Printer as shared on CUPS

Post#8 by fanthom » 20 Sep 2022, 18:42

Please provide your kiosk config from the PC from which you want to print to a shared printer.

Thanks
Please add [Solved] to your thread title if the solution was found.

PedroAleRib
White ninja
White ninja
Posts: 9
Joined: 02 Sep 2022, 08:58
Distribution: Slackware Linux

Unable to set Zebra ZPL Printer as shared on CUPS

Post#9 by PedroAleRib » 21 Sep 2022, 10:32

fanthom wrote:
20 Sep 2022, 18:42
Please provide your kiosk config from the PC from which you want to print to a shared printer.

Thanks
Hi fanthom.

Let me tell you that the shared printer is precisely on the same PC whose config I leave below:

additional_components=09-x11vnc.xzm uefi.zip 08-ssh.xzm 10-printing.xzm
connection=wifi
dhcp=yes
wifi_encryption=wpa
wpa_password=********
ssid_name=**** Guest
proxy=
browser=chrome
homepage=https://*****.*****.com
hostname=CTPrinter
allow_icmp_protocol=yes
primary_keyboard_layout=pt
allow_popup_windows=yes
disable_private_mode=yes
right_mouse_click=yes
root_password=*********
shutdown_menu=reboot restart-session shutdown
timezone=Europe/Lisbon
vnc_interactive=yes
vnc_password=root
printer_model=Zebra ZPL Label Printer
printer_connection=usb://Zebra%20Technologies/ZTC%20GK420t?serial=29J151700963
paper_size=default
share_printer=yes
printer_name=Zebra

Thanks in advance.

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5660
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Unable to set Zebra ZPL Printer as shared on CUPS

Post#10 by fanthom » 21 Sep 2022, 11:02

I have a feeling you do not understand the purpose of the 'shared printer' feature ....

Anyway - please use this parameter:

Code: Select all

printer_connection=direct
and you should be able to print from this kiosk to your printer.

Thanks
Please add [Solved] to your thread title if the solution was found.

PedroAleRib
White ninja
White ninja
Posts: 9
Joined: 02 Sep 2022, 08:58
Distribution: Slackware Linux

Unable to set Zebra ZPL Printer as shared on CUPS

Post#11 by PedroAleRib » 21 Sep 2022, 14:04

fanthom wrote:
21 Sep 2022, 11:02
I have a feeling you do not understand the purpose of the 'shared printer' feature ....

Anyway - please use this parameter:

Code: Select all

printer_connection=direct
and you should be able to print from this kiosk to your printer.

Thanks
Thanks fanthom.

The point is simple. Instead of having a network shared printer (in a printserver or in a windows server for instance), I share the printer (wich is connnected via USB to this PC) by the IP of this computer.

I had already tried this parameter, as it is in the first post, but something failed because I always see in it CUPS Admin this detail in the shared printer --> "Zebra (Idle, Accepting Jobs, Not Shared, Server Default)." and I can´t get to the share, either form the PC itself (Porteus Kiosk), or through a Windows PC for instance.


However, I'll redo the config again and include the parameter you suggested and then I'll say something.

Thanks in advance.

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5660
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Unable to set Zebra ZPL Printer as shared on CUPS

Post#12 by fanthom » 21 Sep 2022, 15:29

Pedro,

If its not possible to configure Windows to use Linux shared printer using the IPP protocol then perhaps you could do the opposite:

a) attach the printer to a Windows PC and share it using Windows system
b) customize kiosk ISO with samba support and configure it to print to a SMB shared printer

This way all your Windows and kiosk PCs will be able to use the same network printer.

Thanks
Please add [Solved] to your thread title if the solution was found.

PedroAleRib
White ninja
White ninja
Posts: 9
Joined: 02 Sep 2022, 08:58
Distribution: Slackware Linux

Unable to set Zebra ZPL Printer as shared on CUPS

Post#13 by PedroAleRib » 23 Sep 2022, 14:17

Thanks again fanthom.

But let me ask you one more thing: you're referring Samba, so I assume I can configure the ISO to support that protocol right? I can't find anything in the documentation of Porteus Kiosk Configuration Parameters that indicates any inclusion of Samba modules or protocols.

Can you help me?

Thanks in advance fanthom.

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5660
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Unable to set Zebra ZPL Printer as shared on CUPS

Post#14 by fanthom » 24 Sep 2022, 07:59

You cannot configure the kiosk to enable samba, you need to remaster the ISO and add samba application to it.
I do not help with ISO customization (life is too short to explain everything to everybody - sorry).

If you are interested then you may use a commercial "customized builds" service:
https://porteus-kiosk.org/builds.html

Thanks
Please add [Solved] to your thread title if the solution was found.

PedroAleRib
White ninja
White ninja
Posts: 9
Joined: 02 Sep 2022, 08:58
Distribution: Slackware Linux

Unable to set Zebra ZPL Printer as shared on CUPS

Post#15 by PedroAleRib » 26 Sep 2022, 08:27

Thanks fanthom.

You already helped me a lot.

Post Reply