Re: dhcrelay: send_packet: No buffer space available

2016-02-18 Thread Kapetanakis Giannis

On 12/02/16 18:56, Stuart Henderson wrote:

On 2016-02-12, Kapetanakis Giannis  wrote:

Hi,

I have a carped firewall which is using dhcrelay to forward dhcp
requests to another carped dhcp server.
After upgrade to Feb  4 snapshot I'm seeing these in my logs:

What version were you running before?

To establish whether it's a dhcrelay problem or something to do with carp
can you try dhcrelay from slightly older source e.g. 'cvs up -D 2016/02/01'?



I went back to 2016/02/01 and 2016/01/12 (packet.c) and I have the same 
problem

so it doesn't seem like a dhcrelay problem.

I changed it to print the interfaces
Feb 17 18:04:28  dhcrelay: send_packet: No buffer space available on carp63
Feb 18 09:16:35  dhcrelay: send_packet: No buffer space available on carp32
Feb 18 09:27:45  dhcrelay: send_packet: No buffer space available on carp32
but there is no network/routing problem.

Setup is trunk (lacp) - vlans - carps - dhcrelay for internal
trunk (lacp) / nat for external

ospf in (passive on carps) / out on ext trunk.

Any way to debug this further?

thanks,

Giannis



Re: current status of octeon support

2016-02-18 Thread Holger Glaess
> Holger Glaess [gla...@glaessixs.de] wrote:
>> hi
>>
>> can some tell me what the status is for 5.9 octeon port ?
>>
>> is the usb port stable enough to handle an harddisk ?
>
> Yes although there may be more speed optimization possible
>
>
hi

what about the hardware acceleration functions of
an Edgerouter Lite/POE ?

Holger



Re: dhcrelay: send_packet: No buffer space available

2016-02-18 Thread Peter Hessler
On 2016 Feb 18 (Thu) at 12:25:07 +0200 (+0200), Kapetanakis Giannis wrote:
:On 12/02/16 18:56, Stuart Henderson wrote:
:>On 2016-02-12, Kapetanakis Giannis  wrote:
:>>Hi,
:>>
:>>I have a carped firewall which is using dhcrelay to forward dhcp
:>>requests to another carped dhcp server.
:>>After upgrade to Feb  4 snapshot I'm seeing these in my logs:
:>What version were you running before?
:>
:>To establish whether it's a dhcrelay problem or something to do with carp
:>can you try dhcrelay from slightly older source e.g. 'cvs up -D 2016/02/01'?
:>
:
:I went back to 2016/02/01 and 2016/01/12 (packet.c) and I have the same
:problem
:so it doesn't seem like a dhcrelay problem.
:
:I changed it to print the interfaces
:Feb 17 18:04:28  dhcrelay: send_packet: No buffer space available on carp63
:Feb 18 09:16:35  dhcrelay: send_packet: No buffer space available on carp32
:Feb 18 09:27:45  dhcrelay: send_packet: No buffer space available on carp32
:but there is no network/routing problem.
:
:Setup is trunk (lacp) - vlans - carps - dhcrelay for internal
:trunk (lacp) / nat for external
:
:ospf in (passive on carps) / out on ext trunk.
:
:Any way to debug this further?
:
:thanks,
:
:Giannis
:

How many bpf devices do you have?  You may need to create more.


-- 
I'm a creationist; I refuse to believe that I could have evolved from man.



Re: How to tune network on Qemu-system-i386

2016-02-18 Thread Stuart Henderson
On 2016-02-18, Steve Litt  wrote:
> Does hardware accelerated Qemu work on OpenBSD now? It didn't at the
> end of 2014.

Not at present, no.



Re: dhcrelay: send_packet: No buffer space available

2016-02-18 Thread Kapetanakis Giannis

On 18/02/16 13:22, Peter Hessler wrote:

On 2016 Feb 18 (Thu) at 12:25:07 +0200 (+0200), Kapetanakis Giannis wrote:
:On 12/02/16 18:56, Stuart Henderson wrote:
:>On 2016-02-12, Kapetanakis Giannis  wrote:
:>>Hi,
:>>
:>>I have a carped firewall which is using dhcrelay to forward dhcp
:>>requests to another carped dhcp server.
:>>After upgrade to Feb  4 snapshot I'm seeing these in my logs:
:>What version were you running before?
:>
:>To establish whether it's a dhcrelay problem or something to do with carp
:>can you try dhcrelay from slightly older source e.g. 'cvs up -D 2016/02/01'?
:>
:
:I went back to 2016/02/01 and 2016/01/12 (packet.c) and I have the same
:problem
:so it doesn't seem like a dhcrelay problem.
:
:I changed it to print the interfaces
:Feb 17 18:04:28  dhcrelay: send_packet: No buffer space available on carp63
:Feb 18 09:16:35  dhcrelay: send_packet: No buffer space available on carp32
:Feb 18 09:27:45  dhcrelay: send_packet: No buffer space available on carp32
:but there is no network/routing problem.
:
:Setup is trunk (lacp) - vlans - carps - dhcrelay for internal
:trunk (lacp) / nat for external
:
:ospf in (passive on carps) / out on ext trunk.
:
:Any way to debug this further?
:
:thanks,
:
:Giannis
:

