Re: Making motd great again

2016-11-19 Thread Gareth Nelson
Filling the terminal isn't really a major issue though is it?
Terminals do scroll after all

---
“Lanie, I’m going to print more printers. Lots more printers. One for
everyone. That’s worth going to jail for. That’s worth anything.” -
Printcrime by Cory Doctrow

Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

On Sun, Nov 20, 2016 at 4:28 AM, Chad Dougherty  wrote:

> On 2016-11-19 16:43, Stuart Henderson wrote:
>
>> To even get to the point of reading motd, a new user is going to already
>> need
>> to have found documentation.
>>
>
> I can think of several examples where that's not true.
>
> Filling 2/3 of an 80x24 terminal at login by default
>> seems quite a lot especially when a lot of it says many of the same things
>> mentioned by "help"..
>>
>>
> You're right but I also don't think filling 2/3 of an 80x24 terminal with
> bug reporting guidance is useful either.  How about simply:
> '''
> Welcome to OpenBSD: The proactively secure Unix-like operating system.
>
> New users can type "help" for information about using the system.
>
> '''
>
> I won't belabor the point the further.
>
> --
> -Chad



Re: Making motd great again

2016-11-19 Thread Chad Dougherty

On 2016-11-19 16:43, Stuart Henderson wrote:

To even get to the point of reading motd, a new user is going to already need
to have found documentation.


I can think of several examples where that's not true.


Filling 2/3 of an 80x24 terminal at login by default
seems quite a lot especially when a lot of it says many of the same things
mentioned by "help"..



You're right but I also don't think filling 2/3 of an 80x24 terminal 
with bug reporting guidance is useful either.  How about simply:

'''
Welcome to OpenBSD: The proactively secure Unix-like operating system.

New users can type "help" for information about using the system.

'''

I won't belabor the point the further.

--
-Chad



Re: slowcgi "no such file or directory" ... yes there is !!

2016-11-19 Thread Ingo Schwarze
Hi Bob,

Bob Jones wrote on Sat, Nov 19, 2016 at 11:17:35PM +:

> I've no idea where to start troubleshooting this one !
> 
> Nov 19 23:12:50 fw slowcgi[60158]: execve
> /htdocs/my.example.com/cgi-bin/test.pl: No such file or directory
> # ls /var/www/htdocs/my.example.com/cgi-bin/test.pl
> /var/www/htdocs/my.example.com/cgi-bin/test.pl

Le'mme guess...

The first line of test.pl reads "#!/usr/bin/perl"
and /var/www/usr/bin/perl doesn't exist?

Just out of the blue,
  Ingo



slowcgi "no such file or directory" ... yes there is !!

2016-11-19 Thread Bob Jones
On OpenBSD6.

I've no idea where to start troubleshooting this one !

Nov 19 23:12:50 fw slowcgi[60158]: execve
/htdocs/my.example.com/cgi-bin/test.pl: No such file or directory
# ls /var/www/htdocs/my.example.com/cgi-bin/test.pl
/var/www/htdocs/my.example.com/cgi-bin/test.pl


# cat /etc/httpd.conf
server "my.example.com" {
listen on 198.51.100.2 tls port 443
log { access "example-access.log", error "example-error.log" }
connection { max requests 500, timeout 3600 }
root "/htdocs/my.example.com"
tls {
key "/etc/ssl/private/my_example_com.key",
certificate "/etc/ssl/my_example_com.cer"
}
hsts {
max-age 15768000
}
location "/cgi-bin/*" {
fastcgi
}
}

# cat /etc/rc.conf.local
httpd_flags=
slowcgi_flags=



Re: [6.0 Stable] Thunderbird + Enigmail fail (resolved)

2016-11-19 Thread Stephane HUC "CIOTBSD"
OK, this night i've found why not run!

it fault pinentry-gtk2.

After install-it, it's run correctly.

PS : https://bugs.gnupg.org/gnupg/issue2680 <= this help me to
understand the reason. ;)


On 11/16/16 12:03, Stephane HUC "CIOTBSD" wrote:
> Hi all.
> 
> I've a pb to sign and cifer emails with Thunderbird+Enigmail.
> 
> TBird version: 45. 2.0
> Enigmail as addon: 1.9.6
> 
> My ~/.gnupg/gpg.conf pastebined:
> https://paste.debian-fr.xyz/?5cf0b21a0aca1c65#xICcOcZCf01WXBPRi9Ue1v4IQnNmC8ITNMcPJx20VIU=
> 
> My ~/.gnupg/dirmngr.conf:
> hkp-cacert /home/my_userid/Documents/K/others/sks-keyservers.netCA.pem
> 
> The Enigmail.log pastebined:
> https://paste.debian-fr.xyz/?843d63290a15daea#Gq9jaa4tQGlG/2T/SEwGMmyvl6kPb2pdofQ84TiBhE8=
> 
> I can not sign or cifer email.
> As see in enigmail.log: gpg: échec de la signature : Inappropriate
> ioctl for device
> 
> Where is the problem?!
> 
> 
> 
> Just for information, TB profile run correctly on Debian Jessie ;-)
> 
> 

