popen from cgi program

2018-01-19 Thread Jordon
I am still learning cgi/web stuff and stumbled upon an issue.  I am 
trying to popen() a program to catch what it dumps to stdout.  To start 
simply, I am just trying to run uname.  I get nothing.  No errors on 
popen() or pclose(), but nothing printed.  I run the same code from a 
regular cpp program (changing the khtml_puts() to printf() and it works 
perfectly.  That makes me wonder if there is something environmental 
that I am missing, or maybe this is just not allowed.


My code is this:

  char dump[1024];
  memset(dump, 0, sizeof(dump));
  FILE *f = popen("uname -a", "r");
  if(f == NULL) {
    khtml_puts(, "popen()FAILED!");
  } else {
    khtml_puts(, "output: ");
    while (fgets(dump, sizeof(dump), f) != NULL) {
  khtml_puts(, "GOTSOMETHING!");
  khtml_puts(, dump);
    }
    int status = pclose(f);
    if(status==-1) {
  khtml_puts(, "pclose()FAILED");
    }
  }
  khtml_puts(, "done");


All I get from it is "output: done"



Also, my httpd.conf is this:

ext_addr="egress"
prefork 2
server "localhost" {
    listen on $ext_addr port 80
    root "/htdocs"
    location "/cgi-bin/*" {
    fastcgi
    root "/"
    }
}

Any ideas?



Intel C610 azalia (ALC888) not configuring at /dev/audio

2018-01-19 Thread yuuko

Hello,

I have just installed the latest snapshot and audio is not configuring,
i.e. the output of mixerctl, audioctl, et al are "device not 
configured".

My motherboard is a Supermicro X10DAL-I-O, which has the Intel C610
chipset, and the audio codec is the Realtek ALC888, although the latter
is not immediately relevant, as the azalia driver does not even get to
the stage of evaluating the codec; pertinent dmesg output with 
GENERIC.MP

modified with AZALIA_DEBUG enabled:

azalia1 at pci0 dev 27 function 0 "Intel C610 HD Audio" rev 0x05: msi
azalia_reset: resetting
azalia_reset: reset counter = 0
azalia1: reset failure
azalia_pci_detach
azalia_pci_detach: delete streams
azalia_pci_detach: delete codecs
azalia_pci_detach: delete CORB and RIRB
azalia_pci_detach: disable interrupts
azalia_pci_detach: clear interrupts
azalia_pci_detach: delete PCI resources

For reference, azalia0 was my AMD GPU's HDMI/DisplayPort audio (I
understand from the man page that this is unsupported; thankfully I
have no need of it).

Grepping through the source shows that this is a supported chipset;
what gives? Any and all help is appreciated. Might it have something
to do with it being the second device that azalia(4) tries to set up?




Re: identifying software and licenses used in base install

2018-01-19 Thread Gareth Nelson
If your customer is not satisfied by simply pointing to the terms that
cover the whole of OpenBSD, and if they insist on some kind of audit of the
whole tree.

Well then, offer it - but charge more.

Point out that what they're asking for would be unreasonably complex and
expensive no matter what third-party code is being used.

If they're worried about some kind of liability for using OpenBSD, offer to
idemnify them.

Personally, any contract for development work I ever sign has clauses
stating that all code is either 100% my own work (often with the copyright
assigned as work under hire) or licensed under a free software license
acceptable to the client (client specifies what licenses they're happy
with).

I generally find that technically knowledgeable  clients are happy for me
to use BSD and MIT type licenses without asking, and GPLv2 if there's no
decent alternative.

Clients who are not technically knowledgeable will usually be happy to
trust my judgement and settle on the same policy after a few minutes of
explanation.

If your client is being paranoid about licensing and copyright issues to
the point you're seriously considering what's basically an audit of the
OpenBSD tree, I'd question if they're going to be unreasonable on other
matters too.

It may be the case that your client's lawyer is being paranoid about
liability, so ask them to draft an idemnification clause in the contract
and if they're not happy with that, charge them for the large and expensive
task of auditing OpenBSD.

Ultimately, if they're unwilling to accept the reasonable path and don't
want to pay for the extra work, drop them. It's not worth it.


On Jan 17, 2018 11:30 PM, "Kent Watsen"  wrote:


I'm throwing together a quick proof-of-concept thingy to give to a customer
and thought it might be  fun to use OpenBSD as the OS for the VM image.
Unfortunately, the not so fun part of it is that I'm required to get
permission to use/distribute this open source software, which entails
needing to identify all the internal software components and licenses
used.  I thought this was going to be easy, but it's proving to be anything
but...

My system only has the following installed: bsd, bsd.rd, bsd.mp, base62,
etc62, and man62.

Is there, by chance, such a breakdown available for these already? Since
OpenBSD is distributed in binary form, is there a copyright attributions
listing somewhere to satisfy the "must reproduce the above copyright"
clause, or do you just point to the also-distributed source for all that?