How many bpf devices do you have?  You may need to create more.




I have 20 bpf devices, 27 vlan interfaces, 27 carp interfaces, 17 
dhcrelay processes.


wasn't there a message when bpf devides were short?

Anyway I pushed it to 30 bpf devices and see how it goes.

G



Re: Industrial use of line printers, does/would your company/organization use them with our lpd?

2016-02-18 Thread Marc Peters
Am 02/18/16 um 06:28 schrieb Andy Bradford:
> 
> Anyway,  just  some  musings.  Is  there anyone  else  out  there  using
> lpr/lpd/lprm from base? Maybe I'm the only one?
> 
> Thanks,
> 
> Andy
> 

I've connected a Kyocera FS-920 to my router and all hosts (*bsd, mac,
win) do their printing on it (just b&w needed). Done the configuration
years ago with the help of apsfilter:

lp|PS;r=600x600;q=medium;c=gray;p=a4;m=auto:\
:lp=/dev/ulpt0:\
:if=/etc/apsfilter/basedir/bin/apsfilter:\
:sd=/var/spool/lpd/lp:\
:lf=/var/spool/lpd/lp/log:\
:af=/var/spool/lpd/lp/acct:\
:mx#0:\
:sh:

lpd is not very chatty when it comes to errors, though.

Marc



Re: How to tune network on Qemu-system-i386

2016-02-18 Thread Daniel Wilkins
Not as far as I can tell. It'd be via vmm if you can, so your options would be 
openbsd or netbsd, neither quickly from what I've heard.

On Thu Feb 18 01:39:13 2016 GMT-0500, Steve Litt wrote:
> Does hardware accelerated Qemu work on OpenBSD now? It didn't at the
> end of 2014.
> 
> Thanks,
> 
> SteveT
> 
> On Thu, 18 Feb 2016 10:38:48 +0500
> "dmitry.sensei"  wrote:
> 
> > It works :) If i added ifconfig tap0  
> > However I have not yet understand how :)
> > 
> > On Thu, Feb 11, 2016 at 4:45 PM, John Long  wrote:
> > > Dmitry,
> > >
> > > On Thu, Feb 11, 2016 at 10:06:34AM +0500, dmitry.sensei wrote:
> > >  
> > >> Can you give generic guide to setting up a network in Qemu
> > >> (OpenBSD)? I have one physical re0 interface, which looks to the
> > >> Internet.  
> > >
> > > #!/bin/ksh
> > > ifconfig tun0 create
> > > ifconfig tun0 link0
> > > ifconfig tun0 up
> > > ifconfig bridge0 create
> > > #ifconfig bridge0 fwddelay 4
> > > ifconfig bridge0 add re0 add tun0
> > > ifconfig bridge0 up
> > >
> > > I can't remember where I found the above but I have been using it
> > > with SIMH. It may have been in the example where somebody shows how
> > > to run OpenBSD VAX under SIMH. In the SIMH .conf you use
> > >
> > > at xq tap:tap0
> > >
> > > I ASSume you would use a similar syntax in QEMU's config. That is,
> > > use tap:tap0 as your network interface name instead of re0. I
> > > commented out the fwddelay to see if it affected anything and it
> > > doesn't seem to in this application.
> > >
> > > /jl
> > >
> > > --
> > > ASCII ribbon campaign ( ) Powered by Lemote Fuloong
> > >  against HTML e-mail   X  Loongson MIPS and OpenBSD
> > >and proprietary/ \http://www.mutt.org
> > >  attachments /   \  Code Blue or Go Home!
> > >  Encrypted email preferred  PGP Key 2048R/DA65BC04
> > >  
> > 
> > 
> > 
> 
> 
> 
> -- 
> SteveT
> 
> Steve Litt 
> February 2016 featured book: The Key to Everyday Excellence
> http://www.troubleshooters.com/key
> 
>

-- 
Sent from my Jolla



general xdg-open configuration

2016-02-18 Thread Rudolf Sykora
Hello,

I appear to need to modify the default application used
by xdg-open to open a file directory. The man page of xdg-open
is not very helpful. Can anybody tell me what is the right
and general (I run fvwm) system-wide file on openbsd to edit?

Thanks
Ruda



Re: general xdg-open configuration

2016-02-18 Thread Mike Burns
On 2016-02-18 17.11.03 +0100, Rudolf Sykora wrote:
> I appear to need to modify the default application used
> by xdg-open to open a file directory. The man page of xdg-open
> is not very helpful. Can anybody tell me what is the right
> and general (I run fvwm) system-wide file on openbsd to edit?

Sadly not entirely straightforward, but the ArchWiki has the details that the 
man page should have had: https://wiki.archlinux.org/index.php/Xdg-open



Re: current status of octeon support

2016-02-18 Thread Chris Cappuccio
Holger Glaess [gla...@glaessixs.de] wrote:
> > Holger Glaess [gla...@glaessixs.de] wrote:
> >> hi
> >>
> >> can some tell me what the status is for 5.9 octeon port ?
> >>
> >> is the usb port stable enough to handle an harddisk ?
> >
> > Yes although there may be more speed optimization possible
> >
> >
> hi
> 
> what about the hardware acceleration functions of
> an Edgerouter Lite/POE ?
> 

