Re: Extract tar balls

2021-10-30 Thread Edgar Pettijohn
On 10/30/21 3:51 PM, Bob Bernstein wrote: On Fri, 29 Oct 2021, John Nemeth wrote: If you don't use the default shell, then it is up to you to know how your shell functions. You may be right. Perhaps you can help me with this statement found in https://www.netbsd.org/docs/current/#tagging

Re: Extract tar balls

2021-10-30 Thread Edgar Pettijohn
On 10/29/21 10:15 PM, Bob Bernstein wrote: I'm trying to follow _The NetBSD Guide_, but I am stymied by these instructions, at https://netbsd.org/docs/guide/en/chap-fetch.html $ for file in *.tgz do tar -xzf $file -C / done Entering that first line and pressing just yields "for: Command

Re: Timer for X-windows?

2021-10-24 Thread Edgar Pettijohn
On 10/24/21 11:06 AM, Ignatios Souvatzis (GSG) wrote: Am 23. Oktober 2021 04:55:21 MESZ schrieb Simon Burge : #!/bin/sh $* osd_cat is in pkgsrc/x11/xosd I've used xmessage for similar tasks (in xbase) Same here. Its easy enough to script a timer and pop up an xmessage.

Re: Unicode to ASCII

2021-02-20 Thread Edgar Pettijohn
The attached script should do it. usage: convert.pl Edgar convert.pl Description: Perl program

Re: Daemonizing processes in NetBSD

2021-02-17 Thread Edgar Pettijohn
If you have perl available the following should do what you need. Wouldn't be too difficult to write something similar in C as well. #!/usr/bin/env perl use strict; use warnings; use POSIX qw//; sub daemonize { defined (my $pid = fork()) or die "Can't fork: $!"; exit if $pid;

Re: postfix for 2 domains on 1 vps 1 ip

2021-01-01 Thread Edgar Pettijohn
On Fri, Jan 01, 2021 at 09:35:33PM +0530, Mayuresh wrote: > On Fri, Jan 01, 2021 at 09:53:13AM -0600, Edgar Pettijohn wrote: > > If you set up spf, dkim, and dns correctly you shouldn't have any issues. > > How exactly - meaning if these are set reverse dns check is not applied by

Re: postfix for 2 domains on 1 vps 1 ip

2021-01-01 Thread Edgar Pettijohn
On Fri, Jan 01, 2021 at 09:18:12PM +0530, Mayuresh wrote: > On Fri, Jan 01, 2021 at 07:15:45PM +0530, Mayuresh wrote: > > I am faced with a requirement to merge the mail servers running on 2 VPSes > > into 1, with a single ip address on NetBSD 9.1 amd64. > > What happens with reverse DNS when one

Re: Finding parameters of existing ext2fs partition

2020-02-23 Thread Edgar Pettijohn
On 02/23/20 19:54, Thomas Mueller wrote: from Jason Mitchell: Does dumpfs supply any useful info? amelia2# dumpfs /dev/dk19 dumpfs: /dev/dk19: could not find superblock, skipped I didn't think dumpfs would work on non-ffs/ufs filesystems. Tom My manual claims that -O 1 is the

Re: sqlite3 issues

2020-02-17 Thread Edgar Pettijohn
On Feb 17, 2020 6:37 AM, Roy Marples wrote: > > On 17/02/2020 02:34, Edgar Pettijohn wrote: > > On 02/16/20 20:31, Edgar Pettijohn wrote: > >> I'm trying to learn to use sqlite3 and I have encountered an oddity. I > >> don't > >> have another system to

Re: [*EXT*] sqlite3 issues

2020-02-16 Thread Edgar Pettijohn
On 02/16/20 20:31, Edgar Pettijohn wrote: I'm trying to learn to use sqlite3 and I have encountered an oddity. I don't have another system to test on at the moment. So I'm not sure if its me, sqlite3, or netbsd. Either way. Here are the commands give: laptop$ /usr/bin/sqlite3 test.db

sqlite3 issues

2020-02-16 Thread Edgar Pettijohn
I'm trying to learn to use sqlite3 and I have encountered an oddity. I don't have another system to test on at the moment. So I'm not sure if its me, sqlite3, or netbsd. Either way. Here are the commands give: laptop$ /usr/bin/sqlite3 test.db SQLite version 3.26.0 2018-12-01 12:34:55 Enter

