playing bluray

2021-05-31 Thread Moises Simon
Greetings,

how can I play blurays on OpenBSD?

I have installed:
libaacs
libbdplus

But I get the following error when trying to play via vlc, mpv or with 
bd_splice;

aacs.c:121: No usable AACS libraries found!

I have downloaded KEYDB.cfg don't know if I need to do anything else.
Haven't found anything else on the internet about playing blurays with vlc.

dmesg below.

regards,

OpenBSD 6.9 (GENERIC.MP) #473: Mon Apr 19 10:40:28 MDT 2021
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 17084452864 (16293MB)
avail mem = 16551301120 (15784MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0x7ff15020 (9 entries)
bios0: vendor coreboot version "4.7-354-ged089376e3" date 02/16/2018
bios0: GIGABYTE GA-B75M-D3V
acpi0 at bios0: ACPI 4.0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT MCFG TCPA APIC HPET
acpi0: wakeup devices HDEF(S4) EHC1(S4) EHC2(S4) XHC_(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimcfg0 at acpi0
acpimcfg0: addr 0xf000, bus 0-63
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz, 3292.99 MHz, 06-3a-09
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,DEADLINE,XSAVE,AVX,F16C,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.1, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz, 3292.54 MHz, 06-3a-09
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,DEADLINE,XSAVE,AVX,F16C,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 1, core 0, package 0
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz, 3292.54 MHz, 06-3a-09
cpu2: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,DEADLINE,XSAVE,AVX,F16C,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 1, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz, 3292.54 MHz, 06-3a-09
cpu3: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,DEADLINE,XSAVE,AVX,F16C,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 2 (RP01)
acpiprt2 at acpi0: bus -1 (RP02)
acpiprt3 at acpi0: bus -1 (RP03)
acpiprt4 at acpi0: bus -1 (RP04)
acpiprt5 at acpi0: bus 3 (RP05)
acpiprt6 at acpi0: bus -1 (RP06)
acpiprt7 at acpi0: bus -1 (RP07)
acpiprt8 at acpi0: bus -1 (RP08)
acpipci0 at acpi0 PCI0: 0x 0x0011 0x0001
acpicmos0 at acpi0
"BOOT" at acpi0 not configured
acpicpu0 at acpi0: C3 bad (state 4 has no substates): C2(500@63 mwait.1@0x10), 
C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C3 bad (state 4 has no substates): C2(500@63 mwait.1@0x10), 
C1(1000@1 mwait.1), PSS
acpicpu2 at acpi0: C3 bad (state 4 has no substates): C2(500@63 mwait.1@0x10), 
C1(1000@1 mwait.1), PSS
acpicpu3 at acpi0: C3 bad (state 4 has no substates): C2(500@63 mwait.1@0x10), 
C1(1000@1 mwait.1), PSS
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: LCD0
cpu0: using VERW MDS workaround (except on vmm entry)
cpu0: Enhanced SpeedStep 3292 MHz: speeds: 3300, 2800, 2400, 2000, 1600 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core 3G Host" rev 0x09
ppb0 at pci0 dev 1 function 0 "Intel Core 3G PCIE" rev 0x09: msi
pci1 at ppb0 bus 1
em0 at pci1 dev 0 function 0 "Intel I210" rev 0x03: msi, address 
6c:b3:11:52:79:ed
inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics 2500" rev 0x09
drm0 at inteldrm0
inteldrm0: msi, IVYBRIDGE, gen 7
xhci0 at pci0 dev 20 function 0 "Intel 7 Series xHCI" rev 0x04: 

Re: Sound is good on OpenBSD

2020-04-29 Thread Moises Simon
On Tue, Apr 28, 2020 at 03:38:58PM -0500, Abel Abraham Camarillo Ojeda wrote:
> I think increasing -b option in sndiod helps to prevent audio jumping, I
> hear music with a local mpd with music directory over nfs, plus a lot of
> firefox and chrome and hear no jumps , etc
> 
> regards

I can confirm. For me setting -b 8640 stops the audio jumping.

Thanks Abel.



Re: problems setting up PORTS_PRIVSEP

2020-03-30 Thread Moises Simon
On Mon, Mar 30, 2020 at 01:22:03PM +0200, Moises Simon wrote:
> sirius$ make build
> ===>  Verifying specs:  X11 Xft Xinerama c fontconfig
> ===>  found X11.17.0 Xft.12.0 Xinerama.6.0 c.96.0 fontconfig.13.0
> ===>  Checking files for dmenu-4.9
> >> Fetch https://dl.suckless.org/tools/dmenu-4.9.tar.gz
> dmenu-4.9.tar.gz 100% 
> |*|
>  15972   00:00
> >> (SHA256) dmenu-4.9.tar.gz: OK
> ===>  Extracting for dmenu-4.9
> make: getcwd: Permission denied
> *** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2648 
> '/usr/ports/pobj/dmenu-4.9/.extract_done': @cd /usr/ports/mystuff/x11/dmenu 
> ...)
> *** Error 2 in /usr/ports/mystuff/x11/dmenu 
> (/usr/ports/infrastructure/mk/bsd.port.mk:2564 'build': @lock=dmenu-4.9;  
> export _LOCKS_HELD=" d...)
> 
> # Doas log showing some comands failed
> 
> sirius# tail /var/log/doas
> Mar 30 12:35:27 sirius doas: msv ran command chmod a+rX 
> /tmp/dep_cache.6pG4FlqDv as _pbuild from (failed)
> Mar 30 12:35:27 sirius doas: msv ran command rm -rf /tmp/dep_cache.6pG4FlqDv 
> as _pbuild from (failed)
> Mar 30 12:35:27 sirius doas: msv ran command /usr/bin/touch 
> /usr/ports/pobj/dmenu-4.9/.buildwantlibs as _pbuild from (failed)
> Mar 30 12:35:27 sirius doas: msv ran command /usr/bin/perl 
> /usr/ports/infrastructure/bin/portlock 
> /usr/ports/pobj/locks/dmenu-4.9.tar.gz.dist.lock x11/dmenu, as _pbuild from 
> (failed)
> Mar 30 12:35:27 sirius doas: msv ran command install -d /usr/ports/distfiles 
> as _pfetch from (failed)
> Mar 30 12:35:27 sirius doas: msv ran command /usr/bin/ftp -V -m -C -o 
> /usr/ports/distfiles/dmenu-4.9.tar.gz.part 
> https://dl.suckless.org/tools/dmenu-4.9.tar.gz as _pfetch from 
> /usr/ports/distfiles
> Mar 30 12:35:27 sirius doas: msv ran command mv 
> /usr/ports/distfiles/dmenu-4.9.tar.gz.part 
> /usr/ports/distfiles/dmenu-4.9.tar.gz as _pfetch from /usr/ports/distfiles
> Mar 30 12:35:27 sirius doas: msv ran command rm -f 
> /usr/ports/pobj/locks/dmenu-4.9.tar.gz.dist.lock as _pbuild from 
> /usr/ports/distfiles
> Mar 30 12:35:27 sirius doas: msv ran command make do-extract as _pbuild from 
> (failed)
> Mar 30 12:35:27 sirius doas: msv ran command rm -f 
> /usr/ports/pobj/locks/dmenu-4.9.lock as _pbuild from (failed)
> sirius#
> 

After more test the problem wan on my umask 027. 
/usr/ports/mystuff/x11 whas 750 and that was causing problems for ports under
mystuff but not on /usr/ports



Re: problems setting up PORTS_PRIVSEP

2020-03-30 Thread Moises Simon
On Thu, Mar 26, 2020 at 12:38:19PM +0100, Moises Simon wrote:
> On Thu, Mar 26, 2020 at 07:50:27AM -, Stuart Henderson wrote:
> > Does _pbuild have write access to /usr/obj? If not, either grant it,
> > or create /usr/obj/ports yourself and grant _pbuild write access to
> > that.
> 
> 
> this where the permissions:
> 
> drwxrwxr-x  4 build  wobj  512 Mar 25 11:03 /usr/obj
> 
> d2d35fe9f62eb1e1.i /usr/obj ffs rw,softdep,noatime,nodev,nosuid 1 2
> 
> because that is for building base I have changed
> 
> WRKOBJDIR=/usr/ports/obj
> 
> drwxr-xr-x  3 _pbuild  _pbuild  512 Mar 26 10:12 /usr/ports/obj/
> 
> Now its working.
> 
> Thanks!
> 
> Now i'm getting this:
> 
> sirius$ make package
> ===>  Checking files for dmenu-4.9
> >> Fetch https://dl.suckless.org/tools/dmenu-4.9.tar.gz
> dmenu-4.9.tar.gz 100% 
> |*|
>  15972   00:00
> >> (SHA256) dmenu-4.9.tar.gz: OK
> ===>  Verifying specs:  X11 Xft Xinerama c fontconfig
> ===>  found X11.17.0 Xft.12.0 Xinerama.6.0 c.96.0 fontconfig.13.0
> ===>  Extracting for dmenu-4.9
> make: don't know how to make do-extract
> Stop in .
> *** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2641
> '/usr/ports/obj/dmenu-4.9/.extract_done': @cd /usr/ports/mystuff/x11/dmenu 
> &...)
> *** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2089
> '/usr/ports/packages/amd64/all/dmenu-4.9.tgz': @cd 
> /usr/ports/mystuff/x11/dm...)
> *** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2578
> '_internal-package': @case X${_DEPENDS_CACHE} in  X) _DEPENDS_CACHE=$(doas 
> -...)
> *** Error 2 in /usr/ports/mystuff/x11/dmenu
> (/usr/ports/infrastructure/mk/bsd.port.mk:2557 'package': @lock=dmenu-4.9;
> export _LOCKS_HELD="...)
> 
> in ports under /usr/ports/mystuff
> I just:
> 
> mkdir /usr/ports/mystuff/x11
> cp -R /usr/ports/x11/dmenu /usr/ports/mystuff/x11/
> cd /usr/ports/mystuff/x11/dmenu
> make package
> 

I'm having lots of problems with permissions under /usr/ports/, I have even
delete and fetch new cvs ports following:

https://www.openbsd.org/faq/faq5.html#wsrc

"Avoid running cvs(1) as root. The /usr/src directory (where your source will
typically go) is writable by the wsrc group by default, so add users that need
to use cvs(1) to that group. "