Nobody is working on that at the moment.



Re: general xdg-open configuration

2016-02-18 Thread Jiri B
On Thu, Feb 18, 2016 at 04:15:50PM +, Mike Burns wrote:
> On 2016-02-18 17.11.03 +0100, Rudolf Sykora wrote:
> > I appear to need to modify the default application used
> > by xdg-open to open a file directory. The man page of xdg-open
> > is not very helpful. Can anybody tell me what is the right
> > and general (I run fvwm) system-wide file on openbsd to edit?
> 
> Sadly not entirely straightforward, but the ArchWiki has the details that the 
> man page should have had: https://wiki.archlinux.org/index.php/Xdg-open

You were too fast, +1 for above wiki page.

j.



Re: Is true that the BSD developers were inspired to make their code free software by the example of the GNU Project, and explicit appeals from GNU activists helped persuade them?

2016-02-18 Thread lists
Wed, 17 Feb 2016 22:12:58 -0500 Eric Furman 
> On Wed, Feb 17, 2016, at 09:10 PM, li...@wrant.com wrote:
> > Wed, 17 Feb 2016 19:36:35 -0500 Eric Furman   
> > > Now I'm off to the GNU & Linux lists to spread the gospel of OpenBSD!  
> ^
> 
> Whoa whoa whoa, that is not what I wrote.
> I wrote OS400 and it was a joke.

So appears to be the outrageous topic, well covering up the shocking
facts that new-ware bugs are becoming more and excruciatingly deadlier
fatal ever since last leap leap year.  What an example NOT to get
inspired from: rewriting Unix poorly.

> I'm not going to anybody's list and preaching anything.
> Just to get that clear.

Leave that to me, as previously agreed, !not joking again.  Exactly
like when asked if being approached by a three letter agency for
special code agreements, known to have at least one happening on
commercialised kernels.  One of them examples again, any patterns?

Must be a political thing that comes with infectious spread, gladly
affecting only operating systems like tools with legal departments.

> > Better, influence highly skilled programmers, friends, colleagues,
> > partners, clients, the wide public, classmates, coeds, teachers, book
> > authors and everyone important of the truly free good licenses:
> > 
> > http://www.openbsd.org/policy.html
> > 
> > Most projects out of misinformation pick what some other project did
> > before them and get stuffed with the dysfunctional limiting newer and
> > older versions of the non-Unix recurring acronym advocates of
> > incompatible with freedom politics.  Quality software projects first!
> > 
> > Then educate the worthy developers of useful programs to benefit from
> > and improve their own software products by using correct and free
> > standard compliant coding practices and innovation from the OpenBSD
> > project:
> > 
> > http://www.openbsd.org/innovations.html
> > 
> > Also, popularise to the wide global public that software running
> > successfully on OpenBSD and designed to benefit from the modern best
> > current practices in OpenBSD is inherently multiple orders of magnitude
> > better offset from the start compared to portable incapable slow
> > adoption single kernel only platforms targeting mass consumption only.
> > 
> > And for the business users, let them know that OpenBSD is chosen by
> > many more industry leading companies from all over the world for the
> > first class quality of example setting software, that is actually in
> > active live maintenance for more than 20 years and brought tools and
> > solution all of them use without even realising it most of the time.
> > 
> > http://www.openbsd.org/
> > 
> > OpenBSD provides the best development platform possible and much much
> > more, goals of the project are continuously being met with successful
> > continuation with each release and more over in between:
> > 
> > http://www.openbsd.org/goals.html
> > 
> > But before all this, why not just help test the upcoming release by
> > running latest snapshots and not care for any incoming distractions?
> > 
> > The example OpenBSD sets is quality, ease of use, best developers, and
> > widest adopted true solutions.



Re: Is true that the BSD developers were inspired to make their code free software by the example of the GNU Project, and explicit appeals from GNU activists helped persuade them?

2016-02-18 Thread lists
Wed, 17 Feb 2016 19:36:35 -0500 Eric Furman 
> Now I'm off to the GNU & Linux lists to spread the gospel of OpenBSD!

Better, influence highly skilled programmers, friends, colleagues,
partners, clients, the wide public, classmates, coeds, teachers, book
authors and everyone important of the truly free good licenses:

http://www.openbsd.org/policy.html

Most projects out of misinformation pick what some other project did
before them and get stuffed with the dysfunctional limiting newer and
older versions of the non-Unix recurring acronym advocates of
incompatible with freedom politics.  Quality software projects first!

Then educate the worthy developers of useful programs to benefit from
and improve their own software products by using correct and free
standard compliant coding practices and innovation from the OpenBSD
project:

http://www.openbsd.org/innovations.html

Also, popularise to the wide global public that software running
successfully on OpenBSD and designed to benefit from the modern best
current practices in OpenBSD is inherently multiple orders of magnitude
better offset from the start compared to portable incapable slow
adoption single kernel only platforms targeting mass consumption only.

And for the business users, let them know that OpenBSD is chosen by
many more industry leading companies from all over the world for the
first class quality of example setting software, that is actually in
active live maintenance for more than 20 years and brought tools and
solution all of them use without even realising it most of the time.

