Re: unbound and truly multihomed setup

2016-09-29 Thread Gregory Edigarov

Hi Craig,

On 29.09.16 13:28, Craig Skinner wrote:

Hi Gregory,

On Thu, 29 Sep 2016 10:48:37 +0300 Gregory Edigarov wrote:

em0 (xxx.yyy,zzz.1/24),
em1, em2 - looking at uplinks
...

  outgoing-interface: 0.0.0.0

Removing the outgoing-interface line would probably resolve it.


Adding this private-addres line might help too:

private-address: xxx.yyy.zzz.0/24


Multiple outgoing-interface lines can be put in,
for each of your em1 & em2 interfaces,

I cannot use interfaces em1 and em2, it's where nsd is listening.
I removed the outgoing interface line. still no effect.
the description of private-address: directive has nothing relevant to my 
situation, but I've tried it, and still got nothing.



and separate lines for IPv4 & IPv6 too, for each interface.

The default is 'all', so its a bit pointless to manually list all your
external interfaces.


See /usr/src/usr.sbin/unbound/doc/example.conf.in
http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.sbin/unbound/doc/example.conf.in

Cheers,




Re: unbound and truly multihomed setup

2016-09-29 Thread Gregory Edigarov

corrected unbound.conf snippet, just to be sure I am properly understood


On 29.09.16 10:48, Gregory Edigarov wrote:

Hi,

Need an advice.

I have a bgp router with 3 interfaces:

em0 (xxx.yyy,zzz.1/24),
em1, em2 - looking at uplinks

bgp is up and running, packets are forwarded just fine. also there is 
nsd, listening on both em1,em2 serving my reverse zone.


so far everything works.

now I want this host also be a resolver for lan, that sits  on 
xxx.yyy,zzz.1


here is what I have in unbound.conf


server:
verbosity: 1
outgoing-interface: 0.0.0.0
interface: 127.0.0.1
interface: xxx.yyy.zzz.1
access-control: 127.0.0.0/8 allow
access-control: xxx.yyy.zzz.0/24 allow
access-control: ::1 allow
access-control: :::127.0.0.1 allow
root-hints: /etc/unbound/root.hints

some hosts are resolving correctly, for example google.com, but many 
have SERVFAIL.


if I have
outgoing-interface: xxx.yyy.zzz.1

nothing works.


so the question is: how to make unbound work in such setup?

thank you.

--

With best regards,

Gregory Edigarov




unbound and truly multihomed setup

2016-09-29 Thread Gregory Edigarov

Hi,

Need an advice.

I have a bgp router with 3 interfaces:

em0 (xxx.yyy,zzz.1/24),
em1, em2 - looking at uplinks

bgp is up and running, packets are forwarded just fine. also there is 
nsd, listening on both em1,em2 serving my reverse zone.


so far everything works.

now I want this host also be a resolver for lan, that sits  on xxx.yyy,zzz.1

here is what I have in unbound.conf


server:
verbosity: 1
outgoing-interface: 0.0.0.0
interface: 127.0.0.1
interface:
access-control: 127.0.0.0/8 allow
access-control: xxx.yyy.zzz.0/24 allow
access-control: ::1 allow
access-control: :::127.0.0.1 allow
root-hints: /etc/unbound/root.hints

some hosts are resolving correctly, for example google.com, but many 
have SERVFAIL.


if I have
outgoing-interface: xxx.yyy.zzz.1

nothing works.


so the question is: how to make unbound work in such setup?

thank you.

--

With best regards,

Gregory Edigarov



Re: traceroute and pf

2016-09-28 Thread Gregory Edigarov

because it drops privs once initialization done.

On 28.09.16 14:24, johnw wrote:

On 09/28/2016 07:05 PM, Janne Johansson wrote:

Apart from PF failing the syntax, what would one expect to achieve with

=0 ?

That would always cover all users, since its never a negative number.
/usr/include/sys/types.h:typedef__uid_t uid_t;
  /* user id */
/usr/include/sys/_types.h:typedef   __uint32_t  __uid_t;
  /* user id */



No, PF do not failing the syntax, pfctl -f pf.conf without any error and
pfctl can load the rule (pfctl -sr can see it)

I mean is why, below rule do not let traceroute work?

pass out quick on $ext_if inet proto udp from ($ext_if) to any user 0

then run traceroute as root:   traceroute google.com

traceroute to google.com (216.58.221.238), 64 hops max, 40 byte packets
traceroute: sendto: No route to host
1 traceroute: wrote google.com 40 chars, ret=-1

Thanks.




Re: It is too late for that all the developers to do the right thing?

2016-09-21 Thread Gregory Edigarov

Yeah, everybody is too old here, so pass away, do not stay here, troll


On 20.09.16 20:06, velocidade da luz wrote:

Theo de Raadt wrote:

"The Race is there to be run, for ourselves, not for others. We do what we
do to run our own race, and finish it the best we can. We don't rush off at
every distraction, or worry how this will affect our image. We are here to
have fun doing right."

It is too late for that all the developers to do the right thing?

I want to have fun doing right.




Re: Long life on SSD in a firewall environment

2016-06-21 Thread Gregory Edigarov

On 21.06.16 16:55, Kenneth Gober wrote:

On Sun, Jun 19, 2016 at 5:56 AM, Sjöholm Per-Olov  wrote:

Does anyone know if there exist any list of recommendations about how to

make

an SSD disk to live as long as possible when using it for firewall purpose

on

OpenBSD?

I don't know of a list, aside from what you find in this thread and similar
threads on this list from the past.

My own first recommendation is not to worry about it.

My second recommendation is: if you must worry about it, change as little
as possible.  you don't want to make updates difficult due to excessive
customization.

I am running OpenBSD 5.9 on an Internet-facing router, on Soekris hardware
with
4GB mSATA SSD storage.  My only concern about SSD durability relates to
/var/log and the potential for Internet traffic to cause constant writes
there.
So I have made minimal changes to guard against that:

DO NOT MAKE THESE CHANGES ON YOUR OWN SYSTEM UNLESS
YOU UNDERSTAND WHAT THEY DO.

1. when installing OpenBSD, put /var/log on its own 128MB partition.

2. after your first boot, convert /var/log to use MFS:
 mkdir -p /mfs/log
 cd /etc
 mv fstab fstab~
 sed -e's|/var/log|/mfs/log|' fstab
 cat >>fstab
 swap /var/log mfs rw,nodev,nosuid,-s=128M,-P=/mfs/log 0 0
 ^D

3. reboot so that the above /etc/fstab changes take effect.

4. configure rsync to periodically checkpoint /var/log to /mfs/log:
 pkg_add rsync
 crontab -e
 (add the following lines)
 #
 # checkpoint log files
 10*/4***/usr/local/bin/rsync -ayH
--delete-after /var/log/ /mfs/log

5. also save /var/log to /mfs/log on shutdown:
 cat >>/etc/rc.shutdown
 /usr/local/bin/rsync -ayH --delete-after /var/log/ /mfs/log
 ^D

I sync /var/log to /mfs/log only every 4 hours because I have reliable power.
If you have unreliable power (or unreliable hardware) or your firewall
crashes
or reboots for unknown reasons you may want to sync more often.  Actually
in that case you probably shouldn't use an MFS /var/log at all.

When I first did this it was more than 2 years ago.  Today SSD storage has
improved enough that this shouldn't be needed (see my first recommendation
above not to worry about it).

-ken


well, but why not just settup syslogd to fan logs out to some other server?



wx violations (a question)

2016-05-31 Thread Gregory Edigarov

Hi,

I have a question about the implementation of W^X protection.
We now have a per filesystem knob wxallowed. but wouldn't it be better
to implement with per-exec granularity?

i.e. chflags wxallowed 

--
With best regards,
Gregory Edigarov



Re: Alternate Puffy Logo Design

2016-05-19 Thread Gregory Edigarov

seemingly, the spring was near its end...

On 19.05.16 17:58, Joe Schillinger wrote:

Not sure if the new site design going to go anywhere, but it seems like
an alright time to share a little logo I did based on a hackathon
t-shirt graphic. Here's a modified and colorized version of Puffy from
the l2k15 shirt (original design by Markus Hall):
https://u.teknik.io/OEyHA.png

The vector file needs some cleaning up in order to be "perfect", but I
think it looks nice enough when converted to pixels. If anyone likes it
enough I can provide them with all of the files.

I'm not sure how licensing on the artwork works, but considering it's
for the t-shirts, I would assume the OpenBSD project owns the design.
I'll cautiously say "feel free to use it for whatever you want within
the project". If someone else has more info (whether it's okay to use
outside the project as well) let me know.

Thanks,
Joe




Re: Happy Birthday Theo!

2016-05-19 Thread Gregory Edigarov

Many many happiest returns of the day!

On 19.05.16 09:26, Craig Skinner wrote:

May you triumphly hike
whatever hills you like!

Cheers!




non-wintel hardware choices

2016-05-05 Thread Gregory Edigarov

Hi  everybody,

if I want to build a non-wintel system with commodity running OpenBSD 
without problems, what are my options?
preferably something non-apple also, which i will be able to connect 
display, mouse, and keyboard, and hopefully run X, etc.


--
With best regards,
  Gregory Edigarov



Re: providing users with equal bandwidth

2016-02-04 Thread Gregory Edigarov

On 04.02.16 01:09, Tarkan Açan wrote:

hello misc,

i am using openbsd 5.8 amd64 on my apu 1d4 with success but i have one big
problem. the queue mechanism in pf allows some traffic shaping but what i
really need is to give users their share of the bandwidth. for this i need
some connection based algorithm like sfq (linux) or cbq (mikrotik - routeros).
i have read and searched around a lot but it seems not possible to do such a
thing with pf. is it possible to arrange this kind of bandwith sharing with a
proxy like relayd? does anybody have suggestions? all feedback is sincerely
appreciated.

that's what queues are there for...



Re: [OpenBGPD] Problem with many (fast connecting) Peers

2016-01-26 Thread Gregory Edigarov

On 26.01.16 16:41, Daniel Seidenstücker wrote:

Dear OpenBGPD Community,



in order of measuring the performance of OpenBGPD I need to connect it with
a huge amount of peers (realized by ExaBGP). OpenBGPD 5.8 works well with
100 Peers but if I increase that number to 250 I got every try the same
error (debug mode):



handle_pollfd: imsg_read error: Resource temporarily unavailable

SE: Lost connection to RDE

handle_pollfd: poll fd: Undefined error: 0

RDE: Lost connection to SE

handle_pollfd: poll fd: Undefined error: 0

RDE: Lost connection to SE control

handle_pollfd: poll fd: No such file or directory

main: Lost connection to SE

route decision engine exiting

Segmentation fault (core dumped)



I guess it’s caused by the big number of peers or the short time interval
they connect. I also checked 5.7 but same behavior with slightly other error
msgs:



fatal in SE: session_dispatch_imsg: imsg_read error: Resource temporarily
unavailable

Lost child: session engine exited

fatal in RDE: rde_dispatch_imsg_session: pipe closed

Lost child: route decision engine exited

Terminating



If I split the Peers to 100, 50, 100 with 10 Seconds pause between arrival,
OpenBGPD breaks with same error when the 50 Peers are changing to
established.



Would be nice if you can help me.

Try bump up login.conf's max open file limit.
it seem like that's the case.



Re: OpenSMTPD problem with filter-dnsbl

2015-11-18 Thread Gregory Edigarov

On 11/17/2015 09:03 PM, Gianluca D.Muscelli wrote:

Hi, I'v problem with filters in OpenSMTPD.
I would try to implement the filter-dnsbl,
I also installed the extras opensmtpd but I can't find it!
Any suggestions??
Thank you!

The filters are not available in stock version of smtpd, you should 
install recent version from git for this.

But be aware of some trade offs here.



Re: Virtualization: vmm with Linux guests - when?

2015-11-17 Thread Gregory Edigarov

On 11/17/2015 05:46 PM, Luis P. Mendes wrote:

   Hi,

   I know that development time is not a determinisc thing, but
   nonetheless I'd like to know if it's closer to one, six, twelve (or
   more) months until we get the possibility to run Linux guests
   through vmm.

   I'd be happy even without a graphical interface, if the clients can
   run in xvfb mode and have graphical connections via VNC.

   What about hardware pass-through?  I don't recall to have read about
   this.  Is it something that is already possible?

   Thanks in advance for any info on this.


you must know developers don't like questions like this



misc@openbsd.org

2015-11-06 Thread Gregory Edigarov

On 11/06/2015 02:33 AM, Stuart Henderson wrote:

On 2015-11-05, Stuart Henderson  wrote:

On 2015-11-04, Toyam Cox  wrote:

The default setting for "do-not-query-localhost" is "yes".
You may want to add "do-not-query-localhost: no" to your config in the
"server" section.

Right.


On Wed, Nov 4, 2015 at 11:25 AM, Gregory Edigarov  wrote:

Hello,

Trying to make unbound and nsd co-exist on one server, the goal is to have
unbound listen for all requests redirecting requests for local zones to nsd:
nsd.conf

Just to make sure, this is just a local-only zone? (this approach won't work
correctly for zones that receive queries from other resolvers).

Expanding on this:

For people who do need this, set unbound to listen on an internal IP
address (or an alias), and nsd to listen on the external address.

Incoming queries from many resolvers will have the RD ("recursion desired")
bit cleared so Unbound (or another resolver) won't answer them. See for
yourself with 'dig +norecurse' (this is what Microsoft got wrong when
they tried to filter no-ip domains and broke them).


thanks for your explanations.



misc@openbsd.org

2015-11-04 Thread Gregory Edigarov

Hello,

Trying to make unbound and nsd co-exist on one server, the goal is to 
have unbound listen for all requests redirecting requests for local 
zones to nsd:

nsd.conf

server:
server-count: 1
database: "/var/lib/nsd3/nsd.db"
username: nsd
ip-address:  127.0.0.1@9053
logfile: "/var/log/nsd.log"
pidfile: "/var/run/nsd.pid"
xfrdfile: "/var/lib/nsd3/xfrd.state"

zone:
name:   somezone.org
zonefile: /etc/nsd/zones/somezone.org

dig -p9053 somezone.org soa @127.0.0.1 works as expected.

now unbound's turn:

server:
auto-trust-anchor-file: "/var/lib/unbound/root.key"
interface: 0.0.0.0
logfile: /var/log/unbound.log

stub-zone:
name:  somezone.org. # also tried without point with the same 
result...

stub-addr: 127.0.0.1@9053

dig somezone.org soa @127.0.0.1 yields SERVFAIL.
also tried with forward-zone: - with the same result.

is that at all possible? Where am I wrong?



Re: routing q

2015-10-19 Thread Gregory Edigarov

On 10/19/2015 02:14 PM, Martin Pieuchot wrote:

On 19/10/15(Mon) 13:37, Gregory Edigarov wrote:

On 10/19/2015 01:24 PM, Stuart Henderson wrote:

On 2015-10-19, Gregory Edigarov  wrote:

In order to conserve address space I am trying to confugure 'ip
unnumbred' in cisco terminology, that is have an interface borrow the ip
of a different interface, I am experimenting with vether0 and vlans the
thing is to have one 'main' address on some 'real' interface and then
just add routes pointing to the right interfaces.

# ifconfig vether0 192.168.100.1/24 up
# ifconfig vlan2 vlandev vether0 up
# ifconfig vlan3 vlandev vether0 up
# route add 192.168.100.2/32 192.168.100.1 -cloning -ifp vlan2
route: writing to routing socket: Network is unreachable
add host 192.168.100.2/32: gateway 192.168.100.1: Network is unreachable

the same result I have if I am trying to configure this on a real
interface connected  to my network:

# ifconfig vlan2 vlandev re0
# ifconfig vlan3 vlandev re0
# ifconfig re0 alias 192.168.100.1
# route add 192.168.100.2/32 192.168.100.1 -cloning -ifp vlan2
route: writing to routing socket: Network is unreachable
add host 192.168.100.2/32: gateway 192.168.100.1: Network is unreachable

# uname -a
OpenBSD lbld12.duckdns.org 5.8 GENERIC.MP#1507 amd64

I thoght OpenBSD supports such thing.

am I missing something?

I don't *think* this is expected to work at the moment unless possibly
you specify a destination MAC address with -link.

It does work with point-to-point interfaces, e.g. you can have
192.0.2.1/28 on em0 and 192.0.2.1/32 on pppoe0 and things will work
as expected, but in that case you don't have a problem of picking a
particular link-layer address, just "the pppoe0 interface" is enough
information for the system to know where to send the packet.

The best I've done so far for address conservation on ethernet-like
interfaces is to use /31's (which works well).


Yes, I know /31 would work correctly, but I wanted further space
conservation.

Does it?


Is that a correct explanation that this does not work because  our routing
table still wants a link layer address, errrmmm,  arp table is  included in
routing table?

I believe it's simpler than that.  You cannot attach a route to an
interface without address, so I'm quite sure it will work if you add
an address to vlan2.
yes, adding a route works now.  thanks, Martin. will test some further 
later.




Re: routing q

2015-10-19 Thread Gregory Edigarov

On 10/19/2015 01:24 PM, Stuart Henderson wrote:

On 2015-10-19, Gregory Edigarov  wrote:

In order to conserve address space I am trying to confugure 'ip
unnumbred' in cisco terminology, that is have an interface borrow the ip
of a different interface, I am experimenting with vether0 and vlans the
thing is to have one 'main' address on some 'real' interface and then
just add routes pointing to the right interfaces.

# ifconfig vether0 192.168.100.1/24 up
# ifconfig vlan2 vlandev vether0 up
# ifconfig vlan3 vlandev vether0 up
# route add 192.168.100.2/32 192.168.100.1 -cloning -ifp vlan2
route: writing to routing socket: Network is unreachable
add host 192.168.100.2/32: gateway 192.168.100.1: Network is unreachable

the same result I have if I am trying to configure this on a real
interface connected  to my network:

# ifconfig vlan2 vlandev re0
# ifconfig vlan3 vlandev re0
# ifconfig re0 alias 192.168.100.1
# route add 192.168.100.2/32 192.168.100.1 -cloning -ifp vlan2
route: writing to routing socket: Network is unreachable
add host 192.168.100.2/32: gateway 192.168.100.1: Network is unreachable

# uname -a
OpenBSD lbld12.duckdns.org 5.8 GENERIC.MP#1507 amd64

I thoght OpenBSD supports such thing.

am I missing something?

I don't *think* this is expected to work at the moment unless possibly
you specify a destination MAC address with -link.

It does work with point-to-point interfaces, e.g. you can have
192.0.2.1/28 on em0 and 192.0.2.1/32 on pppoe0 and things will work
as expected, but in that case you don't have a problem of picking a
particular link-layer address, just "the pppoe0 interface" is enough
information for the system to know where to send the packet.

The best I've done so far for address conservation on ethernet-like
interfaces is to use /31's (which works well).

Yes, I know /31 would work correctly, but I wanted further space 
conservation.
Is that a correct explanation that this does not work because  our 
routing table still wants a link layer address, errrmmm,  arp table is  
included in routing table?




routing q

2015-10-19 Thread Gregory Edigarov

Hello,

In order to conserve address space I am trying to confugure 'ip 
unnumbred' in cisco terminology, that is have an interface borrow the ip 
of a different interface, I am experimenting with vether0 and vlans the 
thing is to have one 'main' address on some 'real' interface and then 
just add routes pointing to the right interfaces.


# ifconfig vether0 192.168.100.1/24 up
# ifconfig vlan2 vlandev vether0 up
# ifconfig vlan3 vlandev vether0 up
# route add 192.168.100.2/32 192.168.100.1 -cloning -ifp vlan2
route: writing to routing socket: Network is unreachable
add host 192.168.100.2/32: gateway 192.168.100.1: Network is unreachable

the same result I have if I am trying to configure this on a real 
interface connected  to my network:


# ifconfig vlan2 vlandev re0
# ifconfig vlan3 vlandev re0
# ifconfig re0 alias 192.168.100.1
# route add 192.168.100.2/32 192.168.100.1 -cloning -ifp vlan2
route: writing to routing socket: Network is unreachable
add host 192.168.100.2/32: gateway 192.168.100.1: Network is unreachable

# uname -a
OpenBSD lbld12.duckdns.org 5.8 GENERIC.MP#1507 amd64

I thoght OpenBSD supports such thing.

am I missing something?

--
With best regards,
Gregory Edigarov



Re: Ospf multiple areas not redistributing

2015-09-02 Thread Gregory Edigarov

On 09/02/2015 10:31 AM, Roger Skjetlein wrote:

Hi,


have an issue with ospfd when using multiple areas and networks from area
10.0.30.0 not distributed to 0.0.0.0.

eg

excerpt from config

area 0.0.0.0 {
  interface gre0
  interface gre1
}
area 10.0.30.0 {
  interface em0
}

the network for em0 is 10.0.30.0/24 and is never seen in ospf routing
table. Moving interface em0 to area 0.0.0.0 solves the distribution of the
network, but not having multiple areas.
please show more info, specifically ospfctl sh database, ospfctl sh rib 
from at least two routers in your network.




Re: Docker on OpenBSD?

2015-08-04 Thread Gregory Edigarov

On 08/04/2015 07:44 PM, Giancarlo Razzolini wrote:

Em 04-08-2015 12:59, openda...@hushmail.com escreveu:

Are there any efforts being made to port the FreeBSD Docker port to OpenBSD?

Not that I know of, but I'm not a dev and might be wrong. I do follow
@tech, and didn't saw anything docker related, ever since I'm on the
list. My personal opinion is that OpenBSD shouldn't even get near
docker. But hey, it's my opinion.


  but it's the only way I can install Discourse

 From what I read on their site, they use off the shelf software that
might have a package/port on OpenBSD. You could succeed in installing it
outside a docker. Unless their software is stupid and try to verify if
you're inside a docker and refuses to run if not.

They just use RoR, and it definitely run on OpenBSD.



Re: Collect logs with syslog +hostname

2015-07-28 Thread Gregory Edigarov

On 07/28/2015 03:20 PM, Gregory Edigarov wrote:

On 07/28/2015 02:41 PM, Atanas Vladimirov wrote:

Hi,
I tried the new feature of syslogd to collect log messages from other 
syslog capable devices (in this case an OpenWRT router).

I red syslog.conf many times, but I can't figure it why it doesn't work.

[ns]~$ cat /etc/syslog.conf
#   $OpenBSD: syslog.conf,v 1.17 2005/05/25 07:35:38 david Exp $
#

+wdr4900.bsdbg.net
*.* /var/log/w4900

move the above 2 lines to the end of your file.
remove next line:

+*


next,  add

192.168.1.18 wdr4900
to /etc/hosts


also, change the syslog rule as:
+ wdr4900
*.* /var/log/w4900


and things will work




Re: Collect logs with syslog +hostname

2015-07-28 Thread Gregory Edigarov

On 07/28/2015 02:41 PM, Atanas Vladimirov wrote:

Hi,
I tried the new feature of syslogd to collect log messages from other 
syslog capable devices (in this case an OpenWRT router).

I red syslog.conf many times, but I can't figure it why it doesn't work.

[ns]~$ cat /etc/syslog.conf
#   $OpenBSD: syslog.conf,v 1.17 2005/05/25 07:35:38 david Exp $
#

+wdr4900.bsdbg.net
*.* /var/log/w4900

move the above 2 lines to the end of your file.
remove next line:

+*


next,  add

192.168.1.18 wdr4900
to /etc/hosts

and things will work



bgpd and friends

2015-07-24 Thread Gregory Edigarov

Hello list,

Just curious if the message passing "framework" developed by claudio@ 
and henning@  is documented somehow. may be there is some skeleton so I 
would fill it with my code?
I am going to start a project, and in my vision it will lay on the 
technology very well.
in other words I'm looking for some hints on how to write daemons 
following the same architecture as bgpd and other openbsd network daemons.


Thanks.
--
With best regards,
 Gregory Edigarov



Asterisk+lua

2015-07-08 Thread Gregory Edigarov

HI,

Anybody successfully compiled asterisk 13+lua on openbsd, please share 
your build script.


thank you.

--
With best regards,
Gregory Edigarov



Re: make build errors on me (perl does not install properly)

2015-03-26 Thread Gregory Edigarov
Ok, so if somebody interested in - h2ph is expecting files on its 
command line, not something  else. (that was an issue with a unix 
socket, sneaked in to the /usr/include as the the result of maybe a 
power loss issue I had. the system builds ok now.


the proposed patch, to eliminate the possibility of such problems in the 
future:


Index: Makefile.bsd-wrapper
===
RCS file: /cvs/src/gnu/usr.bin/perl/Makefile.bsd-wrapper,v
retrieving revision 1.99
diff -u -p -u -r1.99 Makefile.bsd-wrapper
--- Makefile.bsd-wrapper26 Nov 2014 18:27:21 -  1.99
+++ Makefile.bsd-wrapper26 Mar 2015 10:59:24 -
@@ -107,7 +107,7 @@ install: install.lib install.perl manins
-mkdir -p 
${DESTDIR}/usr/libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd

(cd ${DESTDIR}/usr/include; ${H2PH} \
-d 
${DESTDIR}/usr/libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd \

-   `find . -name '*.h'`; \
+   `find . -type f -name '*.h'`; \
pax -rw `find . -type l \! -name '*.h' | sed 's/^..//'` \
${DESTDIR}/usr/libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd)
-chmod -R a+rX ${DESTDIR}/usr/libdata/perl5




On 03/18/2015 02:02 PM, Gregory Edigarov wrote:

On 03/18/2015 12:04 PM, Gregory Edigarov wrote:

On 03/17/2015 08:44 PM, patrick keshishian wrote:

On 3/17/15, Gregory Edigarov  wrote:

On 03/16/2015 10:21 PM, Stuart Henderson wrote:

On 2015-03-16, Gregory Edigarov  wrote:

Hello,

I know I am re-asking the same question again, but what are the 
possible

reasons of such behaviour?
Obviously the system builds ok, but perl doesn't install correctly.
I need my system to be correctly built from sources because i am 
going
to make some experimental changes. (I am starting from the most 
fresh

binary snapshot available).

# env make clean obj build
[skip many correct lines]

I don't know if it's implicated in this problem, but don't run the
multiple targets on one line like that, run them separately or do
"make clean && make obj && make build".

Also check you don't have any bogus files in your checkout ("cvs
up -Pd -I \! -I obj -I CVS") and it's a good idea to clean /usr/obj
if you're having problems.

Hi, Stuart.

I've tried your advice.
did
# cvs up -Pd -I \! -I obj -I CVS

Just a WAG, do you possible have a (or a few) file(s) with
a sticky Tag? If you are working off head of the CVS tree
use a -APd to clear out any possible Tags.

--patrick
hmmm, no. It was a clean checkout from a server. so I don't think 
that's a case.

well, I've tried cvs up -APd - still the same result.



# rm -rf  /usr/obj/*
# env make clean && env make obj && env make build

and it again errors on me:

./tls.h -> ./tls.ph
./siphash.h -> ./siphash.ph
*** Error 1 in gnu/usr.bin/perl (Makefile.bsd-wrapper:112 'install')
*** Error 1 in gnu/usr.bin (:48 'realinstall')
*** Error 1 in gnu (:48 'realinstall')
*** Error 1 in . (:48 'realinstall')
*** Error 1 in /usr/src (Makefile:82 'build')
# make clean && make obj && make build

what could be the reason?
--
With best regards,
Gregory Edigarov




Re: make build errors on me (perl does not install properly)

2015-03-18 Thread Gregory Edigarov

On 03/18/2015 12:04 PM, Gregory Edigarov wrote:

On 03/17/2015 08:44 PM, patrick keshishian wrote:

On 3/17/15, Gregory Edigarov  wrote:

On 03/16/2015 10:21 PM, Stuart Henderson wrote:

On 2015-03-16, Gregory Edigarov  wrote:

Hello,

I know I am re-asking the same question again, but what are the 
possible

reasons of such behaviour?
Obviously the system builds ok, but perl doesn't install correctly.
I need my system to be correctly built from sources because i am 
going

to make some experimental changes. (I am starting from the most fresh
binary snapshot available).

# env make clean obj build
[skip many correct lines]

I don't know if it's implicated in this problem, but don't run the
multiple targets on one line like that, run them separately or do
"make clean && make obj && make build".

Also check you don't have any bogus files in your checkout ("cvs
up -Pd -I \! -I obj -I CVS") and it's a good idea to clean /usr/obj
if you're having problems.

Hi, Stuart.

I've tried your advice.
did
# cvs up -Pd -I \! -I obj -I CVS

Just a WAG, do you possible have a (or a few) file(s) with
a sticky Tag? If you are working off head of the CVS tree
use a -APd to clear out any possible Tags.

--patrick
hmmm, no. It was a clean checkout from a server. so I don't think 
that's a case.

well, I've tried cvs up -APd - still the same result.



# rm -rf  /usr/obj/*
# env make clean && env make obj && env make build

and it again errors on me:

./tls.h -> ./tls.ph
./siphash.h -> ./siphash.ph
*** Error 1 in gnu/usr.bin/perl (Makefile.bsd-wrapper:112 'install')
*** Error 1 in gnu/usr.bin (:48 'realinstall')
*** Error 1 in gnu (:48 'realinstall')
*** Error 1 in . (:48 'realinstall')
*** Error 1 in /usr/src (Makefile:82 'build')
# make clean && make obj && make build

what could be the reason?
--
With best regards,
Gregory Edigarov




Re: make build errors on me (perl does not install properly)

2015-03-18 Thread Gregory Edigarov

On 03/17/2015 08:44 PM, patrick keshishian wrote:

On 3/17/15, Gregory Edigarov  wrote:

On 03/16/2015 10:21 PM, Stuart Henderson wrote:

On 2015-03-16, Gregory Edigarov  wrote:

Hello,

I know I am re-asking the same question again, but what are the possible
reasons of such behaviour?
Obviously the system builds ok, but perl doesn't install correctly.
I need my system to be correctly built from sources because i am going
to make some experimental changes. (I am starting from the most fresh
binary snapshot available).

# env make clean obj build
[skip many correct lines]

I don't know if it's implicated in this problem, but don't run the
multiple targets on one line like that, run them separately or do
"make clean && make obj && make build".

Also check you don't have any bogus files in your checkout ("cvs
up -Pd -I \! -I obj -I CVS") and it's a good idea to clean /usr/obj
if you're having problems.

Hi, Stuart.

I've tried your advice.
did
# cvs up -Pd -I \! -I obj -I CVS

Just a WAG, do you possible have a (or a few) file(s) with
a sticky Tag? If you are working off head of the CVS tree
use a -APd to clear out any possible Tags.

--patrick
hmmm, no. It was a clean checkout from a server. so I don't think that's 
a case.



# rm -rf  /usr/obj/*
# env make clean && env make obj && env make build

and it again errors on me:

./tls.h -> ./tls.ph
./siphash.h -> ./siphash.ph
*** Error 1 in gnu/usr.bin/perl (Makefile.bsd-wrapper:112 'install')
*** Error 1 in gnu/usr.bin (:48 'realinstall')
*** Error 1 in gnu (:48 'realinstall')
*** Error 1 in . (:48 'realinstall')
*** Error 1 in /usr/src (Makefile:82 'build')
# make clean && make obj && make build

what could be the reason?
--
With best regards,
Gregory Edigarov




Re: make build errors on me (perl does not install properly)

2015-03-17 Thread Gregory Edigarov

On 03/16/2015 10:21 PM, Stuart Henderson wrote:

On 2015-03-16, Gregory Edigarov  wrote:

Hello,

I know I am re-asking the same question again, but what are the possible
reasons of such behaviour?
Obviously the system builds ok, but perl doesn't install correctly.
I need my system to be correctly built from sources because i am going
to make some experimental changes. (I am starting from the most fresh
binary snapshot available).

# env make clean obj build
[skip many correct lines]

I don't know if it's implicated in this problem, but don't run the
multiple targets on one line like that, run them separately or do
"make clean && make obj && make build".

Also check you don't have any bogus files in your checkout ("cvs
up -Pd -I \! -I obj -I CVS") and it's a good idea to clean /usr/obj
if you're having problems.

Hi, Stuart.

I've tried your advice.
did
# cvs up -Pd -I \! -I obj -I CVS
# rm -rf  /usr/obj/*
# env make clean && env make obj && env make build

and it again errors on me:

./tls.h -> ./tls.ph
./siphash.h -> ./siphash.ph
*** Error 1 in gnu/usr.bin/perl (Makefile.bsd-wrapper:112 'install')
*** Error 1 in gnu/usr.bin (:48 'realinstall')
*** Error 1 in gnu (:48 'realinstall')
*** Error 1 in . (:48 'realinstall')
*** Error 1 in /usr/src (Makefile:82 'build')
# make clean && make obj && make build

what could be the reason?
--
With best regards,
  Gregory Edigarov



make build errors on me (perl does not install properly)

2015-03-16 Thread Gregory Edigarov

Hello,

I know I am re-asking the same question again, but what are the possible 
reasons of such behaviour?

Obviously the system builds ok, but perl doesn't install correctly.
I need my system to be correctly built from sources because i am going 
to make some experimental changes. (I am starting from the most fresh 
binary snapshot available).


# env make clean obj build
[skip many correct lines]

./xmmintrin.h -> ./xmmintrin.ph
./zlib.h -> ./zlib.ph
./fuse_opt.h -> ./fuse_opt.ph
./endian.h -> ./endian.ph
./ressl.h -> ./ressl.ph
./cpuid.h -> ./cpuid.ph
./uuid.h -> ./uuid.ph
./tls.h -> ./tls.ph
./siphash.h -> ./siphash.ph
*** Error 1 in gnu/usr.bin/perl (Makefile.bsd-wrapper:112 'install')
*** Error 1 in gnu/usr.bin (:48 'realinstall')
*** Error 1 in gnu (:48 'realinstall')
*** Error 1 in . (:48 'realinstall')
*** Error 1 in /usr/src (Makefile:82 'build')

--
With best regards,
  Gregory Edigarov



Re: interesting question about shells

2014-12-24 Thread Gregory Edigarov

On 12/24/2014 06:19 PM, Christian Weisgerber wrote:

On 2014-12-24, Gregory Edigarov  wrote:


an interesting question has just come to my head:
do you know of any shell that could complete from the terminal output of
any of the previous command?

That would require serious contortions since the stdout/stderr
output of commands run from the shell does not pass through the
shell.


i type 'cat  TAB' and it completes from the result of ls.
now if i want for example  ssh to any host, i give command cat
.ssh/config, and then ssh TAB.
is that at all possible?

bash, tcsh, and zsh each support absurdly complex programmable
completion schemes that may offer better ways to do what you want.
(E.g. why complete ssh from previous cat output, why not complete
directly from .ssh/config or .ssh/known_hosts?)


hmmm... that were only an examples of application...



interesting question about shells

2014-12-24 Thread Gregory Edigarov

Hi,

an interesting question has just come to my head:
do you know of any shell that could complete from the terminal output of 
any of the previous command?


like for example:
i want it to complete from a result of ls, so I give the ls command, 
look at its output, then for example

i type 'cat  TAB' and it completes from the result of ls.
now if i want for example  ssh to any host, i give command cat 
.ssh/config, and then ssh TAB.

is that at all possible?

--
With best regards,
     Gregory Edigarov



Re: Openbsd broke my hard drive twice! Getting frustrated

2014-12-23 Thread Gregory Edigarov
On 12/23/2014 04:04 AM, Henrique Lengler wrote:
> Hi,
 >
 > I decided to install openbsd by the first time a month ago, How I was
 > with no internet connection I needed to shutdown the computer in the
 > part that I need to download the packages, because I hadn't it on the
 > cd. I could not acess the command line so I clicked the reset button
 > on the front panel. When I tried to turn on again, the system didn't
 > boot. I discovered that it only worked if I remove the hard drive.
 > Thinking that the problem was the harddrive I sent it to warranty to
 > be repleaced. I took 10 long days (withou my computer) to arrive a
 > new one. When it arrived, I tested and I saw that now it is working.
 > I prepared a cable connection, and I started again the openbsd
 > setup. It sucefully downloaded and installed everything, so I
 > rebooted the system to boot my new fresh install. AND SHIT,
 > everything happened as before, the system don't boot as before, I
 > can't open the bios as before, and I got really mad.
 >
 > I don't know if I will be able to sent it to warranty again, but this
 > isn't the right thing to do now that I discovered that the problem
 > isn't with it, the problem is with Openbsd.
 >
 > Could someone please explain me why this happened? Can you think
 > about a way to fix this without send it to warranty? Any other
 > questions? send me a reply, I'm really in need of help
 >
Hi,

I can remember similar problems when I first tried to install OpenBSD on 
my current computer.
The problem were performance settings in BIOS, that were somehow set to 
high performance profile.
After setting that to Standard Profile - things went smoothly.

--
With best regards,
Gregory Edigarov



Re: ospf point to point network

2014-12-18 Thread Gregory Edigarov

Hi,

Not sure what want, but ospfd seems to properly detect interfaces, that 
are p2p by their nature

(gif, gre, ppp, )
So I don't think it is necessary to specify.

On 12/17/2014 06:25 PM, Kapetanakis Giannis wrote:

Hi,

I'd like to ask if point-to-point support has been added in ospfd.

I've read this
http://marc.info/?l=openbsd-misc&m=136580208222751&w=2

but I cant seem to find relevant entries in the source tree so 
probably is still out?


regards,

Giannis




dialog (probably OT)

2014-12-03 Thread Gregory Edigarov

Hello,

I need a little bit of help with 'dialog'.
I am working on the script to add a developer to our system:

shell=""
groups=""
user=""
home=""

exec 3>&1

# Store data to $VALUES variable
VALUES=$(dialog --ok-label "Add" \
  --backtitle "Add a developer" \
  --title "Useradd" \
  --form "Create a new developer" \
15 70 0 \
"Username:"1 1"login name" 1 10 20 0 \
"Realname:"   2 1 "real name"2 10 30 100 \
"E-Mail:" 3 1"e-mail"  3 10 30 100 \
"Project:"  4 1 "project"   4 10 30 100 \
"GIT Url:" 5 1"url of git repository"  5 10 30 
100 \
"DB dump:"  6 1"url of database dump" 6 10 
40 100 \

"Ssh privkey:"7 1"ssh private key"7 10 40 2048 \
"Ssh pubkey:"8 1"ssh public key"8 10 40 2048 \
2>&1 1>&3)

# close fd
exec 3>&-

echo $VALUES
# display values just entered
user=$(echo $VALUES |cut -f1 -d' ')
rname=$(echo $VALUES |cut -f2 -d' ')
email=$(echo $VALUES |cut -f3 -d' ')
git=$(echo $VALUES | cut -f4 -d' ')
dburl=$(echo $VALUES |cut -f5 -d' ')
privkey=$(echo $VALUES |cut -f6 -d' ')
pubkey=$(echo $VALUES |cut -f7 -d' ')

(it's a test to look at the possibilities offered).

now, I want some of the fields (for example the later 2) to be of a 
different type from just the plain inputfield, for example, inputbox. 
from what I see,  I have to split the form into three steps,  like: ask 
the first 5 fields at once, store values, then have  two separate forms 
for keys.


but that is not the way I want it to be like.
I know that zenity can easily do what i want, but it is an X 
application, and I need it to be terminal/(n)curses application.


do i have any more options rather then split dialogue into two or more 
steps?


--
With best regards,
Gregory Edigarov



Re: httpd

2014-11-18 Thread Gregory Edigarov

On 11/18/2014 04:22 PM, Reyk Floeter wrote:

On Tue, Nov 18, 2014 at 02:20:40PM +0200, Gregory Edigarov wrote:

Hi,

While downloading a big file from httpd it eats somewhere from 77 to 100% or
even 150% cpu.

Do you have any more details?  OK, you're running -current.  But how
big is your big file?  What is your httpd configuration?  Your dmesg?
Is the file served as static file or via FastCGI?  Is it a busy web
server with many connections etc.?  How-to-preproduce?


Is it normal?
I've never seen such numbers with nginx.


"Is 77 to 150% cpu to serve a file normal?" - Yes, of course!  nginx
is not even able to utilize the provided resources of your system,
what a waste of CPU power! ...

Reyk

the test file is 1.2G avi file residing in the /var/www/htdocs directory.

config file is rather simple:

server "default" {
listen on egress port 80
root "/htdocs/"
log syslog
directory auto index
}

include "/etc/nginx/mime.types"

dmesg:

OpenBSD 5.6-current (GENERIC.MP) #564: Sat Nov 15 20:59:52 MST 2014
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 1568260096 (1495MB)
avail mem = 1522675712 (1452MB)
warning: no entropy supplied by boot loader
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xeb170 (91 entries)
bios0: vendor American Megatrends Inc. version "0701" date 07/04/2012
bios0: ASUSTeK COMPUTER INC. P8H61-M2 USB3
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S3 S4 S5
acpi0: tables DSDT FACP APIC SSDT MCFG HPET
acpi0: wakeup devices PS2K(S4) PS2M(S4) BR20(S3) EUSB(S4) USBE(S4) 
PEX0(S4) PEX1(S4) PEX3(S4) PEX5(S4) PEX6(S4) PEX7(S4) P0P1(S4) P0P2(S4) 
P0P3(S4) P0P4(S4)

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) Celeron(R) CPU G530 @ 2.40GHz, 2394.90 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,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,DEADLINE,XSAVE,NXE,LONG,LAHF,PERF,ITSC

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
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Celeron(R) CPU G530 @ 2.40GHz, 2394.56 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,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,DEADLINE,XSAVE,NXE,LONG,LAHF,PERF,ITSC

cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 0 pa 0xfec0, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xe000, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 2 (PEX0)
acpiprt2 at acpi0: bus 3 (PEX1)
acpiprt3 at acpi0: bus 5 (PEX3)
acpiprt4 at acpi0: bus 6 (PEX5)
acpiprt5 at acpi0: bus -1 (PEX6)
acpiprt6 at acpi0: bus -1 (PEX7)
acpiprt7 at acpi0: bus 1 (P0P1)
acpiprt8 at acpi0: bus -1 (P0P2)
acpiprt9 at acpi0: bus -1 (P0P3)
acpiprt10 at acpi0: bus -1 (P0P4)
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpibtn0 at acpi0: PWRB
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: DD02
cpu0: Enhanced SpeedStep 2394 MHz: speeds: 2400, 2300, 2200, 2100, 2000, 
1900, 1800, 1700, 1600 MHz

pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core 2G Host" rev 0x09
ppb0 at pci0 dev 1 function 0 "Intel Core 2G PCIE" rev 0x09: msi
pci1 at ppb0 bus 1
vga1 at pci0 dev 2 function 0 "Intel HD Graphics 2000" rev 0x09
intagp at vga1 not configured
inteldrm0 at vga1
drm0 at inteldrm0
drm: Memory usable by graphics device = 2048M
inteldrm0: 1280x1024
wsdisplay0 at vga1 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
"Intel 6 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured
ehci0 at pci0 dev 26 function 0 "Intel 6 Series USB" rev 0x05: apic 0 int 23
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 "Intel 6 Series HD Audio" rev 0x05: msi
azalia0: codecs: VIA/0x0397, Intel/0x2805, using VIA/0x0397
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 "Intel 6 Series PCIE" rev 0xb5: msi
pci2 at ppb1 bus 2
ppb2 at pci0 dev 28 function 1 "Intel 6 Series PCIE" rev 0xb5: msi
pci3 at ppb2 bus 3
ppb3 at pci3 dev 0 function 0 "TI XIO2000A PCIE-PCI" rev 0x03
pci4 at ppb3 bus 4
puc0 at pci4 dev 0 function 0 "Oxford Exsys EX-41092" rev 0x00: ports: 1 com
com4 at puc0 port 0 apic 0 int 17: st16650, 32 byte fifo
com4: probed fifo depth: 16 bytes
"Oxford OXmPCI954 Disable

Re: httpd

2014-11-18 Thread Gregory Edigarov

my -current is just three day's old:

OpenBSD 5.6-current (GENERIC.MP) #564: Sat Nov 15 20:59:52 MST 2014



On 11/18/2014 02:36 PM, Bret Lambert wrote:

On Tue, Nov 18, 2014 at 02:20:40PM +0200, Gregory Edigarov wrote:

Hi,

While downloading a big file from httpd it eats somewhere from 77 to 100% or
even 150% cpu.
Is it normal?
I've never seen such numbers with nginx.

There was a known issue with that that has been fixed in -current;
if you aren't running -current, you should update and see if the issue
persists




httpd

2014-11-18 Thread Gregory Edigarov

Hi,

While downloading a big file from httpd it eats somewhere from 77 to 
100% or even 150% cpu.

Is it normal?
I've never seen such numbers with nginx.

--
With best regards,
  Gregory Edigarov



LibreOffice woes

2014-10-30 Thread Gregory Edigarov

Hello,

libreoffice-4.3.2.2p0v0, installed from packages, coredumps when on 
saving the file. I observe this behaviour whether it is a manual save, 
or an autosave.

Aside from this I can open and edit any file.

The hardware and memory is definitely not an issue, as everything else 
works correctly and I've also tried to run LibreOffice alone, to 
eliminate the possibility is it the memory size issues.


Does anybody else observe such behaviour?

--
With best regards,
Gregory Edigarov



Re: libressl

2014-10-22 Thread Gregory Edigarov

On 10/22/14 21:27, Chris Cappuccio wrote:

Gregory Edigarov [ediga...@qarea.com] wrote:

Hi,

Since we are already go with re-engineering of openssl becoming libressl,
why not provide some clean and intuitive interface instead of that crap
openssl(1) is? For example ressl(1) would be the new "high level" interface
with very few selected frequently used  functions, and openssl(1) with low
level interface as it is  now

Umm..What do you imagine this new ressl utility will do?

There are a lot of examples of how to do very specific things with the openssl
command line utility on the web today. Why is another utility, one with less
features, why is it necessary?
Yes, there are a lot of such examples, and these examples are only 
necessary and exist because openssl(1) interface is a crap. I do not 
believe OpenBSD is about such a crap. Instead, I think OpenBSD is about 
providing a clean and good engineered  interfaces, to mostly eliminate 
the need  for "a lot of examples of how to do very specific things with 
the openssl command line utility " (C).


something like:
ressl generate privkey
ressl generate csr
ressl sign

etc.

--



libressl

2014-10-22 Thread Gregory Edigarov

Hi,

Since we are already go with re-engineering of openssl becoming libressl,
why not provide some clean and intuitive interface instead of that crap 
openssl(1) is? For example ressl(1) would be the new "high level" interface
with very few selected frequently used  functions, and openssl(1) with 
low level interface as it is  now

--
With best regards,
    Gregory Edigarov



Re: booting

2014-09-18 Thread Gregory Edigarov

On 09/18/14 17:41, Aner Perez wrote:

On 09/18/2014 04:28 AM, Gregory Edigarov wrote:

Hello,

Is boot from zalman's virtual cd (a hard disc case that can store 
many ISO images and

then  represent itself as a cd) still unsupported?

