You are not logged in.

#1 2024-10-28 18:13:27

randompersondude
Member
Registered: 2024-08-17
Posts: 13

[SOLVED] install epson printer driver

my printer model(epson wf-3520) wasnt showing up on the CUPS admin add printer section, so i found out that the driver i need was https://www.openprinting.org/driver/epson-201212w here. which told me to get it from https://support.epson.net/linux/Printer … /escpr.php.

but that one only gives a .rpm download and a .src.rpm.

what do i do with these files?

Last edited by randompersondude (2024-10-28 23:50:08)

Offline

#2 2024-10-28 18:39:49

progandy
Member
Registered: 2012-05-17
Posts: 5,259

Re: [SOLVED] install epson printer driver

Those are packages and source packages in a format for another linux distribution. There is an aur package that creates an arch linux package from that:
https://wiki.archlinux.org/title/Arch_User_Repository

https://aur.archlinux.org/packages/epso … er-201212w
Edit: This need some patches to get it to build, I did some quick changes with sed to get it building:

build() {
  cd "$srcdir" || exit
  tar xzf $pkgname-$pkgver.tar.gz
  FILTER_FILE=$(ls $_pkgname_filter*.tar.gz)
  tar xzf $FILTER_FILE

  cd "${FILTER_FILE%.tar.gz}" || exit
  patch -p1 -i "$srcdir"/fixbuild.patch
  autoreconf -f -i
  # if you have runtime problems: add "--enable-debug" and look into /tmp/epson-inkjet-printer-filter.txt
  ./configure LDFLAGS="$LDFLAGS -Wl,--no-as-needed" --prefix=/opt/$pkgname

  # Some quick fixes
  printf "%s\n" '#include "err.h"' >> config.h 
  sed -i 's/(int \*)&nraster/\&nraster/g' src/raster_to_epson.c
  sed -i 's/return 0;/return;/' src/err.c
  # end of fixes

  make
}

Last edited by progandy (2024-10-28 19:01:03)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#3 2024-10-28 22:44:26

randompersondude
Member
Registered: 2024-08-17
Posts: 13

Re: [SOLVED] install epson printer driver

I replaced the build() in the pkgbuild from the aur package with ur one, but whichever one i ran, i still got this error:

$ makepkg -si
==> Making package: epson-inkjet-printer-201212w 1.0.0-10 (Mon 28 Oct 2024 22:43:00)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading epson-inkjet-printer-201212w-1.0.0-1lsb3.2.src.rpm...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 403
==> ERROR: Failure while downloading http://download.ebz.epson.net/dsc/op/st … .2.src.rpm
    Aborting...

Offline

#4 2024-10-28 22:54:05

progandy
Member
Registered: 2012-05-17
Posts: 5,259

Re: [SOLVED] install epson printer driver

The download works for me, maybe try to download the file with your browser and copy it next to the PKGBUILD.

Otherwise try epson-inkjet-printer-escpr, I think that package should support your printer as well and is more recent.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#5 2024-10-28 23:49:10

randompersondude
Member
Registered: 2024-08-17
Posts: 13

Re: [SOLVED] install epson printer driver

thanks!

i installed epson-inkjet-printer-escpr with yay, and loads of models that hadn't showed up before suddenly appeared.

haven't tried actually printing anything yet, but everything seemed to go fine when i set it up. Hopefully it'll work tomorrow.

Offline

Board footer

Powered by FluxBB