http://www.openbsd.org/

OpenBSD provides the best development platform possible and much much
more, goals of the project are continuously being met with successful
continuation with each release and more over in between:

http://www.openbsd.org/goals.html

But before all this, why not just help test the upcoming release by
running latest snapshots and not care for any incoming distractions?

The example OpenBSD sets is quality, ease of use, best developers, and
widest adopted true solutions.



Re: Is true that the BSD developers were inspired to make their code free software by the example of the GNU Project, and explicit appeals from GNU activists helped persuade them?

2016-02-18 Thread Peter Hessler
Please take this offline.


On 2016 Feb 18 (Thu) at 06:26:21 +0200 (+0200), li...@wrant.com wrote:
:Wed, 17 Feb 2016 22:12:58 -0500 Eric Furman 
:> On Wed, Feb 17, 2016, at 09:10 PM, li...@wrant.com wrote:
:> > Wed, 17 Feb 2016 19:36:35 -0500 Eric Furman   
:> > > Now I'm off to the GNU & Linux lists to spread the gospel of OpenBSD!  
:> ^
:> 
:> Whoa whoa whoa, that is not what I wrote.
:> I wrote OS400 and it was a joke.
:
:So appears to be the outrageous topic, well covering up the shocking
:facts that new-ware bugs are becoming more and excruciatingly deadlier
:fatal ever since last leap leap year.  What an example NOT to get
:inspired from: rewriting Unix poorly.
:
:> I'm not going to anybody's list and preaching anything.
:> Just to get that clear.
:
:Leave that to me, as previously agreed, !not joking again.  Exactly
:like when asked if being approached by a three letter agency for
:special code agreements, known to have at least one happening on
:commercialised kernels.  One of them examples again, any patterns?
:
:Must be a political thing that comes with infectious spread, gladly
:affecting only operating systems like tools with legal departments.
:
:> > Better, influence highly skilled programmers, friends, colleagues,
:> > partners, clients, the wide public, classmates, coeds, teachers, book
:> > authors and everyone important of the truly free good licenses:
:> > 
:> > http://www.openbsd.org/policy.html
:> > 
:> > Most projects out of misinformation pick what some other project did
:> > before them and get stuffed with the dysfunctional limiting newer and
:> > older versions of the non-Unix recurring acronym advocates of
:> > incompatible with freedom politics.  Quality software projects first!
:> > 
:> > Then educate the worthy developers of useful programs to benefit from
:> > and improve their own software products by using correct and free
:> > standard compliant coding practices and innovation from the OpenBSD
:> > project:
:> > 
:> > http://www.openbsd.org/innovations.html
:> > 
:> > Also, popularise to the wide global public that software running
:> > successfully on OpenBSD and designed to benefit from the modern best
:> > current practices in OpenBSD is inherently multiple orders of magnitude
:> > better offset from the start compared to portable incapable slow
:> > adoption single kernel only platforms targeting mass consumption only.
:> > 
:> > And for the business users, let them know that OpenBSD is chosen by
:> > many more industry leading companies from all over the world for the
:> > first class quality of example setting software, that is actually in
:> > active live maintenance for more than 20 years and brought tools and
:> > solution all of them use without even realising it most of the time.
:> > 
:> > http://www.openbsd.org/
:> > 
:> > OpenBSD provides the best development platform possible and much much
:> > more, goals of the project are continuously being met with successful
:> > continuation with each release and more over in between:
:> > 
:> > http://www.openbsd.org/goals.html
:> > 
:> > But before all this, why not just help test the upcoming release by
:> > running latest snapshots and not care for any incoming distractions?
:> > 
:> > The example OpenBSD sets is quality, ease of use, best developers, and
:> > widest adopted true solutions.
:

-- 
I often quote myself; it adds spice to my conversation.
-- G. B. Shaw



Re: Industrial use of line printers, does/would your company/organization use them with our lpd?

2016-02-18 Thread patrick keshishian
On 2/17/16, Andy Bradford  wrote:
> Anyway,  just  some  musings.  Is  there anyone  else  out  there  using
> lpr/lpd/lprm from base? Maybe I'm the only one?

yep. been using it for many years with many different HP and Brother
network printers.

--patrick



IPsec config with dynamic IP.

2016-02-18 Thread Christopher Sean Hilton
I have an IPSec VPN endpoint running on OpenBSD on a cable
modem. Technically it has a dynamic IP but in practice the IP only changes
about once every 3 ~ 5 years. I run ddclient on the OpenBSD box to
maintain the dns name of the box so I can find it and that's working
well.

My ipsec configuration is base on certificates. Thus, my single point
of failure is DNS resolution. And my failure modality is that things
won't configure if DNS is unavailable. Specifically, my problem is
with startup of the ipsec infrastructure.

