Re: 4-ports router under $150

2018-04-09 Thread Predrag Punosevac
On 04/07/18 14:59, Anatoli wrote: > Hi All! > > I'm looking for a modest 4-5 ports router under $150 that works well > with OpenBSD. I don't need WiFi, USB or console port, and the > throughput don't need to exceed 100Mbps. The ideal device would be > EdgeRouter X (compact, 5 ports, $50) but I

Re: is there foomatic-rip for lpd on openBSD 6.3?

2018-04-09 Thread Predrag Punosevac
On Mon, Apr 09, 2018 at 04:52:36PM +0200, Rudolf Sykora wrote: > > Hello, > > > > I want to print from openBSD 6.3. I tried to use lpd and found > > some information on the web about setting up /etc/printcap. Around here we actually read man pages and pkg-readmes predrag@oko$ uname -a OpenBSD

Re: Date of yesterday

2018-04-09 Thread Jordan Geoghegan
On 04/09/18 13:58, Stephane HUC "PengouinBSD" wrote: Excuse-me, but i dont really understand this! (perhaps, because it's in english). If you don't understand how Daylight Savings time works, or how time works on computers in general, then you should just trust the expert advice offered to

Having problems sleeping a used computer

2018-04-09 Thread Peter J. Philipp
Hi, I inherited a computer which I want to make a sleeping backup computer. The idea is that it sleeps during the day and then I wake it with arp -W and it receives backups and then it goes back to sleep, but I'm running into problems. First with a snapshot kernel when I wake the box I get

Re: Date of yesterday

2018-04-09 Thread Daniel Ouellet
On 4/9/18 4:36 PM, Stephane HUC "PengouinBSD" wrote: > what? > > please, explain-me! EDT EST for example. Some days are even 82800 long. Some time zone even have 1/2 hour if these still exists, so the would be 84600 or 88200.

Re: Date of yesterday

2018-04-09 Thread Martin Schröder
2018-04-09 20:58 GMT+02:00 Stephane HUC "PengouinBSD" : > get the current timestamp, subtracting 86400 seconds is not reliable to > get yesterday's date to the nearest second? Did they teach leap seconds in your school yet? Best Martin

Re: Date of yesterday

2018-04-09 Thread Allan Streib
Tom Smyth writes: > Howdy... > Daylight savings time sucks... :/... > Is there a way to Reference UTC and then do the calculating > n and then convert to local time zone if you are worried about > calculating yesterday on the edge case of the 2 hrs a year > that

Re: Date of yesterday

2018-04-09 Thread Daniel Ouellet
Here to confuse you even more, there is time zone that have 30 minutes and even 45 minutes differences. https://www.timeanddate.com/time/time-zones-interesting.html Have fun. On 4/9/18 4:44 PM, Daniel Ouellet wrote: > On 4/9/18 4:36 PM, Stephane HUC "PengouinBSD" wrote: >> what? >> >> please,

Re: Date of yesterday

2018-04-09 Thread Philip Guenther
On Mon, Apr 9, 2018 at 2:05 PM, Tom Smyth wrote: > Howdy... > Daylight savings time sucks... :/... > Is there a way to Reference UTC and then do the calculating > n and then convert to local time zone if you are worried about > calculating yesterday on the edge

Re: Date of yesterday

2018-04-09 Thread Stephane HUC "PengouinBSD"
Excuse-me, but i dont really understand this! (perhaps, because it's in english). Le 04/09/18 à 22:45, Philip Guenther a écrit : > On Mon, Apr 9, 2018 at 1:36 PM, Stephane HUC "PengouinBSD" < > b...@stephane-huc.net> wrote: > >> what? >> >> please, explain-me! >> > As I wrote before, and you

Re: Date of yesterday

2018-04-09 Thread Tom Smyth
Howdy... Daylight savings time sucks... :/... Is there a way to Reference UTC and then do the calculating n and then convert to local time zone if you are worried about calculating yesterday on the edge case of the 2 hrs a year that this would make an impact... as a side issue would avoiding

Re: Date of yesterday

2018-04-09 Thread Philip Guenther
On Mon, Apr 9, 2018 at 1:36 PM, Stephane HUC "PengouinBSD" < b...@stephane-huc.net> wrote: > what? > > please, explain-me! > As I wrote before, and you quoted before: > | Did you test that after 11pm on the day when daylight-saving time ends and > | the clock is turned back, resulting in a 25

Re: Date of yesterday

2018-04-09 Thread Michael Lambert
> On 9 Apr 2018, at 16:34, Philip Guenther wrote: > > On Mon, Apr 9, 2018 at 11:58 AM, Stephane HUC "PengouinBSD" < > b...@stephane-huc.net> wrote: > >> get the current timestamp, subtracting 86400 seconds is not reliable to >> get yesterday's date to the nearest second? >>

Re: Date of yesterday

2018-04-09 Thread Stephane HUC "PengouinBSD"
what? please, explain-me! Le 04/09/18 à 22:34, Philip Guenther a écrit : > On Mon, Apr 9, 2018 at 11:58 AM, Stephane HUC "PengouinBSD" > > wrote: > > get the current timestamp, subtracting 86400 seconds is not > reliable to > get

Re: Date of yesterday

2018-04-09 Thread Philip Guenther
On Mon, Apr 9, 2018 at 11:58 AM, Stephane HUC "PengouinBSD" < b...@stephane-huc.net> wrote: > get the current timestamp, subtracting 86400 seconds is not reliable to > get yesterday's date to the nearest second? > terrible! Yes, some days are 9 seconds long.

Re: Date of yesterday

2018-04-09 Thread Stephane HUC "PengouinBSD"
get the current timestamp, subtracting 86400 seconds is not reliable to get yesterday's date to the nearest second? terrible! Le 04/09/18 à 20:48, Philip Guenther a écrit : > On Mon, Apr 9, 2018 at 2:04 AM, Stephane HUC "CIOTBSD" > wrote: > >> as: date -r $(( $(date +%s)

Moving dhcp from CentOS to OpenBSD

2018-04-09 Thread Shawn Southern
I'm moving my DHCP services from CentOS to OpenBSD. The OpenBSD dhcpd service appears to work perfectly during testing, but I want to confirm a few things: 1. In the dhcpd.conf on CentOS, the host definitions with fixed-address set for static IPs need to be excluded from the range statement for

Re: Date of yesterday

2018-04-09 Thread Philip Guenther
On Mon, Apr 9, 2018 at 2:04 AM, Stephane HUC "CIOTBSD" wrote: > as: date -r $(( $(date +%s) - 86400)) +%F > ;) ... > > On Sun, Apr 08, 2018 at 11:12:43PM -0700, Philip Guenther wrote: > > | Did you test that after 11pm on the day when daylight-saving time ends > and > >

Re: Serial port pci cards.

2018-04-09 Thread Jordan Geoghegan
I have found that any usb dongle with a PL-2303 chipset just works out of the box. I have had great success with many different brands which use that chipset. It works out of the box with OpenBSD and Linux. On 04/08/18 09:19, Michael Price wrote: I am unwise in the ways of serial port pci

Re: 4-ports router under $150

2018-04-09 Thread Jordan Geoghegan
On 04/09/18 05:46, Karel Gardas wrote: On Sun, 8 Apr 2018 08:52:52 -0700 Jordan Geoghegan wrote: The pc engines stuff will still have blobs in it. There's no way to have fully open firmware on a modern i-series chip based rig. At the end of the day, we all are still

Re: Serial port pci cards.

2018-04-09 Thread Jan Stary
On Apr 08 12:05:17, j...@openbsd.org wrote: > On Sun, 08 Apr 2018 at 12:19:01 -0400, Michael Price wrote: > > I am unwise in the ways of serial port pci cards. Should I be avoiding any > > particular brands? Any pointers to more information would be appreciated. > > The puc(4) man page has a lot

Re: Cannot access internet with virtual switch

2018-04-09 Thread Aham Brahmasmi
> Sent: Saturday, April 07, 2018 at 5:02 AM > From: "Ayaka Koshibe" > To: "Aham Brahmasmi" > Cc: misc@openbsd.org > Subject: Re: Cannot access internet with virtual switch > > On Fri, Apr 6, 2018 at 4:40 PM, Aham Brahmasmi

is there foomatic-rip for lpd on openBSD 6.3?

2018-04-09 Thread Heppler, J. Scott
It is in print/cups-filters http://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/ports/print/cups-filters/pkg/README?rev=1.9=text/plain -- J. Scott Heppler

Re: Unable to use vmm on Xiaomi Air laptop: failed to enter VMM mode

2018-04-09 Thread Mike Larkin
On Mon, Apr 09, 2018 at 01:47:36AM +0800, Justin Yang wrote: > Hi,all: > > I just bought the Xiaomi Mi Air 12.5 laptop and installed OpenBSD-current > after reading this blog: https://jcs.org/2017/05/22/xiaomiair. > > Almost all the functions work except the vmm part. I am not able to start a >

Re: Compilations errors with plan9port on 2018/04/05 snapshot

2018-04-09 Thread Gleydson Soares
On Sun, Apr 08, 2018 at 07:26:50PM -0400, Patrick Marchand wrote: > On 04/08, Gleydson Soares wrote: > > Hi Patrick, > > could you please test this diff? > > https://marc.info/?l=openbsd-ports=152160090624047=2 > > The diff worked, I was able to run plumber, factotum and acme without > any

Re: is there foomatic-rip for lpd on openBSD 6.3?

2018-04-09 Thread Gleydson Soares
On Mon, Apr 09, 2018 at 04:52:36PM +0200, Rudolf Sykora wrote: > Hello, > > I want to print from openBSD 6.3. I tried to use lpd and found > some information on the web about setting up /etc/printcap. > Many texts use the foomatic-rip program. I can't find one > in ports. Is there anything

is there foomatic-rip for lpd on openBSD 6.3?

2018-04-09 Thread Rudolf Sykora
Hello, I want to print from openBSD 6.3. I tried to use lpd and found some information on the web about setting up /etc/printcap. Many texts use the foomatic-rip program. I can't find one in ports. Is there anything instead? What's the recommended way to set up printing? Thanks for any comments

Re: OpenBSD-based ISP

2018-04-09 Thread Guillermo Narvaez
Hello everyone! >From the last email of this thread (August 17 2017) I'm running 2 OpenBSD servers with 4x1G interfaces each one, configured with 2 trunk of 2G, routing and making NAT to more than 3000 customers each one. Thank you for the help! On Thu, Aug 17, 2017 at 4:45 PM, Hrvoje Popovski

Re: 4-ports router under $150

2018-04-09 Thread Родин Максим
https://ru.aliexpress.com/item/QOTOM-310G4-3215U-Barebone-mini-pc-Dual-core-4-nics-Mini-pc-Ubuntu-Industrial-desktop-Computer/32769767156.html This is what I bought for similar purposes. It has 4 Intel Gigabit ports and their efficiency is 99%. 08.04.2018 00:59, Anatoli пишет: Hi All! I'm

OpenBSD 6.3: Emulex 10G doesn't bring up

2018-04-09 Thread Guillermo Narvaez
Hello, I'm installing 6.3 in Lenovo ThinkSystem SR530 with 2x10G ports (via PCI card). When I run 'ifconfig' the list doesn't show 'oce' ifaces only lo0, enc0 and pflog0; neither the 1G onboard (Intel) ifaces. This is the output of 'pcidump -v'

Re: 4-ports router under $150

2018-04-09 Thread Родин Максим
https://ru.aliexpress.com/item/QOTOM-310G4-3215U-Barebone-mini-pc-Dual-core-4-nics-Mini-pc-Ubuntu-Industrial-desktop-Computer/32769767156.html This is what I bought for similar purposes. It has 4 Intel Gigabit ports and their efficiency is 99%. 08.04.2018 00:59, Anatoli пишет: Hi All! I'm

sigaltstack SIGSTKSZ with mmap/MAP_STACK

2018-04-09 Thread Ingo Feinerer
Hi, is there an implicit maximum size (besides the size_t data type of course) of the ss_size field in the sigaltstack struct when using sigaltstack()? E.g., following example based on `man 2 sigaltstack` ---8<-- #include

Re: 4-ports router under $150

2018-04-09 Thread Karel Gardas
On Sun, 8 Apr 2018 08:52:52 -0700 Jordan Geoghegan wrote: > The pc engines stuff will still have blobs in it. There's no way to have > fully open firmware on a modern i-series chip based rig. At the end of > the day, we all are still using proprietary hardware.

Re: 4-ports router under $150

2018-04-09 Thread Mike Hammett
You have very much done something wrong if your 2011 can't handle 2 megabit. I suggest you seek out a more Mikrotik-specific group for assistance. - Mike Hammett Intelligent Computing Solutions Midwest Internet Exchange The Brothers WISP - Original Message - From: "Karel

Re: 4-ports router under $150

2018-04-09 Thread Karel Gardas
On Sun, 8 Apr 2018 09:39:46 -0500 Patrick Dohman wrote: > As much as I’d rather not point the blame I found the APU platform buggy when > running OpenBSD. > Yes there are reports of stability with other O.S however subtle > hardware/firmware bugs appeared on several

Re: using installboot to create a custom OpenBSD install on sd1

2018-04-09 Thread Torsten
I spent another three hours on this and now I've come to a point where at least my kernel boots. > Hi! > > In short: > I am trying to use installboot to make a new harddrive bootable that > should contain a custom OpenBSD installation, however, when trying to > boot from that new hd I always

Re: Date of yesterday

2018-04-09 Thread Stephane HUC "CIOTBSD"
as: date -r $(( $(date +%s) - 86400)) +%F ;) Le 04/09/18 à 10:26, Paul de Weerd a écrit : > On Sun, Apr 08, 2018 at 11:12:43PM -0700, Philip Guenther wrote: > | On Sun, Apr 8, 2018 at 10:54 PM, Robert Klein wrote: > | > | > this works for me: > | > > | > date -r $(( $(date

Re: Date of yesterday

2018-04-09 Thread Christophe Simon
Oh, sorry, Thank your for having corrected me ! Regards. Christophe Le 04/09/18 à 12:56, Otto Moerbeek a écrit : On Mon, Apr 09, 2018 at 12:50:33PM +0200, Christophe Simon wrote: The command I executed was run on OpenBSD: $ uname -a OpenBSD XXX 6.3 GENERIC.MP#107 amd64 $ /bin/date -d

Re: Date of yesterday

2018-04-09 Thread Otto Moerbeek
On Mon, Apr 09, 2018 at 12:50:33PM +0200, Christophe Simon wrote: > The command I executed was run on OpenBSD: > > $ uname -a > OpenBSD XXX 6.3 GENERIC.MP#107 amd64 > > $ /bin/date -d 'now -1 day' '+%Y_%m_%d' > 2018_04_09 > > $ /bin/date -d 'yesterday' '+%Y_%m_%d' > 2018_04_09 > > I don't

Re: Date of yesterday

2018-04-09 Thread Christophe Simon
The command I executed was run on OpenBSD: $ uname -a OpenBSD XXX 6.3 GENERIC.MP#107 amd64 $ /bin/date -d 'now -1 day' '+%Y_%m_%d' 2018_04_09 $ /bin/date -d 'yesterday' '+%Y_%m_%d' 2018_04_09 I don't know when it was imported into BSD's date, but this extension is available on OpenBSD, at

Re: 4-ports router under $150

2018-04-09 Thread Максим
It has a compatible Intel Ethernet adapter (82583V) https://man.openbsd.org/man4/em.4 I don't know what else can be a problem. --  С уважением, Родин Максим 09.04.2018, 11:29, "Anatoli" : > Thanks, Maxim. > > Have you tried it with OpenBSD? Or should all these j1900 devices

Re: Date of yesterday

2018-04-09 Thread Otto Moerbeek
On Mon, Apr 09, 2018 at 10:38:11AM +0200, Christophe Simon wrote: > Hi, > > You can use this form, which is a little simpler: > > date -d 'now -1 day' '+%Y_%m_%d' Nope, this is a GNU extension. -Otto > > Regards > > Christophe > > Le 04/09/18 à 07:54, Robert Klein a écrit : >

Re: Date of yesterday

2018-04-09 Thread Christophe Simon
Hi, You can use this form, which is a little simpler: date -d 'now -1 day' '+%Y_%m_%d' Regards Christophe Le 04/09/18 à 07:54, Robert Klein a écrit : Hi Max, this works for me: date -r $(( $(date +%s) - 1 * 24 * 60 * 60 )) +%Y_%m_%d Best regards Robert On Mon, 09 Apr 2018 07:45:05

Re: 4-ports router under $150

2018-04-09 Thread Anatoli
Thanks, Maxim. Have you tried it with OpenBSD? Or should all these j1900 devices work well? *From:* Максим *Sent:* Monday, April 09, 2018 02:30 *To:* Anatoli, Misc *Subject:* Re: 4-ports router under $150 Hi Anatoli, Another good device for $165 in basic setup:

Re: Date of yesterday

2018-04-09 Thread Paul de Weerd
On Sun, Apr 08, 2018 at 11:12:43PM -0700, Philip Guenther wrote: | On Sun, Apr 8, 2018 at 10:54 PM, Robert Klein wrote: | | > this works for me: | > | > date -r $(( $(date +%s) - 1 * 24 * 60 * 60 )) +%Y_%m_%d | > | | Did you test that after 11pm on the day when

using installboot to create a custom OpenBSD install on sd1

2018-04-09 Thread Torsten
Hi! In short: I am trying to use installboot to make a new harddrive bootable that should contain a custom OpenBSD installation, however, when trying to boot from that new hd I always get "No O/S". Detailed: I successfully set up a standard OpenBSD6.3 (machine A) on sd0 using install.iso. Using

Re: 4-ports router under $150

2018-04-09 Thread Anatoli
Thanks for your suggestion, Joel. > If you want AES-NI then these are the Cheapest: https://www.aliexpress.com/item/Minisys-4-Lan-pfsense-minipc-Intel-atom-E3845-quad-core-mini-itx-motherboard-linux-firewall-computer/32825684280.html This one looks good, a bit more expensive ($172) than my

Re: 4-ports router under $150

2018-04-09 Thread Максим
Hi Anatoli, Another good device for $165 in basic setup:

Re: Date of yesterday

2018-04-09 Thread Philip Guenther
On Sun, Apr 8, 2018 at 10:54 PM, Robert Klein wrote: > this works for me: > > date -r $(( $(date +%s) - 1 * 24 * 60 * 60 )) +%Y_%m_%d > Did you test that after 11pm on the day when daylight-saving time ends and the clock is turned back, resulting in a 25 hour long day? I

Re: Date of yesterday

2018-04-09 Thread Robert Klein
Hi Max, this works for me: date -r $(( $(date +%s) - 1 * 24 * 60 * 60 )) +%Y_%m_%d Best regards Robert On Mon, 09 Apr 2018 07:45:05 +0200 Max Power wrote: > Hi guys, > How can I do to get yesterday's date? > I need for create a backup directory. > On Linux: >