Printing and scanning for Porteus
Printing and scanning for Porteus
Post#151 by Kulle » 08 Jan 2025, 14:51
I use PorteuX stable Xfce.
Does this mean I can use 07-printing-x86_64-2025-01-02.xzm?
Do I need an additional module for Xfce?
Kulle
- Blaze
- DEV Team
- Posts: 3998
- Joined: 28 Dec 2010, 11:31
- Distribution: ⟰ Porteus current ☯ all DEs ☯
- Location: ☭ Russian Federation, Lipetsk region, Dankov
- Contact:
Printing and scanning for Porteus
Post#152 by Blaze » 08 Jan 2025, 15:59
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16
Blaze
Printing and scanning for Porteus
Post#153 by Kulle » 09 Jan 2025, 13:12
thank you very much, I have used both modules.
The printer was successfully installed,
but it is not displayed in atril and mousepad.
It is displayed in the Chromium browser, but it doesn't print.
access_log :
Code: Select all
localhost - root [09/Jan/2025:11:08:46 +0000] "POST /admin/ HTTP/1.1" 200 60 - -
localhost - - [09/Jan/2025:11:08:46 +0000] "POST / HTTP/1.1" 401 91 CUPS-Get-Devices successful-ok
localhost - root [09/Jan/2025:11:08:46 +0000] "POST / HTTP/1.1" 200 2538 CUPS-Get-Devices -
localhost - root [09/Jan/2025:11:08:46 +0000] "POST /admin/ HTTP/1.1" 200 4230 - -
localhost - root [09/Jan/2025:11:09:20 +0000] "POST /admin HTTP/1.1" 200 136 - -
localhost - root [09/Jan/2025:11:09:20 +0000] "POST /admin HTTP/1.1" 200 2715 - -
localhost - root [09/Jan/2025:11:13:54 +0000] "POST /admin/ HTTP/1.1" 200 60 - -
localhost - - [09/Jan/2025:11:13:54 +0000] "POST / HTTP/1.1" 401 91 CUPS-Get-Devices successful-ok
localhost - root [09/Jan/2025:11:13:54 +0000] "POST / HTTP/1.1" 200 3029 CUPS-Get-Devices -
localhost - root [09/Jan/2025:11:13:54 +0000] "POST /admin/ HTTP/1.1" 200 4293 - -
localhost - root [09/Jan/2025:11:14:05 +0000] "POST /admin HTTP/1.1" 200 136 - -
localhost - root [09/Jan/2025:11:14:05 +0000] "POST /admin HTTP/1.1" 200 2790 - -
localhost - root [09/Jan/2025:11:15:43 +0000] "POST /admin HTTP/1.1" 200 157 - -
localhost - root [09/Jan/2025:11:15:43 +0000] "POST /admin HTTP/1.1" 200 3450 - -
localhost - root [09/Jan/2025:11:16:14 +0000] "POST /admin HTTP/1.1" 200 264 - -
localhost - - [09/Jan/2025:11:16:14 +0000] "POST / HTTP/1.1" 200 1362 CUPS-Get-PPDs -
localhost - root [09/Jan/2025:11:16:14 +0000] "POST /admin HTTP/1.1" 200 5315 - -
localhost - root [09/Jan/2025:11:16:43 +0000] "POST /admin HTTP/1.1" 200 1644 - -
localhost - - [09/Jan/2025:11:16:43 +0000] "POST / HTTP/1.1" 200 1404959 CUPS-Get-PPDs -
localhost - root [09/Jan/2025:11:16:43 +0000] "POST /admin HTTP/1.1" 200 374735 - -
localhost - root [09/Jan/2025:11:17:50 +0000] "POST /admin HTTP/1.1" 200 1692 - -
localhost - - [09/Jan/2025:11:17:50 +0000] "POST /admin/ HTTP/1.1" 401 0 - -
localhost - root [09/Jan/2025:11:17:50 +0000] "POST /admin/ HTTP/1.1" 200 347 CUPS-Add-Modify-Printer successful-ok
Code: Select all
E [09/Jan/2025:11:06:42 +0000] Unknown directive IdleExitTimeout on line 32 of /etc/cups/cupsd.conf.
E [09/Jan/2025:11:08:46 +0000] [CGI] Unable to execute ippfind utility: No such file or directory
E [09/Jan/2025:11:13:54 +0000] [CGI] Unable to execute ippfind utility: No such file or directory
E [09/Jan/2025:11:16:15 +0000] [cups-driverd] Bad driver information file \"/usr/share/cups/drv/sample.drv\"!
E [09/Jan/2025:11:16:18 +0000] [CGI] Unable to execute ippfind utility: No such file or directory
E [09/Jan/2025:11:16:43 +0000] [cups-driverd] Bad driver information file \"/usr/share/cups/drv/sample.drv\"!
E [09/Jan/2025:11:16:43 +0000] [CGI] Unable to execute ippfind utility: No such file or directory
Uninstall ipp-usb and sane-airscan, as these can cause problems with older HP printers in newer Linux versions.
Could this perhaps be the cause?
Kulle
beny
- Blaze
- DEV Team
- Posts: 3998
- Joined: 28 Dec 2010, 11:31
- Distribution: ⟰ Porteus current ☯ all DEs ☯
- Location: ☭ Russian Federation, Lipetsk region, Dankov
- Contact:
Printing and scanning for Porteus
Post#155 by Blaze » 09 Jan 2025, 14:26
Code: Select all
/usr/lib64/gtk-3.0/3.0.0/printbackends/libprintbackend-cups.so
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16
Blaze
Printing and scanning for Porteus
Post#156 by Kulle » 09 Jan 2025, 17:31
I have now also activated gtk+3-3.24.31-x86_64-1.xzm.
no success !
Code: Select all
guest@porteux:/var/log/cups$ cat error_log
E [09/Jan/2025:17:56:25 +0000] Unknown directive IdleExitTimeout on line 32 of /etc/cups/cupsd.conf.
E [09/Jan/2025:17:59:08 +0000] [Client 3] pam_authenticate() returned 10 (User not known to the underlying authentication module)
E [09/Jan/2025:17:59:25 +0000] [CGI] Unable to execute ippfind utility: No such file or directory
E [09/Jan/2025:18:01:07 +0000] [cups-driverd] Bad driver information file \"/usr/share/cups/drv/sample.drv\"!
E [09/Jan/2025:18:01:09 +0000] [CGI] Unable to execute ippfind utility: No such file or directory
E [09/Jan/2025:18:01:19 +0000] [cups-driverd] Bad driver information file \"/usr/share/cups/drv/sample.drv\"!
E [09/Jan/2025:18:01:19 +0000] [CGI] Unable to execute ippfind utility: No such file or directory
guest@porteux:/var/log/cups$
Kulle
- Blaze
- DEV Team
- Posts: 3998
- Joined: 28 Dec 2010, 11:31
- Distribution: ⟰ Porteus current ☯ all DEs ☯
- Location: ☭ Russian Federation, Lipetsk region, Dankov
- Contact:
Printing and scanning for Porteus
Post#157 by Blaze » 09 Jan 2025, 21:25
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16
Blaze
Printing and scanning for Porteus
Post#158 by Kulle » 10 Jan 2025, 09:27
I used gtk+-3.24.43.xzm
see here
Code: Select all
guest@porteux:/var/log/cups$ ls /mnt/live/memory/images
000-kernel-6.12.5.xzm/
001-core-stable-20241215.xzm/
002-gui-stable-20241215.xzm/
002-xtra-stable-20241215.xzm/
003-xfce-4.18-stable-20241215.xzm/
07-printing-lxde-lxqt-openbox-xfce-x86_64-2023-09-23.xzm/
07-printing-x86_64-2025-01-02.xzm/
chromium-developer-1402203-x86_64-de.xzm/
gtk+-3.24.43.xzm/
guest@porteux:/var/log/cups$
Code: Select all
@porteux:/var/log/cups$ cat error_log
E [10/Jan/2025:09:34:23 +0000] Unknown directive IdleExitTimeout on line 32 of /etc/cups/cupsd.conf.
E [10/Jan/2025:09:37:10 +0000] [Client 3] pam_authenticate() returned 10 (User not known to the underlying authentication module)
E [10/Jan/2025:09:37:34 +0000] [cups-deviced] PID 1831 (bjnp) stopped with status 1!
E [10/Jan/2025:09:37:34 +0000] [cups-deviced] PID 1834 (cups-pdf) stopped with status 1!
E [10/Jan/2025:09:37:34 +0000] [cups-deviced] PID 1838 (hp) stopped with status 127!
E [10/Jan/2025:09:37:34 +0000] [CGI] Unable to execute ippfind utility: No such file or directory
E [10/Jan/2025:09:37:34 +0000] [cups-deviced] PID 1839 (hpfax) stopped with status 1!
E [10/Jan/2025:09:38:44 +0000] [cups-driverd] Bad driver information file \"/usr/share/cups/drv/sample.drv\"!
E [10/Jan/2025:09:38:46 +0000] [CGI] Unable to execute ippfind utility: No such file or directory
E [10/Jan/2025:09:39:00 +0000] [cups-driverd] Bad driver information file \"/usr/share/cups/drv/sample.drv\"!
E [10/Jan/2025:09:39:00 +0000] [CGI] Unable to execute ippfind utility: No such file or directory
W [10/Jan/2025:09:40:06 +0000] CreateProfile failed: org.freedesktop.DBus.Error.Spawn.ChildExited:Launch helper exited with unknown return code 1
W [10/Jan/2025:09:40:06 +0000] CreateProfile failed: org.freedesktop.DBus.Error.Spawn.ChildExited:Launch helper exited with unknown return code 1
W [10/Jan/2025:09:40:06 +0000] CreateDevice failed: org.freedesktop.DBus.Error.Spawn.ChildExited:Launch helper exited with unknown return code 1
The utility "ippfind" is missing from the system and cannot be executed
There are issues with the driver information file "/usr/share/cups/drv/sample.drv"
DBus-related errors occur when creating profiles and devices
and now ?
The module 07-printing-x86_64-2023-04-22.xzm worked without any problems in PorteuX 0.4.
Why these difficulties now?
Kulle
- Blaze
- DEV Team
- Posts: 3998
- Joined: 28 Dec 2010, 11:31
- Distribution: ⟰ Porteus current ☯ all DEs ☯
- Location: ☭ Russian Federation, Lipetsk region, Dankov
- Contact:
Printing and scanning for Porteus
Post#159 by Blaze » 10 Jan 2025, 16:56
In Porteus all is ok with it
Code: Select all
# ls -l /usr/lib64/gtk-3.0/3.0.0/printbackends/libprintbackend-cups.so
-rwxr-xr-x 1 root root 141904 янв 1 07:33 /usr/lib64/gtk-3.0/3.0.0/printbackends/libprintbackend-cups.so*
guest@porteus:~$

MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16
Blaze
Printing and scanning for Porteus
Post#160 by Kulle » 12 Jan 2025, 09:33
Porteux has provided the file libprintbackend-cups.so (module cups-3.24.43-x86_64-1.xzm)
These modules were activated:
Code: Select all
guest@porteux:~$ ls /mnt/live/memory/images
000-kernel-6.12.5.xzm/
001-core-stable-20241215.xzm/
002-gui-stable-20241215.xzm/
002-xtra-stable-20241215.xzm/
003-xfce-4.18-stable-20241215.xzm/
07-printing-lxde-lxqt-openbox-xfce-x86_64-2023-09-23.xzm/
07-printing-x86_64-2025-01-02.xzm/
chromium-developer-1402203-x86_64-de.xzm/
cups-3.24.43-x86_64-1.xzm/
gtk+-3.24.43.xzm/
Here's the error log:
Code: Select all
guest@porteux:/var/log/cups$ cat error_log
E [12/Jan/2025:09:55:00 +0000] Unknown directive IdleExitTimeout on line 32 of /etc/cups/cupsd.conf.
E [12/Jan/2025:09:57:13 +0000] [CGI] Unable to execute ippfind utility: No such file or directory
E [12/Jan/2025:09:57:13 +0000] [cups-deviced] PID 1878 (bjnp) stopped with status 1!
E [12/Jan/2025:09:57:13 +0000] [cups-deviced] PID 1881 (cups-pdf) stopped with status 1!
E [12/Jan/2025:09:57:13 +0000] [cups-deviced] PID 1885 (hp) stopped with status 127!
E [12/Jan/2025:09:57:14 +0000] [cups-deviced] PID 1886 (hpfax) stopped with status 1!
E [12/Jan/2025:09:58:18 +0000] [cups-driverd] Bad driver information file "/usr/share/cups/drv/sample.drv"!
E [12/Jan/2025:09:58:20 +0000] [CGI] Unable to execute ippfind utility: No such file or directory
E [12/Jan/2025:09:58:29 +0000] [cups-driverd] Bad driver information file "/usr/share/cups/drv/sample.drv"!
E [12/Jan/2025:09:58:29 +0000] [CGI] Unable to execute ippfind utility: No such file or directory
W [12/Jan/2025:09:59:34 +0000] CreateProfile failed: org.freedesktop.DBus.Error.Spawn.ChildExited:Launch helper exited with unknown return code 1
W [12/Jan/2025:09:59:34 +0000] CreateProfile failed: org.freedesktop.DBus.Error.Spawn.ChildExited:Launch helper exited with unknown return code 1
W [12/Jan/2025:09:59:34 +0000] CreateDevice failed:
org.freedesktop.DBus.Error.Spawn.ChildExited:Launch helper exited with unknown return code 1
Kulle
- Blaze
- DEV Team
- Posts: 3998
- Joined: 28 Dec 2010, 11:31
- Distribution: ⟰ Porteus current ☯ all DEs ☯
- Location: ☭ Russian Federation, Lipetsk region, Dankov
- Contact:
Printing and scanning for Porteus
Post#161 by Blaze » 12 Jan 2025, 18:22
This is not enough. All GTK3 apps are must to be recompiled.
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16
Blaze
- Ed_P
- Contributor
- Posts: 8961
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Printing and scanning for Porteus
Post#162 by Ed_P » 13 Jan 2025, 23:59
Ed_P
- Ed_P
- Contributor
- Posts: 8961
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Printing and scanning for Porteus
Post#163 by Ed_P » 16 Jan 2025, 00:44
Code: Select all
guest@porteus:~$ echo "af mode"
af mode
guest@porteus:~$ ls -lon /etc/cups
/bin/ls: cannot access '/etc/cups': No such file or directory
guest@porteus:~$ ls -lon /opt
total 0
drwxr-xr-x 8 0 43 Feb 14 2020 porteus-scripts/
guest@porteus:~$ echo "activated 07-printing-x86_64-2025-01-02.xzm"
activated 07-printing-x86_64-2025-01-02.xzm
guest@porteus:~$ ls -lon /etc/cups
total 63
-rw-r--r-- 1 0 868 Feb 13 2021 command.types
-rw-r--r-- 1 0 30844 Sep 30 21:31 cups-browsed.conf
-rw-r----- 1 0 2732 Jun 18 2024 cups-files.conf
-rw-r----- 1 0 2732 Jun 18 2024 cups-files.conf.default
-rw-r--r-- 1 0 10747 Jan 2 09:11 cups-pdf.conf
-rw-r----- 1 0 6803 Jan 2 09:15 cupsd.conf
-rw-r----- 1 0 6799 Jun 18 2024 cupsd.conf.default
drwxr-xr-x 2 0 3 Jun 18 2024 ppd/
-rw-r----- 1 0 142 Jun 18 2024 snmp.conf
-rw-r----- 1 0 142 Jun 18 2024 snmp.conf.default
drwx------ 2 0 3 Jun 18 2024 ssl/
guest@porteus:~$ ls -lon /etc/cups/ppd
total 0
guest@porteus:~$ ls -lon /opt
total 0
drwxr-xr-x 3 1000 30 Mar 21 2024 brother/
drwxr-xr-x 6 0 67 Apr 12 2024 pantum/
drwxr-xr-x 8 0 43 Feb 14 2020 porteus-scripts/
guest@porteus:~$ ls -lon /opt/brother
total 0
drwxr-xr-x 5 1000 64 Mar 21 2024 scanner/
guest@porteus:~$ echo "activated brother-mfcj4335dwpdrv-3.5.0-1.i386.xzm"
activated brother-mfcj4335dwpdrv-3.5.0-1.i386.xzm
guest@porteus:~$ ls -lon /etc/cups/ppd
total 0
guest@porteus:~$ ls -lon /opt
total 0
drwxr-xr-x 3 1000 30 Mar 21 2024 brother/
drwxr-xr-x 6 0 67 Apr 12 2024 pantum/
drwxr-xr-x 8 0 43 Feb 14 2020 porteus-scripts/
guest@porteus:~$ ls -lon /opt/brother
total 0
drwxr-xr-x 5 1000 64 Mar 21 2024 scanner/
guest@porteus:~$