I get this error at startup:

 starting early daemons: syslogd pflogd ntpd isakmpd.
 no IP address found for ike-v1.example.com
 /etc/ipsec.conf: 15: could not parse host specification
 no IP address found for ike-v1.example.com
 /etc/ipsec.conf: 26: could not parse host specification
 no IP address found for ike-v1.example.com
 /etc/ipsec.conf: 35: could not parse host specification
 ipsecctl: Syntax error in config file: ipsec rules not loaded
 starting RPC daemons:.
 savecore: no core dump
 checking quotas: done.
 clearing /tmp
 kern.securelevel: 0 -> 1
 creating runtime link editor directory cache.
 preserving editor files.
 starting network daemons: sshd snmpd rtadvd smtpd.
 starting package daemons: squid isc_named netsnmpd.
 starting local daemons: cron.

Logging into the box and doing:

 # rcctl restart isakmpd
 ...
 # ipsecctl -F -f /etc/ipsec.conf
 ...

Makes everything good again. This leads to a few questions:

 My box cannot resolve the name "ike-v1.example.com" until
 after isc_named is started which happens way late in the bootup
 process. I've noticed that the rcctl manpage mentions changing
 the startup order.

* Can I affect this change at all since isakmpd is a base
  system service and isc_named is in pkg_scripts?

 Just restarting isakmpd doesn't load /etc/ipsec.conf. Without a
 configuration, I'm not sure how useful isakmpd is.

* Would it be wise to just add cron job that fires at reboot
  and uses rcctl to reload isakmpd and then reloads the ipsec
  configuration?

As always, it's possible that I'm completely missing something
here. I'm always interested in better solutions.

Thank you very much,
-- 
Chris

  __o  "All I was trying to do was get home from work."
_`\<,_   -Rosa Parks
___(*)/_(*).___o..___..o...ooO..._
Christopher Sean Hilton[chris/at/vindaloo/dot/com]



Re: Industrial use of line printers, does/would your company/organization use them with our lpd?

2016-02-18 Thread Roderich

On Thu, 17 Feb 2016, Andy Bradford wrote:


Anyway,  just  some  musings.  Is  there anyone  else  out  there  using
lpr/lpd/lprm from base? Maybe I'm the only one?


I never used something else.

And if I install a package that bloats my system with cups as dependency,
I delete immediatly the package and its dependencies.

Perhaps needs lpd some little, well thought improvements, as also
many other tools, but I think, in many cases the best to do is to
do nothing.

Thank you very much for asking.

Rodrigo.



Re: startx vs xdm

2016-02-18 Thread Jan Stary
On Feb 16 19:50:57, h...@stare.cz wrote:
> On Feb 16 11:49:58, erling.westen...@gmail.com wrote:
> > On Tue, Feb 16, 2016 at 09:32:05AM +0100, Stefan Sperling wrote:
> > > On Tue, Feb 16, 2016 at 09:15:58AM +0100, Jan Stary wrote:
> > > > There seems to be a difference between an X session
> > > > initialized by startx(1) and one launched by xdm(1).
> > > > 
> > > > When I start an X session via startx, the settings
> > > > specified in ~/.Xresources seem to be honoured.
> > > > A session started via xdm(1) does _not_ honour
> > > > 
> > > > XTerm*utf8: true
> > > > XTerm*locale:   UTF-8
> > > > 
> > > > and every xterm I start in the running cwm(1)
> > > > with ctrl+alt+del has XTERM_LOCALE=C
> > > > 
> > > > On the other hand, an xterm I start with `xterm`
> > > > from an already running xterm has XTERM_LOCALE=cs_CZ.UTF-8
> > > > For an xdm(1) session, this is exactly the difference in env(1)
> > > > between a ctrl-alt-del started xterm and an `xterm`.
> > > > 
> > > > In a startx(1) session, the xterm started as ctrl-alt-del
> > > > already has XTERM_LOCALE=cs_CZ.UTF-8 as per ~/.Xresources
> > > > 
> > > > Is this expected? Is it due to a difference between
> > > > an xdm(1) session and a startx(1) session?
> > > > 
> > > > Jan
> > > > 
> > > > 
> > > > $ cat ~/.xinit:
> > > > 
> > > > #!/bin/sh
> > > > 
> > > > xset -b -c dpms 300 600 900 m 2 0 r rate 400 30 s blank s 120 60
> > > > xsetroot -solid black
> > > > xrdb ~/.Xresources
> > > 
> > > The above line calling xrdb makes your .Xresources file work.
> > > startx reads ~/.xinit while xdm reads ~/.xsession.
> > 
> > I believe that should read ~/.xinitrc according to startx(1)?
> 
> Yes.
> 
> > > Create a .xsession file which matches your .xinit (or use a symlink)
> > > and xdm should pick .Xresources up, too.
> 
> Thanks for the hint. However, having a ~/.xsession identical to ~/.xinitrc
> still leads to the same behaviour.
> 
> Note that even in a xdm(1) session I do get an UTF8 xterm
> IF I launch it from the command line. So the ~/.Xresources
> must be consulted at some point. It is just that the xterm
> started with cwm's ctrl-alt-del does have XTERM_LOCALE=C

On Feb 16 16:22:36, ji...@devio.us wrote:
> XDM fires up /etc/X11/xdm/Xsession, easy to read. One can even
> customize XDM and all other things in /etc/X11/xdm/xdm-config.
> 
> It should be `xrdb -load $file'.

-load is the default
(To be sure, adding it makes no difference.)


