(Solved) Samsung b&w laser printer driver install via script

General talk about packaging procedures and packages.
User avatar
globetrotterdk
Posts: 435
Joined: 26. Oct 2010, 13:57
Location: Denmark

(Solved) Samsung b&w laser printer driver install via script

Post by globetrotterdk »

I have a samsung b&w laser printer connected to a box with a new salix os 14.1 xfce live install. The "unified linux driver" is a folder with a script, plus system bits that need to be installed. Do I need to try and create a slackbld or can I just run the script, without a risk to the system as with Ubuntu?
Last edited by globetrotterdk on 25. Jan 2016, 10:51, edited 1 time in total.
Military justice is to justice what military music is to music. - Groucho Marx
User avatar
gapan
Salix Wizard
Posts: 6241
Joined: 6. Jun 2009, 17:40

Re: Samsung b&w laser printer driver install via script?

Post by gapan »

Can you point to that script?

If it's a script that just installs the CUPS driver, it should work in exactly the same way.

If it's a script that installs a .deb package, it won't work, but I doubt it's that.
Image
Image
User avatar
globetrotterdk
Posts: 435
Joined: 26. Oct 2010, 13:57
Location: Denmark

Re: Samsung b&w laser printer driver install via script?

Post by globetrotterdk »

gapan wrote:Can you point to that script?

If it's a script that just installs the CUPS driver, it should work in exactly the same way.

If it's a script that installs a .deb package, it won't work, but I doubt it's that.
Thanks for the quick reply. Here is what the script contains:

Code: Select all

#!/bin/sh

SCRIPTS_DIR=$(dirname "$0")/noarch

# load 'scripting' run-time support utility functions
. "${SCRIPTS_DIR}/scripting_utils"
script_log_init $(basename "$0" ".sh")

# load 'package' run-time support utility functions
. "${SCRIPTS_DIR}/package_utils"
environment_init $(basename "$0" ".sh")

if sh "$SCRIPTS_DIR/pre_install.sh" "$@" ; then
	if sh "$SCRIPTS_DIR/package_install.sh" "printer-meta" ; then
		# CUPS - OK
		sh "$SCRIPTS_DIR/package_install.sh" "scanner-meta"
	else
		# CUPS - NG
		show_nls_message_no_nl "**** Do you want to continue to install scan driver ? [y/n] : "
		if [ -z "${CONTINUE_INSTALL}" ] ; then
			read CONTINUE_INSTALL
		fi
		if [ "y" = "${CONTINUE_INSTALL}" ] || [ "Y" = "${CONTINUE_INSTALL}" ] ; then
			sh "$SCRIPTS_DIR/package_install.sh" "scanner-meta"
		fi
	fi
	sh "$SCRIPTS_DIR/post_install.sh" "$@"
fi
Military justice is to justice what military music is to music. - Groucho Marx
User avatar
gapan
Salix Wizard
Posts: 6241
Joined: 6. Jun 2009, 17:40

Re: Samsung b&w laser printer driver install via script?

Post by gapan »

Well, I'll have to look in those other .sh scripts this one calls to. Nothing in that one is ubuntu-specific though.

Try running it, if it works, it works.
Image
Image
User avatar
globetrotterdk
Posts: 435
Joined: 26. Oct 2010, 13:57
Location: Denmark

Re: Samsung b&w laser printer driver install via script?

Post by globetrotterdk »

gapan wrote:Well, I'll have to look in those other .sh scripts this one calls to. Nothing in that one is ubuntu-specific though.

Try running it, if it works, it works.
Sigh. Nope. both install.sh and install-printer.sh end with the error "./noarch/package_install.sh: line 46: ./noarch/package_install.sh: Permission denied". I have tried running this both as sudo and as sudo su -. I have also noted that although there is a choice between i386, noarch, as well as x86_64, the script insists on trying to install the noarch version.

Edit----

After I ran the scripts, I tried starting Filezilla, but received errors about not being able to write backup files, despite having created them. I then tried to install lftp, and received an error about the slapt-get cache being full in /var/slapt-get. I then tried restarting Salix, only to get the message that GDM could not access something or other and to contact the system administrator. It seems to me that my partitions somehow got filled up in connection with trying to run the printer driver install script.
Military justice is to justice what military music is to music. - Groucho Marx
User avatar
laprjns
Salix Warrior
Posts: 1105
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: Samsung b&w laser printer driver install via script?

Post by laprjns »

You never said which Samsung model. I have a Samsung B&W laser printer, model ML-2510 and it uses the splix driver available via slapt-get / Gslapt. Here a link to splix driver web site and it has a list of printer models that it supports.
http://www.openprinting.org/driver/splix/
“Don’t you see that the whole aim of Newspeak is to narrow the range of thought?"
User avatar
globetrotterdk
Posts: 435
Joined: 26. Oct 2010, 13:57
Location: Denmark

Re: Samsung b&w laser printer driver install via script?

Post by globetrotterdk »

laprjns wrote:You never said which Samsung model. I have a Samsung B&W laser printer, model ML-2510 and it uses the splix driver available via slapt-get / Gslapt. Here a link to splix driver web site and it has a list of printer models that it supports.
http://www.openprinting.org/driver/splix/
I am using a Samsung Xpress M2022W:
http://www.samsung.com/uk/support/model/SL-M2022W/XEU
Military justice is to justice what military music is to music. - Groucho Marx
User avatar
laprjns
Salix Warrior
Posts: 1105
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: Samsung b&w laser printer driver install via script?

Post by laprjns »

Looks like splix supports the M2022W
http://www.openprinting.org/printer/Sam ... ung-M2022W
give it a try

Code: Select all

#sudo spi -u
#sudo spi -i splix
“Don’t you see that the whole aim of Newspeak is to narrow the range of thought?"
User avatar
globetrotterdk
Posts: 435
Joined: 26. Oct 2010, 13:57
Location: Denmark

Re: Samsung b&w laser printer driver install via script?

Post by globetrotterdk »

Cool! :-) Thanks for the heads up. I installed splix, but there is no PPD (?) for the M2022W. I used the Samsung ML-2152W description, both because it is for a wireless printer (as mine is) and because it uses CUPS + Gutenprint (sounds good). The result seems to work so far. Thanks.
Military justice is to justice what military music is to music. - Groucho Marx
User avatar
laprjns
Salix Warrior
Posts: 1105
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: Samsung b&w laser printer driver install via script?

Post by laprjns »

There is also a slackbuild for the Samsung Unified Driver. See here https://slackbuilds.org/repository/14.1 ... p-drivers/.
You can install it using spi like this

Code: Select all

rich[~]$ sudo spi -u
rich[~]$ sudo spi -i samsung-mfp-drivers
“Don’t you see that the whole aim of Newspeak is to narrow the range of thought?"
Post Reply