Page 1 of 2

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

Posted: 23. Jan 2016, 16:57
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?

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

Posted: 23. Jan 2016, 17:29
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.

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

Posted: 23. Jan 2016, 17:50
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

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

Posted: 23. Jan 2016, 18:03
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.

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

Posted: 23. Jan 2016, 18:45
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.

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

Posted: 23. Jan 2016, 20:35
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/

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

Posted: 24. Jan 2016, 07:32
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

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

Posted: 24. Jan 2016, 10:42
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

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

Posted: 24. Jan 2016, 19:10
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.

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

Posted: 25. Jan 2016, 01:48
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