In lieu of that, it seems that a script could analyze the source code -
everything is contained in sys.tar.gz (the kernel) and src.tar.gz
(userland), right?

For the kernel, I'd like to think that it's all BSD, but `grep -R '"GPL"'
*` shows 39 files having the "GPL" string.  Looking at these, it appears
that they are all dual-licensed.  I didn't check if there are any other
licenses in the kernel, but is it safe to say that, if there are, they are
all dual-licensed and therefore the net-net is that the kernel is all BSD?

For the userland, first, is there an easy way to isolate the sub-parts of
src.tar.gz that contribute to base62, etc62, and man62?  Next, is there an
easy way to identify the unique packages/projects that are included?  -
this in hope that it might be easier to identify the licenses at the
project-level than the file-level.  Any thoughts for how to make this go
easy?

I'm beginning to think that this might be more trouble than it's worth, and
that I might be better off having the customer download/install OpenBSD
themselves, and then run something like an Ansible script to
install/configure the demo...

Thanks,
Kent


Re: identifying software and licenses used in base install

2018-01-19 Thread Theo de Raadt
> On 01/19/18 01:12, Theo de Raadt wrote:
> >> FWIW, the permission I seek is from my Legal department.
> > 
> > That maybe your job but it isn't the project's job.
>  
> > Enough is enough.  That sentence above makes it clear who is getting
> > paid for satisfying those requirements:  You.
> 
> Huh, where did he imply otherwise?  I don't think I saw Kent make a
> single claim about what the project _ought_ to do, or have done.

Oh, cut your crap.

There is no question who would be capable of doing that work and
having it count.  His legal isn't going to sign off on someone like
Lari doing the work, so the implication is he wanted *US TO DO IT*

And we don't.  And he should know better

(1) due to the gigantic NO WARRANTY on 99% of the files.

(2) the realizion that we provide a vast body for code for free

His expectation is balony.  This isn't a corporation.

Your disagreement isn't worth a penny.  You have no stake in the work.
It is obvious you just want to be a yappy mouth.




Re: identifying software and licenses used in base install

2018-01-19 Thread Lari Rasku
On 01/19/18 01:12, Theo de Raadt wrote:
>> FWIW, the permission I seek is from my Legal department.
> 
> That maybe your job but it isn't the project's job.
 
> Enough is enough.  That sentence above makes it clear who is getting
> paid for satisfying those requirements:  You.

Huh, where did he imply otherwise?  I don't think I saw Kent make a
single claim about what the project _ought_ to do, or have done.



Re: Git(Hub) and CVS

2018-01-19 Thread Lari Rasku
I'm guessing the cvs2git version changed in the upgrade and the new version
generates different commit hashes from the old one.  You can verify this by
comparing how a known commit shows up on the GitHub UI vs. a git log of a
recent cvs2git conversion: if the "commit XXX" strings differ, that's
our culprit.

If you don't care about preserving the hashes of the old commits on GitHub,
then what you probably want is `git push --mirror origin`.  It does exactly
what it sounds like, mirroring the current state of the entire repo to the
remote.  (Doing this means that people won't be able to git pull without
--rebase on checkouts of your repository made prior to the cvs2git upgrade,
and if there are any antediluvian forks of it on GitHub the UI may get
confused trying to figure out their relation.)

If you DO care about preserving the commits with the old hashes on GitHub
then I don't know how to do better than Anton's suggestion, though I think
you'll still encounter problems with tags... you'd have to take the --tags
off your push command and come up with some system for pushing new tags
individually.



Re: Flatbed scanner that works well with OpenBSD?

2018-01-19 Thread Predrag Punosevac
Bryan Linton writes:
> Hello misc@
>
> I'm currently looking to purchase a scanner that works well with OpenBSD.
>
> I'm aware of the list provided at: 
>
> 0211038.pdf Desktop Documents Downloads Library Movies Music Pictures 
> Programs Videos s-nail.corehttp://www.sane-project.org/sane-mfgs.html
>
> but I recently purchased (and returned) a scanner that was listed as being
> fully supported on that list because no matter what I did, I couldn't
> get it to work right with xsane or scanimage.  Though I purchased it used,
> so it's possible it may have simply been broken from the get-go.
>
> Does anyone happen to know of a scanner that is *known* to work well
> with OpenBSD?


This is a very silly question. Most modern all-in-one office grade
devices can scan directly onto an umass device or into the e-mail. You
don't need OpenBSD to scan. The scan quality fall within technical
requirements you have.

That being said I have three scanners currently attached to my OpenBSD
desktops at work and at home and all of them work perfectly. They are
older devices.

1. Epson Perfection 1650 (plug and play)

2 .Epson Perfection 1670 (use cabextract to get a firmware needed to
scan from Windows installation disk)

3. Epson all-in-one WorkForce 845 (plug and play but printer is 
paperweight but good enough for me to print from my smart phone with
proprietary driver)