-- 
~ " Fully Basic System Distinguish Life! " ~ " Libre as a BSD " +=<<<

Stephane HUC as PengouinPdt or CIOTBSD
b...@stephane-huc.net



Re: Making motd great again

2016-11-19 Thread Stuart Henderson
On 2016-11-19, Chad Dougherty  wrote:
> I've been using OpenBSD since version 2.3 (pmax) and I've never felt 
> like the default motd instills in users the appropriate level of 
> confidence in the system.  "What, I'm just logging in and they're 
> already telling me how to report and fix bugs?  Bummer, man!"
>
> We can do better.  TREMENDOUSLY better.  motd has been reduced to 
> rubble, believe me.

To even get to the point of reading motd, a new user is going to already need
to have found documentation. Filling 2/3 of an 80x24 terminal at login by 
default
seems quite a lot especially when a lot of it says many of the same things
mentioned by "help"..



Re: Making motd great again

2016-11-19 Thread Mark Carroll
On 19 Nov 2016, Chad Dougherty wrote:

> Our developers have spent countless hours improving these
> man pages so that they are clear and precise so please read them
> carefully.

For what it's worth, I do applaud this pointer to the documentation.
There are many questions I've not sent to this list because I went
back and looked again through the manpages and suchlike before
finally hitting "send".

-- Mark



Making motd great again

2016-11-19 Thread Chad Dougherty
I've been using OpenBSD since version 2.3 (pmax) and I've never felt 
like the default motd instills in users the appropriate level of 
confidence in the system.  "What, I'm just logging in and they're 
already telling me how to report and fix bugs?  Bummer, man!"


We can do better.  TREMENDOUSLY better.  motd has been reduced to 
rubble, believe me.


How about something like this instead:
'''
Welcome to OpenBSD: The proactively secure Unix-like operating system.

New users can type "help" for information about using the system.
Documentation is contained in the system manual pages. If you are
unfamiliar with how to read them, type "man man" at a shell prompt
and read the entire thing. Pay specific attention to the "-k" option,
which will permit you to find the man page you are looking for more
easily.  Our developers have spent countless hours improving these
man pages so that they are clear and precise so please read them
carefully.

Additional information is available in the project web pages:
https://www.OpenBSD.org/
and particularly the "Frequently Asked Questions" section at:
https://www.OpenBSD.org/faq/
'''

--
-Chad



Re: pkg_add: signify broken pipe when running from script

2016-11-19 Thread Patrik Lundin
On Sat, Nov 19, 2016 at 06:27:16PM +0100, Marc Espie wrote:
> Wondering if your script isn't passing some weird signal handling (such as
> ignoring some signals) through.
> 

Seems like you are on to something :).

Some googling led me here:
https://blog.nelhage.com/2010/02/a-very-subtle-bug/

It talks about how python ignores SIGPIPE and shows how it can be worked
around when using subprocess.Popen.

I can solve the problem by adding the following line in /usr/sbin/pkg_add:
===
$SIG{PIPE} = 'DEFAULT';
===

-- 
Patrik Lundin



Re: pkg_add: signify broken pipe when running from script

2016-11-19 Thread Marc Espie
Wondering if your script isn't passing some weird signal handling (such as
ignoring some signals) through.

I've had a few reports related to signify broken pipes, but I haven't been
able to reproduce anything, so I'm not quite up to debugging problems I can't
see...



Re: pkg_add: signify broken pipe when running from script

2016-11-19 Thread Patrik Lundin
On Sat, Nov 19, 2016 at 03:55:07PM +0100, Patrik Lundin wrote:
> Hello,
> 
> I have noticed that pkg_add will behave differently when being executed
> from a script when compared to running it manually on the command line.
> 

I forgot to mention that all the testing is done on a fresh -current
machine.

-- 
Patrik Lundin



pkg_add: signify broken pipe when running from script

2016-11-19 Thread Patrik Lundin
Hello,

I have noticed that pkg_add will behave differently when being executed
from a script when compared to running it manually on the command line.

This is creating problems for the ansible openbsd_pkg module.

This is what I see, first running manually which is fine:
===
# pkg_add nmap
quirks-2.270 signed on 2016-11-18T14:37:13Z
nmap-7.30: ok

# pkg_add nmap
quirks-2.270 signed on 2016-11-18T14:37:13Z
#
===

Deleting nmap again to start over:
===
# pkg_delete nmap
nmap-7.30: ok
Read shared items: ok
===