nearly every other .iso works correctly, but not openbsd.

--
With best regards,
  Gregory Edigarov



I have used a zalman VE-300 to install OpenBSD 5.3 on several machines 
that had no built-in CD drive.  I think I have also installed 5.4 and 
5.5 snapshots from the zalman.


The Zalman usually presents itself as a usb hard drive AND a usb cd 
drive.  For some Dell systems I have had problems booting up from a CD 
ISO unless I place the zalman into CD-only mode before booting from 
the ISO.

I will try this. Thanks.

I remember it was capable of booting OpenBSD some time in the past, but 
not now. So may be that's a Lenovo laptop I've tried to boot. anyway I 
will research deeper.


--
With best regards,
    Gregory Edigarov



booting

2014-09-18 Thread Gregory Edigarov

Hello,

Is boot from zalman's virtual cd (a hard disc case that can store many 
ISO images and then  represent itself as a cd) still unsupported?


nearly every other .iso works correctly, but not openbsd.

--
With best regards,
 Gregory Edigarov



Re: OpenBGPD not installing routes that happen to originate from the same ASN in another location into the RIB

2014-09-12 Thread Gregory Edigarov

On 09/12/14 19:07, Henning Brauer wrote:

* Paul S.  [2014-08-28 11:19]:

Earlier today, however, I discovered that routes that I'm announcing under
the same ASN (in another location) are being received and put into the RIB
-- but never into the kernel's FIB.

that's correct behaviour, routes from the same AS aren't supposed to be
distributed via BGP but your IGP.

IGP is correct solution in most cases, but it doesn't cover the 
situation when you need to accept a route originated from your remote 
location or a customer connected to your remote location.

and your remote location is a few AS hops away from you.
that's where 'allow-as in' come into play.
although i would agree that it is a hack.

--
With best regards,
 Gregory Edigarov



Re: httpd URI rewriting / try_files

2014-08-29 Thread Gregory Edigarov

On 08/28/14 15:15, Christopher Zimmermann wrote:

On Thu, 28 Aug 2014 14:37:34 +0300 Gregory Edigarov
 wrote:


Hello

are there any plans to implement uri rewriting or something in a manner
of 'try_files' configuration option of nginx?

I plan to add a URL stripping option, somewhat more powerful than the
nginx alias directive:


root [strip number] directory
Set the document root of the server.  The directory is a
pathname within the chroot(2) root directory of httpd.  If not
specified, it defaults to /htdocs.  If the strip option is set, number
path components are removed from the beginning of the URI before
directory is prepended.

this would allow you to do for example:

location "/wiki/" {
 strip 1
 root "/dokuwiki"
 directory index "doku.php"
 fastcgi socket "/tmp/php.sock"
}
it would be absolutely nice to have something like try_files for 
locations and servers.


like

location "/some/" {
root "/some/"
try_files $uri index.php?$uri
}



httpd

2014-08-28 Thread Gregory Edigarov

Hello

are there any plans to implement uri rewriting or something in a manner 
of 'try_files' configuration option of nginx?


--
With best regards,
    Gregory Edigarov



Re: OpenBGPD not installing routes that happen to originate from the same ASN in another location into the RIB

2014-08-28 Thread Gregory Edigarov

Hi

you seem to need an analog to 'allow as in' from ciscoez.
no, openbgpd does not support this without patches, and i am afraid, no 
such patches will ever hit the tree.

this leaves you on your own to patch.

On 08/28/14 13:03, Paul S. wrote:

Peter,

The prefix doesn't actually fall under that, I just simply replaced 
the first octet of it to mask what it actually is.


It's actually a publicly routable prefix allocated from ARIN.

Apologies if it had been confusing.

On 8/28/2014 午後 07:02, Peter Hessler wrote:
deny from any prefix 10.0.0.0/8 prefixlen >= 8  # private 
space [RFC1918]

?


On 2014 Aug 28 (Thu) at 18:17:34 +0900 (+0900), Paul S. wrote:
:Hi guys,
:
:We've been testing OpenBGPd + OpenBSD as an edge router for some 
time and are

:pretty impressed with what it can do.
:
:Earlier today, however, I discovered that routes that I'm announcing 
under
:the same ASN (in another location) are being received and put into 
the RIB --

:but never into the kernel's FIB.
:
:fib-update is not the issue since I can see that prefixes that are from
:external ASNs happen to be working fine,
:
:# bgpctl sh ip bgp 8.8.8.0/24
:flags: * = Valid, > = Selected, I = via IBGP, A = Announced, S = Stale
:origin: i = IGP, e = EGP, ? = Incomplete
:
:flags destination  gateway  lpref   med aspath origin
:*>8.8.8.0/24   x.218.212.x 100 0 3491 15169 i
:* 8.8.8.0/24   x.88.197.x   100 12040 174 15169 i
:
:So to say, my locally configured OpenBGPD instance has ASN n, and is 
refusing
:to install routes that are also from ASN n (but announced in a 
different

:location and received through ebgp from a upstream)
:
:Example of one such network,
:
:# bgpctl show ip bgp 10.251.113.0
:flags: * = Valid, > = Selected, I = via IBGP, A = Announced, S = Stale
:origin: i = IGP, e = EGP, ? = Incomplete
:
:flags destination  gateway  lpref   med aspath origin
:  10.251.112.0/21 x.218.212.x 100 0 3491 n n i
:  10.251.112.0/21 x.88.197.x   100 41051 174 n i
:
:(I've chosen to obfuscate the actual ASN / prefix, but they're both 
visible
:on the global table and the nexthop / gws are also both reachable. n 
is also

:configured as the ASN for this instance.)
:
:Have I missed some sort of knob in the OpenBGPD bgpd.conf manpage? I 
tried
:looking through it for FIB filtering or similar, but couldn't find 
anything.

:Googling did not turn up anything either
:
:My configuration (stripping out the macros and networks) may be seen 
entirely

:at http://paste.ee/p/unTWC#XKvmhqtFCcHZ4TQlFn8VTZMpUfs6I9I5
:
:Thank you!
:




The rant about browsers

2014-08-23 Thread Gregory Edigarov

Hello Everybody.

Before anything I want to say big thanks to the developers of OpenBSD, 
for maintaining it. After some ~10 years of being the loyal OpenBSD 
user, I never had any problem with OpenBSD itself, besides may be 2 or 
three times.
It is impressive. Every other system I use gives problems from time to 
time, so I am thanking you, guys, every time I type a command.


Now onto the bitter part. For some reason, since, may be, AFAIR 5.2 
times, I do not see any browser that is working flawlessly under our 
loved system.

Everything is happened on the same set of sites I use routinely everyday.

I tried:
Firefox - bad, bad, bad. It fails 1000 times a day.