I see people complaining about CanoScan LiDE line of Canon "scanners".
Those scanners come without power supply and they are supposed to draw
the electricity from USB cable. They cost about $10 new. Well you get
what you paid for. 

Now in whole honestly Epson started selling $100-$200 flatbed scanners
here in U.S. which do require epkowa binary blob driver so they are
Linux only. Those scanners are no better than what I have. Now real good
scanners like Perfection V850 Pro ($1000) are fully supported but you
probably don't need that unless you are digitizing massive amount of
old photos and negatives.


Cheers,
Predrag



Re: Flatbed scanner that works well with OpenBSD?

2018-01-19 Thread Robert
Hi,

My scanner also stopped working somewhere around 6.0 I think. I didn't need it 
since then and therefore didn't bother to file a bug report (I know...).
Don't know if it's the same root cause, but mine looks like a USB stack problem 
(?).
Note: This is a Dell Optiplex 3020, that has the XHCI problem mentioned by 
someone in 2015 (hangs during boot); I have to disable the xhci device in the 
kernel in to boot (full dmesg at the end).
(see https://marc.info/?l=openbsd-misc=143442925331480)

dmesg:
ugen0 at uhub4 port 2 "Hewlett-Packard hp scanjet scanner" rev 2.00/3.05 addr 5

usbdevs:
addr 1: high speed, self powered, config 1, EHCI root hub(0x), 
Intel(0x8086), rev 1.00
 port 1 addr 2: high speed, self powered, config 1, Rate Matching Hub(0x8000), 
Intel(0x8087), rev 0.04
  port 1 powered
  port 2 addr 5: high speed, self powered, config 1, hp scanjet 
scanner(0x1805), Hewlett-Packard(0x03f0), rev 3.05

scanimage -L
device `hp5590:libusb:001:005' is a HP 7650 Document scanner

xsane reports this when I try to scan something:
$ xsane  
Xlib:  extension "RANDR" missing on display ":0.0".
[hp5590] hp5590_control_msg: USB-in-USB: error sending control message
[hp5590] hp5590_control_msg: USB-in-USB: error sending control message
[hp5590] hp5590_control_msg: USB-in-USB: error sending control message


If I connect a USB 2.0 hub in between, then this happens:

scanimage -L
[hp5590] hp5590_get_ack: USB-in-USB: not accepted (status 0)

usbdevs:
Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x), 
Intel(0x8086), rev 1.00
 port 1 addr 2: high speed, self powered, config 1, Rate Matching Hub(0x8008), 
Intel(0x8087), rev 0.04
  port 1 addr 3: high speed, self powered, config 1, USB2.0 Hub(0x0606), 
Genesys Logic(0x05e3), rev 7.02
   port 1 powered
   port 2 powered
   port 3 powered
   port 4 addr 5: high speed, self powered, config 1, hp scanjet 
scanner(0x1805), Hewlett-Packard(0x03f0), rev 3.05


full dmesg:
OpenBSD 6.2-current (GENERIC.MP) #305: Thu Dec 21 14:53:41 MST 2017
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 17113550848 (16320MB)
avail mem = 16587972608 (15819MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xec380 (81 entries)
bios0: vendor Dell Inc. version "A15" date 02/15/2017
bios0: Dell Inc. OptiPlex 3020
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC FPDT SLIC SSDT SSDT SSDT HPET SSDT MCFG SSDT
acpi0: wakeup devices PXSX(S4) RP01(S4) PXSX(S4) PXSX(S4) PXSX(S4) RP04(S4) 
PXSX(S4) RP05(S4) PXSX(S4) RP06(S4) PXSX(S4) PXSX(S4) GLAN(S4) EHC1(S0) 
EHC2(S0) XHC_(S0) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz, 3492.43 MHz
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,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,SENSOR,ARAT
cpu0: 256KB 64b/line 8-way L2 cache
acpitimer0: recalibrated TSC frequency 3292393277 Hz
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.2.4, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz, 3491.92 MHz
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,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,SENSOR,ARAT
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 4 (application processor)
cpu2: Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz, 3491.92 MHz
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,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,SENSOR,ARAT
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 6 (application processor)
cpu3: Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz, 3491.92 MHz
cpu3: 

Re: Flatbed scanner that works well with OpenBSD?

2018-01-19 Thread Ax0n
Slightly related, I have a CanoScan LiDE 100 that used to work great with
OpenBSD, using either ScanImage or simple-scan. It's detected, but sometime
around OpenBSD-5.6 it stopped working. I use it infrequently enough, and I
have enough computers that I usually just give up and have my wife use her
Windows laptop to scan for me. I have a slightly vested interest in having
my only scanner work with my main daily desktop/laptop OS.

I'll try installing some old versions of OpenBSD and see if I can find
where it broke, and post dmesg's of the before/after mess, if anyone thinks
that would help.

On Fri, Jan 19, 2018 at 11:38 AM, Anthony J. Bentley 
wrote:

> Base Pr1me writes:
> > Did you give your userland user/group permissions to use the uhub/ugen
> > device?
>
> Of course; without that I wasn't able to detect the scanner in the first
> place.
>
> > On Fri, Jan 19, 2018 at 9:59 AM, Anthony J. Bentley 
> > wrote:
> >
> > > Bryan Linton writes:
> > > > Hello misc@
> > > >
> > > > I'm currently looking to purchase a scanner that works well with
> OpenBSD.
> > > >
> > > > I'm aware of the list provided at:
> > > >
> > > >   http://www.sane-project.org/sane-mfgs.html
> > > >
> > > > but I recently purchased (and returned) a scanner that was listed as
> > > being
> > > > fully supported on that list because no matter what I did, I couldn't
> > > > get it to work right with xsane or scanimage.  Though I purchased it
> > > used,
> > > > so it's possible it may have simply been broken from the get-go.
> > > >
> > > > Does anyone happen to know of a scanner that is *known* to work well
> > > > with OpenBSD?
> > >
> > > Well, I just bought a CanoScan 9000F MkII specifically because it was
> > > marked as fully supported on that list, and I can say it does NOT work
> > > on OpenBSD; scanimage -L detects it just fine but attempting to scan
> > > gives an I/O error. As a workaround I plugged it into a Linux laptop,
> > > started saned, and scan seamlessly from OpenBSD with scanimage's
> network
> > > support, until I find the time to make a proper bug report.
> > >
> > > In the past I used a CanoScan LiDE 20 quite regularly from OpenBSD, but
> > > that was several years ago.
> > >
> > >
>
>


support new

2018-01-19 Thread Rolf Charlier

0
C Belgium
P Oost-Vlaanderen
T Dendermonde
Z 9200
O MetaData
I Rolf
A Oliestraat 50
M sa...@metadata.be
U https://www.metadata.be/
B +32 (0)4 7729 76 04
N Network consulting, installation and maintenance is our core business. 
We focus on security and stability in implementing customers' wishes. We 
prefer free and standard compliant software. We deliver desktop, server 
and cloud services for any size enterprise.




Re: Flatbed scanner that works well with OpenBSD?

2018-01-19 Thread Anthony J. Bentley
Base Pr1me writes:
> Did you give your userland user/group permissions to use the uhub/ugen
> device?

Of course; without that I wasn't able to detect the scanner in the first
place.

> On Fri, Jan 19, 2018 at 9:59 AM, Anthony J. Bentley 
> wrote:
>
> > Bryan Linton writes:
> > > Hello misc@
> > >
> > > I'm currently looking to purchase a scanner that works well with OpenBSD.
> > >
> > > I'm aware of the list provided at:
> > >
> > >   http://www.sane-project.org/sane-mfgs.html
> > >
> > > but I recently purchased (and returned) a scanner that was listed as
> > being
> > > fully supported on that list because no matter what I did, I couldn't
> > > get it to work right with xsane or scanimage.  Though I purchased it
> > used,
> > > so it's possible it may have simply been broken from the get-go.
> > >
> > > Does anyone happen to know of a scanner that is *known* to work well
> > > with OpenBSD?
> >
> > Well, I just bought a CanoScan 9000F MkII specifically because it was
> > marked as fully supported on that list, and I can say it does NOT work
> > on OpenBSD; scanimage -L detects it just fine but attempting to scan
> > gives an I/O error. As a workaround I plugged it into a Linux laptop,
> > started saned, and scan seamlessly from OpenBSD with scanimage's network
> > support, until I find the time to make a proper bug report.
> >
> > In the past I used a CanoScan LiDE 20 quite regularly from OpenBSD, but
> > that was several years ago.
> >
> >



Re: Trying to use OpenBSD as webserver, inside home network (ADSL internet connection)

2018-01-19 Thread Michael Hekeler
Am Fri, 19 Jan 2018 12:55:20 -0200 schrieb Michel von Behr
:

> Hi - rookie question: I have ADSL internet at home, distributed to
> local hosts via a cheap modem/router provided by the ISP. And
> connected as one of the network nodes is an old laptop running
> OpenBSD. I want to use that laptop as a webserver, ftp server, etc. I
> can connect to the laptop internally, from within the local network
> (192.168.15.11) via http, ssh, ftp, etc, but I can't see it from
> external hosts. I already tried different configurations in the
> router/modem related to port forwarding, NAT, but without success, so
> I'm starting to think that it might be something I'm missing on
> OpenBSD network config (PF maybe?).
> 
> I tried enabling ip forwarding in sysctl but I still can't see it from
> outside hosts.
> 
> Specifically, my question would be this: if I can see my laptop from
> within the local network, would that be enough to guarantee that I
> should be able to detect it externally?

No.

You have:
{ WAN (Internet) } <--> { Router } <--> { LAN (192.168.15.0) }

A host in WAN can only see your Router

you have to forward ports from {router} to {lan} but I wouldnt
recommend that.
Maybe read something about networking and NAT and such things to get a
deeper understanding? ;-)



Re: Flatbed scanner that works well with OpenBSD?

2018-01-19 Thread Juan Francisco Cantero Hurtado
Same problem with a Canon LiDE 200.

On Fri, Jan 19, 2018 at 10:03:53AM -0700, Base Pr1me wrote:
> Did you give your userland user/group permissions to use the uhub/ugen
> device?

I even ran the programs as root.

> 
> On Fri, Jan 19, 2018 at 9:59 AM, Anthony J. Bentley 
> wrote:
> 
> > Bryan Linton writes:
> > > Hello misc@
> > >
> > > I'm currently looking to purchase a scanner that works well with OpenBSD.
> > >
> > > I'm aware of the list provided at:
> > >
> > >   http://www.sane-project.org/sane-mfgs.html
> > >
> > > but I recently purchased (and returned) a scanner that was listed as
> > being
> > > fully supported on that list because no matter what I did, I couldn't
> > > get it to work right with xsane or scanimage.  Though I purchased it
> > used,
> > > so it's possible it may have simply been broken from the get-go.
> > >
> > > Does anyone happen to know of a scanner that is *known* to work well
> > > with OpenBSD?
> >
> > Well, I just bought a CanoScan 9000F MkII specifically because it was
> > marked as fully supported on that list, and I can say it does NOT work
> > on OpenBSD; scanimage -L detects it just fine but attempting to scan
> > gives an I/O error. As a workaround I plugged it into a Linux laptop,
> > started saned, and scan seamlessly from OpenBSD with scanimage's network
> > support, until I find the time to make a proper bug report.
> >
> > In the past I used a CanoScan LiDE 20 quite regularly from OpenBSD, but
> > that was several years ago.
> >
> >

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: Flatbed scanner that works well with OpenBSD?

2018-01-19 Thread Base Pr1me
Did you give your userland user/group permissions to use the uhub/ugen
device?

On Fri, Jan 19, 2018 at 9:59 AM, Anthony J. Bentley 
wrote:

> Bryan Linton writes:
> > Hello misc@
> >
> > I'm currently looking to purchase a scanner that works well with OpenBSD.
> >
> > I'm aware of the list provided at:
> >
> >   http://www.sane-project.org/sane-mfgs.html
> >
> > but I recently purchased (and returned) a scanner that was listed as
> being
> > fully supported on that list because no matter what I did, I couldn't
> > get it to work right with xsane or scanimage.  Though I purchased it
> used,
> > so it's possible it may have simply been broken from the get-go.
> >
> > Does anyone happen to know of a scanner that is *known* to work well
> > with OpenBSD?
>
> Well, I just bought a CanoScan 9000F MkII specifically because it was
> marked as fully supported on that list, and I can say it does NOT work
> on OpenBSD; scanimage -L detects it just fine but attempting to scan
> gives an I/O error. As a workaround I plugged it into a Linux laptop,
> started saned, and scan seamlessly from OpenBSD with scanimage's network
> support, until I find the time to make a proper bug report.
>
> In the past I used a CanoScan LiDE 20 quite regularly from OpenBSD, but
> that was several years ago.
>
>


Re: Flatbed scanner that works well with OpenBSD?

2018-01-19 Thread Anthony J. Bentley
Bryan Linton writes:
> Hello misc@
>
> I'm currently looking to purchase a scanner that works well with OpenBSD.
>
> I'm aware of the list provided at: 
>
>   http://www.sane-project.org/sane-mfgs.html
>
> but I recently purchased (and returned) a scanner that was listed as being
> fully supported on that list because no matter what I did, I couldn't
> get it to work right with xsane or scanimage.  Though I purchased it used,
> so it's possible it may have simply been broken from the get-go.
>
> Does anyone happen to know of a scanner that is *known* to work well
> with OpenBSD?

Well, I just bought a CanoScan 9000F MkII specifically because it was
marked as fully supported on that list, and I can say it does NOT work
on OpenBSD; scanimage -L detects it just fine but attempting to scan
gives an I/O error. As a workaround I plugged it into a Linux laptop,
started saned, and scan seamlessly from OpenBSD with scanimage's network
support, until I find the time to make a proper bug report.

In the past I used a CanoScan LiDE 20 quite regularly from OpenBSD, but
that was several years ago.



Re: Trying to use OpenBSD as webserver, inside home network (ADSL internet connection)

2018-01-19 Thread Johan Mellberg


> 19 jan. 2018 kl. 17:29 skrev Oliver Marugg :
> 
> hi
> 
> check: which device does nat for you. On that device configure portforwarding 
> from external to internal, eg external ip:port to your internal host:port. 
> test it from outside.
> 
> ip forwarding on your OpenBSD laptop isnt necessary here, your laptop doesnt 
> act as a router in your homesetup.
> 
> -om
> 

And, check if your ISP is providing you with a public IP address. If your 
router’s external address is in one of the RFC1918-defined ranges you will not 
be able to reach it from the general internet. 

> 
>> On 19 Jan 2018, at 15:55, Michel von Behr wrote:
>> 
>> Hi - rookie question: I have ADSL internet at home, distributed to local
>> hosts via a cheap modem/router provided by the ISP. And connected as one of
>> the network nodes is an old laptop running OpenBSD. I want to use that
>> laptop as a webserver, ftp server, etc. I can connect to the laptop
>> internally, from within the local network (192.168.15.11) via http, ssh,
>> ftp, etc, but I can't see it from external hosts. I already tried different
>> configurations in the router/modem related to port forwarding, NAT, but
>> without success, so I'm starting to think that it might be something I'm
>> missing on OpenBSD network config (PF maybe?).
>> 
>> I tried enabling ip forwarding in sysctl but I still can't see it from
>> outside hosts.
>> 
>> Specifically, my question would be this: if I can see my laptop from within
>> the local network, would that be enough to guarantee that I should be able
>> to detect it externally? If not, what configuration should I be looking to
>> adjust?
>> 
>> httpd.conf is accepting connections from any IP address, as far as I
>> understand this:
>> 
>> # $OpenBSD: httpd.conf,v 1.17 2017/04/16 08:50:49 ajacoutot Exp $
>> 
>> #
>> # Macros
>> #
>> ext_addr="*"
>> 
>> #
>> # Global Options
>> #
>> # prefork 3
>> 
>> 
>> #
>> # Servers
>> #
>> 
>> # A minimal default server
>> server "default" {
>>listen on $ext_addr port 80
>>listen on $ext_addr port 8080
>>listen on $ext_addr port 50080
>>root "/htdocs/"
>>directory {
>>no index
>>}
>> 
>>location "*.php" {
>>fastcgi socket "/run/php-fpm.sock"
>>}
>> }
>> 
>> As for ssh_config the only change I made to the default config file was to
>> include port 50022 (trying to avoid any blocking to port 22 that my ISP
>> might be enforcing).
>> 
>> Any pointing to the right direction would be appreciated...
>> 
>> Kind regards,
>> 
>> Michel
> 



Re: bsd.mp not installed on EdgeRouter Lite

2018-01-19 Thread jungle Boogie
On 18 January 2018 at 07:00, Scott Bennett  wrote:
> On 1/18/2018 9:23 AM, Stefan Sperling wrote:
>> On Thu, Jan 18, 2018 at 09:06:44AM -0500, Sean Murphy wrote:
>>> I performed the steps as indicated n the links above and now have GENERIC.MP
>>> running on my ERL.  I did see that KARL failed on the initial install and
>>> reboot,
>>
>> It looks like this issue was just fixed in -current by visa@
>
> I saw the commit messages. Very exciting! I'll give it a try once a new 
> snapshot
> gets rolled. Luckily I haven't deployed the ERL yet, so re-installing won't be
> a problem.
>

>From the build on the 18th:
Location of sets? (disk http nfs or 'done') [done] done
Making all device nodes...done.
Multiprocessor machine; using bsd.mp instead of bsd.


Very nice! Thanks Visa!

-- 
---
inum: 883510009027723
sip: jungleboo...@sip2sip.info



Re: Trying to use OpenBSD as webserver, inside home network (ADSL internet connection)

2018-01-19 Thread Oliver Marugg

hi

check: which device does nat for you. On that device configure 
portforwarding from external to internal, eg external ip:port to your 
internal host:port. test it from outside.


ip forwarding on your OpenBSD laptop isnt necessary here, your laptop 
doesnt act as a router in your homesetup.


-om


On 19 Jan 2018, at 15:55, Michel von Behr wrote:

Hi - rookie question: I have ADSL internet at home, distributed to 
local
hosts via a cheap modem/router provided by the ISP. And connected as 
one of

the network nodes is an old laptop running OpenBSD. I want to use that
laptop as a webserver, ftp server, etc. I can connect to the laptop
internally, from within the local network (192.168.15.11) via http, 
ssh,
ftp, etc, but I can't see it from external hosts. I already tried 
different
configurations in the router/modem related to port forwarding, NAT, 
but
without success, so I'm starting to think that it might be something 
I'm

missing on OpenBSD network config (PF maybe?).

I tried enabling ip forwarding in sysctl but I still can't see it from
outside hosts.

Specifically, my question would be this: if I can see my laptop from 
within
the local network, would that be enough to guarantee that I should be 
able
to detect it externally? If not, what configuration should I be 
looking to

adjust?

httpd.conf is accepting connections from any IP address, as far as I
understand this:

# $OpenBSD: httpd.conf,v 1.17 2017/04/16 08:50:49 ajacoutot Exp $

#
# Macros
#
ext_addr="*"

#
# Global Options
#
# prefork 3


#
# Servers
#

# A minimal default server
server "default" {
listen on $ext_addr port 80
listen on $ext_addr port 8080
listen on $ext_addr port 50080
root "/htdocs/"
directory {
no index
}

location "*.php" {
fastcgi socket "/run/php-fpm.sock"
}
}

As for ssh_config the only change I made to the default config file 
was to
include port 50022 (trying to avoid any blocking to port 22 that my 
ISP

might be enforcing).

Any pointing to the right direction would be appreciated...

Kind regards,

Michel




Re: http_proxy for rc.firsttime after Upgrade

2018-01-19 Thread trondd
On Fri, January 19, 2018 4:29 am, Raimo Niskanen wrote:
> Hello list!
>
> I have some machines behind a squid proxy and have set the http_proxy and
> ftp_proxy environment variables both in /etc/profile and in
> /etc/login.conf
> for the default login class.  This works well.
>
> But after an upgrade when rc.firsttime calls fw_update and checks for
> binary patches the proxy is not used, so I have to wait for that to time
> out or break it with Ctrl-C and call fw_update manually.
>
> So I just wonder if anybody have an idea of how to set the http_proxy and
> ftp_proxy environment variables so they are picked up by rc.firsttime?
>
> Best regards
> --
>
> / Raimo Niskanen, Erlang/OTP, Ericsson AB
>

I submitted a patch for this:
https://marc.info/?l=openbsd-tech=151260860105270=2

In the meantime, before reboot, you can edit the rc.firstime script after
installation.

Tim.



Trying to use OpenBSD as webserver, inside home network (ADSL internet connection)

2018-01-19 Thread Michel von Behr
Hi - rookie question: I have ADSL internet at home, distributed to local
hosts via a cheap modem/router provided by the ISP. And connected as one of
the network nodes is an old laptop running OpenBSD. I want to use that
laptop as a webserver, ftp server, etc. I can connect to the laptop
internally, from within the local network (192.168.15.11) via http, ssh,
ftp, etc, but I can't see it from external hosts. I already tried different
configurations in the router/modem related to port forwarding, NAT, but
without success, so I'm starting to think that it might be something I'm
missing on OpenBSD network config (PF maybe?).

I tried enabling ip forwarding in sysctl but I still can't see it from
outside hosts.

Specifically, my question would be this: if I can see my laptop from within
the local network, would that be enough to guarantee that I should be able
to detect it externally? If not, what configuration should I be looking to
adjust?

httpd.conf is accepting connections from any IP address, as far as I
understand this:

# $OpenBSD: httpd.conf,v 1.17 2017/04/16 08:50:49 ajacoutot Exp $

#
# Macros
#
ext_addr="*"

#
# Global Options
#
# prefork 3


#
# Servers
#

# A minimal default server
server "default" {
listen on $ext_addr port 80
listen on $ext_addr port 8080
listen on $ext_addr port 50080
root "/htdocs/"
directory {
no index
}

location "*.php" {
fastcgi socket "/run/php-fpm.sock"
}
}

As for ssh_config the only change I made to the default config file was to
include port 50022 (trying to avoid any blocking to port 22 that my ISP
might be enforcing).

Any pointing to the right direction would be appreciated...

Kind regards,

Michel


Re: Enabling Emulate3Buttons via xorg.conf

2018-01-19 Thread Ve Telko
Hello,

Emulate3Buttons option is "on" by default. Also there are
many protocols to test. Did you tried another mouse?

Also read man mouse(4). I don't think xorg.conf is not popular
in community but many people simply don't use graphical
interface :)

Ve



19.01.2018, 00:37, "pa...@airmail.cc" :
> Hello,
>
> I am attempting to enable ws' Emulate3Buttons as my mouse's middle
> button
> is broken. As I've been told OpenBSD has no way to generate a xorg.conf
> file, so I wrote it by hand following ws' manpage (see xorg.conf).
>
> Despite X launching cleanly (see Xorg.log), the middle button emulation
> does not work. I also tried setting the driver to 'mouse,' by following
> its' manpage which also launches cleanly but does not work. I have also
> tried setting the timeout, and even at 1 second the middle button
> emulation still does not work.
>
> I discussed this issue on the IRC channel and received some useful info,
> but ultimately no solution.
>
> Any information on how to emulate the middle button is appreciated, it
> seems xorg.conf is not popular with many OpenBSD users and I would be
> more than glad to ditch it in search of a more elegant solution.
>
> Xorg.log (relevant info near the bottom):
> https://pastebin.com/raw/TNWeN0D5
>
> Current xorg.conf:
> https://pastebin.com/raw/0r8GCnMG
>
> Trimmed dmesg info (only includes mouse being plugged in)
> https://pastebin.com/raw/MPqp0DBN
>
> Full dmesg:
> https://pastebin.com/raw/FLkyUfy2
>
> System: OpenBSD 6.2 GENERIC.MP#134 amd64
> Packages up to date as of 18/1/2017.



Flatbed scanner that works well with OpenBSD?

2018-01-19 Thread Bryan Linton
Hello misc@

I'm currently looking to purchase a scanner that works well with OpenBSD.

I'm aware of the list provided at: 

http://www.sane-project.org/sane-mfgs.html

but I recently purchased (and returned) a scanner that was listed as being
fully supported on that list because no matter what I did, I couldn't
get it to work right with xsane or scanimage.  Though I purchased it used,
so it's possible it may have simply been broken from the get-go.

Does anyone happen to know of a scanner that is *known* to work well
with OpenBSD?

I don't really have any hard requirements other than it should be able
to scan in color as well as black and white, and should be able to scan
up to a minimum of 600 dpi (1200 dpi or more would be nice, but is not
required).

I have a feeling that the majority of scanners currently on the market
meet or exceed that, so hopefully anything will work well so long as it's
compatible with OpenBSD.

Many thanks for any assistance anyone can provide.

--
Bryan



Re: Hellos from.. Xay Group

2018-01-19 Thread Epost
We are now Xay Group, and the project is growing, and naysayers here are 
ofcourse completely irrelevant.




Re: identifying software and licenses used in base install

2018-01-19 Thread Anders Arnholm

> 
> FWIW, the permission I seek is from my Legal department.  They want to ensure 
> that 1) we don't use software having unacceptable licenses or in unacceptable 
> ways, and 2) that the terms of all the copyrights are adhered to (e.g., 
> reproducing attribution statements, etc.).
> 

In my personal opinion this is the time to ask what and how much they need that 
promise. The budget they have and what risk contra costs that might be needed. 
It also the time to look at products like BlackDuck to run that against you 
code. There is always a line between risk and cost, imho moving the cost into 
the openbsd project for this doesn’t see fair.




http_proxy for rc.firsttime after Upgrade

2018-01-19 Thread Raimo Niskanen
Hello list!

I have some machines behind a squid proxy and have set the http_proxy and
ftp_proxy environment variables both in /etc/profile and in /etc/login.conf
for the default login class.  This works well.

But after an upgrade when rc.firsttime calls fw_update and checks for
binary patches the proxy is not used, so I have to wait for that to time
out or break it with Ctrl-C and call fw_update manually.

So I just wonder if anybody have an idea of how to set the http_proxy and
ftp_proxy environment variables so they are picked up by rc.firsttime?

Best regards
-- 

/ Raimo Niskanen, Erlang/OTP, Ericsson AB



Re: Git(Hub) and CVS

2018-01-19 Thread Anton Lindqvist
On Fri, Jan 19, 2018 at 01:43:08PM +0700, Kristaps Dzonsons wrote:
> I know many here are using CVS, and many are also using git, so I wonder
> if anybody can help me.  On BSD.lv, I push my CVS repositories (kcgi,
> sblg, etc.) to GitHub from time to time using a cvs2git script.  It goes
> as follows, shortened and pseudonymised:
> 
>  REPO=$1  # e.g., kcgi
>  cd /tmp/cvs2git
>  cvs2git --blobfile=git-blob.dat \
>--dumpfile=git-dump.dat \
>--username=kristaps@me \
>/path/to/cvsroot/$REPO
>  mkdir $REPO.git
>  cd $REPO.git
>  git init
>  cd .git
>  git fast-import \
>--export-marks=../../git-marks.dat < ../../git-blob.dat
>  git fast-import \
>--import-marks=../../git-marks.dat < ../../git-dump.dat
>  git remote add origin https://github.com/account/$REPO.git
>  cd ..
>  git checkout

Prior pushing, have you tried;

  $ git fetch
  $ git branch -u origin/master
  $ git rebase

>  git push --tags -u origin master
> 
> Our repositories are all pretty basic (just tags, no branches), and it's
> only me pushing to GitHub, so this works although it's not incremental
> and can take a minute or so.  Or I should say it "worked", because since
> updating OpenBSD from an embarrassingly old version, it doesn't any
> more.  The error given is on the push:
> 
>  Compressing objects: 100% (633/633), done.
>  Writing objects: 100% (2257/2257), 492.44 KiB | 16.98 MiB/s, done.
>  Total 2257 (delta 1624), reused 2257 (delta 1624)
>  remote: Resolving deltas: 100% (1624/1624), done.
>  To https://github.com/account/REPO.git
>   * [new tag] VERSION_0_4_3 -> VERSION_0_4_3
>   ! [rejected]master -> master (fetch first)
>   ! [rejected]VERSION_0 -> VERSION_0 (already exists)
>   ... lots of"rejected" lines...
>  error: failed to push some refs to 'https://github.com/account/REPO.git'
>  hint: Updates were rejected because the tag already exists in the remote.
> 
> Any ideas?  Or does anybody have a process already in place for syncing
> CVS to git/GitHub?  I've tried stopping before the "push" and doing all
> manner of fetches and such, but nothing works.  I rarely use git, so I'm
> really just reaching out in the dark.  The GitHub presence is just to
> pick up on a issues and pull requests from folks who are more
> comfortable with that interface than e-mail, for which it has worked well.
> 
> Thank you,
> 
> Kristaps
>