Now executing pkg_add from python:
===
# ./run_pkg_add.py
quirks-2.270 signed on 2016-11-18T14:37:13Z
nmap-7.30: ok

# ./run_pkg_add.py
quirks-2.270 signed on 2016-11-18T14:37:13Z
Error from 
http://ftp.eu.openbsd.org/pub/OpenBSD/snapshots/packages/amd64/nmap-7.30.tgz
signify: write to stdout: Broken pipe
#
===

Note that the first run is successfull, while the second run throws a
broken pipe error from signify.

The python code:
===
#!/usr/bin/env python

import shlex
import subprocess

command = "pkg_add nmap"

args = shlex.split(command);

subprocess.call(args)
===

This is python-2.7.12p1.

I have been doing some print-debugging in
/usr/libdata/perl5/OpenBSD/PackageRepository.pm trying to figure out
what is going on, but so far no luck.

-- 
Patrik Lundin



Re: hydrogen bomb explosion

2016-11-19 Thread Theo Buehler
On Sat, Nov 19, 2016 at 09:47:43AM +0100, Otto Moerbeek wrote:
> On Sat, Nov 19, 2016 at 09:36:02AM +0100, Otto Moerbeek wrote:
> 
> > On Fri, Nov 18, 2016 at 10:31:28AM -0600, Carson Chittom wrote:
> > 
> > > Carson Chittom  writes:
> > > 
> > > > Today's calendar reminder includes:
> > > >
> > > >> Nov 18 First hydrogen bomb blasts Enewetok, 1952
> > > >
> > > > All the sources I could find online say that the first hydrogen bomb,
> > > > the Ivy Mike device, was actually detonated on Nov 1 local (Oct 31
> > > > UTC).  Wikipedia has a writeup https://en.wikipedia.org/wiki/Ivy_Mike
> > > >
> > > > Additionally, the common spelling of the atoll appears to be Enewetak
> > > > (not -tok).
> > > 
> > > Sorry, should have said, this is from calendar.history.
> > > 
> > > Though I note that calendar.ushistory includes a line also:
> > > 
> > > > 05/21US explodes first hydrogen bomb, 1956
> > > 
> > > Not sure what this is a reference to.
> > 
> > This is probably referring to the Cherokee test.
> > 
> > https://en.wikipedia.org/wiki/Operation_Redwing
> > 
> > -Otto
> 
> Which amounts to this diff, going for UTC to determine date.

ok tb@

> 
> Index: calendar.history
> ===
> RCS file: /cvs/src/usr.bin/calendar/calendars/calendar.history,v
> retrieving revision 1.79
> diff -u -p -r1.79 calendar.history
> --- calendar.history  14 Sep 2016 14:10:18 -  1.79
> +++ calendar.history  19 Nov 2016 08:46:31 -
> @@ -420,6 +420,7 @@
>  10/29Leibniz makes the first use of the "long s" for integral, 1675
>  10/30Communist Party of Australia founded in Sydney, 1920
>  10/31Luther nails 95 Theses to door of Castle Church, Wittenberg, 
> 1517
> +10/31First hydrogen bomb blasts Enewetak, 1952
>  11/01Austria-Hungary become two separate nations, 1918
>  11/01Puerto Rican nationalists try to kill Truman at the Blair 
> House, 1950
>  11/02Luftwaffe completes 57 consecutive nights of bombing of London, 
> 1940
> @@ -444,7 +445,6 @@
>  11/16Opening of the Suez Canal, 1869
>  11/16Albert Hofmann synthesizes LSD in Switzerland, 1938
>  11/17Elizabeth I of England succeeds Queen Mary I of England, 1558
> -11/18First hydrogen bomb blasts Enewetok, 1952
>  11/19Samuel Goldwyn and Edgar Selwyn establish Goldwyn Company, 1916
>  11/20Nuremberg Trials against 24 Nazi war criminals begin, 1945
>  11/21Birmingham Pub Bombings by the IRA kill 21 people, 1974
> Index: calendar.ushistory
> ===
> RCS file: /cvs/src/usr.bin/calendar/calendars/calendar.ushistory,v
> retrieving revision 1.5
> diff -u -p -r1.5 calendar.ushistory
> --- calendar.ushistory2 Jan 2015 08:02:20 -   1.5
> +++ calendar.ushistory19 Nov 2016 08:46:31 -
> @@ -70,7 +70,7 @@
>  05/0994 degrees F, New York, 1979
>  05/15Asylum for Inebriates founded, Binghamton NY, 1854
>  05/17Six SLA members killed in televised gun fight, 1974
> -05/21US explodes first hydrogen bomb, 1956
> +05/20US explodes first air-delivered hydrogen bomb, 1956
>  05/22US Civil War ends, 1865
>  05/26Congress sets first immigration quotas, 1924
>  05/27Golden Gate Bridge opens, 1937