Ed_P
Printing and scanning for Porteus
Post#164 by beny » 16 Jan 2025, 13:09
Code: Select all
*PPD-Adobe: "4.3"
*%================================================
*% Copyright(C) 2020 Brother Industries, Ltd.
*% "Brother MFCJ4335DW for CUPS"
*%================================================
*%==== General Information Keywords ========================
*FormatVersion: "4.3"
*FileVersion: "4.0.2"
*LanguageVersion: English
*LanguageEncoding: ISOLatin1
*PCFileName: "MFCJ4335DW.PPD"
*Manufacturer: "Brother"
*Product: "(MFCJ4335DW)"
*1284DeviceID: "MFG:Brother;MDL:MFCJ4335DW"
*cupsVersion: 1.4
*cupsManualCopies: True
*cupsFilter: "application/vnd.cups-postscript 0 brother_lpdwrapper_mfcj4335dw"
*cupsFilter: "application/vnd.cups-pdf 0 brother_lpdwrapper_mfcj4335dw"
*cupsModelNumber: 6
*ModelName: "Brother MFCJ4335DW"
*ShortNickName: "MFCJ4335DW"
*NickName: "Brother MFCJ4335DW CUPS"
*PSVersion: "(3010.106) 3"
*%==== Basic Device Capabilities =============
*LanguageLevel: "3"
*ColorDevice: True
*DefaultColorSpace: RGB
*FileSystem: False
*Throughput: "17"
*VariablePaperSize: False
*TTRasterizer: Type42
*DefaultResolution: 300dpi
*FreeVM: "1700000"
*%DefaultOutputOrder: Reverse
*%=== UI Constraints ==================================
*%( PageSize vs Duplex )
*UIConstraints: *PageSize BrA4_B *Duplex
*UIConstraints: *PageSize BrLetter_B *Duplex
*UIConstraints: *PageSize Legal *Duplex
*UIConstraints: *PageSize A6 *Duplex
*UIConstraints: *PageSize BrA6_B *Duplex
*UIConstraints: *PageSize BrPostC4x6_S *Duplex
*UIConstraints: *PageSize BrPostC4x6_B *Duplex
*UIConstraints: *PageSize BrIndexC5x8_S *Duplex
*UIConstraints: *PageSize BrIndexC5x8_B *Duplex
*UIConstraints: *PageSize BrPhotoL_S *Duplex
*UIConstraints: *PageSize BrPhotoL_B *Duplex
*UIConstraints: *PageSize BrPhoto2L_S *Duplex
*UIConstraints: *PageSize BrPhoto2L_B *Duplex
*UIConstraints: *PageSize DoublePostcardRotated *Duplex
*UIConstraints: *PageSize Env10 *Duplex
*UIConstraints: *PageSize EnvC5 *Duplex
*UIConstraints: *PageSize EnvChou3 *Duplex
*UIConstraints: *PageSize EnvDL *Duplex
*UIConstraints: *PageSize EnvMonarch *Duplex
*UIConstraints: *PageSize EnvYou4 *Duplex
*UIConstraints: *PageSize EnvChou4 *Duplex
*UIConstraints: *PageSize EnvYou2 *Duplex
*UIConstraints: *PageSize FanFoldGermanLegal *Duplex
*UIConstraints: *PageSize MexicanLegal *Duplex
*UIConstraints: *PageSize IndianLegal *Duplex
*UIConstraints: *PageSize Postcard *Duplex
*UIConstraints: *PageSize BrHagaki_B *Duplex
*UIConstraints: *PageSize DoublePostcardRotated *Duplex
*% DuplexNoTumble - MediaType
*UIConstraints: *BRMediaType Inkjet *Duplex
*UIConstraints: *BRMediaType Glossy *Duplex
*UIConstraints: *BRMediaType IJHagakiCom *Duplex
*UIConstraints: *BRMediaType GlossyHagakiCom *Duplex
*UIConstraints: *BRMediaType PlainHagakiCom *Duplex
*UIConstraints: *BRMediaType IJHagakiAddr *Duplex
*UIConstraints: *BRMediaType GlossyHagakiAddr *Duplex
*UIConstraints: *BRMediaType PlainHagakiAddr *Duplex
*%( PageSize vs Tray2 )
*%UIConstraints: *BRInputSlot Tray2 *PageSize A6
*%UIConstraints: *BRInputSlot Tray2 *PageSize B5
*%UIConstraints: *BRInputSlot Tray2 *PageSize Br3x5
*%UIConstraints: *BRInputSlot Tray2 *PageSize Postcard
*%UIConstraints: *BRInputSlot Tray2 *PageSize Env10
*%UIConstraints: *BRInputSlot Tray2 *PageSize EnvDL
*%UIConstraints: *BRInputSlot Tray2 *PageSize EnvC5
*%UIConstraints: *BRInputSlot Tray2 *PageSize EnvMonarch
*%UIConstraints: *BRInputSlot Tray2 *PageSize EnvYou4
*%UIConstraints: *BRInputSlot Tray2 *PageSize EnvChou3
*%( PageSize vs Tray1 )
*%UIConstraints: *BRInputSlot Tray1 *PageSize B5
*%UIConstraints: *BRInputSlot Tray1 *PageSize Br3x5
*%UIConstraints: *BRInputSlot Tray1 *PageSize Env10
*%UIConstraints: *BRInputSlot Tray1 *PageSize EnvDL
*%UIConstraints: *BRInputSlot Tray1 *PageSize EnvC5
*%UIConstraints: *BRInputSlot Tray1 *PageSize EnvMonarch
*%UIConstraints: *BRInputSlot Tray1 *PageSize EnvYou4
*%UIConstraints: *BRInputSlot Tray1 *PageSize EnvChou3
*%==== Media Selection ======================
*OpenUI *PageSize/Media Size: PickOne
*OrderDependency: 11 AnySetup *PageSize
*DefaultPageSize: Letter
*PageSize A4/A4: " "
*PageSize BrA4_B/A4 (Borderless): " "
*PageSize Letter/Letter: " "
*PageSize BrLetter_B/US Letter (Borderless): " "
*PageSize Legal/Legal: " "
*PageSize Executive/Executive: " "
*PageSize A5/A5: " "
*PageSize A6/A6: " "
*PageSize BrA6_B/A6 (Borderless): " "
*PageSize B5/JIS B5: " "
*PageSize JISB6/JIS B6: " "
*PageSize BrPostC4x6_S/4 x 6 in: " "
*PageSize BrPostC4x6_B/4 x 6 in (Borderless): " "
*PageSize BrIndexC5x8_S/5 x 8 in: " "
*PageSize BrIndexC5x8_B/5 x 8 in (Borderless): " "
*PageSize BrPhotoL_S/3.5 x 5 in: " "
*PageSize BrPhotoL_B/3.5 x 5 in (Borderless): " "
*PageSize BrPhoto2L_S/5 x 7 in: " "
*PageSize BrPhoto2L_B/5 x 7 in (Borderless): " "
*PageSize Postcard/Postcard 1: " "
*PageSize BrHagaki_B/Postcard 1 (Borderless): " "
*PageSize DoublePostcardRotated/Postcard 2 (Double): " "
*%PageSize Br12cmDisc_B/12 cm Disc: " "
*PageSize EnvDL/DL: " "
*PageSize EnvC5/C5: " "
*PageSize Env10/Com-10: " "
*PageSize EnvMonarch/Monarch: " "
*%PageSize Br3x5/3 x 5: " "
*PageSize FanFoldGermanLegal/Folio: " "
*%PageSize Postcard/Hagaki: " "
*PageSize EnvYou4/Envelope #4: " "
*PageSize EnvChou3/Envelope MAX: " "
*PageSize EnvChou4/N4 Envelope: " "
*PageSize EnvYou2/Y2 Envelope: " "
*%PageSize 210x270mm/270mm Paper: " "
*PageSize 195x270mm/16K(195x270mm): " "
*%PageSize 184x260mm/16K(184x260mm): " "
*%PageSize 197x273mm/16K(197x273mm): " "
*PageSize MexicanLegal/Mexico Legal: " "
*PageSize IndianLegal/India Legal: " "
*CloseUI: *PageSize
*OpenUI *PageRegion: PickOne
*OrderDependency: 12 AnySetup *PageRegion
*DefaultPageRegion: Letter
*PageRegion A4/A4: " "
*PageRegion BrA4_B/A4 (Borderless): " "
*PageRegion Letter/Letter: " "
*PageRegion BrLetter_B/Letter (Borderless): " "
*PageRegion Legal/Legal: " "
*PageRegion Executive/Executive: " "
*PageRegion A5/A5: " "
*PageRegion A6/A6: " "
*PageRegion BrA6_B/A6 (Borderless): " "
*PageRegion B5/JIS B5: " "
*PageRegion JISB6/JIS B6: " "
*PageRegion BrPostC4x6_S/Photo: " "
*PageRegion BrPostC4x6_B/4 x 6 in (Borderless): " "
*PageRegion BrIndexC5x8_S/5 x 8 in: " "
*PageRegion BrIndexC5x8_B/5 x 8 in (Borderless): " "
*PageRegion BrPhotoL_S/3.5 x 5 in: " "
*PageRegion BrPhotoL_B/3.5 x 5 in (Borderless): " "
*PageRegion BrPhoto2L_S/5 x 7 in: " "
*PageRegion BrPhoto2L_B/5 x 7 in (Borderless): " "
*PageRegion Postcard/Postcard 1: " "
*PageRegion BrHagaki_B/Postcard 1 (Borderless): " "
*PageRegion DoublePostcardRotated/Postcard 2 (Double): " "
*%PageRegion Br12cmDisc_B/12 cm Disc: " "
*PageRegion EnvDL/DL: " "
*PageRegion EnvC5/C5: " "
*PageRegion Env10/Com-10: " "
*PageRegion EnvMonarch/Monarch: " "
*%PageRegion Br3x5/3 x 5: " "
*PageRegion FanFoldGermanLegal/Folio: " "
*PageRegion EnvYou4/Envelope #4: " "
*PageRegion EnvChou3/Envelope MAX: " "
*PageRegion EnvChou4/N4 Envelope: " "
*PageRegion EnvYou2/Y2 Envelope: " "
*%PageRegion 210x270mm/270mm Paper: " "
*PageRegion 195x270mm/16K(195x270mm): " "
*%PageRegion 184x260mm/16K(184x260mm): " "
*%PageRegion 197x273mm/16K(197x273mm): " "
*PageRegion MexicanLegal/Mexico Legal: " "
*PageRegion IndianLegal/India Legal: " "
*CloseUI: *PageRegion
*DefaultImageableArea: Letter
*ImageableArea A4/A4: "9 9 586 833"
*ImageableArea BrA4_B/A4 (Borderless): "0 0 595 842"
*ImageableArea Letter/Letter: "9 9 603 783"
*ImageableArea BrLetter_B/Letter (Borderless): "0 0 612 792"
*ImageableArea Legal/Legal: "9 9 603 999"
*ImageableArea Executive/Executive: "9 9 513 747"
*ImageableArea A5/A5: "9 9 411 586"
*ImageableArea A6/A6: "9 9 288 411"
*ImageableArea BrA6_B/A6 (Borderless): "0 0 297 420"
*ImageableArea B5/JIS B5: "9 9 507 720"
*ImageableArea JISB6/JIS B6: "9 9 354 507"
*ImageableArea BrPostC4x6_S/4 x 6 in: "9 9 279 423"
*ImageableArea BrPostC4x6_B/4 x 6 in (Borderless): "0 0 288 432"
*ImageableArea BrIndexC5x8_S/5 x 8 in: "9 9 351 567"
*ImageableArea BrIndexC5x8_B/5 x 8 in (Borderless): "0 0 360 576"
*ImageableArea BrPhotoL_S/3.5 x 5 in: "9 9 243 351"
*ImageableArea BrPhotoL_B/3.5 x 5 in (Borderless): "0 0 252 360"
*ImageableArea BrPhoto2L_S/5 x 7 in: "9 9 350 496"
*ImageableArea BrPhoto2L_B/5 x 7 in (Borderless): "0 0 359 505"
*ImageableArea Postcard/Postcard 1: "9 9 275 410"
*ImageableArea BrHagaki_B/Postcard 1 (Borderless): "0 0 284 419"
*ImageableArea DoublePostcardRotated/Postcard 2 (Double): "9 9 411 558"
*%ImageableArea Br12cmDisc_B/12 cm Disc: "0 0 340 340"
*ImageableArea EnvDL/DL: "9 34 303 590"
*ImageableArea EnvC5/C5: "9 34 450 615"
*ImageableArea Env10/Com-10: "9 34 288 650"
*ImageableArea EnvMonarch/Monarch: "9 34 270 506"
*%ImageableArea Br3x5/3 x 5: "9 9 207 351"
*ImageableArea FanFoldGermanLegal/Folio: "9 9 603 927"
*%ImageableArea Postcard/Hagaki: "9 9 275 410"
*ImageableArea EnvYou4/Envelope #4: "9 34 289 632"
*ImageableArea EnvChou3/Envelope MAX: "9 34 331 632"
*ImageableArea EnvChou4/N4 Envelope: "9 34 246 547"
*ImageableArea EnvYou2/Y2 Envelope: "9 34 314 425"
*%ImageableArea 210x270mm/270mm Paper: "9 9 586 756"
*ImageableArea 195x270mm/16K(195x270mm): "9 9 544 756"
*%ImageableArea 184x260mm/16K(184x260mm): "9 9 513 728"
*%ImageableArea 197x273mm/16K(197x273mm): "9 9 549 765"
*ImageableArea MexicanLegal/Mexico Legal: "9 9 603 954"
*ImageableArea IndianLegal/India Legal: "9 9 600 969"
*%==== Information About Media Sizes ========
*DefaultPaperDimension: Letter
*PaperDimension A4/A4: "595 842"
*PaperDimension BrA4_B/A4 (Borderless): "595 842"
*PaperDimension Letter/Letter: "612 792"
*PaperDimension BrLetter_B/Letter (Borderless): "612 792"
*PaperDimension Legal/Legal: "612 1008"
*PaperDimension Executive/Executive: "522 756"
*PaperDimension A5/A5: "420 595"
*%PaperDimension A5Rotated/A5 Long Edge: "595 420"
*PaperDimension A6/A6: "297 420"
*PaperDimension BrA6_B/A6 (Borderless): "297 420"
*%PaperDimension ISOB5/ISOB5: "499 709"
*PaperDimension B5/JIS B5: "516 729"
*PaperDimension JISB6/JIS B6: "363 516"
*PaperDimension BrPostC4x6_S/4 x 6 in: "288 432"
*PaperDimension BrPostC4x6_B/4 x 6 in (Borderless): "288 432"
*PaperDimension BrIndexC5x8_S/5 x 8 in: "360 576"
*PaperDimension BrIndexC5x8_B/5 x 8 in (Borderless): "360 576"
*PaperDimension BrPhotoL_S/3.5 x 5 in: "252 360"
*PaperDimension BrPhotoL_B/3.5 x 5 in (Borderless): "252 360"
*PaperDimension BrPhoto2L_S/5 x 7 in: "359 505"
*PaperDimension BrPhoto2L_B/5 x 7 in (Borderless): "359 505"
*PaperDimension Postcard/Postcard 1: "284 419"
*PaperDimension BrHagaki_B/Postcard 1 (Borderless): "284 419"
*PaperDimension DoublePostcardRotated/Postcard 2 (Double): "420 567"
*%PaperDimension Br12cmDisc_B/12 cm Disc: "340 340"
*PaperDimension EnvDL/DL: "312 624"
*PaperDimension EnvC5/C5: "459 649"
*PaperDimension Env10/Com-10: "297 684"
*PaperDimension EnvMonarch/Monarch: "279 540"
*%PaperDimension Br3x5/3 x 5: "216 360"
*PaperDimension FanFoldGermanLegal/Folio: "612 936"
*%PaperDimension Postcard/Hagaki: "284 419"
*PaperDimension EnvYou4/Envelope #4: "298 666"
*PaperDimension EnvChou3/Envelope MAX: "340 666"
*PaperDimension EnvChou4/N4 Envelope: "255 581"
*PaperDimension EnvYou2/Y2 Envelope: "323 459"
*%PaperDimension 210x270mm/270mm Paper: "595 765"
*PaperDimension 195x270mm/16K(195x270mm): "553 765"
*%PaperDimension 184x260mm/16K(184x260mm): "522 737"
*%PaperDimension 197x273mm/16K(197x273mm): "558 774"
*PaperDimension MexicanLegal/Mexico Legal: "612 963"
*PaperDimension IndianLegal/India Legal: "609 978"
*%=== Duplex ================================
*OpenUI *Duplex/Two-Sided: PickOne
*OrderDependency: 25 AnySetup *Duplex
*DefaultDuplex: None
*Duplex DuplexTumble/Short-Edge Binding: " "
*Duplex DuplexNoTumble/Long-Edge Binding: " "
*Duplex None/Off: " "
*CloseUI: *Duplex
*%=== Paper Feed================================
*OpenUI *BRInputSlot/Paper Source: PickOne
*OrderDependency: 13 AnySetup *BRInputSlot
*DefaultBRInputSlot: AutoSelect
*BRInputSlot AutoSelect/Auto Select: " "
*%BRInputSlot Tray1/Tray1: " "
*%BRInputSlot Tray2/Tray2: " "
*%BRInputSlot MPTray/MP Tray: " "
*CloseUI: *BRInputSlot
*%==== Resolution Features =================================
*OpenUI *BRResolution/Print Quality: PickOne
*OrderDependency: 14 AnySetup *BRResolution
*DefaultBRResolution: Normal
*BRResolution Draft/Draft: " "
*BRResolution Normal/Normal: " "
*BRResolution Fine/Fine: " "
*CloseUI: *BRResolution
*%=== MonoOrColor ================================
*OpenUI *BRMonoColor/Color / Mono: PickOne
*OrderDependency: 16 AnySetup *BRMonoColor
*DefaultBRMonoColor: FullColor
*%BRMonoColor Auto/Auto: " "
*BRMonoColor FullColor/Color: " "
*BRMonoColor Mono/Mono: " "
*CloseUI: *BRMonoColor
*%=== Media Type ================================
*OpenUI *BRMediaType/Media Type: PickOne
*OrderDependency: 17 AnySetup *BRMediaType
*DefaultBRMediaType: Plain
*BRMediaType Plain/Plain Paper: " "
*%BRMediaType Thin/Thin Paper: " "
*%BRMediaType Thick/Thick Paper: " "
*%BRMediaType Thicker/Thicker Paper: " "
*%BRMediaType BOND/Bond Paper: " "
*%BRMediaType Env/Envelopes: " "
*%BRMediaType EnvThick/Env. Thick: " "
*%BRMediaType EnvThin/Env. Thin: " "
*%BRMediaType Recycled/Recycled Paper: " "
*%BRMediaType Label/Label: " "
*BRMediaType Glossy/Glossy Paper: " "
*BRMediaType Inkjet/Inkjet Paper: " "
*%BRMediaType PostCard/Postcard: " "
*BRMediaType IJHagakiCom/Inkjet HagakiUra: " "
*BRMediaType GlossyHagakiCom/Glossy HagakiUra: " "
*BRMediaType PlainHagakiCom/Plain HagakiUra: " "
*BRMediaType IJHagakiAddr/Inkjet HagakiAtena: " "
*BRMediaType GlossyHagakiAddr/Glossy HagakiAtena: " "
*BRMediaType PlainHagakiAddr/Plain HagakiAtena: " "
*CloseUI: *BRMediaType
*%===Color Matching ================================
*%=== Improve Gray Color ================================
*%=== Enhance Black Printing ================================
*%=== Skip Blank Page ================================
*%=== Toner Save Mode ================================
*%=== Improve Print Output ================================
*%==== Sleep Time ============================
*%=== Send Fax ================================
*DefaultFont: Courier
*Font AvantGarde-Book: Standard "(001.006S)" Standard ROM
*Font AvantGarde-BookOblique: Standard "(001.006S)" Standard ROM
*Font AvantGarde-Demi: Standard "(001.007S)" Standard ROM
*Font AvantGarde-DemiOblique: Standard "(001.007S)" Standard ROM
*Font Bookman-Demi: Standard "(001.004S)" Standard ROM
*Font Bookman-DemiItalic: Standard "(001.004S)" Standard ROM
*Font Bookman-Light: Standard "(001.004S)" Standard ROM
*Font Bookman-LightItalic: Standard "(001.004S)" Standard ROM
*Font Courier: Standard "(002.004S)" Standard ROM
*Font Courier-Bold: Standard "(002.004S)" Standard ROM
*Font Courier-BoldOblique: Standard "(002.004S)" Standard ROM
*Font Courier-Oblique: Standard "(002.004S)" Standard ROM
*Font Helvetica: Standard "(001.006S)" Standard ROM
*Font Helvetica-Bold: Standard "(001.007S)" Standard ROM
*Font Helvetica-BoldOblique: Standard "(001.007S)" Standard ROM
*Font Helvetica-Narrow: Standard "(001.006S)" Standard ROM
*Font Helvetica-Narrow-Bold: Standard "(001.007S)" Standard ROM
*Font Helvetica-Narrow-BoldOblique: Standard "(001.007S)" Standard ROM
*Font Helvetica-Narrow-Oblique: Standard "(001.006S)" Standard ROM
*Font Helvetica-Oblique: Standard "(001.006S)" Standard ROM
*Font NewCenturySchlbk-Bold: Standard "(001.009S)" Standard ROM
*Font NewCenturySchlbk-BoldItalic: Standard "(001.007S)" Standard ROM
*Font NewCenturySchlbk-Italic: Standard "(001.006S)" Standard ROM
*Font NewCenturySchlbk-Roman: Standard "(001.007S)" Standard ROM
*Font Palatino-Bold: Standard "(001.005S)" Standard ROM
*Font Palatino-BoldItalic: Standard "(001.005S)" Standard ROM
*Font Palatino-Italic: Standard "(001.005S)" Standard ROM
*Font Palatino-Roman: Standard "(001.005S)" Standard ROM
*Font Times-Bold: Standard "(001.007S)" Standard ROM
*Font Times-BoldItalic: Standard "(001.009S)" Standard ROM
*Font Times-Italic: Standard "(001.007S)" Standard ROM
*Font Times-Roman: Standard "(001.007S)" Standard ROM
*Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM
*Font ZapfDingbats: Special "(001.004S)" Special ROM
*Font Symbol: Special "(001.007S)" Special ROM
*Font Alaska: Standard "(001.005)" Standard ROM
*Font AlaskaExtrabold: Standard "(001.005)" Standard ROM
*Font AntiqueOakland: Standard "(001.005)" Standard ROM
*Font AntiqueOakland-Bold: Standard "(001.005)" Standard ROM
*Font AntiqueOakland-Oblique: Standard "(001.005)" Standard ROM
*Font ClevelandCondensed: Standard "(001.005)" Standard ROM
*Font Connecticut: Standard "(001.005)" Standard ROM
*Font Guatemala-Antique: Standard "(001.005)" Standard ROM
*Font Guatemala-Bold: Standard "(001.005)" Standard ROM
*Font Guatemala-Italic: Standard "(001.005)" Standard ROM
*Font Guatemala-BoldItalic: Standard "(001.005)" Standard ROM
*Font LetterGothic: Standard "(001.005)" Standard ROM
*Font LetterGothic-Bold: Standard "(001.005)" Standard ROM
*Font LetterGothic-Oblique: Standard "(001.005)" Standard ROM
*Font Maryland: Standard "(001.005)" Standard ROM
*Font Oklahoma: Standard "(001.005)" Standard ROM
*Font Oklahoma-Bold: Standard "(001.005)" Standard ROM
*Font Oklahoma-Oblique: Standard "(001.005)" Standard ROM
*Font Oklahoma-BoldOblique: Standard "(001.005)" Standard ROM
*Font Utah: Standard "(001.005)" Standard ROM
*Font Utah-Bold: Standard "(001.005)" Standard ROM
*Font Utah-Oblique: Standard "(001.005)" Standard ROM
*Font Utah-BoldOblique: Standard "(001.005)" Standard ROM
*Font UtahCondensed: Standard "(001.005)" Standard ROM
*Font UtahCondensed-Bold: Standard "(001.005)" Standard ROM
*Font UtahCondensed-Oblique: Standard "(001.004)" Standard ROM
*Font UtahCondensed-BoldOblique: Standard "(001.005)" Standard ROM
*Font BermudaScript: Standard "(001.005)" Standard ROM
*Font Germany: Standard "(001.005)" Standard ROM
*Font SanDiego: Standard "(001.005)" Standard ROM
*Font US-Roman: Standard "(001.005)" Standard ROM
Code: Select all
#! /bin/sh
#
# Brother Print filter
# Copyright (C) 2003-2019 Brother. Industries, Ltd.
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2 of the License, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
# Place, Suite 330, Boston, MA 02111-1307 USA
#
printer_model=""mfcj4335dw""
printer_name=`echo $printer_model | tr '[a-z]' '[A-Z]'`
device_name=`echo $printer_name | eval sed -e 's/MFC/MFC-/' -e 's/DCP/DCP-/' -e 's/HL/HL-/' -e 's/FAX/FAX-/'`
pcfilename=`echo $printer_name | tr -d '[A-Z]'`
device_model="Printers"
tmp_filter=/var/tmp/brother_lpdwrapper_${printer_model}
ldpwrapper=/opt/brother/${device_model}/${printer_model}/cupswrapper/brother_lpdwrapper_${printer_model}
if [ -d "/usr/share/cups/model" ]; then
mkdir -p /usr/share/cups/model/Brother
else
mkdir -p /usr/share/ppd/Brother
fi
if [ -d "/usr/share/ppd" ]; then
mkdir -p /usr/share/ppd/Brother
else
mkdir -p /usr/share/cups/model/Brother
fi
if [ "$1" = '-e' ]; then
lpadmin -x ${printer_name}
rm -f /usr/share/cups/model/Brother/brother_${printer_model}_printer_en.ppd
rm -f /usr/share/ppd/Brother/brother_${printer_model}_printer_en.ppd
rm -f /usr/lib/cups/filter/brother_lpdwrapper_${printer_model}
rm -f /usr/lib64/cups/filter/brother_lpdwrapper_${printer_model}
# rm -f /opt/brother/${device_model}/${printer_model}/cupswrapper/brother_lpdwrapper_${printer_model}
# rm -f /usr/local/Brother/${device_model}/${printer_model}/cupswrapper/brcupsconfpt1
#if [ -e /etc/init.d/cups ]; then
# /etc/init.d/cups restart
#elif [ -e /etc/init.d/cupsys ]; then
# /etc/init.d/cupsys restart
#fi
# /etc/init.d/cups restart
exit 0
fi
if [ "$1" = "-r" ]; then
lpadmin -x ${printer_name}
#if [ -e /etc/init.d/cups ]; then
# /etc/init.d/cups restart
#elif [ -e /etc/init.d/cupsys ]; then
# /etc/init.d/cupsys restart
#fi
# /etc/init.d/cups restart
exit 0
fi
if [ "$1" = "help" ] || [ "$1" = "-h" ]; then
echo 'option -h : help'
echo ' -i : install'
echo ' -e : uninstall'
echo ' -r : remove printer'
exit 0
fi
#mkdir -p /usr/local/Brother/${device_model}/${printer_model}/filter
#mkdir -p /usr/lib/cups/filter
if [ -e "/opt/brother/${device_model}/${printer_model}/lpd/filter_${printer_model}" ]; then
:
else
echo "ERROR : Brother LPD filter is not installed."
fi
rm -f /usr/share/cups/model/Brother/brother_${printer_model}_printer_en.ppd
if [ -d "/usr/share/cups/model" ]; then
ppd_file_name=/usr/share/cups/model/Brother/brother_${printer_model}_printer_en.ppd
else
ppd_file_name=/usr/share/ppd/Brother/brother_${printer_model}_printer_en.ppd
fi
if [ -e "/opt/brother/${device_model}/${printer_model}/cupswrapper/brother_${printer_model}_printer_en.ppd" ]; then
cp "/opt/brother/${device_model}/${printer_model}/cupswrapper/brother_${printer_model}_printer_en.ppd" $ppd_file_name
fi
chmod 644 $ppd_file_name
if [ -d /usr/share/ppd ]
then
if [ -d /usr/share/cups/model ]
then
cp $ppd_file_name /usr/share/ppd/Brother/brother_${printer_model}_printer_en.ppd
chmod 644 /usr/share/ppd/Brother/brother_${printer_model}_printer_en.ppd
fi
fi
#
# check /usr/lib/cups/filter
#
if [ -d /usr/lib/cups/filter ]; then
brotherlpdwrapper=/usr/lib/cups/filter/brother_lpdwrapper_${printer_model}
rm -f $brotherlpdwrapper
#cp $tmp_filter $brotherlpdwrapper
ln -s $ldpwrapper $brotherlpdwrapper
fi
#
# check /usr/lib64/cups/filter
#
if [ -e /usr/lib64/cups/filter ]; then
brotherlpdwrapper64=/usr/lib64/cups/filter/brother_lpdwrapper_${printer_model}
rm -f $brotherlpdwrapper64
#cp $tmp_filter $brotherlpdwrapper64
ln -s $ldpwrapper $brotherlpdwrapper64
fi
#
# remove temporary script file
#
rm -f $tmp_filter
#chmod a+w /opt/brother/${device_model}/${printer_model}/inf/br${printer_model}rc
#chmod a+w /opt/brother/${device_model}/${printer_model}/inf
if [ -e /etc/init.d/lpd ]; then
/etc/init.d/lpd stop
fi
if [ -e /etc/init.d/lprng ]; then
/etc/init.d/lprng stop
fi
if [ -e /etc/init.d/cups ]; then
/etc/init.d/cups restart
elif [ -e /etc/init.d/cupsys ]; then
/etc/init.d/cupsys restart
fi
sleep 2s
uris=$(lpinfo -v)
for uri in $uris
do
URI=$(echo $uri | grep ${device_name} | grep usb)
if [ "$URI" != '' ];then
break;
fi
done
if [ "$URI" = '' ];then
for uri in $uris
do
URI=$(echo $uri | grep ${device_name} )
if [ "$URI" != '' ];then
break;
fi
done
fi
if [ "$URI" = '' ];then
for uri in $uris
do
URI=$(echo $uri | grep -i Brother | grep usb )
if [ "$URI" != '' ];then
break;
fi
done
fi
if [ "$URI" = '' ];then
for uri in $uris
do
URI=$(echo $uri | grep usb )
if [ "$URI" != '' ];then
break;
fi
done
fi
if [ "$URI" = '' ];then
URI="usb://dev/usb/lp0"
fi
echo lpadmin -p ${printer_name} -E -v $URI -P $ppd_file_name
lpadmin -p ${printer_name} -E -v $URI -P $ppd_file_name
exit 0
beny
- Ed_P
- Contributor
- Posts: 8961
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Printing and scanning for Porteus
Post#165 by Ed_P » 16 Jan 2025, 22:46
Ed_P