Unable to Install QZ Tray on AlmaLinux v9.5.0 STANDARD kvm

11 views
Skip to first unread message

Les Bennett

unread,
Mar 20, 2025, 10:46:16 AMMar 20
to qz-print
Hello experts,

I am trying to install Qz Tray with command 'wget -qO - qz.sh | bash' as given on the site. but when it tries to install it gives following error

/tmp/tray-v2.2.4.run: line 700: ./install: Permission denied

Can anyone please help what could be the problem?

Following section seems to be failing with line 700 in it.

678 if test x"$script" != x; then
    679     if test x"$export_conf" = x"y"; then
    680         MS_BUNDLE="$0"
    681         MS_LABEL="$label"
    682         MS_SCRIPT="$script"
    683         MS_SCRIPTARGS="$scriptargs"
    684         MS_ARCHDIRNAME="$archdirname"
    685         MS_KEEP="$KEEP"
    686         MS_NOOVERWRITE="$NOOVERWRITE"
    687         MS_COMPRESS="$COMPRESS"
    688         MS_CLEANUP="$cleanup"
    689         export MS_BUNDLE MS_LABEL MS_SCRIPT MS_SCRIPTARGS
    690         export MS_ARCHDIRNAME MS_KEEP MS_NOOVERWRITE MS_COMPRESS
    691     fi
    692
    693     if test x"$verbose" = x"y"; then
    694                 MS_Printf "OK to execute: $script $scriptargs $* ? [Y/n] "
    695                 read yn
    696                 if test x"$yn" = x -o x"$yn" = xy -o x"$yn" = xY; then
    697                         eval "\"$script\" $scriptargs \"\$@\""; res=$?;
    698                 fi
    699     else
    700                 eval "\"$script\" $scriptargs \"\$@\""; res=$?
    701     fi
    702     if test "$res" -ne 0; then
    703                 test x"$verbose" = xy && echo "The program '$script' returned an error code ($res)" >&2
    704     fi
    705 fi

Can any one please help?

Thank you.

Tres Finocchiaro

unread,
Mar 20, 2025, 1:55:14 PMMar 20
to Les Bennett, qz-print
Weird... works fine here... Alma 9.5.

almalinux.png


--
You received this message because you are subscribed to the Google Groups "qz-print" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qz-print+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/qz-print/857b09c0-b8f3-44ec-80a4-96bdb9420b42n%40googlegroups.com.

Tres Finocchiaro

unread,
Mar 20, 2025, 1:57:07 PMMar 20
to Les Bennett, qz-print
Following section seems to be failing with line 700 in it.

678 if test x"$script" != x; then
    679     if test x"$export_conf" = x"y"; then


This is NOT our code.  I have no idea what this is.

Les Bennett

unread,
Mar 21, 2025, 3:05:33 AMMar 21
to Tres Finocchiaro, qz-print
Hello Tres,

Thank you for your reply.

This is a code snippet that I got from CPANEL Support. 
SO basically I have a web server on which I have installed Alma Linux 9.5 and Cpanel to manage my websites.
I tried to install QZ Tray but got error -> /tmp/tray-v2.2.4.run: line 700: ./install: Permission denied

So I raised ticket in CPANEL support and ask them if they can help and they gave me the above code.

I saw that it is running fine for you on Alma Linux but not for me. Can you give any suggestions about above error that I am getting on my server.
I am not LINUX expert so not sure what could be wrong.
I tried to run it using sudo as well as tried to give permission 777 to tray-v2.2.4.run file but it didn't work.

Let me know if you have any idea or can help further with this.

Thank you.




Tres Finocchiaro

unread,
Mar 21, 2025, 11:16:43 AMMar 21
to Les Bennett, qz-print
I'm not sure why you're using cpanel to install QZ Tray that seems like a mistake.

You're probably hitting SELinux or AppArmor restrictions.  This isn't a problem with QZ Tray but your environment.

With regards to cpanel, there's nearly no use-cases of installing QZ Tray on a remote webserver, better yet through a web-based terminal.  Something feels off about this entire approach.


Les Bennett

unread,
Mar 21, 2025, 1:12:37 PMMar 21
to Tres Finocchiaro, qz-print
Hello,
Thank you for your response.
I think cpanel has nothing to do with the installation. I am just using its terminal to install QZ Tray on Alma Linux 9.5 OS.
My purpose of using QZ tray is to allow customers to print label on Brother QL-810W printer directly from the website.
As far as I know QZ tray fits for that purpose. Mine is a dedicated server and not shared one. SO I think it should not be a problem.

I did not get you exactly about SELinux or AppArmour restrictions. If you can please elaborate it further.

Thank you.

Tres Finocchiaro

unread,
Mar 21, 2025, 1:21:44 PMMar 21
to Les Bennett, qz-print
I think cpanel has nothing to do with the installation. I am just using its terminal to install QZ Tray on Alma Linux 9.5 OS.

It does because it tells us that your server is remote and that's not how QZ Tray is intended to be run.  QZ Tray is nearly useless on a web server until in specific on-premise deployments.

My purpose of using QZ tray is to allow customers to print label on Brother QL-810W printer directly from the website.

In 99% of the cases, QZ Tray belongs on the PC, not your server.

I did not get you exactly about SELinux or AppArmour restrictions. If you can please elaborate it further.

You may search for them yourself, this is unrelated to our product.
 

Les Bennett

unread,
Mar 22, 2025, 1:24:33 AMMar 22
to qz-print
Hello,
Thank you for the reply. May be I have misunderstood about how QZ Tray exactly works.

As you said in you previous reply for my purpose of use for QZ Tray
 
My purpose of using QZ tray is to allow customers to print label on Brother QL-810W printer directly from the website.

In 99% of the cases, QZ Tray belongs on the PC, not your server.

So, in my case all my customers who would be using the website will need to have QZ Tray installed on their local pc.
If I send print instructions from my javascript code. Will it work? or is it that QZ Tray only designed to work on local environment and does not work in client/server architecture like websites or web applications?

Thank you.


Tres Finocchiaro

unread,
Mar 22, 2025, 1:36:54 AMMar 22
to Les Bennett, qz-print
Hi,

I would recommend that you test it out locally by installing QZ Tray and visiting https://demo.qz.io.

QZ Tray is mostly used as a client-side technology.  In order for it to communicate with client printers it must be available to the client's environment and being installed on the PC is usually the easiest way to do this.

It works with client-server models but it's a client-side API.  Hopefully testing the demo will make this clearer.

-Tres



--
You received this message because you are subscribed to the Google Groups "qz-print" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qz-print+u...@googlegroups.com.

Les Bennett

unread,
Mar 22, 2025, 2:43:04 AMMar 22
to qz-print
Hello Tres,

Thank you for the quick response. I have understood now, how it works. 

Thank you.

Reply all
Reply to author
Forward
0 new messages