Re: hydrogen bomb explosion

2016-11-19 Thread Otto Moerbeek
On Sat, Nov 19, 2016 at 09:36:02AM +0100, Otto Moerbeek wrote:

> On Fri, Nov 18, 2016 at 10:31:28AM -0600, Carson Chittom wrote:
> 
> > Carson Chittom  writes:
> > 
> > > Today's calendar reminder includes:
> > >
> > >> Nov 18 First hydrogen bomb blasts Enewetok, 1952
> > >
> > > All the sources I could find online say that the first hydrogen bomb,
> > > the Ivy Mike device, was actually detonated on Nov 1 local (Oct 31
> > > UTC).  Wikipedia has a writeup https://en.wikipedia.org/wiki/Ivy_Mike
> > >
> > > Additionally, the common spelling of the atoll appears to be Enewetak
> > > (not -tok).
> > 
> > Sorry, should have said, this is from calendar.history.
> > 
> > Though I note that calendar.ushistory includes a line also:
> > 
> > > 05/21US explodes first hydrogen bomb, 1956
> > 
> > Not sure what this is a reference to.
> 
> This is probably referring to the Cherokee test.
> 
> https://en.wikipedia.org/wiki/Operation_Redwing
> 
>   -Otto

Which amounts to this diff, going for UTC to determine date.

Index: calendar.history
===
RCS file: /cvs/src/usr.bin/calendar/calendars/calendar.history,v
retrieving revision 1.79
diff -u -p -r1.79 calendar.history
--- calendar.history14 Sep 2016 14:10:18 -  1.79
+++ calendar.history19 Nov 2016 08:46:31 -
@@ -420,6 +420,7 @@
 10/29  Leibniz makes the first use of the "long s" for integral, 1675
 10/30  Communist Party of Australia founded in Sydney, 1920
 10/31  Luther nails 95 Theses to door of Castle Church, Wittenberg, 1517
+10/31  First hydrogen bomb blasts Enewetak, 1952
 11/01  Austria-Hungary become two separate nations, 1918
 11/01  Puerto Rican nationalists try to kill Truman at the Blair House, 1950
 11/02  Luftwaffe completes 57 consecutive nights of bombing of London, 1940
@@ -444,7 +445,6 @@
 11/16  Opening of the Suez Canal, 1869
 11/16  Albert Hofmann synthesizes LSD in Switzerland, 1938
 11/17  Elizabeth I of England succeeds Queen Mary I of England, 1558
-11/18  First hydrogen bomb blasts Enewetok, 1952
 11/19  Samuel Goldwyn and Edgar Selwyn establish Goldwyn Company, 1916
 11/20  Nuremberg Trials against 24 Nazi war criminals begin, 1945
 11/21  Birmingham Pub Bombings by the IRA kill 21 people, 1974
Index: calendar.ushistory
===
RCS file: /cvs/src/usr.bin/calendar/calendars/calendar.ushistory,v
retrieving revision 1.5
diff -u -p -r1.5 calendar.ushistory
--- calendar.ushistory  2 Jan 2015 08:02:20 -   1.5
+++ calendar.ushistory  19 Nov 2016 08:46:31 -
@@ -70,7 +70,7 @@
 05/09  94 degrees F, New York, 1979
 05/15  Asylum for Inebriates founded, Binghamton NY, 1854
 05/17  Six SLA members killed in televised gun fight, 1974
-05/21  US explodes first hydrogen bomb, 1956
+05/20  US explodes first air-delivered hydrogen bomb, 1956
 05/22  US Civil War ends, 1865
 05/26  Congress sets first immigration quotas, 1924
 05/27  Golden Gate Bridge opens, 1937



Re: hydrogen bomb explosion

2016-11-19 Thread Otto Moerbeek
On Fri, Nov 18, 2016 at 10:31:28AM -0600, Carson Chittom wrote:

> Carson Chittom  writes:
> 
> > Today's calendar reminder includes:
> >
> >> Nov 18 First hydrogen bomb blasts Enewetok, 1952
> >
> > All the sources I could find online say that the first hydrogen bomb,
> > the Ivy Mike device, was actually detonated on Nov 1 local (Oct 31
> > UTC).  Wikipedia has a writeup https://en.wikipedia.org/wiki/Ivy_Mike
> >
> > Additionally, the common spelling of the atoll appears to be Enewetak
> > (not -tok).
> 
> Sorry, should have said, this is from calendar.history.
> 
> Though I note that calendar.ushistory includes a line also:
> 
> > 05/21US explodes first hydrogen bomb, 1956
> 
> Not sure what this is a reference to.

This is probably referring to the Cherokee test.

https://en.wikipedia.org/wiki/Operation_Redwing

-Otto