HELP! Script to install printer in LM18.3 LiveMedia

Forum rules
Before you post please read this
User avatar
Webtest
Level 4
Level 4
Posts: 270
Joined: Sun Feb 21, 2010 4:45 pm
Location: Carlisle, Pennsylvania, USA

HELP! Script to install printer in LM18.3 LiveMedia

Postby Webtest » Thu Dec 07, 2017 2:11 pm

Esteemed Forum Participants and Lurkers:
========================================
Semi-newbie Hacker Alert !!!

I have 2 old printers and I have problems with BOTH of them with LM18.3 Mate 64-bit. I am running LiveMedia from USB ROM. Linux has always been "Printer Hell" for me.

My HP LaserJet 5000 on a parallel port is next to my desk and loads fine through the Control Center > Printers ... in LM15! It still appears in newer versions, but I have spent MANY hours and have NEVER gotten it to work, even after MANY hours of playing with Control Center, HPLIP, and anything else I could find. If I need to print on it, I just boot up LM15, which gets to be a pain.

The Brother MFC-7360N is upstairs, and I have gotten it to run manually about 4 years ago. HERE. I run LiveMedia from ROM, currently trying LM18.3 Mate 64b, and I have scripts to briskly load applications with "dpkg" using locally stored files. I am trying to set up a script to load the Brother printer this way. I did actually get the printer to run for the first time yesterday with the old printer-specific drivers, but it was a terribly messy process that required an Internet connection to support quite a few "apt" steps, and I am trying to avoid that.

I have the old printer-specific drivers, but they are 32 bit versions. I have (I think?) all of the files that I need to do the installation, UNLESS, during the apt stuff that ran yesterday something invisibly got complied. I am stopped right now trying to get the library files set up properly to support the 32-bit drivers on the 64-bit OS. The objective is to satisfy all of the dependencies to load the printer driver and the cups wrapper files.

Code: Select all

# dpkg --print-architecture             -->  amd64 (No surprise!)
# dpkg --print-foreign-architectures    -->  i386
# dpkg --get-selections | grep libc6    -->  libc6:amd64     install
# dpkg --get-selections | grep libgcc1  -->  libgcc1:amd64   install

echo 'These 2 commands work!'
sudo dpkg -i libtool-bin_2.4.6-0.1_amd64.deb
sudo dpkg -i gcc-6-base_6.0.1-0ubuntu1_i386.deb

echo 'These 2 commands fail with dependency issues in either order ...'
sudo dpkg -i libgcc1_1%3a6.0.1-0ubuntu1_i386.deb
sudo dpkg -i libc6_2.23-0ubuntu9_i386.deb

# The objective is to get these 2 Brother 32-bit files loaded
sudo dpkg -i --force-all mfc7360nlpr-2.1.0-1.i386.deb
sudo dpkg -i --force-all cupswrapperMFC7360N-2.0.4-2.i386.deb

My GUESS is that the library dependency failures are due to not finding functions because they are marked ":amd64" ??? The messy but successful install involved: "You might want to run 'apt-get -f install' to correct these [unmet dependencies]"- which I did. Here are the load failures from running my new script:

Code: Select all

Selecting previously unselected package libgcc1:i386.
(Reading database ... 220059 files and directories currently installed.)
Preparing to unpack libgcc1_1%3a6.0.1-0ubuntu1_i386.deb ...
Unpacking libgcc1:i386 (1:6.0.1-0ubuntu1) ...
dpkg: dependency problems prevent configuration of libgcc1:i386:
 libgcc1:i386 depends on libc6 (>= 2.2.4).
        [NOTE: libc6 is already the newest version (2.23-0ubuntu9).]

dpkg: error processing package libgcc1:i386 (--install):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Errors were encountered while processing:
 libgcc1:i386

Selecting previously unselected package libc6:i386.
(Reading database ... 220061 files and directories currently installed.)
Preparing to unpack libc6_2.23-0ubuntu9_i386.deb ...
Unpacking libc6:i386 (2.23-0ubuntu9) ...
dpkg: dependency problems prevent configuration of libc6:i386:
 libc6:i386 depends on libgcc1; however:
  Package libgcc1:i386 is not configured yet.

dpkg: error processing package libc6:i386 (--install):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Errors were encountered while processing:
 libc6:i386

It is like a tail-chasing flail.

As I said, I am NOT a programmer ... just a Linux user, but I really do want to get access to a printer on my 18.3 system so I don't have to keep switching OS versions. Yes, I have spent HOURS on Google looking at MANY different topics, including
Multiarch.

Thank you for any and all comments, suggestions, and assistance.
Blessings in abundance, all the best, & ENJOY!
Art in Carlisle, PA USA
BOAT - a hole in the water that you pour money into
LINUX - a hole in your life that you pour TIME into

HP dx2400 Core 2 Duo 4 GB - Mint 10 Gnome, Mint 13/15/17.x/18 Mate <on LOCKED Kanguru USB drives>

deepakdeshp
Level 9
Level 9
Posts: 2821
Joined: Sun Aug 09, 2015 10:00 am

Re: HELP! Script to install printer in LM18.3 LiveMedia

Postby deepakdeshp » Thu Dec 07, 2017 2:15 pm

If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help, and keeps the forum clean.
I am using Mint 18.3 Cinnamon 64 bit with AMD processor . Memory 8GB

User avatar
Webtest
Level 4
Level 4
Posts: 270
Joined: Sun Feb 21, 2010 4:45 pm
Location: Carlisle, Pennsylvania, USA

Re: HELP! Script to install printer in LM18.3 LiveMedia

Postby Webtest » Thu Dec 07, 2017 2:21 pm

[EDIT] - My apologies ... I had tried a different HPLIP process that didn't work with the parallel port. The process you suggested actually DOES set up the HP5000 printer device, and does (sort of) actually print! It jut takes a little over 5 MINUTES to print a Test Page. LM15 "Printers" install prints a Test Page in less than a minute.
deepakdeshp wrote:Please have a look.
https://sites.google.com/site/easylinuxtipsproject/14

Thanks ... I've been to that site ... It won't allow installing on a parallel port without rebooting, which (IF it even works then!) is worthless on a LiveMedia system.

Blessings in abundance, all the best ...
Art in Carlisle PA, USA
BOAT - a hole in the water that you pour money into
LINUX - a hole in your life that you pour TIME into

HP dx2400 Core 2 Duo 4 GB - Mint 10 Gnome, Mint 13/15/17.x/18 Mate <on LOCKED Kanguru USB drives>

User avatar
jimallyn
Level 17
Level 17
Posts: 7291
Joined: Thu Jun 05, 2014 7:34 pm
Location: Wenatchee, WA USA

Re: HELP! Script to install printer in LM18.3 LiveMedia

Postby jimallyn » Thu Dec 07, 2017 5:53 pm

Webtest wrote:It won't allow installing on a parallel port without rebooting, which (IF it even works then!) is worthless on a LiveMedia system.

That's why people use Persistence on live boot systems.
Image

“If the government were coming for your TVs and cars, then you'd be upset. But, as it is, they're only coming for your sons.” - Daniel Berrigan


Return to “Printers & Scanners”