View previous topic :: View next topic |
Author |
Message |
mikefot l33t
Joined: 19 Nov 2014 Posts: 709
|
Posted: Fri Jan 19, 2018 3:33 pm Post subject: getting libreoffice to work with brother DCP 7030 printer |
|
|
Dear All,
I am running Gentoo amd 64 testing on a kaveri box.
I installed libreoffice itself rather than libreoffice-bin.
I ran the cups configuration and chose the generic laser printer option when trying to configure the Brother DCP 7030 printer.
Under libreoffice it prints blank pages through the printer..........
In cups, when you configure the printer, there is an option to use a ppd file for the specific orinter that the manufacturer, Brother would supply e.g. on
its website that you could download.
If you go on the brother website, then you get a choice of an rpm file or a deb file to download.
I chose the deb file.
In gentoo a program called ark or something fired up and gave me the option of extracting the file.
I tried doing this but it was not clear where the file would be installed on the file tree and whether ark would unpack the deb file properly or not.
Suggestions on how best to proceed here are welcome.
Regards
Michael Fothergill |
|
Back to top |
|
|
mikefot l33t
Joined: 19 Nov 2014 Posts: 709
|
Posted: Fri Jan 19, 2018 3:41 pm Post subject: getting libreoffice to work with brother DCP 7030 printer |
|
|
Dear All,
I forgot to add that I also run Debian 9.
The printer runs fine on it.
I might be able to locate the ppd file on debian for the printer and copy it over to Gentoo and use it.
The command dpkg -i will install it in debian.
That could be an alternative way to get at the ppd file.
Regards
MF |
|
Back to top |
|
|
mikefot l33t
Joined: 19 Nov 2014 Posts: 709
|
Posted: Fri Jan 19, 2018 5:37 pm Post subject: getting libreoffice to work with Brother DCP 7030 printer |
|
|
Dear All,
I also forgot to ask a question.
If you install libreoffice-bin instead of emerging libreoffice itself is it installed in a way that makes e.g. cups etc run more smoothly when it comes
to seeing the printers you have on your PC?
Cheers
MF |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54236 Location: 56N 3W
|
Posted: Fri Jan 19, 2018 6:08 pm Post subject: |
|
|
mikefot,
You need the Open Printing driver.
Rather than replying to yourself, edit your first post to add new information, until you get a response.
Replying to yourself takes your topic out of the Unanswered Posts search.
-- edit --
If you gen the RPM file from the Brother site, app-arch/rpm2targz does what it says on the tin, so you can unpick the contents. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
mikefot l33t
Joined: 19 Nov 2014 Posts: 709
|
Posted: Fri Jan 19, 2018 7:56 pm Post subject: getting libreoffice to work with Brother DCP 7030 printer |
|
|
Many thanks again for the advice here.
I made a clone of the github collection of files for the brlaser driver on my Gentoo installation here.
I am not exactly sure how to get cups to use cloned files.....
I have noted that there is a directory in cups where you are supposed to put ppd files so it sees them ans uses them.
I don't see anything that looks like a ppd file in the github directory at present but maybe it is in there somewhere.
But maybe you are supposed to interact with the cloned git files in some other way here.........
Comments appreciated.
Cheers
MF |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54236 Location: 56N 3W
|
Posted: Fri Jan 19, 2018 8:22 pm Post subject: |
|
|
mikefot,
A little bit of background on *NIX printing. All *NIX applications output postscript.
Its a format independent page description language. This means its up to the receiver, it need not be a printer, to render the page onto the display medium.
If your printer understands postscript, you are mostly good, unfortunately postscript has versions.
For printers that don't understand postscript, or have some other wierdness, the postscript that you would like to print has to be rendered before its sent to the printer.
CUPS and ghostscript between them do this. Well ghostscript does the rendering.
Your git clone is a source code repository. You need to ./configure, make and install the software. Ideally, you would write an ebuild but you can do in by hand.
Don't do any more that you must as root.
Do read the installer script. If it installs to /usr/local, or even /opt, thats harmless. Portage won't notice it there.
Let me play with the build system for a while. I dan't have a DCP 7030 printer, so I cant test.
-- edit--
The site is down for me :( _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54236 Location: 56N 3W
|
Posted: Fri Jan 19, 2018 8:45 pm Post subject: |
|
|
mikefot,
Clone the archive and have a look round. Do all this as your normal user. Notice the $ prompt.
Code: | ~/downloads $ git clone https://github.com/pdewacht/brlaser
Cloning into 'brlaser'...
remote: Counting objects: 201, done.
remote: Total 201 (delta 0), reused 0 (delta 0), pack-reused 201
Receiving objects: 100% (201/201), 60.21 KiB | 635.00 KiB/s, done.
Resolving deltas: 100% (124/124), done.
roy@NeddySeagoon_Static ~/downloads $ cd brlaser
roy@NeddySeagoon_Static ~/downloads/brlaser $ ls
autogen.sh brlaser.drv.in ChangeLog configure.ac COPYING m4 Makefile.am README.md src test |
Run Now we have a lot more files.
Code: | ~/downloads/brlaser $ ls
aclocal.m4 autom4te.cache brlaser.drv.in ChangeLog config.h.in config.status configure.ac m4 Makefile.am README.md stamp-h1
autogen.sh brlaser.drv build-aux config.h config.log configure COPYING Makefile Makefile.in src |
Run Code: | ~/downloads/brlaser $ ./configure |
and Code: | ~/downloads/brlaser $ make |
This gets Code: | make[1]: Entering directory '/home/roy/downloads/brlaser'
CXX src/main.o
CXX src/debug.o
CXX src/job.o
CXX src/line.o
CXXLD src/rastertobrlaser
CXX src/brdecode.o
CXXLD src/brdecode
make[1]: Leaving directory '/home/roy/downloads/brlaser' |
Running Code: | ~/downloads/brlaser $ make install | as my normal user shows that it wants to install into /usr/local,
Code: | make[1]: Entering directory '/home/roy/downloads/brlaser'
make[1]: Nothing to be done for 'install-exec-am'.
/bin/mkdir -p '/usr/local/share/doc/brlaser'
/bin/mkdir: cannot create directory ‘/usr/local/share’: Permission denied |
but its not allowed - that needs root.
As root ...
Code: | ~/downloads/brlaser $ sudo make install
Password:
make[1]: Entering directory '/home/roy/downloads/brlaser'
make[1]: Nothing to be done for 'install-exec-am'.
/bin/mkdir -p '/usr/local/share/doc/brlaser'
/usr/bin/install -c -m 644 README.md '/usr/local/share/doc/brlaser'
/bin/mkdir -p '/usr/share/cups/drv'
/usr/bin/install -c -m 644 brlaser.drv '/usr/share/cups/drv'
/bin/mkdir -p '/usr/libexec/cups/filter'
/usr/bin/install -c src/rastertobrlaser '/usr/libexec/cups/filter'
make[1]: Leaving directory '/home/roy/downloads/brlaser' |
Now the hard bit ... to set up CUPS.
-- edit --
It even has an uninstaller
Code: | $ sudo make uninstall
Password:
( cd '/usr/local/share/doc/brlaser' && rm -f README.md )
( cd '/usr/share/cups/drv' && rm -f brlaser.drv )
( cd '/usr/libexec/cups/filter' && rm -f rastertobrlaser ) |
_________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
mikefot l33t
Joined: 19 Nov 2014 Posts: 709
|
Posted: Fri Jan 19, 2018 9:59 pm Post subject: getting libreoffice to work with Brother DCP 7030 printer |
|
|
A great many thanks for the assistance here.....
I ran the installation commands that you specified.
I will now have a go at CUPS again.
Regards
MF
PS
The printer is working!
Thanks |
|
Back to top |
|
|
|