https://man.openbsd.org/bsd.port.mk#PORTS_PRIVSEP

"To work fully, this does require the ports tree to be world- readable, and
${WRKDIR} to be world-readable as well (update-patches and friends won't work
otherwise)."

doing 

sirius# find /usr/ports/ -type f -exec chmod 644 {} \+
sirius# find /usr/ports/ -type d -exec chmod 755 {} \+

I get:

sirius$ make build
===>  Verifying specs:  X11 Xft Xinerama c fontconfig
===>  found X11.17.0 Xft.12.0 Xinerama.6.0 c.96.0 fontconfig.13.0
===>  Checking files for dmenu-4.9
>> Fetch https://dl.suckless.org/tools/dmenu-4.9.tar.gz
dmenu-4.9.tar.gz 100% 
|*|
 15972   00:00
>> (SHA256) dmenu-4.9.tar.gz: OK
===>  Extracting for dmenu-4.9
make: getcwd: Permission denied
*** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2648 
'/usr/ports/pobj/dmenu-4.9/.extract_done': @cd /usr/ports/mystuff/x11/dmenu ...)
*** Error 2 in /usr/ports/mystuff/x11/dmenu 
(/usr/ports/infrastructure/mk/bsd.port.mk:2564 'build': @lock=dmenu-4.9;  
export _LOCKS_HELD=" d...)

# Doas log showing some comands failed

sirius# tail /var/log/doas
Mar 30 12:35:27 sirius doas: msv ran command chmod a+rX 
/tmp/dep_cache.6pG4FlqDv as _pbuild from (failed)
Mar 30 12:35:27 sirius doas: msv ran command rm -rf /tmp/dep_cache.6pG4FlqDv as 
_pbuild from (failed)
Mar 30 12:35:27 sirius doas: msv ran command /usr/bin/touch 
/usr/ports/pobj/dmenu-4.9/.buildwantlibs as _pbuild from (failed)
Mar 30 12:35:27 sirius doas: msv ran command /usr/bin/perl 
/usr/ports/infrastructure/bin/portlock 
/usr/ports/pobj/locks/dmenu-4.9.tar.gz.dist.lock x11/dmenu, as _pbuild from 
(failed)
Mar 30 12:35:27 sirius doas: msv ran command install -d /usr/ports/distfiles as 
_pfetch from (failed)
Mar 30 12:35:27 sirius doas: msv ran command /usr/bin/ftp -V -m -C -o 
/usr/ports/distfiles/dmenu-4.9.tar.gz.part 
https://dl.suckless.org/tools/dmenu-4.9.tar.gz as _pfetch from 
/usr/ports/distfiles
Mar 30 12:35:27 sirius doas: msv ran command mv 
/usr/ports/distfiles/dmenu-4.9.tar.gz.part 
/usr/ports/distfiles/dmenu-4.9.tar.gz as _pfetch from /usr/ports/distfiles
Mar 30 12:35:27 sirius doas: msv ran command rm -f 
/usr/ports/pobj/locks/dmenu-4.9.tar.gz.dist.lock as _pbuild from 
/usr/ports/distfiles
Mar 30 12:35:27 sirius doas: msv ran command make do-extract as _pbuild from 
(failed)
Mar 30 12:35:27 sirius doa

Re: problems setting up PORTS_PRIVSEP

2020-03-26 Thread Moises Simon
On Thu, Mar 26, 2020 at 06:04:19PM +0530, putridsou...@gmail.com wrote:
> I don't understand the logic of this
> 
> mkdir /usr/ports/mystuff/x11
> cp -R /usr/ports/x11/dmenu /usr/ports/mystuff/x11/
> cd /usr/ports/mystuff/x11/dmenu
> make package
> 
> to build a package, one usually just runs command
> 
> cd /usr/ports/x11/dmenu
> make install
> 
> try and see if this gives an error.
> 

Yes, that works but I want to apply some private patches to the application.
Thats why I copye the port to /usr/ports/mystuff, to make local changes



Re: problems setting up PORTS_PRIVSEP

2020-03-26 Thread Moises Simon
On Thu, Mar 26, 2020 at 07:50:27AM -, Stuart Henderson wrote:
> Does _pbuild have write access to /usr/obj? If not, either grant it,
> or create /usr/obj/ports yourself and grant _pbuild write access to
> that.


this where the permissions:

drwxrwxr-x  4 build  wobj  512 Mar 25 11:03 /usr/obj

d2d35fe9f62eb1e1.i /usr/obj ffs rw,softdep,noatime,nodev,nosuid 1 2

because that is for building base I have changed

WRKOBJDIR=/usr/ports/obj

drwxr-xr-x  3 _pbuild  _pbuild  512 Mar 26 10:12 /usr/ports/obj/

Now its working.

Thanks!

Now i'm getting this:

sirius$ make package
===>  Checking files for dmenu-4.9
>> Fetch https://dl.suckless.org/tools/dmenu-4.9.tar.gz
dmenu-4.9.tar.gz 100% 
|*|
 15972   00:00
>> (SHA256) dmenu-4.9.tar.gz: OK
===>  Verifying specs:  X11 Xft Xinerama c fontconfig
===>  found X11.17.0 Xft.12.0 Xinerama.6.0 c.96.0 fontconfig.13.0
===>  Extracting for dmenu-4.9
make: don't know how to make do-extract
Stop in .
*** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2641
'/usr/ports/obj/dmenu-4.9/.extract_done': @cd /usr/ports/mystuff/x11/dmenu &...)
*** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2089
'/usr/ports/packages/amd64/all/dmenu-4.9.tgz': @cd /usr/ports/mystuff/x11/dm...)
*** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2578
'_internal-package': @case X${_DEPENDS_CACHE} in  X) _DEPENDS_CACHE=$(doas -...)
*** Error 2 in /usr/ports/mystuff/x11/dmenu
(/usr/ports/infrastructure/mk/bsd.port.mk:2557 'package': @lock=dmenu-4.9;
export _LOCKS_HELD="...)

in ports under /usr/ports/mystuff
I just:

mkdir /usr/ports/mystuff/x11
cp -R /usr/ports/x11/dmenu /usr/ports/mystuff/x11/
cd /usr/ports/mystuff/x11/dmenu
make package

But it doesn't seems related to PORT_PRIVSEP, I have build wmutils
doing the same without problems

> Allowing pkg_add with nopass opens a way for your account to get root
> without a password.
> 
> Since doas "persist" doesn't allow password persistence with how ports
> uses it, I use sudo not doas on ports dev machines. (I use doas on
> ports build machines, but dpb manages running pkg_add in that case,
> and is started as root so it only needs to drop privs rather than
> raise them).
> 

So dpb for building just 3 or 4 ports is over-kill right?



problems setting up PORTS_PRIVSEP

2020-03-25 Thread Moises Simon
Hi misc,

I'm trying to set the ports system to use PORT_PRIVSEP
according to bsd.port.mk(5) and
https://www.openbsd.org/faq/ports/ports.html#PortsConfig

but I'm getting the following error:

sirius$ make fetch
mkdir /usr/obj/ports: Permission denied at
/usr/ports/infrastructure/bin/portlock line 53.  *** Error 255 in
/usr/ports/mystuff/x11/dmenu (/usr/ports/infrastructure/mk/bsd.port.mk:2557
'fetch': @lock=dmenu-4.9; export _LOCKS_HELD="...

even after doing make fix-permissions. I'm not seens something.

cat /etc/mk.conf
SUDO=doas
CLEANDEPENDS=Yes
PORTS_PRIVSEP=Yes
WRKOBJDIR=/usr/obj/ports
DISTDIR=/usr/ports/distfiles
PACKAGE_REPOSITORY=/usr/ports/packages

cat /etc/doas.conf
permit nopass msv cmd touch
permit nopass setenv { TRUSTED_PKG_PATH TERM } msv cmd pkg_add
permit nopass setenv { TERM } msv cmd pkg_delete

permit keepenv nopass msv as _pbuild
permit keepenv nopass msv as _pfetch

permit msv as root



Re: Laser printer setup help (and/or recommendation)

2019-05-12 Thread Moises Simon
FTR

I finally bought a PostScript Xerox printer (WorkCenter 3225) with
works like a charm with PostScript files. The setup is the following:

- Server. Printer attached via USB.

==> dmesg <==
ulpt0 at uhub3 port 3 configuration 1 interface 1 "Xerox WorkCentre 3225" rev 
2.00/1.00 addr 3
ulpt0: using bi-directional mode
ugen0 at uhub3 port 3 configuration 1 "Xerox WorkCentre 3225" rev 2.00/1.00 
addr 3

==> /etc/printcap <==
lp|xerox|Xerox_WorkCenter_3225:\
:lp=/dev/ulpt0:\
:sh:sd=/var/spool/output/lpd:\
:lf=/var/log/lpd-errs:

==> /etc/hosts.lpd <==
+

- Client machines. I use lpr to send PostScript files (converted with
a2ps). I will also set up cups on a Debian machine (thah should
handle PostScrip conversion auto-magically)

==> /etc/printcap <==
lp|xerox|Xerox_WorkCenter_3225:\
:lp=/dev/ulpt0:\
:sh:sd=/var/spool/output/lpd:\
:lf=/var/log/lpd-errs:

I will test scanning later.

On Mon, Apr 15, 2019 at 10:38:37PM -0400, Predrag Punosevac wrote:
> > Moises Simon wrote:
> > 
> > Hi, I need some help to setup or buy new printer.
> > 
> > I have been trying to make a Brother DCP-L2530DW working on OpenBSD.
> > 
> 
> A quick look into "Open" Printing 
> 
> https://www.openprinting.org/printers
> 
> doesn't show any info on the device you have. However, DCP-L2540DW, 
> DCP-L2550DW, and DCP-L2560DW are listed but the info is of the very low
> quality provided by users. For example
> 
> https://www.openprinting.org/printer/Brother/Brother-DCP-L2550DW
> 
> I have a bad feeling that that is one of those cheap one-in-all devices 
> for which Linux "open" source driver is provided by the manufacturer.
> Those so-called "open" drivers have a hidden binary blob component. 
> 
> 
> 
> 
> 
> > I have tried:
> > 
> > * Send ps files to the printer `cat file.ps > /dev/ulpt0`
> > * Filter plain-text (and ps) with a2ps,foomatic-rip and the oem
> > provided ppd.
> > 
> > But all this just "print" blank pages, and not always.
> > 
> > Since its seems this printer its not very OpenBSD friendly I'm searching 
> > for another one with Postscript and/or PCL support (which should be 
> > easier to setup)
> > 
> > I want a monochrome laser printer to connect via usb to my server and 
> > set it up with lpd(8) (better if it has multifunction capabilities).
> > 
> 
> 
> # Remote printer must use jetdirect since foomatic-rip doesn't speak LPD
> rp|HL-5250DN:\
> :lp=9100@192.168.3.15:\
> :if=/etc/foomatic-rip/script_brother.sh:\
> :sh:sd=/var/spool/output/brother:\
> :lf=/var/log/lpd-errs:
> 
> predrag@oko$ more /etc/foomatic-rip/script_brother.sh
> #!/bin/sh
> 
> /usr/local/bin/a2ps -BRq --columns=1 -o - | \
> /usr/local/bin/foomatic-rip -P HL-5250DN --ppd
> /etc/foomatic-rip/direct/brother-hl-5250dn-postscript-brother.ppd
> 
> 
> Make sure you read /usr/local/share/doc/pkg-readmes/cups-filters
> 
> Linux guys have broken foomatic-rip few years ago which requires little
> hack these days to work with a Berkeley lpd spooling system. It is
> counter intuitive but you will need to install cups-filters package to
> get foomatic-rip.
> 
> 5250dn is a bit old now but HL-L5100DN which I bought two years ago for
> my lab works equally well on OpenBSD. 
> 
> 
> > Any Postscript printer should be compatible and easy to setup? Even if 
> > it's not on `foomatic-ppdfile -A | grep Postscript`
> > 
> > What have I to consider regarding scanner support?
> > 
> 
> Note that most scanners these days are capable of scanning to umass
> storage devices or directly to email so they are OS agnostic. OpenBSD
> scanner support is provided by sane-backends just like on Linux with the
> caveat that the drivers with hidden binary blobs (epkowa-epson comes to
> mind) will not work. 
> 
> oko# uname -a
> OpenBSD oko.int.bagdala2.net 6.4 GENERIC.MP#9 amd64
> oko# sane-find-scanner 
> 
>   # sane-find-scanner will now attempt to detect your scanner. If the
>   # result is different from what you expected, first make sure your
>   # scanner is powered up and properly connected to your computer.
> 
>   # No SCSI scanners found. If you expected something different, make
> sure that
>   # you have loaded a kernel SCSI driver for your SCSI adapter.
> 
> found USB scanner (vendor=0x04b8 [EPSON], product=0x011f [EPSON
> Scanner]) at libusb:000:003
>   # Your USB scanner was (probably) detected. It may or may not be
> supported by
>   # SANE. Try scanimage -L and read the backend's manpage.
> 
>   # Not checking for parallel p

Laser printer setup help (and/or recommendation)

2019-04-15 Thread Moises Simon
Hi, I need some help to setup or buy new printer.

I have been trying to make a Brother DCP-L2530DW working on OpenBSD.

I have tried:

* Send ps files to the printer `cat file.ps > /dev/ulpt0`
* Filter plain-text (and ps) with a2ps,foomatic-rip and the oem provided 
ppd.

But all this just "print" blank pages, and not always.

Since its seems this printer its not very OpenBSD friendly I'm searching 
for another one with Postscript and/or PCL support (which should be 
easier to setup)

I want a monochrome laser printer to connect via usb to my server and 
set it up with lpd(8) (better if it has multifunction capabilities).

Any Postscript printer should be compatible and easy to setup? Even if 
it's not on `foomatic-ppdfile -A | grep Postscript`

What have I to consider regarding scanner support?

Do you have any recommendations on the 100-200 price range.

Thanks