Chromium - it is better, in terms. Yes, it will not fail on the plain 
place (it is a Russian idiom, which means 'from nothing' or 'from no 
reason one can observe'), but left for some time it starts to be so 
slow... was forced  to stay away from it too. but after all it is the 
only browser under OpenBSD that have a working lastpass plugin. (and I 
need lastpass, if I want to share my passwords between home and job 
computers)


Seamonkey - potentially good project. but suffers from the same problems 
like firefox. although it is fails much much less, the frequency is 
still unacceptable for me.


I also used xombrero and it was good, but again, from somewhere between 
5.2 - 5.3 times it has started to fail with an unacceptable frequency.


I know, I should write to upstream mailing lists of the projects I've 
mentioned above, but before that, I want to know if somebody else is 
suffering such problems and I am still sure maintatiners of the 
corresponding ports will do it better than me if they find it is a problem.


--
With best regards,
   Gregory Edigarov

dmesg follows:
OpenBSD 5.6-current (GENERIC.MP) #340: Fri Aug 22 15:06:09 MDT 2014
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 1568260096 (1495MB)
avail mem = 1517772800 (1447MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xeb170 (91 entries)
bios0: vendor American Megatrends Inc. version "0701" date 07/04/2012
bios0: ASUSTeK COMPUTER INC. P8H61-M2 USB3
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S3 S4 S5
acpi0: tables DSDT FACP APIC SSDT MCFG HPET
acpi0: wakeup devices PS2K(S4) PS2M(S4) BR20(S3) EUSB(S4) USBE(S4) 
PEX0(S4) PEX1(S4) PEX3(S4) PEX5(S4) PEX6(S4) PEX7(S4) P0P1(S4) P0P2(S4) 
P0P3(S4) P0P4(S4)

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) Celeron(R) CPU G530 @ 2.40GHz, 2394.94 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,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,DEADLINE,XSAVE,NXE,LONG,LAHF,PERF,ITSC

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.0, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Celeron(R) CPU G530 @ 2.40GHz, 2394.57 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,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,DEADLINE,XSAVE,NXE,LONG,LAHF,PERF,ITSC

cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 0 pa 0xfec0, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xe000, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 2 (PEX0)
acpiprt2 at acpi0: bus 3 (PEX1)
acpiprt3 at acpi0: bus 5 (PEX3)
acpiprt4 at acpi0: bus 6 (PEX5)
acpiprt5 at acpi0: bus -1 (PEX6)
acpiprt6 at acpi0: bus -1 (PEX7)
acpiprt7 at acpi0: bus 1 (P0P1)
acpiprt8 at acpi0: bus -1 (P0P2)
acpiprt9 at acpi0: bus -1 (P0P3)
acpiprt10 at acpi0: bus -1 (P0P4)
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpibtn0 at acpi0: PWRB
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: DD02
cpu0: Enhanced SpeedStep 2394 MHz: speeds: 2400, 2300, 2200, 2100, 2000, 
1900, 1800, 1700, 1600 MHz

pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core 2G Host" rev 0x09
ppb0 at pci0 dev 1 function 0 "Intel Core 2G PCIE" rev 0x09: msi
pci1 at ppb0 bus 1
vga1 at pci0 dev 2 function 0 "Intel HD Graphics 2000" rev 0x09
intagp at vga1 not configured
inteldrm0 at vga1
drm0 at inteldrm0
drm: Memory usable by graphics device = 2048M
inteldrm0: 1280x1024
wsdisplay0 at vga1 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
"Intel 6 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured
ehci0 at pci0 dev 26 function 0 "Intel 6 Series USB&qu

Re: question about swap and chromium from last snapshot

2014-07-04 Thread Gregory Edigarov
Ah forgot to say.

my mount points are like that:
# mount
/dev/sd0a on / type ffs (local)
/dev/sd0f on /home type ffs (local, nodev, nosuid)
/dev/sd0d on /usr type ffs (local, nodev)
/dev/sd0e on /var type ffs (local, nodev, nosuid)

and yes, i see that / is leaking inodes (slowly for now as I do not have
google analytics or monitoring opeened)

# df -ki /
Filesystem  1K-blocks  Used Avail Capacity iused   ifree  %iused
 Mounted on
/dev/sd0a 103252615965082125016%3864  152038 2%   /

few minutes later:
# df -ki /
Filesystem  1K-blocks  Used Avail Capacity iused   ifree  %iused
 Mounted on
/dev/sd0a 103252617635480454618%4386  151516 3%   /

processes running:
# ps ax
  PID TT  STAT   TIME COMMAND
1 ??  Is  0:01.02 /sbin/init
27034 ??  Is  0:00.11 syslogd: [priv] (syslogd)
25594 ??  I   0:00.33 /usr/sbin/syslogd -u -a /var/empty/dev/log
 2255 ??  Is  0:00.13 pflogd: [priv] (pflogd)
26045 ??  I

Re: question about swap and chromium from last snapshot

2014-07-04 Thread Gregory Edigarov
Hello, Guenther

Of couse I have updated kernel, userspace and packages at the same time,
like I always do.
I do niot have any tmpfs mount at this conputer.
I've also noticed that when I reboot  the system from hang (I am forced to
do that with reset)
fsck unlinking many, many files, so  I believe your thought about inode
starvation is correct.

Hope that helps somehow.

--
With best regards.
 Gregory



question about swap and chromium from last snapshot

2014-07-04 Thread Gregory Edigarov
Hello,

some maybe a week or two ago i've started experiencing hangs on my 
OpenBSD workstation when it is running chromium.
at first I didn't recognize the reason, but after some investigation I 
see that when I have google analytics or some other sites I use 
regularly, opened in chromium it just eats all the memory available, and 
never swaps.
it wasn't like that a month ago, so I suspect some changes in chromium 
or may be something was changed in google
analytics that prevents system from using swap when it is  out of resources.

dmesg follows

OpenBSD 5.5-current (GENERIC.MP) #243: Sun Jun 29 16:12:14 MDT 2014
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 1568260096 (1495MB)
avail mem = 1517727744 (1447MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xeb170 (91 entries)
bios0: vendor American Megatrends Inc. version "0701" date 07/04/2012
bios0: ASUSTeK COMPUTER INC. P8H61-M2 USB3
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S3 S4 S5
acpi0: tables DSDT FACP APIC SSDT MCFG HPET
acpi0: wakeup devices PS2K(S4) PS2M(S4) BR20(S3) EUSB(S4) USBE(S4) 
PEX0(S4) PEX1(S4) PEX3(S4) PEX5(S4) PEX6(S4) PEX7(S4) P0P1(S4) P0P2(S4) 
P0P3(S4) P0P4(S4)
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) Celeron(R) CPU G530 @ 2.40GHz, 2394.87 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,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,DEADLINE,XSAVE,NXE,LONG,LAHF,PERF,ITSC
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.0, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Celeron(R) CPU G530 @ 2.40GHz, 2394.56 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,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,DEADLINE,XSAVE,NXE,LONG,LAHF,PERF,ITSC
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 0 pa 0xfec0, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xe000, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 2 (PEX0)
acpiprt2 at acpi0: bus 3 (PEX1)
acpiprt3 at acpi0: bus 5 (PEX3)
acpiprt4 at acpi0: bus 6 (PEX5)
acpiprt5 at acpi0: bus -1 (PEX6)
acpiprt6 at acpi0: bus -1 (PEX7)
acpiprt7 at acpi0: bus 1 (P0P1)
acpiprt8 at acpi0: bus -1 (P0P2)
acpiprt9 at acpi0: bus -1 (P0P3)
acpiprt10 at acpi0: bus -1 (P0P4)
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpibtn0 at acpi0: PWRB
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: DD02
cpu0: Enhanced SpeedStep 2394 MHz: speeds: 2400, 2300, 2200, 2100, 2000, 
1900, 1800, 1700, 1600 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core 2G Host" rev 0x09
ppb0 at pci0 dev 1 function 0 "Intel Core 2G PCIE" rev 0x09: msi
pci1 at ppb0 bus 1
vga1 at pci0 dev 2 function 0 "Intel HD Graphics 2000" rev 0x09
intagp at vga1 not configured
inteldrm0 at vga1
drm0 at inteldrm0
drm: Memory usable by graphics device = 2048M
inteldrm0: 1280x1024
wsdisplay0 at vga1 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
"Intel 6 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured
ehci0 at pci0 dev 26 function 0 "Intel 6 Series USB" rev 0x05: apic 0 int 23
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 "Intel 6 Series HD Audio" rev 0x05: msi
azalia0: codecs: VIA/0x0397, Intel/0x2805, using VIA/0x0397
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 "Intel 6 Series PCIE" rev 0xb5: msi
pci2 at ppb1 bus 2
ppb2 at pci0 dev 28 function 1 "Intel 6 Series PCIE" rev 0xb5: msi
pci3 at ppb2 bus 3
ppb3 at pci3 dev 0 function 0 "TI XIO2000A PCIE-PCI" rev 0x03
pci4 at ppb3 bus 4
puc0 at pci4 dev 0 function 0 "Oxford Exsys EX-41092" rev 0x00: ports: 1 com
com4 at puc0 port 0 apic 0 int 17: st16650, 32 byte fifo
com4: probed fifo depth: 16 bytes
"Oxford OXmPCI954 Disabled" rev 0x00 at pci4 dev 0 function 1 not configured
ppb4 at pci0 dev 28 function 3 "Intel 6 Series PCIE" rev 0xb5: msi
pci5 at ppb4 bus 5
re0 at pci5 dev 0 function 0 "Realtek 8168" rev 0x06: RTL8168E/8111E-VL 
(0x2c80), msi, address c8:60:00:6e:5f:31
rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 5
ppb5 at pci0 dev 28 function 5 "Intel 6 Series PCIE" rev 0xb5: msi
pci6 at ppb5 bus 6
"ASMedia ASM1042 xHCI" rev 0x00 at pci6 dev 0 function 0 not configured
ehci1 at pci0 dev 29 function 0 "Intel 6 Series USB" rev 0x05: apic 0 int 23
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "Intel EHCI r

Re: openssh

2014-07-02 Thread Gregory Edigarov

On 07/02/2014 04:40 PM, Nick Holland wrote:

On 07/02/14 09:08, Gregory Edigarov wrote:

On 07/01/2014 02:20 PM, Nick Holland wrote:

On 07/01/14 07:00, Gregory Edigarov wrote:

Hello,

Just out for curiosity.
what is the fastest and lightest in cpu terms algorithm in ssh?

As someone who has worked with lots of really old and weak processors
(and still used the defaults)...I must ask, why?  If this matters to
you, I'd suggest getting a better computer, not dumbing-down SSH.  Yes,
using ssh on a 25mhz sparc is annoying, but then, so is almost
everything else you do on those machines.  A 20% change one way or
another won't change the annoying factor enough to worry about.

And maybe more important: why aren't you just testing what YOU care
about on YOUR system and answering your own question?  I suspect you may
see different answers on different processors and different tasks.
I.e., what matters? connection time?  throughput?  On the client or server?

And if you have difficulty answering, maybe the answer is "doesn't
really matter, just use the defaults".

Nick.


because I need to scp some 90-100G  of data from a VERY busy server over
internet on a regular basis and I don't
want scp eat any cpu at all, which in case of encryption is unavoidable).

then, in the middle I have a firewall, that is out of my control, only
allowing connections to 22 port to that server.

Hope my explanation is enough

not really, but regardless, YOU still need to do experiments on YOUR
systems.  And I still think fiddling with the encryption knob is the
wrong knob.  Will it change something?  Sure.  Not much, however.

What is busy?  if "busy" is CPU, nice(1) is your friend.  if busy is
disk, chewing some CPU or even rate limiting may be your friend.  If you
are generating that much new data regularly, you may well have more of a
disk issue than a CPU issue.  If it isn't all new data, look at rsync --
more cpu for less disk and network I/O.

Try compression on vs. off (the results of this are usually easier to
explain after the fact than to predict before.  Shouldn't be the case, I
know, but I've bet wrong too many times).

Fiddle with the rate limiting of scp.  Note that the number you specify
is not terribly absolute -- don't take your available bandwidth and
claim 80% and think magic will happen, you will have to experiement with
values, and leave it sit for a while to let the buffers do their thing.

Then of course, there's the "if you don't like the answers, change the
question" strategy -- drop another machine behind the firewall with a
lower impact way of transfering data -- NFS? FTP?  You are again going
to have to experiement -- then SCP off that machine instead of your
overloaded box.  If the data is logs, you probably want to be syslogging
to another box anyway.

Some time back, TedU@ wrote a nifty little programlette he called
"disknice" -- google for that, you'll find it.  It yanks the program you
have it running away from the CPU (and thus, disk, etc.) periodically,
letting other tasks have at it.  I use it to back up some data from my
laptop's disk to a SD card on boot with rsync, before, it killed the
system performance until it was done.  Now it takes longer, but I don't
feel it happening.  Maybe this helps you in some way.
Thanks for the insight NIck. I will seriously think about second machine 
approach.
The data I need to copy are in a way something like logs, although they 
are coming

from some technological equipment.



Re: openssh

2014-07-02 Thread Gregory Edigarov

On 07/01/2014 02:20 PM, Nick Holland wrote:

On 07/01/14 07:00, Gregory Edigarov wrote:

Hello,

Just out for curiosity.
what is the fastest and lightest in cpu terms algorithm in ssh?

As someone who has worked with lots of really old and weak processors
(and still used the defaults)...I must ask, why?  If this matters to
you, I'd suggest getting a better computer, not dumbing-down SSH.  Yes,
using ssh on a 25mhz sparc is annoying, but then, so is almost
everything else you do on those machines.  A 20% change one way or
another won't change the annoying factor enough to worry about.

And maybe more important: why aren't you just testing what YOU care
about on YOUR system and answering your own question?  I suspect you may
see different answers on different processors and different tasks.
I.e., what matters? connection time?  throughput?  On the client or server?

And if you have difficulty answering, maybe the answer is "doesn't
really matter, just use the defaults".

Nick.

because I need to scp some 90-100G  of data from a VERY busy server over 
internet on a regular basis and I don't

want scp eat any cpu at all, which in case of encryption is unavoidable).

then, in the middle I have a firewall, that is out of my control, only 
allowing connections to 22 port to that server.


Hope my explanation is enough

--
With best regards,
 Gregory Edigarov



openssh

2014-07-01 Thread Gregory Edigarov

Hello,

Just out for curiosity.
what is the fastest and lightest in cpu terms algorithm in ssh?

--
With best regards,
 Gregory Edigarov



Re: nat-to private address

2014-06-26 Thread Gregory Edigarov

On 06/26/2014 04:09 AM, Tuyosi Takesima wrote:

hi,all.
I tried in various ways, but I can not  do  'nat-to private address'.
  I think that nat-to global address is OK  but  nat-to   private address is
NO .

Is there another way (for example rdr, rdr-to) ?
I myself can't do .
sorry for poor english.


That depends on what you want to achieve.
sometimes you just need a route to the right destination  pointing to 
the right interface.


--
With best regards,
Gregory Edigarov



Re: OpenSMTPD routing incoming mail

2014-06-02 Thread Gregory Edigarov

On 06/02/2014 02:14 PM, Martijn Rijkeboer wrote:

Hi,


# incoming mail for our domains is relayed to "i-mail" server
accept from any for domain  relay hostname i-mail

But this will also relay non existing mailboxes. Any suggestions for that?

Kind regards,


Martijn Rijkeboer


my solution would be:


accept from any for domain d1.com virtual  relay hostname i-mail



Re: Happy Birthday, Theo

2014-05-20 Thread Gregory Edigarov

On 05/19/2014 01:03 PM, Marcus MERIGHI wrote:

Happy Birthday, Theo. Thanks for doing your thing.

Others: please remember to donate/buy.

Bye, Marcus


Happy Birthday. May the Force be with you. Thank you and warmest regards.



Re: BGP - IP Blackhole

2014-04-17 Thread Gregory Edigarov

On 04/17/2014 12:24 PM, Tristan PILAT wrote:

2014-04-15 18:42 GMT+02:00 Laurent Caron (Mobile) 
:


On 14 avril 2014 17:57:53 CEST, Tristan PILAT 
wrote:

match from any community 64514:888 set nexthop blackhole


Hi,

Make sure you dont accept from any but eg from group customers, make sure
the address *does* belong to your customers space (to avoid a customer
installing a blackhole route on a route you advertise).
Make sure you do strip 64514:888 from other peers.
...


And what about the client side ? Which command should he enter if he
wishes
to blackhole ip 1.2.3.4 eg

Is it something like that ? bgpctl network add 1.2.3.4/32 community
64514:888

Exactly.

Hi,

Thanks for your reply ! I just tested this in my lab and it's working like
a charm but only if I set "allow from any inet prefixlen 8 - 32" and this
is annoying.

Is there a way to make this work with "allow from any inet prefixlen 8 -
24" to accept /32 only for the blackhole ?

--
Tristan

like this:

allow from any inet prefixlen 8 - 24
allow from any inet prefixlen 32 community 64514:888



Re: opensmtpd tempfails every mail (even local)

2014-04-07 Thread Gregory Edigarov

On 04/07/2014 12:57 PM, Gilles Chehade wrote:

On Mon, Apr 07, 2014 at 12:13:06PM +0300, Gregory Edigarov wrote:

Helio,

configs are just reduced to the famous

[...]

system is current as of  Sat Apr  5 19:05:54 EEST 2014


Hi,

Did you follow the steps at:

 http://www.openbsd.org/faq/current.html#20140313



Thanks, Gilles.
I thought I followed them, but I didn't really.
My bad, and sorry for the buzz.



opensmtpd tempfails every mail (even local)

2014-04-07 Thread Gregory Edigarov

Helio,

configs are just reduced to the famous

listen on lo0

table aliases db:/etc/mail/aliases.db
table secret db:/etc/mail/secret.db


accept for local alias   deliver to mbox
accept for any relay

aliases rebuilt ok,