Re: Upgrading to current by compiling leads to failed boot

2019-12-07 Thread Edgar Pettijohn
On 2019-12-07 15:38, Carolyn "Lynn" Knight-Serrano wrote: Howdy! I'm trying to upgrade a NetBSD-9.0_RC1 install to current but I'm having a strange issue. I followed the documentation for compiling and upgrading netbsd to current exactly but when I try to boot, the bootloader says /netbsd

Re: Non-blocking socket bug

2019-10-26 Thread Edgar Pettijohn
On Sat, Oct 26, 2019 at 09:42:47PM +0100, Sad Clouds wrote: > On Sat, 26 Oct 2019 15:20:42 -0500 > Edgar Pettijohn wrote: > > > > > On Oct 26, 2019 2:44 PM, Sad Clouds > > wrote: > > > > > > I've come across an issue when testing networking code, wh

Re: Non-blocking socket bug

2019-10-26 Thread Edgar Pettijohn
On Oct 26, 2019 2:44 PM, Sad Clouds wrote: > > I've come across an issue when testing networking code, which looks > like a bug. This is on NetBSD-8.1 > > When a listening socket is set non-blocking and we call accept() on > that socket, the new socket returned by accept() will also be >

Re: Write an install image to a flash drive?

2019-08-26 Thread Edgar Pettijohn
On Aug 26, 2019 8:59 AM, Jason Mitchell wrote: > > On Aug 25, 2019, at 8:26 AM, Rhialto wrote: > > >>  | I _can't imagine_ how many stupid things I just did, but could > >>  | someone please tell me how to get that install image onto the > >>  | flash drive in a form that will boot? > >> >

Re: Write an install image to a flash drive?

2019-08-26 Thread Edgar Pettijohn
Just install the system to the flash drive instead of the hard drive. On Aug 25, 2019 3:54 PM, Bob Bernstein wrote: > > Thanks for your reflections on USB sticks and booting therefrom! > > I know I am going to do more experiments with them. I bought two > 64 gig sticks, one of which I used to

Re: Zfs on NetBSD

2019-07-27 Thread Edgar Pettijohn
Haven't used it myself, but there is probably a module you need to load first. Edgar On Jul 26, 2019 1:55 PM, Ron Georgia wrote: > > All, > I am trying to setup (i.e. learn about) zfs. I see /sbin/zfs; however, when I > issue a zfs command I get the following error. I can’t find much info on >

Re: gpg2 with mutt

2019-03-09 Thread Edgar Pettijohn
On Mar 9, 2019 4:14 PM, Bob Bernstein wrote: > > I am running afould the cursed "Can't open PGP subprocess!: No such > file or directory (errno = 2)" message trying to sign a message in > mutt. > > Are the gpg2 executables not being found because they are in our > /usr/pkg directory tree? >

Re: Raspberry Pi as bridge

2019-01-22 Thread Edgar Pettijohn
On Jan 22, 2019 1:49 PM, Greg Troxel wrote: > > Jörn Clausen writes: > > > I am trying to use a Raspberry Pi running > > > > NetBSD armv7 8.99.30 NetBSD 8.99.30 (RPI2) > > > > as a bridge to extend my WiFi net to some devices. I have two NICs, > > usmsc0 (internal RJ45) and urtwn0 (WiFi USB).

Re: postfix alternatives on NetBSD / pkgsrc

