Re: resize /usr

2018-09-06 Thread Ken M
As a follow up I did manage to get everything sorted out. Redid the disk labels
and used newfs and well in single user mode had to use ed to cleanup the fstab.
After that booting bsd.rd to reinstall sets and then a restore from backup on a
usb I made of what I would be hitting and all seems well. Well better...

$ df -h
Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/sd0a 1005M250M704M26%/
/dev/sd0h 62.9G   19.2G   40.6G32%/home
/dev/sd0d  3.9G288K3.7G 0%/tmp
/dev/sd0f  4.9G1.0G3.7G22%/usr
/dev/sd0g 19.7G   11.0G7.7G59%/usr/local
/dev/sd0e 11.2G   56.2M   10.6G 1%/var
/dev/sd0i  9.8G1.1G8.2G12%/usr/ports

$ mount
/dev/sd0a on / type ffs (local)
/dev/sd0h on /home type ffs (local, noatime, nodev, nosuid, softdep)
/dev/sd0d on /tmp type ffs (local, noatime, nodev, nosuid, softdep)
/dev/sd0f on /usr type ffs (local, noatime, nodev, softdep)
/dev/sd0g on /usr/local type ffs (local, noatime, nodev, nosuid, wxallowed, 
softdep)
/dev/sd0e on /var type ffs (local, noatime, nodev, nosuid, softdep)
/dev/sd0i on /usr/ports type ffs (local, noatime, nodev, nosuid, wxallowed, 
softdep)

Should /usr/ports be mounted wxallowed. I was thinking no, but I recall running
into an issue when it wasn't.



Re: NodeJS apps on Httpd?

2018-09-06 Thread Bogdan Kulbida
That is correct. I wanted to say relayd.

-Bogdan

On Thu, Sep 6, 2018 at 01:55 Solene Rapenne  wrote:

> Bogdan Kulbida  wrote:
> > Hi Mike,
> >
> > Why don’t you run a “usual” nodejs server (probably  multiple proceses)
> and
> > proxy requests into it via httpd?
> >
> > Question: Any objections or security concerns?
>
> httpd doesn't have proxy feature, only fastcgi
>
-- 
---
Best regards,
Bogdan Kulbida
Founder and CEO, Konstankino LLC 
+1.802.793.8295


Re: connecting to adsl

2018-09-06 Thread Stuart Henderson
On 2018-09-03, Frank White  wrote:
> Hi,
> I am trying to connect to adsl, but I have the following problems:
>
> Sep  3 12:06:34 myhost /bsd: pppoe0: received unexpected PADO
> Sep  3 12:07:31 myhost /bsd: pppoe0: received unexpected PADO
> Sep  3 12:08:28 myhost /bsd: pppoe0: host unique tag found, but it
> belongs to a connection in state 3
> Sep  3 12:08:28 myhost /bsd: pppoe: received PADO but could not find
> request for it
> Sep  3 12:09:25 myhost /bsd: pppoe0: host unique tag found, but it
> belongs to a connection in state 3
> Sep  3 12:09:25 myhost /bsd: pppoe: received PADO but could not find
> request for it
>
> those are my configuratin files:
> # cat /mnt/hostname.em0
> up
> # cat /mnt/hostname.pppoe0
> inet 0.0.0.0 255.255.255.255 NONE \
> pppoedev em0 authproto pap \
> authname 'myusername' authkey 'mypassword' up
> dest 0.0.0.1
> !/sbin/route add default -ifp pppoe0 0.0.0.1
>
> and my ifconfig output:
>
> lo0: flags=8049 mtu 32768
> index 3 priority 0 llprio 3
> groups: lo
> inet6 ::1 prefixlen 128
> inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
> inet 127.0.0.1 netmask 0xff00
> em0: flags=8843 mtu 1500
> lladdr 00:23:24:0b:0c:27
> index 1 priority 0 llprio 3
> media: Ethernet autoselect (100baseTX full-duplex,rxpause,txpause)
> status: active
> enc0: flags=0<>
> index 2 priority 0 llprio 3
> groups: enc
> status: active
> pppoe0: flags=8851 mtu 1492
> index 4 priority 0 llprio 3
> dev: em0 state: session
> sid: 0xf6da PADI retries: 3 PADR retries: 0 time: 00:00:33
> sppp: phase terminate authproto pap authname "myusername"
> groups: pppoe egress
> status: no carrier
> inet 0.0.0.0 --> 0.0.0.1 netmask 0x
>
> Thanks for help!
>

You might find something useful in "tcpdump -niem0 -vvs1500" while it's trying
to connect, or in syslog / dmesg if you set "ifconfig pppoe0 debug".




Re: NodeJS apps on Httpd?

2018-09-06 Thread Solene Rapenne
Bogdan Kulbida  wrote:
> Hi Mike,
> 
> Why don’t you run a “usual” nodejs server (probably  multiple proceses) and
> proxy requests into it via httpd?
> 
> Question: Any objections or security concerns?

httpd doesn't have proxy feature, only fastcgi



Re: NodeJS apps on Httpd?

2018-09-06 Thread Michael Hekeler
Am Wed, 5 Sep 2018 18:13:29 +0100
schrieb Michael Joy :

> Does anyone have any experience of getting node apps running through
> httpd? Any opinions, instructions or warnings are welcome.


aren't node apps runing their own webserver ("express server")?

I think that I've seen some handicraft projects that builds fastcgi
interfaces for the express server.
But I think you should proxy the incoming http request to the
express server by relayd (reverse proxy).

httpd is a http server with fastci support only (not more).
httpd's job is not to act as a reverse proxy. That is relayd's
job AFAIK.

So what is your actual problem you are trying to solve? Why is it a
requirement to "getting node apps running through httpd"?



Re: Inquiry the status of lmbench

2018-09-06 Thread Rares Aioanei
Hey,

Googling lmbench shows that indeed it is outdated; as for the
suggestion part, have a look at sysbench or ubench, for example.
On Thu, Sep 6, 2018 at 8:20 AM Nan Xiao  wrote:
>
> Hi misc@,
>
> Greeting from me!
>
> I want to use lmbench on OpenBSD, but installing it reports following error:
>
> # pkg_add lmbench
> quirks-3.7 signed on 2018-09-04T22:05:13Z
> Can't find lmbench
> Obsolete package: lmbench (outdated and/or no longer required by other ports)
>
> I want to know why OpenBSD doesn't provide lmbench anymore. Because it
> is not applicable of current OS and computer architecture or other
> reasons? If lmbench is obsolete, what benchmark tools should be
> recommended on OpenBSD? Thanks very much in advance!
>
> Best Regards
> Nan Xiao
>


-- 
Rares Aioanei