# smtpd -d
debug: init ssl-tree
info: OpenSMTPD 5.4.3 starting
debug: bounce warning after 4h
debug: using "fs" queue backend
debug: using "ramqueue" scheduler backend
debug: using "ram" stat backend
info: startup [debug mode]
debug: parent_send_config_ruleset: reloading
debug: parent_send_config_mfa: reloading
debug: parent_send_config: configuring pony process
debug: queue: done loading queue into scheduler
mfa: building simple chains...
mfa: building complex chains...
mfa: done building complex chains
mfa: done building default chain
debug: mfa ready
debug: smtp: listen on 127.0.0.1 port 25 flags 0x0 pki ""
debug: smtp: listen on IPv6:fe80::1%lo0 port 25 flags 0x0 pki ""
debug: smtp: listen on IPv6:::1 port 25 flags 0x0 pki ""
debug: smtp: will accept at most 501 clients
debug: smtpd: scanning offline queue...
debug: smtpd: offline scanning done
debug: smtp: new client on listener: 0x807d0569680
smtp-in: New session a390aa9f48443a3d from host 1000@localhost [local]
smtp-in: Failed command on session a390aa9f48443a3d: "MAIL 
FROM:  " => 421 4.3.0: Temporary Error

smtp-in: Closing session a390aa9f48443a3d
debug: smtp: 0x809d846: deleting session: done

system is current as of  Sat Apr  5 19:05:54 EEST 2014



Re: building yesterday's (and today's) -current

2014-04-02 Thread Gregory Edigarov

On 04/02/2014 07:33 PM, Ted Unangst wrote:

On Wed, Apr 02, 2014 at 19:01, Gregory Edigarov wrote:

On 04/02/2014 06:21 PM, Ted Unangst wrote:

Your perl install is broken. Install a snapshot/rebuild perl/repair it
somehow.


ok, installed snapshot, perl rebuilt(and installed) ok, made sure no
5.16 leftover are present,but libssl fails still:

===> man
pod2man --official --release="OpenBSD 5.5" --center=OpenSSL --section=3
--name=ASN1_OBJECT_NEW
/usr/src/lib/libssl/man/../src/doc/crypto/ASN1_OBJECT_new.pod >
ASN1_OBJECT_new.3
Perl API version v5.16.0 of Encode does not match v5.18.0 at
/usr/libdata/perl5/XSLoader.pm line 92.

I did a build yesterday. It worked. Somewhere you have an Encode 5.16
file. You have to find it and delete it.

Something like this may help find files older than the last build.

find . \! -cnewer /usr/lib/crt0.o

I don't know all the places perl will look for modules (ktrace may be
another solution). But /usr/libdata/perl5/*-openbsd/*/auto would be
one place to start looking.


yes, thank you.
somehow there was one stray Encode.pm under 
/usr/local/libdata/perl5/site_perl/amd64-openbsd


sorry for the buzz...



Re: building yesterday's (and today's) -current

2014-04-02 Thread Gregory Edigarov

On 04/02/2014 06:21 PM, Ted Unangst wrote:

On Wed, Apr 02, 2014 at 18:14, Gregory Edigarov wrote:

pod2man --official --release="OpenBSD 5.5" --center=OpenSSL --section=3
--name=ASN1_OBJECT_NEW
/usr/src/lib/libssl/man/../src/doc/crypto/ASN1_OBJECT_new.pod >
ASN1_OBJECT_new.3
Perl API version v5.16.0 of Encode does not match v5.18.0 at
/usr/libdata/perl5/XSLoader.pm line 92.

Your perl install is broken. Install a snapshot/rebuild perl/repair it
somehow.

ok, installed snapshot, perl rebuilt(and installed) ok, made sure no 
5.16 leftover are present,but libssl fails still:


===> man
pod2man --official --release="OpenBSD 5.5" --center=OpenSSL --section=3 
--name=ASN1_OBJECT_NEW 
/usr/src/lib/libssl/man/../src/doc/crypto/ASN1_OBJECT_new.pod > 
ASN1_OBJECT_new.3
Perl API version v5.16.0 of Encode does not match v5.18.0 at 
/usr/libdata/perl5/XSLoader.pm line 92.

Compilation failed in require at /usr/libdata/perl5/Pod/Man.pm line 34.
BEGIN failed--compilation aborted at /usr/libdata/perl5/Pod/Man.pm line 34.
Compilation failed in require at /usr/bin/pod2man line 19.
BEGIN failed--compilation aborted at /usr/bin/pod2man line 19.
*** Error 255 in man (Makefile:1127 'ASN1_OBJECT_new.3': @pod2man 
--official --release="OpenBSD 5.5" --center=OpenSSL --section=3 
--name=ASN...)

*** Error 1 in /usr/src/lib/libssl (:48 'all')



Re: building yesterday's (and today's) -current

2014-04-02 Thread Gregory Edigarov

On 04/01/2014 02:12 AM, Stuart Henderson wrote:

On 2014-03-31, Gregory Edigarov  wrote:

Hi,
followed faq/current.html,

===> man
pod2man --official --release="OpenBSD 5.5" --center=OpenSSL --section=3
--name=ASN1_OBJECT_NEW
/usr/src/lib/libssl/man/../src/doc/crypto/ASN1_OBJECT_new.pod >
ASN1_OBJECT_new.3
Perl API version v5.16.0 of Encode does not match v5.18.0 at
/usr/libdata/perl5/XSLoader.pm line 92.
Compilation failed in require at /usr/libdata/perl5/Pod/Man.pm line 34.
BEGIN failed--compilation aborted at /usr/libdata/perl5/Pod/Man.pm line 34.
Compilation failed in require at /usr/bin/pod2man line 19.
BEGIN failed--compilation aborted at /usr/bin/pod2man line 19.
*** Error 255 in man (Makefile:1127 'ASN1_OBJECT_new.3': @pod2man
--official --release="OpenBSD 5.5" --center=OpenSSL --section=3
--name=ASN...)
*** Error 1 in /usr/src/lib/libssl (:48 'all')

--
With best regards,
Gregory Eddigarov



Make sure that your obj/ dir is clean. If you still run into problems
after that, I suggest installing a snapshot which should fix them.

The today's (Apr 2) snapshot is installed ok, removed /usr/obj, run cd 
/usr/src && make  obj.

still the same problem:
===> man
pod2man --official --release="OpenBSD 5.5" --center=OpenSSL --section=3 
--name=ASN1_OBJECT_NEW 
/usr/src/lib/libssl/man/../src/doc/crypto/ASN1_OBJECT_new.pod > 
ASN1_OBJECT_new.3
Perl API version v5.16.0 of Encode does not match v5.18.0 at 
/usr/libdata/perl5/XSLoader.pm line 92.

Compilation failed in require at /usr/libdata/perl5/Pod/Man.pm line 34.
BEGIN failed--compilation aborted at /usr/libdata/perl5/Pod/Man.pm line 34.
Compilation failed in require at /usr/bin/pod2man line 19.
BEGIN failed--compilation aborted at /usr/bin/pod2man line 19.
*** Error 255 in man (Makefile:1127 'ASN1_OBJECT_new.3': @pod2man 
--official --release="OpenBSD 5.5" --center=OpenSSL --section=3 
--name=ASN...)

*** Error 1 in /usr/src/lib/libssl (:48 'all')



building yesterday's (and today's) -current

2014-03-31 Thread Gregory Edigarov

Hi,
followed faq/current.html,

===> man
pod2man --official --release="OpenBSD 5.5" --center=OpenSSL --section=3 
--name=ASN1_OBJECT_NEW 
/usr/src/lib/libssl/man/../src/doc/crypto/ASN1_OBJECT_new.pod > 
ASN1_OBJECT_new.3
Perl API version v5.16.0 of Encode does not match v5.18.0 at 
/usr/libdata/perl5/XSLoader.pm line 92.

Compilation failed in require at /usr/libdata/perl5/Pod/Man.pm line 34.
BEGIN failed--compilation aborted at /usr/libdata/perl5/Pod/Man.pm line 34.
Compilation failed in require at /usr/bin/pod2man line 19.
BEGIN failed--compilation aborted at /usr/bin/pod2man line 19.
*** Error 255 in man (Makefile:1127 'ASN1_OBJECT_new.3': @pod2man 
--official --release="OpenBSD 5.5" --center=OpenSSL --section=3 
--name=ASN...)

*** Error 1 in /usr/src/lib/libssl (:48 'all')

--
With best regards,
  Gregory Eddigarov



Re: Migrate to SSD

2014-01-02 Thread Gregory Edigarov

On 01/02/2014 11:24 AM, Stuart Henderson wrote:

On 2014-01-02, Laurence Rochfort  wrote:

Hello,

I want to migrate my current OpenBSD 5.4 installation to an SSD, which is
slightly larger than my present rotational drive.

What are people's suggestions for doing this? I was thinking of DDing and
increasing the size of /home and /usr/local, but surely there's a better
way?


When moving to a different disk, I usually just do a basic install of
the same OS version (and backup/restore software if not using something
in base) on the new disk with appropriate partition sizes, then restore
from backups.

dd is the wrong tool for this job. Even if you didn't want to change
partition sizes I think dd would be the wrong tool.


but dump and restore on per filesystem basis would suffice





Also, are there any /etc/fstab options recommended for SSDs?


No need to fiddle, the defaults are fine.





--
With best regards,
 Gregory Edigarov



ssh & rsh

2013-12-23 Thread Gregory Edigarov

Hello,

With rsh removed from base, and ssh now not falling back to rsh mode, shouldn't 
rsh be available from ports/pkgs?
(I know where I can get it all from cvs ;-) so it is more a question of policy, 
then technical.

--
With best regards,
 Gregory Edigarov



Re: outgoing smtpd: Too many recipients

2013-12-17 Thread Gregory Edigarov

On 12/17/2013 03:32 PM, Matthew Weigel wrote:

On 12/17/2013 5:37 AM, Jan Stary wrote:


That's the relay which is rejecting my messages
if there are "too many recipients" in them.

I deleted all the failed ones from my queue
and after some time, resent to the individual recipients (~120)
one by one with a bit of grepawkery; that went fine.


http://www.sendmail.com/sm/open_source/docs/m4/tweaking_config.html (look for
"MaxRecipientsPerMessage")

It seems that in this case sendmail really does just want the sending mailer
to retry those addresses later.

You might want to do a test run and just let deferred recipients sit for a
while, to see if they do eventually get delivered.



But I do not think sendmail(or whatever) server is under TS control.

--
With best regards,
 Gregory Edigarov



Re: outgoing smtpd: Too many recipients

2013-12-17 Thread Gregory Edigarov

Jan,

Sorry, but I do not see what your problem is?
If you need to send an email to a group of people that's significantly bigger 
allowed on your relay, why don't you just try to implement a very simple 
script, that will send your mail to one recipient at a time.


--
With best regards,
     Gregory Edigarov



Re: Unbound in base

2013-11-26 Thread Gregory Edigarov

On 11/23/2013 04:29 PM, Martijn Rijkeboer wrote:

Hi,

Just out of curiosity, what is holding the linking of Unbound to the
build back? I'm not complaining since I'm using Unbound from ports
without issues.


I asked the question before.


The primary cause of this is unbound is not a drop-in replacement for bind, 
they use different utilities, like unbound use drill, and bind use dig and 
friends.


--
With best regards,
     Gregory Edigarov



Re: interruptions

2013-11-14 Thread Gregory Edigarov

On 11/14/2013 03:19 PM, Alexandre Ratchov wrote:

On Thu, Nov 14, 2013 at 01:16:41PM +0400, Alexander Pakhomov wrote:


1) What interruptions load should be considered normal? I used to
think even 10% is too high.


yes, though it depends on the workload


I want to investigate the problem and profile interruption handlers.
2) Is there any OpenBSD kernel profiling support? High resolution clocks, tick 
counters.


do you observe the same problem with the GENERIC kernel?


it will also be nice to provide vmstat -i output for the cases, so people could 
see where interrupts are coming from


--
With best regards,
 Gregory Edigarov



Re: Request to OpenBSD Dev's - Beer on offer

2013-10-29 Thread Gregory Edigarov

On 10/28/2013 06:54 PM, Andy wrote:

Hi all,

Would any of the esteemed OpenBSD developers be interested in adding support 
for BFD (Bidirectional Forward Detection) to OpenBSD.

The protocol itself seems pretty simple and provides a sub-second keep-alive 
mechanism to monitor links for routes. E.g. Upon BFD failure BGP or OSPF can be 
torn down etc thus allowing for sub-second re-convergence of i/eBGP!

I can only offer a crate of beer to anyone who has the skills and is willing :)

'+1's welcome from others who would be interested to show signs of 
support/interest..


I still don't see how is this different from ifstated?
You can use it to ping your neighbour then issue bgpctl neighbor 
$your_fallen_neighbour down command.


--
With best regards,
 Gregory Edigarov



Re: Sorry OpenBSD people, been a bit busy

2013-10-07 Thread Gregory Edigarov

Then again, I would find that rather offensive, given what he is saying on the 
header:


Since the OBSD people are basically fucking dumber than a single sack of hammers
THIS IS A PARODY ACCOUNT.


On 10/07/2013 03:48 AM, dera...@cvs.openbsd.org wrote:

Hi, yeah, it is really me.  I find it strange posting to misc,
starting an email thread.  Normally I finish the threads here.

Most OpenBSD developers have known for a while, but I think it is
important to tell the greater community that I've been a bit busy for
about the last year.  I have not been paying as much attention to
OpenBSD development as I'm expected to.  Luckily, other developers
have done a great job keeping it on track.

Why?  With a group of others, I started setting up an Internet
Exchange in Calgary, and this has taken much time because it is highly
politicized and has encountered some resistance.

http://yycix.ca
https://en.wikipedia.org/wiki/YYCIX_Internet_Exchange_Community_Ltd

Now, why do I mention this in relation to OpenBSD?  Well, at the end
of 2007 someone decided to open an impersonation account on twitter in
my name, and start sending a mix of things I have said (see wikiquote
for instance), with things that I would never say.  That account is
http://twitter.com/theoderaadt

A few notes:  The account has now changed to declare that it is a
parody account and renamed to "Not Theo de Raadt", as of a few days
ago.  If you read back into the past, you will see true character of
the account and the individual.

People in the local community were directed to the account, to give a
negative, if not slanderous, view of my character.  The ones directing
them have high-profile roles in the community, so people would take
what they say as true.  Since I am the network manager for the
exchange equipment, this by extension was meant to hurt YYCIX.

Why would stewards of important infrastructure projects deliberately
spread such false stories?

I will not mention names.  I don't need to; many can dig a little and
figure out who those actors are.  As a hint, search a little bit
higher.

Finally, one thing that particularily bothers me in the old postings
is the mention of my old friend Itojun, a very dedicated developer of
IPv6.  As many of you know, he and John Postel are the only two
internet architects currently honoured on an annual basis by the
Internet Society in the form of an award.

http://www.internetsociety.org/what-we-do/grants-and-awards/awards/itojun-service-award

Layers of hurt being thrown around.  Why?





--
With best regards,
 Gregory Edigarov



Re: software stack for portable application

2013-10-02 Thread Gregory Edigarov

On 09/26/2013 01:03 AM, Devin Reade wrote:

I have a software project that is initially targeted at Linux but
that I would like to have running on OpenBSD as well.  This being
new development, I have the flexibility of selecting the software
stack and I'd prefer to use one that minimizes the pain of making
it work on other platforms. Primary concern are workstation-based
platforms (OS-X and MS) but I'd prefer to avoid shooting myself in
the foot for IOS/Android if at all feasible.

So I'm soliciting recommendations for a software stack that will
work on Linux and OpenBSD, and hopefully others.  From a broad
perspective, I'm looking at:

- C/C++ source language
- graphical client abstraction (thick client, not browser based)
- network abstraction
- threading abstraction
- local disk I/O
- minimizing dependencies on any particular window manager
- libraries/frameworks that are sufficiently mainstream as to
  be unlikely to be abandon-ware in five years' time
- open source licensed (preferably BSD/Apache style, LGPL would
  be ok, GPL if necessary)


for a desktop. I would go with fltk library.


--
With best regards,
 Gregory Edigarov



Re: general question about usb stack and ups

2013-09-20 Thread Gregory Edigarov

On 09/20/2013 03:19 PM, Gregory Edigarov wrote:

On 09/19/2013 12:20 PM, Gregory Edigarov wrote:

Hello, everybody.

A few days ago I've bought a new ups, as a replacement for  my old one, which 
got it's last way to junkyard.
The old one had RS232 порт, and the new one is an USB ups.
Trying different ways to connect it to OpenBSD, but everything I've tried fails.
The UPS reports itself as:

uhidev2 at uhub3 port 2 configuration 1 interface 0 "ATCL FOR UPS ATCL FOR UPS" 
rev 2.00/0.00 addr 4
uhidev2: iclass 3/0
uhid2 at uhidev2: input=8, output=8, feature=0

I've connected it to Windows via USB, and installed software which came with 
it, snooped the protocol, and I am dead sure it is an old and frayed 
Megatec/Q1, which should work with blazer_usb driver from nut. But it isn't. 
Seems I've tried nearly every option and allowed option combinations with no 
result.
I cannot get you the usbdevs && usbhidctl right now, because I left it 
connected to windows, and it is at home.

So, my question is: could it the differences in usb stack  between various 
OSes, that are giving the trouble? Will try connect it to linux and NetBSD 
later, but I am willing to solve the puzzle with OpenBSD.



Ok, guys. so here's the continuation of story, no success so far, but may be 
somebody will sched a light...
Having add the UPS as a quirk to usb_quirks.c (thanks Martin) and recompiled 
the kernel I have:
# nut-scanner
Cannot load SNMP library (libnetsnmp) : file not found. SNMP search disabled.
Cannot load XML library (libneon) : file not found. XML search disabled.
Scanning USB bus.
No start IP, skipping NUT bus (old connect method)
Scanning NUT bus (avahi method).
Failed to create client: Daemon not running
[nutdev1]
 driver = "blazer_usb"
 port = "auto"
 vendorid = "0001"
 productid = ""
 product = "ATCL FOR UPS"
 serial = "ATCL FOR UPS"
 vendor = "ATCL FOR UPS"
 bus = "001"

I have this in my ups.conf:

[prologix]
 driver = "blazer_usb"
 port = "auto"
 vendorid = "0001"
 productid = ""

running blazer_usb in debug mode:
...
1.096515 Checking device (0001/) (001/004)
1.100225 - VendorID: 0001
1.100237 - ProductID: 
1.100245 - Manufacturer: unknown
1.100252 - Product: ATCL FOR UPS
1.100269 - Serial Number: ATCL FOR UPS
1.100291 - Bus: 001
1.100310 Trying to match device
1.100321 Device matches
1.100721 send: QS
1.100732 read: QS
1.100741 blazer_status: short reply
1.100749 Status read 1 failed
1.100764 send: QS
1.100787 read: QS
1.100805 blazer_status: short reply
1.100811 Status read 2 failed
1.100822 send: QS
1.100827 read: QS
1.100838 blazer_status: short reply
1.100843 Status read 3 failed
1.100855 Trying megatec/old protocol...
1.100861 send: D
1.100871 read: D
1.100876 blazer_status: short reply
1.100888 Status read 1 failed
1.100894 send: D
1.100918 read: D
1.100929 blazer_status: short reply
1.100934 Status read 2 failed
1.100940 send: D
1.100950 read: D
1.100955 blazer_status: short reply
1.100967 Status read 3 failed
1.100972 Trying zinto protocol...
1.100983 send: Q1
1.102258 read: Input/output error
1.102300 blazer_status: short reply
1.102312 Status read 1 failed
1.117362 Checking device (8086/) (000/001)


The input/output error &&  short reply are strange in here.
I also tried run it as an usbhid-ups with other kernel:
[p1]
 driver ="usbhid-ups"
 port="auto"
 vendorid = "0001"
 productid = ""

Controller /dev/usb1:
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(0x0024), 
Intel(0x8087), rev 0.00
   port 1 addr 3: low speed, power 100 mA, config 1, product 0x0103(0x0103), 
vendor 0x04f3(0x04f3), rev 1.07
   port 2 addr 4: low speed, power 98 mA, config 1, ATCL FOR UPS(0x), ATCL 
FOR UPS(0x0001), rev 0.00, iSerialNumber ATCL FOR UPS
   port 3 addr 5: low speed, power 100 mA, config 1, Optical Mouse(0x003a), 
Genius(0x0458), rev 1.00
   port 4 powered
   port 5 powered
   port 6 powered
  port 2 powered

# usbhid-ups -a p1 -DD
Network UPS Tools - Generic HID driver 0.37 (2.6.5)
USB communication driver 0.31
0.00 debug level is '18'
0.000377 upsdrv_initups...
0.033537 Checking device (8086/) (000/001)
0.033730 - VendorID: 8086
0.0

Re: general question about usb stack and ups

2013-09-20 Thread Gregory Edigarov

On 09/19/2013 12:20 PM, Gregory Edigarov wrote:

Hello, everybody.

A few days ago I've bought a new ups, as a replacement for  my old one, which 
got it's last way to junkyard.
The old one had RS232 порт, and the new one is an USB ups.
Trying different ways to connect it to OpenBSD, but everything I've tried fails.
The UPS reports itself as:

uhidev2 at uhub3 port 2 configuration 1 interface 0 "ATCL FOR UPS ATCL FOR UPS" 
rev 2.00/0.00 addr 4
uhidev2: iclass 3/0
uhid2 at uhidev2: input=8, output=8, feature=0

I've connected it to Windows via USB, and installed software which came with 
it, snooped the protocol, and I am dead sure it is an old and frayed 
Megatec/Q1, which should work with blazer_usb driver from nut. But it isn't. 
Seems I've tried nearly every option and allowed option combinations with no 
result.
I cannot get you the usbdevs && usbhidctl right now, because I left it 
connected to windows, and it is at home.

So, my question is: could it the differences in usb stack  between various 
OSes, that are giving the trouble? Will try connect it to linux and NetBSD 
later, but I am willing to solve the puzzle with OpenBSD.



Ok, guys. so here's the continuation of story, no success so far, but may be 
somebody will sched a light...
Having add the UPS as a quirk to usb_quirks.c (thanks Martin) and recompiled 
the kernel I have:
  
# nut-scanner

Cannot load SNMP library (libnetsnmp) : file not found. SNMP search disabled.
Cannot load XML library (libneon) : file not found. XML search disabled.
Scanning USB bus.
No start IP, skipping NUT bus (old connect method)
Scanning NUT bus (avahi method).
Failed to create client: Daemon not running
[nutdev1]
driver = "blazer_usb"
port = "auto"
vendorid = "0001"
productid = ""
product = "ATCL FOR UPS"
serial = "ATCL FOR UPS"
vendor = "ATCL FOR UPS"
bus = "001"

I have this in my ups.conf:
 
[prologix]

driver = "blazer_usb"
port = "auto"
vendorid = "0001"
productid = ""

running blazer_usb in debug mode:
...
   1.096515 Checking device (0001/) (001/004)
   1.100225 - VendorID: 0001
   1.100237 - ProductID: 
   1.100245 - Manufacturer: unknown
   1.100252 - Product: ATCL FOR UPS
   1.100269 - Serial Number: ATCL FOR UPS
   1.100291 - Bus: 001
   1.100310 Trying to match device
   1.100321 Device matches
   1.100721 send: QS
   1.100732 read: QS
   1.100741 blazer_status: short reply
   1.100749 Status read 1 failed
   1.100764 send: QS
   1.100787 read: QS
   1.100805 blazer_status: short reply
   1.100811 Status read 2 failed
   1.100822 send: QS
   1.100827 read: QS
   1.100838 blazer_status: short reply
   1.100843 Status read 3 failed
   1.100855 Trying megatec/old protocol...
   1.100861 send: D
   1.100871 read: D
   1.100876 blazer_status: short reply
   1.100888 Status read 1 failed
   1.100894 send: D
   1.100918 read: D
   1.100929 blazer_status: short reply
   1.100934 Status read 2 failed
   1.100940 send: D
   1.100950 read: D
   1.100955 blazer_status: short reply
   1.100967 Status read 3 failed
   1.100972 Trying zinto protocol...
   1.100983 send: Q1
   1.102258 read: Input/output error
   1.102300 blazer_status: short reply
   1.102312 Status read 1 failed
   1.117362 Checking device (8086/) (000/001)


The input/output error &&  short reply are strange in here.
I also tried run it as an usbhid-ups with other kernel:
[p1]
driver ="usbhid-ups"
port="auto"
vendorid = "0001"
productid = ""

Controller /dev/usb1:
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(0x0024), 
Intel(0x8087), rev 0.00
  port 1 addr 3: low speed, power 100 mA, config 1, product 0x0103(0x0103), 
vendor 0x04f3(0x04f3), rev 1.07
  port 2 addr 4: low speed, power 98 mA, config 1, ATCL FOR UPS(0x), ATCL 
FOR UPS(0x0001), rev 0.00, iSerialNumber ATCL FOR UPS
  port 3 addr 5: low speed, power 100 mA, config 1, Optical Mouse(0x003a), 
Genius(0x0458), rev 1.00
  port 4 powered
  port 5 powered
  port 6 powered
 port 2 powered

# usbhid-ups -a p1 -DD
Network UPS Tools - Generic HID driver 0.37 (2.6.5)
USB communication driver 0.31
   0.00 debug level is '18'
   0.000377 upsdrv_initups...
   0.033537 Checking device (8086/) (000/001)
   0.033730 - VendorID: 8086
   0.033739 - ProductID: 
   0.033754 - Manufacturer: Intel
   0.033759 - Product: EHCI root hub
   0.033771

Re: general question about usb stack and ups

2013-09-19 Thread Gregory Edigarov

On 09/19/2013 04:18 PM, Stuart Henderson wrote:

On 2013-09-19, Gregory Edigarov  wrote:

I've connected it to Windows via USB, and installed software which
came with it, snooped the protocol, and I am dead sure it is an old and
frayed Megatec/Q1, which should work with blazer_usb driver from nut.
But it isn't. Seems I've tried nearly every option and allowed option
combinations with no result.


Have you tried it with just usbhid-ups?

Yes, with no result.

Have you tried running nut-scanner to see what it suggests?


Have just tried it remotely without the ups connected, just to see if and how 
that works.

# nut-scanner -U
Cannot load SNMP library (libnetsnmp) : file not found. SNMP search disabled.
Cannot load XML library (libneon) : file not found. XML search disabled.
Scanning USB bus.
Segmentation fault (core dumped)
#

will retest with ups connected, once I will be at home.
--
With best regards,
 Gregory Edigarov



Re: general question about usb stack and ups

2013-09-19 Thread Gregory Edigarov

On 09/19/2013 12:20 PM, Gregory Edigarov wrote:

Hello, everybody.

A few days ago I've bought a new ups, as a replacement for  my old one, which 
got it's last way to junkyard.
The old one had RS232 порт, and the new one is an USB ups.
Trying different ways to connect it to OpenBSD, but everything I've tried fails.
The UPS reports itself as:

uhidev2 at uhub3 port 2 configuration 1 interface 0 "ATCL FOR UPS ATCL FOR UPS" 
rev 2.00/0.00 addr 4
uhidev2: iclass 3/0
uhid2 at uhidev2: input=8, output=8, feature=0

I've connected it to Windows via USB, and installed software which came with 
it, snooped the protocol, and I am dead sure it is an old and frayed 
Megatec/Q1, which should work with blazer_usb driver from nut. But it isn't. 
Seems I've tried nearly every option and allowed option combinations with no 
result.
I cannot get you the usbdevs && usbhidctl right now, because I left it 
connected to windows, and it is at home.

So, my question is: could it the differences in usb stack  between various 
OSes, that are giving the trouble? Will try connect it to linux and NetBSD 
later, but I am willing to solve the puzzle with OpenBSD.

Oh, and another question: is there a way to quickly change usb device 
attachment? I.e. having a device that is attached as UHID, is there a way to 
reattach it as UGEN?

 



--
With best regards,
 Gregory Edigarov



general question about usb stack and ups

2013-09-19 Thread Gregory Edigarov

Hello, everybody.

A few days ago I've bought a new ups, as a replacement for  my old one, which 
got it's last way to junkyard.
The old one had RS232 порт, and the new one is an USB ups.
Trying different ways to connect it to OpenBSD, but everything I've tried fails.
The UPS reports itself as:

uhidev2 at uhub3 port 2 configuration 1 interface 0 "ATCL FOR UPS ATCL FOR UPS" 
rev 2.00/0.00 addr 4
uhidev2: iclass 3/0
uhid2 at uhidev2: input=8, output=8, feature=0

I've connected it to Windows via USB, and installed software which came with 
it, snooped the protocol, and I am dead sure it is an old and frayed 
Megatec/Q1, which should work with blazer_usb driver from nut. But it isn't. 
Seems I've tried nearly every option and allowed option combinations with no 
result.
I cannot get you the usbdevs && usbhidctl right now, because I left it 
connected to windows, and it is at home.

So, my question is: could it the differences in usb stack  between various 
OSes, that are giving the trouble? Will try connect it to linux and NetBSD 
later, but I am willing to solve the puzzle with OpenBSD.

--
With best regards,
 Gregory Edigarov



Re: BGPD, filtering announced routes

2013-08-27 Thread Gregory Edigarov

On 08/27/2013 01:11 PM, OCEANET - Cédric BASSAGET wrote:

Hi,

We used to have two cisco routers for BGP, ans we changed for openbsd
servers with bgpd.

I'm looking for a feature that was simple on cisco : re-announce a
learner subnet to a neighbor.

In cisco, I had :



router bgp MY_AS
   bgp router-id 46.226.x.x
   neighbor 46.18.x.x remote-as NEIGH1_AS
   neighbor 46.18.x.x description neigh1
   address-family ipv4
neighbor 46.18.x.x activate
neighbor 46.18.x.x route-map neigh1_voip_in in
neighbor 46.18.x.x route-map neigh1_voip_out out



route-map neigh1_voip_in permit 10
   match ip address prefix-list neigh1_subnets_voip

route-map neigh1_voip_in deny 100
   match ip address prefix-list REFUSE_ALL

route-map neigh1_voip_out permit 10
   match ip address prefix-list voice_subnets
   set as-path prepend MY_AS

route-map neigh1_voip_out deny 100
   match ip address prefix-list REFUSE_ALL



ip prefix-list voice_subnets seq 9 permit 91.213.x.x/24 le 32
<== the subnet I want to redistribute to neigh1
ip prefix-list neigh1_subnets_voip seq 10 permit 46.18.x.x/26 le 32 <==
the subnet that neigh1 announces to me
ip prefix-list REFUSE_ALL seq 10 permit 0.0.0.0/0 le 32

I'm trying to do the same thing with bgpd, but I can't find how.

Any idea ?


like this:
REFUSE_ALL= "{}"
deny  prefix $REFUSE_ALL
allow from 46.18.x.x prefix 46.18.x.x/24 prefixlen <= 32
allow to   46.18.x.x prefix 91.213.x.x/24 prefixlen <= 32 set prepend-self 1
 
--

With best regards,
 Gregory Edigarov



Re: Accept two vlans

2013-08-09 Thread Gregory Edigarov

On 08/08/2013 02:33 PM, Joerg Streckfuss wrote:

Am 07.08.2013 16:20, schrieb Christian Weisgerber:

Well, you can either use two NICs on your gateway, one connected
to a vlan1 port on the switch, the other to vlan2.  Or you can can
set up vlan1 and vlan2 on em0 and connect them to a trunk port on
the switch.  This is straight from my home gateway:

==> /etc/hostname.em0 <==
description Trunk
up

==> /etc/hostname.vlan1 <==
description LAN
vlan 1 vlandev em0
inet 172.16.0.1 255.255.255.0 NONE
inet6 2001:6f8:124a::1

==> /etc/hostname.vlan2 <==
description WLAN
vlan 2 vlandev em0
inet 172.16.1.1 255.255.255.0 NONE
inet6 2001:6f8:124a:1::1


I'm just a little bit curious. Why do you use VLANs instead of just a
physical
interface for each lan (wlan). Is it because VLANs give you a little bit more
flexibility?

Vlans are giving more flexibility and a count of the may be much more then 
count of interfaces physically available
 


By Joerg

[demime 1.01d removed an attachment of type application/pkcs7-signature which 
had a name of smime.p7s]





--
With best regards,
 Gregory Edigarov



Re: Compilers in OpenBSD

2013-08-01 Thread Gregory Edigarov

On 08/01/2013 01:09 AM, h...@riseup.net wrote:

Finally. Someone who's really smart Explained Everything in a solid bug-free 
english text
(shame on me).



For such a brilliant manuscrpit I'd only like to add a simple sub-question:
Are you guys consider Portable C Compiler unsuitable/dead for this race? Or
you just want stable LTS slices of industry-backed compillers?


Well, I think you get the point:

char *compilers[] = {"gcc", "clang", "pcc","whatevercc"};
int i;

for (i=0; i

Re: [Question] Building whitelists so that spamd greylisting can work without users perceiving delivery delays...

2013-07-22 Thread Gregory Edigarov

On 03/28/2013 06:52 PM, Sarah Caswell wrote:

Hi all,

I had a question about greylisting (with spamd) in production.

I've successfully run spamd on firewalls (as a frontend to either barracuda or 
SpamAssassin) and have really liked the reduction in SPAM volume.

Unfortunately my employer's wife does not like the delays that this introduces 
into our mail delivery, since she uses email for quick turn-around 
communication.

The main problem occurs with senders like Gmail, yahoo, hotmail, etc. ...i.e. 
all the senders that have large farms of smtp servers from which they can retry 
delivery after initial greylisting delay.

I know this means I'm not doing proper whitelisting of those major sender 
domains, but I'm at a loss on how to best construct and maintain such a 
whitelist.

Are there any up-to-date lists that already track the MTAs of these large mail 
providers?

Or will this mostly be a DIY effort on my part?

Any thoughts/insights/experiences would be greatly appreciated.

I used to use an rsync'ed uceprotect.net whitelists. then feed them into 
manual-white table of my pf.
works as a charm.


--
With best regards,
 Gregory Edigarov



Re: OpenBGPd: AS path prepend for certain networks only?

2013-06-13 Thread Gregory Edigarov

On 06/13/2013 11:36 AM, Bernd wrote:

Hi,

running OpenBSD 5.3 (amd64) for BGP routing for more than one and a half years 
without any trouble -- thanks guys!

However, as setups evolve, new questions may arise. As far as I get from the 
man pages, it's only possible 'globally' to apply prepending to AS paths:

  prepend-neighbor number
  Prepend the neighbor's AS number times to the AS path.

  prepend-self number
  Prepend the local AS number times to the AS path.

I'd like to do this only for certain networks in our AS, to force ingress and 
egress traffic over a certain uplink -- leaving all other networks untouched by 
this.

Is that possible with OpenBGPd?


something like
 match to your_neighbor_here prefix 192.168.2.0/24 set prepend-self 2
 match from your_neighbor_here some.other.prefix.0/NN set prepend-neighbor 3


--
With best regards,
 Gregory Edigarov



Re: Can't Mount CD-ROM (Newbie)

2013-06-11 Thread Gregory Edigarov
t; rev 0x01: apic 2 int
23

uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x01: apic 2 int
19

uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x01: apic 2 int
18

uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x01: apic 2 int
16

ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x01: apic 2 int
23

usb0 at ehci0: USB revision 2.0

uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1

ppb3 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xe1

pci4 at ppb3 bus 4

pcib0 at pci0 dev 31 function 0 "Intel 82801GB LPC" rev 0x01

pciide0 at pci0 dev 31 function 1 "Intel 82801GB IDE" rev 0x01: DMA,
channel 0 configured to compatibility, channel 1 configured to
compatibility

pciide0: channel 0 disabled (no drives)

pciide0: channel 1 disabled (no drives)

pciide1 at pci0 dev 31 function 2 "Intel 82801GB SATA" rev 0x01: DMA,
channel 0 configured to native-PCI, channel 1 configured to native-PCI

pciide1: using apic 2 int 22 for native-PCI interrupt

