Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
01-28-2020, 03:40 PM
|
#16
|
Senior Member
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,849
|
Quote:
Originally Posted by ozstar
I am loving the challenge of Linux however wonder why 'install' or batch scripts aren't written to do all the manual work like in Windows.
|
Windows pretty much only used InstallShield for software installations, didn't it? Compare that to the different package managers available for Linux. Single package format vs. many package formats. You'd think that a script that simply unpacks the source code, runs 'configure', and compiles and installs the software would be the way to go. But... with so many distributions -- some based on RedHat, others based on Debian, etc., etc. -- 'configure' can't automatically figure it all out. Plus, everyone's Linux system would have to be configured as though it were being used for software development and that's far from a safe assumption.
|
|
|
01-29-2020, 04:12 AM
|
#17
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,208
|
Quote:
Originally Posted by rnturn
Sometimes 'strings' helps. There maybe a 'usage' type message or the text of the prompts a user would see buried in the binary.
|
I've already found the English strings (and a lot from foreign languages as well). Unfortunately there's no way of knowing in what circumstances they are given. The best way to find out would be to do the install in some kind of sandbox but I don't know how to create one.
|
|
|
01-29-2020, 10:02 AM
|
#18
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,208
|
There is a script that the program writes and then runs. But I can't make head or tail of it. Everything seems to be in the wrong order. It starts with some completely isolated case statements in shell syntax for starting and stopping a print queue (it has a separate print daemon, not cupsd), then comes a shebang and a copyright statement, and then what look like installation instructions for different UNIX varieties. Finally there's a dirty great EULA which is printed in about 40 different languages! I'm attaching it for those who are interested.
btw has anyone else noticed that the attachment proceedure has changed? You now have to tick a box labelled "I'm not a robot" although there isn't a proper capcha.
Last edited by hazel; 01-29-2020 at 10:04 AM.
|
|
|
01-29-2020, 11:17 AM
|
#19
|
Senior Member
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,849
|
Quote:
Originally Posted by hazel
I've already found the English strings (and a lot from foreign languages as well). Unfortunately there's no way of knowing in what circumstances they are given. The best way to find out would be to do the install in some kind of sandbox but I don't know how to create one.
|
I suggested it as I notice that a lot (most?) binaries seem to include names of a lot of libraries. Perhaps the name of the curses library it is linked against is in that list.
What about setting up a virtual machine via libvirt and run the installer under that? (It's been too long since I've used that... back to the tutorials.)
|
|
|
01-29-2020, 11:39 AM
|
#20
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,208
|
Quote:
Originally Posted by rnturn
I suggested it as I notice that a lot (most?) binaries seem to include names of a lot of libraries. Perhaps the name of the curses library it is linked against is in that list.
|
No, it's not there. That was the first thing I checked. But I've noticed that many of the printed messages have variable strings in them. I suspect the program checks for the libraries the installable programs are linked against and puts the names of any missing ones in a standard message.
Quote:
What about setting up a virtual machine via libvirt and run the installer under that? (It's been too long since I've used that... back to the tutorials.)
|
Sooner you than me!
|
|
|
01-29-2020, 11:43 AM
|
#21
|
Senior Member
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,849
|
Quote:
Originally Posted by hazel
There is a script that the program writes and then runs. But I can't make head or tail of it. Everything seems to be in the wrong order.
|
Code obfuscation? :^D
Quote:
It starts with some completely isolated case statements in shell syntax for starting and stopping a print queue (it has a separate print daemon, not cupsd), then comes a shebang and a copyright statement, and then what look like installation instructions for different UNIX varieties. Finally there's a dirty great EULA which is printed in about 40 different languages! I'm attaching it for those who are interested.
|
That is the script that's created by the installer?
A fairly inscrutable script. It does make mention of CUPS down in the later portion but I can't tell what the heck it's doing with that. I like how the only comments are the copyright notice. Looks like mortals are not expected to know how this works---unless they can reverse engineer the command line arguments. Ugh.
I do like this part, though:
Code:
#!/bin/sh
###############################################################
## ##
## Copyright (C) %d by %s Corp. All rights reserved. ##
## ##
###############################################################
## Exit Script
exit 0
At least it doesn't use a lot of resources when it runs. Or, as you noted, everything is in the wrong order.
|
|
|
01-30-2020, 05:22 AM
|
#22
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,208
|
My guess is that the order is obfuscated to prevent people like us from finding out how the thing actually works. The program probably writes the script out to a file in blocks in an internally specified order, then runs it.
|
|
|
01-31-2020, 03:56 AM
|
#23
|
Member
Registered: Oct 2003
Location: Sydney OZ
Distribution: Ubuntu 20.04LTS, Zorin 16.2 Pro
Posts: 143
Original Poster
Rep:
|
OMG.
I'm so sorry I have taken up so much of your time !
But isn't it crazy that one of the biggest printer companies in the world cannot easily provide a script driver for Linux, one of the biggest OS's!
I have come across this but not sure of it casts any better light on the subject or not.
https://veronneau.org/installing-xer...-on-linux.html
Altho' I've been in the IT industry for over 40 years, unfortunately my knowledge of Linux is so very limited so I am unable to contribute anything at all, except to keep you all from your favourite pastimes.
Thanks, and more thanks.. :-)
|
|
|
01-31-2020, 04:12 AM
|
#24
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,208
|
That's a brilliant link, Ozstar! I particularly love this bit:
Quote:
It's hard mainly because Xerox kinda sucks and has near zero documentation for Linux. Step up your game, Xerox.
|
and this:
Quote:
After contacting Xerox support and bugging them for a few weeks on this, they basically told me they would not fix it themselves, but they could bill for it, the IT equivalent of a big "F*** You".
|
At least, people here will be warned not to buy these printers.
|
|
|
02-09-2020, 05:38 PM
|
#25
|
Member
Registered: Oct 2003
Location: Sydney OZ
Distribution: Ubuntu 20.04LTS, Zorin 16.2 Pro
Posts: 143
Original Poster
Rep:
|
Well after our unbelievable rain event(330mm in 3 days)which part flooded our offices, inbetween cleanup and drying out, I am still trying to connect Linux to the Cube8570.
I noticed this the the xerox form altho' a different printer. Maybe some insight ?
Quote:
Linux drivers don't work correctly with Phaser 3140
So where Windows works and Linux doesn't, are you sure its the driver? My first thought would be the port. Windows uses RAW by default (HP Jet Direct) on Linux. Or LPD/LPR can be used by either.
CUPS tends to use IPP, which isn't as reliable in my experience.
The driver is the issue if the job gets to the printer and comes out wrong. If it doesn't all get there (or none of it) the issue is usually the port/protocol.
|
|
|
|
All times are GMT -5. The time now is 08:46 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|