2019-01-18 Thread Edgar Pettijohn
On Jan 18, 2019 8:16 AM, Mayuresh wrote: > > On Fri, Jan 18, 2019 at 08:03:41AM -0600, Edgar Pettijohn wrote: > > > 554 5.7.1 > > > > Seems like 550 would be a better error code for this situation. > > I was trying to set that (as I noticed gmail didn't compl

Re: postfix alternatives on NetBSD / pkgsrc

2019-01-18 Thread Edgar Pettijohn
On Jan 18, 2019 7:41 AM, Mayuresh wrote: > > On Fri, Jan 18, 2019 at 06:45:06AM -0600, Edgar Pettijohn wrote: > > I think you should post the logs from your postfix test with Gmail > > issue. I bet someone here knows an option to correct it. > > Not much I can see. I

Re: postfix alternatives on NetBSD / pkgsrc

2019-01-18 Thread Edgar Pettijohn
On Jan 18, 2019 2:08 AM, Mayuresh wrote: > > On Fri, Jan 18, 2019 at 07:50:52AM +0100, Niels Dettenbach (Syndicat IT & > Internet) wrote: > > We use EXIM since decades now from small satellite mailer setups to very > > large ISP setups after migrated from sendmail and postfix as they brought

Re: libstdc++.so.7 is missing

2019-01-17 Thread Edgar Pettijohn
On Jan 17, 2019 7:35 AM, Pedro Pinho wrote: > > Nope, this was/is 8.0 from the start. > I've done a full upgrade from Q3 to Q4 that's all. I know I shouldn't mix quaternary releases. > Please, have a look at http://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/amd64/8.0/All/ and you will see that

Re: Mailing list manager on NetBSD

2019-01-11 Thread Edgar Pettijohn
On Jan 10, 2019 10:16 PM, Brett Lymn wrote: > > On Thu, Jan 10, 2019 at 07:07:02PM -0600, ed...@pettijohn-web.com wrote: > > > > Take a look at fdm. It can be used to fetch from imap/pop and deliver > > locally or take messages from stdin and deliver them. The config allows > > for piping

Re: rmt(8)

2019-01-10 Thread Edgar Pettijohn
On Jan 10, 2019 4:13 AM, Chavdar Ivanov wrote: > > Historically the remote tape path: > > % grep '/etc/rmt' /usr/src/sbin/dump/pathnames.h > #define   _PATH_RMT   "/etc/rmt" > Cool. I kinda guessed it was historical. Thanks, Edgar > On Thu, 10 Jan 2019 at 03:22, wrote: > > > > Hello

Re: Mailing list manager on NetBSD

2019-01-08 Thread Edgar Pettijohn
On Jan 8, 2019 7:49 PM, Mayuresh wrote: > > On Tue, Jan 08, 2019 at 11:21:30AM -0600, Edgar Pettijohn wrote: > > > Lastly it needs to be available in pkgsrc. > > > > > > > I'm not sure if it is in pkgsrc but mlmmj is nice. > > Thanks. Seems

Re: Mailing list manager on NetBSD

2019-01-08 Thread Edgar Pettijohn
On Jan 8, 2019 10:15 AM, Mayuresh wrote: > > I am looking to set up a mailing list manager on a NetBSD server. > > The member count is more or less fixed between 300 to 350 and isn't going > to grow beyond. > > The email archive should be browsable and searchable through a web > interface.

Re: npf woes

2018-05-13 Thread Edgar Pettijohn
On Sun, May 13, 2018 at 09:33:43AM -0500, Edgar Pettijohn wrote: > On Sun, May 13, 2018 at 09:18:18PM +0700, Gua Chung Lim wrote: > > * Edgar Pettijohn (ed...@pettijohn-web.com) wrote: > > > Looks like I may need to load some modules. > > > > # modload npf >

Re: npf woes

2018-05-13 Thread Edgar Pettijohn
On Sun, May 13, 2018 at 09:18:18PM +0700, Gua Chung Lim wrote: > * Edgar Pettijohn (ed...@pettijohn-web.com) wrote: > > Looks like I may need to load some modules. > > # modload npf > # cd /dev > # sh MAKEDEV npf > # modload npf_ext_log > # modload npf_ext_normalize

Re: npf woes

2018-05-13 Thread Edgar Pettijohn
Looks like I may need to load some modules.

npf woes

2018-05-13 Thread Edgar Pettijohn
I'm attempting to test npf, but can't get it started. I am getting the following: laptop$ sudo service npf start Enabling NPF. npfctl: cannot open '/dev/npf': Device not configured npfctl: cannot open '/dev/npf': Device not configured laptop$ ls -l /dev | grep npf crw--- 1 root wheel

Re: edgerouter lite

2018-05-07 Thread Edgar Pettijohn
On Mon, May 07, 2018 at 09:19:23PM +, m...@netbsd.org wrote: > On Mon, May 07, 2018 at 06:51:42AM -0500, ed...@pettijohn-web.com wrote: > > Appreciate your response. I feel confident I can install. More curious > > about what isn't supported yet. Such as multiple processors, altq, and the >

Re: Synaptics trackpad

2018-05-07 Thread Edgar Pettijohn
On Mon, May 07, 2018 at 05:27:53PM -0400, C?g wrote: > The version of xf86-input-synaptics in wip is 1.2.1; it cannot be > compiled because of LocalDevicePtr errors ('unknown type name'); now > the latest version is 1.9.0, and it can't be compiled because it can't > find sys/mouse.h. What is

edgerouter lite

2018-05-06 Thread Edgar Pettijohn
I'm curious as to the current state of affairs for the edgerouter lite. I saw this: https://blog.netbsd.org/tnf/entry/hands_on_experience_with_edgerouter However, it is a couple of years old now. I tried to find an INSTALL.html for it, but have been unsuccessful. Any information is appreciated.

edgerouter lite

2018-05-06 Thread Edgar Pettijohn
Just curious if anyone knows the current state of affairs for the edgerouter lite. I saw this https://blog.netbsd.org/tnf/entry/hands_on_experience_with_edgerouter. Its a couple of years old now though. I found the install media and what not, but I didn't see an INSTALL.html file. Thanks, Edgar

Re: Can I use NetBSD as a desktop system?

2017-07-17 Thread Edgar Pettijohn
Depends on the desk. ⁣Sent from BlueMail ​ On Jul 17, 2017, 1:31 PM, at 1:31 PM, SOUL_OF_ROOT 55 wrote: >Can I use NetBSD as a desktop system?

Re: npf configuration

2017-07-15 Thread Edgar Pettijohn
On 07/15/17 13:18, Jan Danielsson wrote: On 07/15/17 20:08, Edgar Pettijohn wrote: pass in on egress inet proto tcp from any to (egress) port { 80 443 } rdr-to 192.168.1.2 would redirect $ext_if port http, https to $int_if port http, https [---] Looked through the manual again and it looks

npf configuration

2017-07-15 Thread Edgar Pettijohn
I was curious if npf can perform redirects similar to pf? For example the following pf rule: pass in on egress inet proto tcp from any to (egress) port { 80 443 } rdr-to 192.168.1.2 would redirect $ext_if port http, https to $int_if port http, https I've read the npf.conf manual and it

Re: rc and login classes

2017-07-08 Thread Edgar Pettijohn
, 2017, 3:10 PM, at 3:10 PM, Alexander Nasonov <al...@yandex.ru> wrote: >Edgar Pettijohn wrote: >> Look at rc.subr. it calls su to start the daemon. Look at the >> manual for rc.subr I think there are some variables you could add >> to the rc.d script to change the behavio

Re: rc and login classes

2017-07-07 Thread Edgar Pettijohn
On 07/07/17 15:11, Alexander Nasonov wrote: Edgar Pettijohn wrote: Look at rc.subr. it calls su to start the daemon. Look at the manual for rc.subr I think there are some variables you could add to the rc.d script to change the behavior. I only see su -m user -c ... in rc.subr. It's

Re: rc and login classes

2017-07-07 Thread Edgar Pettijohn
;al...@yandex.ru> wrote: >Edgar Pettijohn wrote: >> did you: >> # cap_mkdb /etc/login.conf > >Yes, I did run it. > >> > My understaning is that the tor process doesn't move to the "tor" >> > login class when switching a user. As a result, I can't res

Re: rc and login classes

2017-07-06 Thread Edgar Pettijohn
On 07/06/17 16:00, Alexander Nasonov wrote: Another issue on my server was trying to start a service (tor relay in my case) with a low limit on open files in the default login class. The relay starts as root but then it swiches to user "tor". I set the login class of the tor user to "tor"

/usr/pkg best practices

2017-07-03 Thread Edgar Pettijohn
I'm curious the best way to override utilities from base with utilities in /usr/pkg. For now I've just moved /usr/pkg up in my $PATH. Seems like there may be a more NetBSDish way to do it. Thanks, Edgar

Re: powerd

2017-07-02 Thread Edgar Pettijohn
On 07/02/17 03:40, Robert Elz wrote: Date:Sat, 1 Jul 2017 22:17:12 -0500 From:Edgar Pettijohn <ed...@pettijohn-web.com> Message-ID: <8fde5619-8942-3a5b-2be5-ac8772811...@pettijohn-web.com> | so I'm not really sure which list to send what to yet

powerd

2017-07-01 Thread Edgar Pettijohn
Just started with NetBSD, so I'm not really sure which list to send what to yet. I was reading the powerd manual and it says: "Configuration scripts are run synchronously; powerd will start the script and wait for its completion before it handles the next event." Shouldn't that be