atapiscsi0 at pciide1 channel 0 drive 0

scsibus0 at atapiscsi0: 2 targets

cd0 at scsibus0 targ 0 lun 0:  ATAPI
5/cdrom removable

wd0 at pciide1 channel 0 drive 1: 

wd0: 16-sector PIO, LBA48, 305245MB, 625142448 sectors

cd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5

wd0(pciide1:0:1): using PIO mode 4, Ultra-DMA mode 6

usb1 at uhci0: USB revision 1.0

uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1

usb2 at uhci1: USB revision 1.0

uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1

usb3 at uhci2: USB revision 1.0

uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1

usb4 at uhci3: USB revision 1.0

uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1

isa0 at pcib0

isadma0 at isa0

com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo

pckbc0 at isa0 port 0x60/5

pckbd0 at pckbc0 (kbd slot)

pckbc0: using irq 1 for kbd slot

wskbd0 at pckbd0: console keyboard, using wsdisplay0

pcppi0 at isa0 port 0x61

spkr0 at pcppi0

lpt0 at isa0 port 0x378/4 irq 7

wbsio0 at isa0 port 0x2e/2: W83627DHG-P rev 0x73

lm1 at wbsio0 port 0x290/8: W83627DHG

mtrr: Pentium Pro MTRR support

ulpt0 at uhub0 port 1 configuration 1 interface 0 "Brother Industries
product 0x024d" rev 2.00/1.00 addr 2

ulpt0: using bi-directional mode

ugen0 at uhub0 port 1 configuration 1 "Brother Industries product 0x024d"
rev 2.00/1.00 addr 2

ugen1 at uhub0 port 5 "Nokia RM-821|Nokia Lumia 920" rev 2.00/1.00 addr 3

ugen2 at uhub0 port 6 "samsung GT-N8013" rev 2.00/2.26 addr 4

umass0 at uhub0 port 8 configuration 1 interface 0 "Generic Mass Storage
Device" rev 2.00/1.00 addr 5

umass0: using SCSI over Bulk-Only

scsibus1 at umass0: 2 targets, initiator 0

sd0 at scsibus1 targ 1 lun 0:  SCSI0 0/direct
removable

sd1 at scsibus1 targ 1 lun 1:  SCSI0
0/direct removable

sd2 at scsibus1 targ 1 lun 2:  SCSI0
0/direct removable

sd3 at scsibus1 targ 1 lun 3:  SCSI0 0/direct
removable

uhidev0 at uhub0 port 8 configuration 1 interface 1 "Generic Mass Storage
Device" rev 2.00/1.00 addr 5

uhidev0: iclass 3/0, 4 report ids

uhid0 at uhidev0 reportid 4: input=7, output=0, feature=0

uhidev1 at uhub2 port 1 configuration 1 interface 0 "PIXART USB OPTICAL
MOUSE" rev 1.10/1.00 addr 2

uhidev1: iclass 3/1

ums0 at uhidev1: 3 buttons, Z dir

wsmouse0 at ums0 mux 0

uhidev2 at uhub2 port 2 configuration 1 interface 0 "vendor 0x04f3
product 0x0103" rev 2.00/1.07 addr 3

uhidev2: iclass 3/1

ukbd0 at uhidev2: 8 variable keys, 6 key codes

wskbd1 at ukbd0 mux 1

wskbd1: connecting to wsdisplay0

uhidev3 at uhub2 port 2 configuration 1 interface 1 "vendor 0x04f3
product 0x0103" rev 2.00/1.07 addr 3

uhidev3: iclass 3/0, 2 report ids

uhid1 at uhidev3 reportid 1: input=2, output=0, feature=0

uhid2 at uhidev3 reportid 2: input=1, output=0, feature=0

vscsi0 at root

scsibus2 at vscsi0: 256 targets

softraid0 at root

scsibus3 at softraid0: 256 targets

root on wd0a (417c67f1c919f8a0.a) swap on wd0b dump on wd0b

I can see OpenBSD dedected the CD-ROM in this line (if i understood
correctly): cd0 at scsibus0 targ 0 lun 0:  ATAPI 5/cdrom removable

But it still isn't mounts the drive, there's no any kind of wire or bios
problem.

Sorry for bad English, thanks.





--
With best regards,
 Gregory Edigarov



Re: Trying to open a port

2013-06-10 Thread Gregory Edigarov

On 06/10/2013 04:17 PM, Rhys Ap Mihangel wrote:

Hi,

I'm trying to open port 9001 on my gateway machine for a tor relay. I've been 
trying different combinations for some time now only to have syntax errors, etc 
on pfctl -nvf /etc/pf.conf. Why am I finding it so difficult?

I would expect simple statements like this to just work

pass in on (egress) to (egress) port 9001

pass in on (rl0) to (rl0) port 9001


what's so difficult?

pass in on egress proto tcp to port 9001
pass in on rl0 to (rl0) proto tcp to port 9001

--
With best regards,
 Gregory Edigarov



Re: openospfd vs bird vs quagga etc on OpenBSD for OSPF interoperating with IOS XE (v4 & v6)

2013-05-21 Thread Gregory Edigarov

On 05/20/2013 09:22 PM, Chris Cappuccio wrote:

Stuart Henderson [s...@spacehopper.org] wrote:


Important con here if you're talking about running it on OpenBSD is that
this is not a primary platform for them. I think it's safe to say that
far fewer people will be running BIRD on OpenBSD than will be running
OpenOSPFd on OpenBSD.



Is anyone using BIRD in production in OpenBSD? I'd be surprised.


I've used it some time ago for ospf, because of interface wildcarding.

--
With best regards,
 Gregory Edigarov



Re: python GraphViz in ports ?

2013-03-05 Thread Gregory Edigarov

On 03/05/2013 11:49 AM, Илья Шипицин wrote:

Hello!