On Feb 18 02:28:35, mark.hellew...@gmail.com wrote:
> If you call the file .Xdefaults it will be used in both scenarios

My .Xdefaults is a symlink to .Xresources
and .xsession is a symlink to .xinitrc.

But that's not it - my .xsession (-> .xinitrc) _is_ processed,
because cwm is launched, as opposed to the default fvwm.
And my .Xresources (= .Xdefaults) _is_ loaded, because
the xterms I start from the cmdline with `xterm`
do have the UTF8 locale set. Also,

$ env
[...]
XENVIRONMENT=/home/hans/.Xresources

> with no need for the `xrdb` command.

Thanks. Yes, even if I do not xrdb explicitly,
the .Xdefauls (= .Xresources) gets loaded.

But the original problem remains: any xterm started with
cwm's ctrl-alt-del reports XTERM_LOCALE=C in env(1),
while an xterm started as `xterm` has XTERM_LOCALE=cs_CZ.UTF-8,
as discated by "XTerm*locale: UTF-8" in .Xresources.

Is it a cwm thing after all?


Jan



Re: startx vs xdm

2016-02-18 Thread Jan Stary
> My .Xdefaults is a symlink to .Xresources
> and .xsession is a symlink to .xinitrc.
> 
> But that's not it - my .xsession (-> .xinitrc) _is_ processed,
> because cwm is launched, as opposed to the default fvwm.
> And my .Xresources (= .Xdefaults) _is_ loaded, because
> the xterms I start from the cmdline with `xterm`
> do have the UTF8 locale set. Also,
> 
>   $ env
>   [...]
>   XENVIRONMENT=/home/hans/.Xresources
> 
> > with no need for the `xrdb` command.
> 
> Thanks. Yes, even if I do not xrdb explicitly,
> the .Xdefauls (= .Xresources) gets loaded.
> 
> But the original problem remains: any xterm started with
> cwm's ctrl-alt-del reports XTERM_LOCALE=C in env(1),
> while an xterm started as `xterm` has XTERM_LOCALE=cs_CZ.UTF-8,
> as discated by "XTerm*locale: UTF-8" in .Xresources.
> 
> Is it a cwm thing after all?

Probably not, because if I remove all my .x* files
and keep just the .Xdefaults -> .Xresources which
specifies the UTF8 locale for xterm, the same thing
happens in (the default) fvwm. Namely,
the xterm started by default has XTERM_LOCALE=C,
and every xterm started from fvwm's menu has XTERM_LOCALE=C,
but every xterm I start as `xterm` (from another xterm)
has XTERM_LOCALE=cs_CZ.UTF-8, as specified in.Xdefaults.

Why is that? Am I missing something obvious?

Jan



Re: Industrial use of line printers, does/would your company/organization use them with our lpd?

2016-02-18 Thread Roderick

On Wed, 17 Feb 2016, Tobias Ulmer wrote:


No really, it is outdated beyond rescue. If you want to write a new
print job queueing system, sure, have fun. Maybe you can come up with a
'cups' that doesn't suck?


Well, let me say my opinion.

I think BSD and Unix is also "outdated beyond rescue", but we are
really not better than Windoze Users and still use it. Inertia. Custom.
The inventors of Unix recognized that Unix is obsolete and
developed Plan9. Also the developers of Linux distributions recognize
that they dont need unix, because in Linux distributions, as in MacOS,
you dont recognize Unix in the surface, not only "lpr", but also
"cd", "ls", "mv", "cp", etc are not necessary for normal Linux and
MacOS users.

Maybe he can come up with a new operating system that doesn't suck?

Rodrigo.



Re: Industrial use of line printers, does/would your company/organization use them with our lpd?

2016-02-18 Thread gwes

On 02/17/2016 12:49, Chris Bennett wrote:

After reading up on printers in use, I discovered that there is
significant use of line printers due to their very low cost of
consumables, production of a very long lasting output, unlike
laser/thermal/inkjet printers and high reliability.

Is anyone using these in a high volume output setting (not like a
restaurant or other low volume)?

If not using, but would like to, what is broken, missing or otherwise
wrong with our lpd/lpr system?

I do see that lpc, lpq, lprm are dinosaurs and have to be made extinct
and replaced with something more functional with more information output
and better capabilities.

Thanks,
Chris Bennett


CUPS installs AVAHI. That is a security risk - it attempts
to change DNS lookups, etc.

Any package which pulls in something as disastrous as avahi
isn't welcome here.

lpr et al are primitive. They work fine for me and have
worked fine at all the places I worked except one
which was Linux-centric.

I just created and will submit to ports a version
of ghostscript which doesn't pull in cups - it
turns out the configuration has a switch for that case.

Geoff Steckel



Re: Industrial use of line printers, does/would your company/organization use them with our lpd?

2016-02-18 Thread gwes

On 02/17/2016 12:49, Chris Bennett wrote:

After reading up on printers in use, I discovered that there is
significant use of line printers due to their very low cost of
consumables, production of a very long lasting output, unlike
laser/thermal/inkjet printers and high reliability.

Is anyone using these in a high volume output setting (not like a
restaurant or other low volume)?

If not using, but would like to, what is broken, missing or otherwise
wrong with our lpd/lpr system?

I do see that lpc, lpq, lprm are dinosaurs and have to be made extinct
and replaced with something more functional with more information output
and better capabilities.

Thanks,
Chris Bennett



I'm not sure what measure of "better" you're trying to apply.

lpr et al. don't have a GUI. One could be wrapped around them.

They don't do dynamic autoconfiguration.
In an industrial environment autoconfiguration can be very bad.
(examples like directing confidential output somewhere unexpected)

I worked for a company that ran as many IBM 1403 printers as
they could buy. Line printers are very simple to run.
They don't need elaborate output filters.

The only function I can think of that lpr doesn't have is
the capability to request a forms change and wait until
it has been done. That could be an entirely separate subsystem
invoked by lpr.

A laptop floating in many places could use something
complex like autoconfigure. Again, that could be wrapped
around lpr et al.

Geoff Steckel



Re: Industrial use of line printers, does/would your company/organization use them with our lpd?

2016-02-18 Thread Chris Bennett
On Thu, Feb 18, 2016 at 04:10:06PM -0500, gwes wrote:
> I'm not sure what measure of "better" you're trying to apply.
> 
> lpr et al. don't have a GUI. One could be wrapped around them.
> 

I personally wouldn't want that. Others have said that cups provides
nice information for printers in other applications.

> They don't do dynamic autoconfiguration.
> In an industrial environment autoconfiguration can be very bad.
> (examples like directing confidential output somewhere unexpected)
>

I haven't looked at the code from LPRng, but it provides options to use
a pool of printers for certain jobs to be sent to.

> I worked for a company that ran as many IBM 1403 printers as
> they could buy. Line printers are very simple to run.
> They don't need elaborate output filters.
> 
> The only function I can think of that lpr doesn't have is
> the capability to request a forms change and wait until
> it has been done. That could be an entirely separate subsystem
> invoked by lpr.

When you say forms change, are you talking about paper size/type
changing or something else?

> 
> A laptop floating in many places could use something
> complex like autoconfigure. Again, that could be wrapped
> around lpr et al.

I've been in many places where many wifi printers were wide open and in
several adjacent businesses.

> 
> Geoff Steckel



Re: startx vs xdm

2016-02-18 Thread lists
Thu, 18 Feb 2016 21:44:08 +0100 Jan Stary 
> > My .Xdefaults is a symlink to .Xresources
> > and .xsession is a symlink to .xinitrc.
>
> Why is that? Am I missing something obvious?