is there python GraphViz in ports ?
if so, what is name of port (I couldn't find any)

**: No module named gv


Cheers,
Ilya Shipitsin




Seems like your problem is that you're looking in the wrong place.
modules for python could be installed directly from it's packages
repository via pip (or easy_install) utilities.
you will need to install py-pip (py-pip-1.1p0.tgz) package first.

--
With best regards,
 Gregory Edigarov



Re: how to use cpu affinity from user space

2013-01-22 Thread Gregory Edigarov

On 01/22/2013 12:55 PM, Gregor Best wrote:

On Tue, Jan 22, 2013 at 07:56:22PM +1000, David Diggles wrote:

Then if the scheduler always knows what's best, the backup process will be
completely uninhibited, on a system maxed out on all cores.
[...]


What backup process? And why will it be uninhibited? If the system's
maxed out, all processes will neccessarily suffer.


I think he mean background processes.

--
With best regards,
     Gregory Edigarov



Re: snapshots total freeze

2013-01-02 Thread Gregory Edigarov

On 12/25/2012 07:05 PM, frantisek holop wrote:

hi there,

since a couple of snapshosts back i can quite reliably
freeze my openbsd notebook simply by leaving it on
overnight.  the desktop is there, all the open windows
are there, but it has become a painting...
nothing in the logs, no panic, nothing.
anybody else is seeing something similar?

-f

Just my 0.5 cents in order...
I also had some sporadic hangs on various 5.2-snapshots some time ago on 
my home pc (isn't a notebook).
I've found a reason for this once I opened the case. it was full of 
dust. So I did a dust blowing/sucking, and it now works fine.
I suspect the same reasons with notebooks, if a notebook have 
vents.(mine have)



--
With best regards,
     Gregory Edigarov



DISPLAY=:0.1

2012-12-06 Thread Gregory Edigarov

Hello,

I am a happy user of spectrwm, trying to configure a dualheaded X the 
way I want. I now have two monitors connected to the same card.
what I want is that my monitors to behave in completely independent 
manner, with some applications putting its windows only on monitor0, 
while others puttign on monitor1.


$ env DISPLAY=:0.1 firefox
Error: cannot open display: :0.1

what should I have in my xorg.conf in order to have such setup?

for now I have achieved somewhat near but not what I really want.
is that possible with my current setup i.e. one card, two monitors?

--
With best regards,
Gregory Edigarov



Re: -current X not working, hangs up +dmesg [fixed]

2012-10-17 Thread Gregory Edigarov
On 10/15/2012 04:46 PM, Gregory Edigarov wrote:
> On 10/15/2012 12:45 PM, Gregory Edigarov wrote:
>> On 10/15/2012 12:32 PM, Gregory Edigarov wrote:
>>> Hi,
>>>
>>> After some changes I have X hanging my pc at start.
>>> dmesg for the pc was posted here some time ago, sorry, cannot get it
>>> right now.
>>> For some time, I was able to run it with vesa (it has intel onboard card
>>> currently unsupported)  driver without  any problem. Now I can't. 
> Just in case it helps, I'll post a dmesg from an updated  kernel.
>
The issue was fixed yesterday in the evening. It seems like something
screwed the BIOS settings up.
I've dropped into bios setup on the boot, then just chosen Save and
reboot. Nothing else.
X started right up.
Sorry for the noise...

--
With best regards,
Gregory Edigarov



Re: -current X not working, hangs up +dmesg

2012-10-15 Thread Gregory Edigarov
On 10/15/2012 12:45 PM, Gregory Edigarov wrote:
> On 10/15/2012 12:32 PM, Gregory Edigarov wrote:
>> Hi,
>>
>> After some changes I have X hanging my pc at start.
>> dmesg for the pc was posted here some time ago, sorry, cannot get it
>> right now.
>> For some time, I was able to run it with vesa (it has intel onboard card
>> currently unsupported)  driver without  any problem. Now I can't. 
Just in case it helps, I'll post a dmesg from an updated  kernel.

# dmesg
OpenBSD 5.2-current (GENERIC.MP) #0: Sun Oct 14 07:00:55 MDT 2012
r...@noname.my.domain:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 1852436480 (1766MB)
avail mem = 1780633600 (1698MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xe9450 (91 entries)
bios0: vendor American Megatrends Inc. version "0701" date 07/04/2012
bios0: ASUSTeK COMPUTER INC. P8H61-M2 USB3
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S3 S4 S5
acpi0: tables DSDT FACP APIC SSDT MCFG HPET
acpi0: wakeup devices PS2K(S4) PS2M(S4) BR20(S3) EUSB(S4) USBE(S4)
PEX0(S4) PEX1(S4) PEX3(S4) PEX5(S4) PEX6(S4) PEX7(S4) P0P1(S4) P0P2(S4)
P0P3(S4) P0P4(S4)
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) Celeron(R) CPU G530 @ 2.40GHz, 2394.87 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,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,DEADLINE,XSAVE,NXE,LONG,LAHF
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: apic clock running at 99MHz
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Celeron(R) CPU G530 @ 2.40GHz, 2394.56 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,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,DEADLINE,XSAVE,NXE,LONG,LAHF
cpu1: 256KB 64b/line 8-way L2 cache
ioapic0 at mainbus0: apid 0 pa 0xfec0, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xe000, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 2 (PEX0)
acpiprt2 at acpi0: bus 3 (PEX1)
acpiprt3 at acpi0: bus 4 (PEX3)
acpiprt4 at acpi0: bus 5 (PEX5)
acpiprt5 at acpi0: bus -1 (PEX6)
acpiprt6 at acpi0: bus -1 (PEX7)
acpiprt7 at acpi0: bus 1 (P0P1)
acpiprt8 at acpi0: bus -1 (P0P2)
acpiprt9 at acpi0: bus -1 (P0P3)
acpiprt10 at acpi0: bus -1 (P0P4)
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpibtn0 at acpi0: PWRB
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: DD02
cpu0: Enhanced SpeedStep 2394 MHz: speeds: 2400, 2300, 2200, 2100, 2000,
1900, 1800, 1700, 1600 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core 2G Host" rev 0x09
ppb0 at pci0 dev 1 function 0 "Intel Core 2G PCIE" rev 0x09: msi
pci1 at ppb0 bus 1
vga1 at pci0 dev 2 function 0 "Intel HD Graphics 2000" rev 0x09
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xc000, size 0x1000
inteldrm0 at vga1: apic 0 int 16
drm0 at inteldrm0
"Intel 6 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured
ehci0 at pci0 dev 26 function 0 "Intel 6 Series USB" rev 0x05: apic 0 int 23
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 "Intel 6 Series HD Audio" rev 0x05: msi
azalia0: codecs: VIA/0x0397, Intel/0x2805, using VIA/0x0397
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 "Intel 6 Series PCIE" rev 0xb5: msi
pci2 at ppb1 bus 2
ppb2 at pci0 dev 28 function 1 "Intel 6 Series PCIE" rev 0xb5: msi
pci3 at ppb2 bus 3
ppb3 at pci0 dev 28 function 3 "Intel 6 Series PCIE" rev 0xb5: msi
pci4 at ppb3 bus 4
re0 at pci4 dev 0 function 0 "Realtek 8168" rev 0x06: RTL8168E/8111E-VL
(0x2c80), apic 0 int 19, address c8:60:00:6e:5f:31
rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 5
ppb4 at pci0 dev 28 function 5 "Intel 6 Series PCIE" rev 0xb5: msi
pci5 at ppb4 bus 5
"ASMedia ASM1042 xHCI" rev 0x00 at pci5 dev 0 function 0 not configured
ehci1 at pci0 dev 29 function 0 "Intel 6 Series USB" rev 0x05: apic 0 int 23
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1
pcib0 at pci0 dev 31 function 0 "Intel H61 LPC" rev 0x05
pciide0 at pci0 dev 31 function 2 "Intel 6 Series SATA" rev 0x05: DMA,
channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide0: using apic 0 int 20 for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: 
wd0: 16-sector PIO, LBA48, 152627MB, 3125818

Re: -current X not working, hangs up +dmesg

2012-10-15 Thread Gregory Edigarov
On 10/15/2012 12:32 PM, Gregory Edigarov wrote:
> Hi,
>
> After some changes I have X hanging my pc at start.
> dmesg for the pc was posted here some time ago, sorry, cannot get it
> right now.
> For some time, I was able to run it with vesa (it has intel onboard card
> currently unsupported)  driver without  any problem. Now I can't.

OpenBSD 5.2-current (GENERIC.MP) #378: Mon Aug 20 12:55:12 MDT 2012
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 1852436480 (1766MB)
avail mem = 1780690944 (1698MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xe9450 (91 entries)
bios0: vendor American Megatrends Inc. version "0701" date 07/04/2012
bios0: ASUSTeK COMPUTER INC. P8H61-M2 USB3
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S3 S4 S5
acpi0: tables DSDT FACP APIC SSDT MCFG HPET
acpi0: wakeup devices PS2K(S4) PS2M(S4) BR20(S3) EUSB(S4) USBE(S4) PEX0(S4) 
PEX1(S4) \
PEX3(S4) PEX5(S4) PEX6(S4) PEX7(S4) P0P1(S4) P0P2(S4) P0P3(S4) P0P4(S4) 
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) Celeron(R) CPU G530 @ 2.40GHz, 2394.92 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,D
 \
S,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,PCLMUL,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16
 \
,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,XSAVE,NXE,LONG,LAHF
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: apic clock running at 99MHz
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Celeron(R) CPU G530 @ 2.40GHz, 2394.56 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,D
 \
S,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,PCLMUL,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16
 \
,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,XSAVE,NXE,LONG,LAHF
cpu1: 256KB 64b/line 8-way L2 cache
ioapic0 at mainbus0: apid 0 pa 0xfec0, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xe000, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 2 (PEX0)
acpiprt2 at acpi0: bus 3 (PEX1)
acpiprt3 at acpi0: bus 4 (PEX3)
acpiprt4 at acpi0: bus 5 (PEX5)
acpiprt5 at acpi0: bus -1 (PEX6)
acpiprt6 at acpi0: bus -1 (PEX7)
acpiprt7 at acpi0: bus 1 (P0P1)
acpiprt8 at acpi0: bus -1 (P0P2)
acpiprt9 at acpi0: bus -1 (P0P3)
acpiprt10 at acpi0: bus -1 (P0P4)
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpibtn0 at acpi0: PWRB
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: DD02
cpu0: Enhanced SpeedStep 2394 MHz: speeds: 2400, 2300, 2200, 2100, 2000, 1900, 
1800, \
1700, 1600 MHz pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core 2G Host" rev 0x09
ppb0 at pci0 dev 1 function 0 "Intel Core 2G PCIE" rev 0x09: msi
pci1 at ppb0 bus 1
vga1 at pci0 dev 2 function 0 "Intel HD Graphics 2000" rev 0x09
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xc000, size 0x1000
inteldrm0 at vga1: apic 0 int 16
drm0 at inteldrm0
"Intel 6 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured
ehci0 at pci0 dev 26 function 0 "Intel 6 Series USB" rev 0x05: apic 0 int 23
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 "Intel 6 Series HD Audio" rev 0x05: msi
azalia0: codecs: VIA/0x0397, Intel/0x2805, using VIA/0x0397
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 "Intel 6 Series PCIE" rev 0xb5: msi
pci2 at ppb1 bus 2
ppb2 at pci0 dev 28 function 1 "Intel 6 Series PCIE" rev 0xb5: msi
pci3 at ppb2 bus 3
ppb3 at pci0 dev 28 function 3 "Intel 6 Series PCIE" rev 0xb5: msi
pci4 at ppb3 bus 4
re0 at pci4 dev 0 function 0 "Realtek 8168" rev 0x06: RTL8168E/8111E-VL 
(0x2c80), \
apic 0 int 19, address c8:60:00:6e:5f:31 rgephy0 at re0 phy 7: RTL8169S/8110S 
PHY, \
rev. 5 ppb4 at pci0 dev 28 function 5 "Intel 6 Series PCIE" rev 0xb5: msi
pci5 at ppb4 bus 5
"ASMedia ASM1042 xHCI" rev 0x00 at pci5 dev 0 function 0 not configured
ehci1 at pci0 dev 29 function 0 "Intel 6 Series USB" rev 0x05: apic 0 int 23
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1
pcib0 at pci0 dev 31 function 0 "Intel H61 LPC" rev 0x05
pciide0 at pci0 dev 31 function 2 "Intel 6 Series SATA" rev 0x05: DMA, channel 
0 \
configured to native-PCI, channel 1 configured to native-PCI
pciide0: using apic 0 int 20 for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: 
wd0: 16-sector PIO, LBA48, 476940MB, 976773168 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 6
ichiic0 at pci0 dev 31 function 3 "Intel 6 Series SMBus" rev 0x05: apic 0 int 18
iic0 at ichiic0
spdmem

-current X not working, hangs up.

2012-10-15 Thread Gregory Edigarov
Hi,

After some changes I have X hanging my pc at start.
dmesg for the pc was posted here some time ago, sorry, cannot get it
right now.
For some time, I was able to run it with vesa (it has intel onboard card
currently unsupported)  driver without  any problem. Now I can't.

--
With best regards,
  Gregory Edigarov



Re: OpenBSD-5.1 hangs on Supermicro X9DR3-F

2012-10-12 Thread Gregory Edigarov
Hi,

Observing the same behavior on -current with massive data loss on my
home pc which hangs sporadically. dmesg for it was posted here recently
(ASUS motherboard with Core i3).
I've stress tested the motherboard/cpu/memory/hdd and the hardware seems
to be good.
I don't use power management  at all.
 

On 10/12/2012 02:37 PM, Peter Hessler wrote:
> I have seen some hangs when apmd -C changes cpu speed in very specific
> situations.  For testing purposes, switch to -L or -H.
>
>
> On 2012 Oct 12 (Fri) at 16:44:14 +0600 (+0600), Илья Шипицин wrote:
> :... and I'm running "apmd -C" if that matters.
> :could it cause problems ?
> :
> :2012/10/12 Christiano F. Haesbaert 
> :
> :> On 11 October 2012 08:30,  ???  wrote:
> :> > Hello!
> :> >
> :> > we recently installed OpenBSD/amd64 on Supermicro X9DR3-F, it hangs
> :> about 1
> :> > times a day.
> :> > 5.1 does not understand i350 chip, so we put external "Intel PRO/1000 MT
> :> > (82574L)" nic.
> :> >
> :> > we have ddb.panic=1, but no ddb appears on screen on hang.
> :> > also, it says "savecore: no core dump" during boot.
> :> >
> :> > we tested RAM with memtest, so we do not suspect it for memory related
> :> > issue.
> :> >
> :> >
> :> > how can we diagnose those hangs ?
> :> > is it ok to run 5.1 on X9DR3-F ?
> :> >
> :> > do I need to provide dmesg output ? any other kind of diagnostics ?
> :> >
> :> > Cheers,
> :> > Ilya Shipitsin
> :> >
> :>
> :> If you can provide the dmesg I can help you, we have these at work:
> :> hw.product=X9DRH-7TF/7F/iTF/iF
> :>
> :> Which should be similar, do you by any chance have a mfii(4) ?
> :> Our machine had interrupt routing issues, maybe you're experiencing the
> :> same.
> :> Please provide a dmesg, even a picture should do and we can try something.
> :



Re: terminal q

2012-09-20 Thread Gregory Edigarov
On 09/20/2012 03:12 PM, David Diggles wrote:
> Mud clients can be good for this, but I don't know of one that supports ssh.
>
> I use tintin.  There is also tinyfugue in ports.
yeah, tf is nice, thanks for pointers.
>
> On Thu, Sep 20, 2012 at 02:25:25PM +0300, Gregory Edigarov wrote:
>> Hi everybody.
>>
>> I am not very sure if that was asked before, and may be I was the person
>> who asked.
>> For one of my everyday tasks I need an application like xterm, that will
>> be able to reserve some lines in the bottom or top of current window
>> solely for user input and the other place for output.
>> I.e. something like old IBM 3270 style terminal.
>>
>> what are my options beside of writing it myself?
>> --
>> With best regards,
>> Gregory Edigarov



terminal q

2012-09-20 Thread Gregory Edigarov
Hi everybody.

I am not very sure if that was asked before, and may be I was the person
who asked.
For one of my everyday tasks I need an application like xterm, that will
be able to reserve some lines in the bottom or top of current window
solely for user input and the other place for output.
I.e. something like old IBM 3270 style terminal.

what are my options beside of writing it myself?
--
With best regards,
Gregory Edigarov



Re: -current ldconfig (update)

2012-09-19 Thread Gregory Edigarov
I am able to add /usr/local/lib to the search, but not /usr/X11R6/lib.
don't know what that mean,
perhaps something screwed the arguments processing up. I will continue
to investigate the issue.

And some more info:
I've changed the line to

ldconfig -v $shlib_dirs 2>&1 >/tmp/shlib, rebooted,

and had the following output:

Adding /usr/lib/libasn1.so.18.0
Adding /usr/lib/libc.so.65.0
Adding /usr/lib/libcom_err.so.18.0
Adding /usr/lib/libcrypto.so.20.1
Adding /usr/lib/libcurses.so.12.1
Adding /usr/lib/libedit.so.4.1
Adding /usr/lib/libevent.so.3.0
Adding /usr/lib/libexpat.so.10.0
Adding /usr/lib/libform.so.5.0
Adding /usr/lib/libformw.so.5.0
Adding /usr/lib/libgssapi.so.5.0
Adding /usr/lib/libiberty.so.10.1
Adding /usr/lib/libkafs.so.18.0
Adding /usr/lib/libkrb5.so.18.0
Adding /usr/lib/libkvm.so.13.1
Adding /usr/lib/libm.so.7.0
Adding /usr/lib/libmenu.so.5.0
Adding /usr/lib/libmenuw.so.5.0
Adding /usr/lib/libmilter.so.2.1
Adding /usr/lib/libncurses.so.12.1
Adding /usr/lib/libncursesw.so.12.1
Adding /usr/lib/libobjc.so.5.0
Adding /usr/lib/libocurses.so.5.0
Adding /usr/lib/libossaudio.so.3.1
Adding /usr/lib/libotermcap.so.5.0
Adding /usr/lib/libpanel.so.5.0
Adding /usr/lib/libpanelw.so.5.0
Adding /usr/lib/libpcap.so.7.0
Adding /usr/lib/libperl.so.12.0
Adding /usr/lib/libpthread.so.17.0
Adding /usr/lib/libreadline.so.3.0
Adding /usr/lib/librpcsvc.so.1.2
Adding /usr/lib/libskey.so.5.1
Adding /usr/lib/libsndio.so.4.0
Adding /usr/lib/libsqlite3.so.20.0
Adding /usr/lib/libssl.so.18.0
Adding /usr/lib/libstdc++.so.55.0
Adding /usr/lib/libtermcap.so.12.1
Adding /usr/lib/libtermlib.so.12.1
Adding /usr/lib/libusbhid.so.5.0
Adding /usr/lib/libutil.so.11.3
Adding /usr/lib/libwrap.so.4.0
Adding /usr/lib/libz.so.4.1
Adding /usr/lib/libc.so.66.0
Updating libm.7.0 to /usr/lib/libm.so.7.1
Updating libevent.3.0 to /usr/lib/libevent.so.3.1
Updating libutil.11.3 to /usr/lib/libutil.so.11.4
Adding /usr/X11R6/lib/libFS.so.9.0
Adding /usr/X11R6/lib/libGL.so.13.0
Adding /usr/X11R6/lib/libGLU.so.7.0
Adding /usr/X11R6/lib/libGLw.so.5.1
Adding /usr/X11R6/lib/libI810XvMC.so.1.0
Adding /usr/X11R6/lib/libICE.so.9.0
Adding /usr/X11R6/lib/libIntelXvMC.so.1.0
Adding /usr/X11R6/lib/libSM.so.8.0
Adding /usr/X11R6/lib/libX11-xcb.so.1.0
Adding /usr/X11R6/lib/libX11.so.15.1
Adding /usr/X11R6/lib/libXRes.so.4.0
Adding /usr/X11R6/lib/libXau.so.9.0
Adding /usr/X11R6/lib/libXaw.so.14.0
Adding /usr/X11R6/lib/libXaw7.so.14.0
Adding /usr/X11R6/lib/libXcomposite.so.3.0
Adding /usr/X11R6/lib/libXcursor.so.4.0
Adding /usr/X11R6/lib/libXdamage.so.3.1
Adding /usr/X11R6/lib/libXdmcp.so.10.0
Adding /usr/X11R6/lib/libXext.so.12.0
Adding /usr/X11R6/lib/libXfixes.so.5.1
Adding /usr/X11R6/lib/libXfont.so.9.0
Adding /usr/X11R6/lib/libXfontcache.so.4.0
Adding /usr/X11R6/lib/libXft.so.8.0
Adding /usr/X11R6/lib/libXi.so.11.1
Adding /usr/X11R6/lib/libXinerama.so.5.0
Adding /usr/X11R6/lib/libXmu.so.10.0
Adding /usr/X11R6/lib/libXmuu.so.5.0
Adding /usr/X11R6/lib/libXpm.so.8.0
Adding /usr/X11R6/lib/libXrandr.so.6.1
Adding /usr/X11R6/lib/libXrender.so.5.0
Adding /usr/X11R6/lib/libXss.so.5.0
Adding /usr/X11R6/lib/libXt.so.10.1
Adding /usr/X11R6/lib/libXtst.so.10.0
Adding /usr/X11R6/lib/libXv.so.5.0
Adding /usr/X11R6/lib/libXvMC.so.5.0
Adding /usr/X11R6/lib/libXvMCW.so.1.0
Adding /usr/X11R6/lib/libXxf86dga.so.5.0
Adding /usr/X11R6/lib/libXxf86misc.so.5.0
Adding /usr/X11R6/lib/libdmx.so.1.0
Adding /usr/X11R6/lib/libXxf86vm.so.5.0
Adding /usr/X11R6/lib/libdrm.so.2.6
Adding /usr/X11R6/lib/libdrm_intel.so.1.3
Adding /usr/X11R6/lib/libfontconfig.so.7.0
Adding /usr/X11R6/lib/libfontenc.so.3.0
Adding /usr/X11R6/lib/libfreetype.so.18.3
Adding /usr/X11R6/lib/libpciaccess.so.1.1
Adding /usr/X11R6/lib/libpixman-1.so.26.2
Adding /usr/X11R6/lib/libpthread-stubs.so.1.0
Adding /usr/X11R6/lib/libxcb-atom.so.1.0
Adding /usr/X11R6/lib/libxcb-aux.so.0.0
Adding /usr/X11R6/lib/libxcb-composite.so.0.0
Adding /usr/X11R6/lib/libxcb-damage.so.0.0
Adding /usr/X11R6/lib/libxcb-dpms.so.0.0
Adding /usr/X11R6/lib/libxcb-dri2.so.0.1
Adding /usr/X11R6/lib/libxcb-event.so.1.0
Adding /usr/X11R6/lib/libxcb-glx.so.0.1
Adding /usr/X11R6/lib/libxcb.so.2.3
Adding /usr/X11R6/lib/libxcb-icccm.so.1.1
Adding /usr/X11R6/lib/libxcb-image.so.0.0
Adding /usr/X11R6/lib/libxcb-keysyms.so.1.0
Adding /usr/X11R6/lib/libxcb-property.so.1.0
Adding /usr/X11R6/lib/libxcb-randr.so.1.0
Adding /usr/X11R6/lib/libxcb-record.so.0.0
Adding /usr/X11R6/lib/libxcb-render-util.so.0.0
Adding /usr/X11R6/lib/libxcb-render.so.0.0
Adding /usr/X11R6/lib/libxcb-reply.so.1.0
Adding /usr/X11R6/lib/libxcb-res.so.0.0
Adding /usr/X11R6/lib/libxcb-screensaver.so.0.0
Adding /usr/X11R6/lib/libxcb-shape.so.0.0
Adding /usr/X11R6/lib/libxcb-shm.so.0.0
Adding /usr/X11R6/lib/libxcb-sync.so.0.1
Adding /usr/X11R6/lib/libxcb-xevie.so.0.0
Adding /usr/X11R6/lib/libxcb-xf86dri.so.1.1
Adding /usr/X11R6/lib/libxcb-xtest.so.0.0
Adding /usr/X11R6/lib/libxcb-xfixes.so.0.0
Adding /usr/X11R6/lib/libxcb-xinerama.so.0.0
Adding /usr/X11R6/lib/libxcb-xprint.so.0.0
Adding /usr/

-current ldconfig

2012-09-18 Thread Gregory Edigarov
Hi,

Several days ago I've noticed that X doesn't start properly on my
-current (I normally run xdm)  . I've tried to see where the problem is
and it was that ldconfig somehow not working correctly AT BOOT TIME.
instead of configuring /usr/lib, /usr/X11R6/lib, and /usr/local/lib it
configures /usr/lib only.
after the boot I am able to run ldconfig manually without problem.

I've checked the commit logs, but only found one recent commit:

prevent detection of bogus libraries problem initially noticed by deraadt@,
exchanged various patches with kettenis@
decided to fix the bug now, even though ldconfig could probably use a
larger rewrite.
okay matthew@

but from what I see, this diff could not give any unwanted behaviour.

Does anybody else  seeing this?

--
With best regards,
  Gregory Edigarov



X && intel failed to start

2012-08-27 Thread Gregory Edigarov
Hi,

with yesterday's current X failed to start with segfault using intel 
driver. vesa works, but spectrwm is failng to load too, again with segfault.
is there some massive changes undergoing, or is that  just some 
temporary regression?
OpenBSD 5.2-current (GENERIC.MP) #378: Mon Aug 20 12:55:12 MDT 2012
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 1852436480 (1766MB)
avail mem = 1780690944 (1698MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xe9450 (91 entries)
bios0: vendor American Megatrends Inc. version "0701" date 07/04/2012
bios0: ASUSTeK COMPUTER INC. P8H61-M2 USB3
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S3 S4 S5
acpi0: tables DSDT FACP APIC SSDT MCFG HPET
acpi0: wakeup devices PS2K(S4) PS2M(S4) BR20(S3) EUSB(S4) USBE(S4) PEX0(S4) 
PEX1(S4) PEX3(S4) PEX5(S4) PEX6(S4) PEX7(S4) P0P1(S4) P0P2(S4) P0P3(S4) P0P4(S4)
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) Celeron(R) CPU G530 @ 2.40GHz, 2394.92 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,SBF,SSE3,PCLMUL,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,XSAVE,NXE,LONG,LAHF
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: apic clock running at 99MHz
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Celeron(R) CPU G530 @ 2.40GHz, 2394.56 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,SBF,SSE3,PCLMUL,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,XSAVE,NXE,LONG,LAHF
cpu1: 256KB 64b/line 8-way L2 cache
ioapic0 at mainbus0: apid 0 pa 0xfec0, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xe000, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 2 (PEX0)
acpiprt2 at acpi0: bus 3 (PEX1)
acpiprt3 at acpi0: bus 4 (PEX3)
acpiprt4 at acpi0: bus 5 (PEX5)
acpiprt5 at acpi0: bus -1 (PEX6)
acpiprt6 at acpi0: bus -1 (PEX7)
acpiprt7 at acpi0: bus 1 (P0P1)
acpiprt8 at acpi0: bus -1 (P0P2)
acpiprt9 at acpi0: bus -1 (P0P3)
acpiprt10 at acpi0: bus -1 (P0P4)
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpibtn0 at acpi0: PWRB
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: DD02
cpu0: Enhanced SpeedStep 2394 MHz: speeds: 2400, 2300, 2200, 2100, 2000, 1900, 
1800, 1700, 1600 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core 2G Host" rev 0x09
ppb0 at pci0 dev 1 function 0 "Intel Core 2G PCIE" rev 0x09: msi
pci1 at ppb0 bus 1
vga1 at pci0 dev 2 function 0 "Intel HD Graphics 2000" rev 0x09
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xc000, size 0x1000
inteldrm0 at vga1: apic 0 int 16
drm0 at inteldrm0
"Intel 6 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured
ehci0 at pci0 dev 26 function 0 "Intel 6 Series USB" rev 0x05: apic 0 int 23
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 "Intel 6 Series HD Audio" rev 0x05: msi
azalia0: codecs: VIA/0x0397, Intel/0x2805, using VIA/0x0397
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 "Intel 6 Series PCIE" rev 0xb5: msi
pci2 at ppb1 bus 2
ppb2 at pci0 dev 28 function 1 "Intel 6 Series PCIE" rev 0xb5: msi
pci3 at ppb2 bus 3
ppb3 at pci0 dev 28 function 3 "Intel 6 Series PCIE" rev 0xb5: msi
pci4 at ppb3 bus 4
re0 at pci4 dev 0 function 0 "Realtek 8168" rev 0x06: RTL8168E/8111E-VL 
(0x2c80), apic 0 int 19, address c8:60:00:6e:5f:31
rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 5
ppb4 at pci0 dev 28 function 5 "Intel 6 Series PCIE" rev 0xb5: msi
pci5 at ppb4 bus 5
"ASMedia ASM1042 xHCI" rev 0x00 at pci5 dev 0 function 0 not configured
ehci1 at pci0 dev 29 function 0 "Intel 6 Series USB" rev 0x05: apic 0 int 23
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1
pcib0 at pci0 dev 31 function 0 "Intel H61 LPC" rev 0x05
pciide0 at pci0 dev 31 function 2 "Intel 6 Series SATA" rev 0x05: DMA, channel 
0 configured to native-PCI, channel 1 configured to native-PCI
pciide0: using apic 0 int 20 for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: 
wd0: 16-sector PIO, LBA48, 476940MB, 976773168 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 6
ichiic0 at pci0 dev 31 function 3 "Intel 6 Series SMBus" rev 0x05: apic 0 int 18
iic0 at ichiic0
spdmem0 at iic0 addr 0x52: 2GB DDR3 SDRAM PC3-10600
pciide1 at pci0 dev 31 function 5 "Intel 6 Series SATA" rev 0x05: DMA, channel 
0 wired to native-PCI, channel 1 wired to native-PCI
pciide1: using apic 0 int 20 for native-PCI interrupt
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using w

<    1   2   3   4   >