$ grep xrdb .xinitrc
[[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources
[[ -f ~/.Xdefaults ]] && xrdb -merge ~/.Xdefaults

$ man xrdb

-merge

This option indicates that the input should be merged and
lexicographically sorted with, instead of replacing, the
current contents of the specified properties.



Re: Industrial use of line printers, does/would your company/organization use them with our lpd?

2016-02-18 Thread gwes

On 02/18/2016 16:33, Chris Bennett wrote:

On Thu, Feb 18, 2016 at 04:10:06PM -0500, gwes wrote:
.
They don't do dynamic autoconfiguration.
In an industrial environment autoconfiguration can be very bad.
(examples like directing confidential output somewhere unexpected)

I haven't looked at the code from LPRng, but it provides options to use
a pool of printers for certain jobs to be sent to.


I think that case is rare but should be considered.


The only function I can think of that lpr doesn't have is
the capability to request a forms change and wait until
it has been done. That could be an entirely separate subsystem
invoked by lpr.

When you say forms change, are you talking about paper size/type
changing or something else?

Forms change can mean size, material, preprinted forms, ribbon,
type chain, etc.. pretty much anything beyond "change input tray".

One more function that I can think of is scheduled access
dept. A from 4:00am to 11:00am, dept. B from 11:01 to 14:00, etc.

I've been in many places where many wifi printers were wide open and in
several adjacent businesses.


Ouch!

The case for retiring lpr et al really depends on your use model.
One size fits all could be difficult.
 How much access and use control?
 How much initial setup?
 How much per-user setup?
 How many printers and per-printer setup?

As you mention, wifi printers are common. Without access control,
they short-circuit any administration. Then anyone with the
password can do anything. A piece of javascript and a browser
would give users as much control as is possible.

So... wired printers - again, if they are open on the net,
access control is difficult or impossible. A very few
I've heard of have per-IP access control.

Either of these two cases really are "submit" and "monitor
for done". The only central administration that's possible
is to recommend which printer someone is to use.

IMnotsoHO, lpr works fine for these cases. The user
selects which printer to use and then queues the job.

Automatic printer discovery could be a boon or a
disaster. Better reporting of printer errors
and daemons not running and easy restart would be good.

Wired printers on a host have two cases.

The simple subcase: printer is a general resource
that happens to be connected to a machine that's
really someone's workstation, etc. Here, the biggest
problem is setting up a server daemon.

I think the previous cover 90% of use.
What improvements do these categories need?

Once you have multiple printers, things get complex.
It's probably one for businesses. Is there
any IT staff? The VAX/VMS print spooler probably has a lot of
the controls for this case. It assumes an operator.

My take: the interface to lpr, lpd, etc could be
cleaned up. For most uses, the functionality is adequate.
Adding a "find a printer" program would help.

The complex case, well, how much work do you
want to put in defining requirements?

None of this, of course, covers running out of paper
when all the stores are closed.

Geoff Steckel



Re: startx vs xdm

2016-02-18 Thread mark hellewell
On Fri, 19 Feb 2016 at 07:49 Jan Stary  wrote:

> Why is that? Am I missing something obvious?
>

What happens if you launch terminals using the `uxterm` shell script?

Mark

Jan



Re: Industrial use of line printers, does/would your company/organization use them with our lpd?

2016-02-18 Thread Chris Cappuccio
gwes [g...@oat.com] wrote:
> 
> I just created and will submit to ports a version
> of ghostscript which doesn't pull in cups - it
> turns out the configuration has a switch for that case.
> 

aren't there plenty of simple pre-processor scripts that people
are using with lp to turn whatever into some output for simple
dumb printers? CUPS is so annoying and stupid, it's not even
funny

christopher



Re: Industrial use of line printers, does/would your company/organization use them with our lpd?

2016-02-18 Thread Andy Bradford
Thus said Chris Cappuccio on Thu, 18 Feb 2016 17:09:38 -0800:

> aren't there  plenty of simple  pre-processor scripts that  people are
> using  with lp  to  turn whatever  into some  output  for simple  dumb
> printers? CUPS is so annoying and stupid, it's not even funny

Perhaps apsfilter?

Andy
--
TAI64 timestamp: 400056c676d2



Get detailed keyboard input on OpenBSD, without depending on X

2016-02-18 Thread Henrique N. Lengler
Hi misc,

I am writing some code. My program will need detailed keyboard input,
like key press and key release.
I know I can get this setup with X (SDL too, which depends on X), but since I 
don't necessarily need a GUI, it wouldn't be cool opening a window just to 
get the keyboard.

I read on the internet that ncurses also don't detect key release, so it is
also out of the list.

So, since the only alternative I found was X. I started to look about 
getting raw keyboard input, dismembering input from the graphics stack 
(maybe create a lib), and search if there is any other program 
that already did this. I read wskbd(4), but It basically talks only about
devices.

Playing with "/dev/wskbd*" I didn't saw a light on it, since for example once 
the X is using the keyboard, this file stay "idle";

The only piece of example was the propper X code, on xf86-input-keyboard, but 
it is a hard code, wih lots of #ifdefs. Hard to get into without much
information, and not being not that good on C programming.

So I decided before getting into it, ask here on the ml, if anyone already 
faced this problem, knows any fix, workaround, or else can point me better
documentation about the OpenBSD keyboard driver. I think that having a
_default_ way of getting input (if there isn't one yet) 
enough detailed, would be great, and then turn into the 
way that all applications get input on OpenBSD, from ncurses to X, would
improve a lot the system. Or even turn that into a independent lib, which one 
could use in any type of application, dismembering it from graphics libs, or 
any other dependency.

Do you guys think there is a way of doing that?

Thanks for the attention,
correct me any mistake;

--
Regards,

Henrique N. Lengler



Re: Industrial use of line printers, does/would your company/organization use them with our lpd?

2016-02-18 Thread Chris Bennett
On Thu, Feb 18, 2016 at 06:58:07PM -0700, Andy Bradford wrote:
> Thus said Chris Cappuccio on Thu, 18 Feb 2016 17:09:38 -0800:
> 
> > aren't there  plenty of simple  pre-processor scripts that  people are
> > using  with lp  to  turn whatever  into some  output  for simple  dumb
> > printers? CUPS is so annoying and stupid, it's not even funny
> 
> Perhaps apsfilter?
> 
> Andy

I have found that apsfilter has a brutally slow filter.
Works, but go get coffee for a simple printjob.

Chris



Re: startx vs xdm

2016-02-18 Thread Stefan Sperling
On Thu, Feb 18, 2016 at 09:44:08PM +0100, Jan Stary wrote:
> Probably not, because if I remove all my .x* files
> and keep just the .Xdefaults -> .Xresources which
> specifies the UTF8 locale for xterm, the same thing
> happens in (the default) fvwm. Namely,
> the xterm started by default has XTERM_LOCALE=C,
> and every xterm started from fvwm's menu has XTERM_LOCALE=C,
> but every xterm I start as `xterm` (from another xterm)
> has XTERM_LOCALE=cs_CZ.UTF-8, as specified in.Xdefaults.
> 
> Why is that? Am I missing something obvious?
> 
>   Jan
> 

Why don't you just set LC_CTYPE in your environment as described here?
http://www.openbsd.org/faq/faq10.html#locales

Do you really want to set a separate UTF-8 flag for every application you use?
I think per-application locale knobs are silly. They are legacy cruft added
before somewhat standardized locale support was built into unix systems.
I'm not surprised it doesn't work the way you expect. xterm needs LC_CTYPE
set the environment when it calls setlocale(3) and/or whatever other things
it does to set up its locale. I haven't looked at xterm code to track down
why xrdb locale settings don't apply as you expect, and I'm not going to
because you should really just be exporting LC_CTYPE in your xsession and
be done with this.