autologin on boot

2021-01-12 Thread Roderick



What is the easiest way to do the following with openbsd:

https://lists.freebsd.org/pipermail/freebsd-questions/2004-March/042040.html

???

I do not see an :al: capability in "man gettytab".

I think it is exagerated to write a substitute for getty for
only circumventing the login dialog.

If someone thinks it is not secure, my answer is: it is very secure.
I only want to make from a thin client a music box, connected to
usb flash memory, a mini keyboard and the audio amplifier, not to
the internet.

Rodrigo



Re: OpenBSD as a NAS

2020-12-05 Thread Roderick



On Sat, 5 Dec 2020, Georg Bege wrote:


keep in mind that the ZFS supported versions may be quite different.

The "one ZFS for many OS" isn't really working in reality,

you may not be able to import your pool into different OS than the one
you've created it with.


Indeed there is this risk. I only superficially testet long ago
compatibility between Ilumos and FreeBSD.

But ist there a waranty that UFS partitions created in one system can
be always mounted without big problems in other systems?

Rod.



Re: OpenBSD as a NAS

2020-12-04 Thread Roderick



On Fri, 4 Dec 2020, Predrag Punosevac wrote:


OpenBSD is super simple and most reliable OS I have personally dealt
with but the storage OS, it is not. Nevertheless some people are using
in that capacity and to paraphrase Nick's point if OpenBSD is your goto
OS, there is nothing wrong in storing and sharing a few files of OpenBSD
box instead of picking up and introducing another OS into your home
environment.


I choose ZFS mainly for two reasons: (1) selfhailing, (2) it runs under
many OS and hence I am not dependent on a specific OS or hardware vendor.

Unfortunately, OpenBSD does not support ZFS and I see no alternative
till now.

Rod.



Re: OpenBSD as a NAS

2020-12-04 Thread Roderick



On Fri, 4 Dec 2020, Predrag Punosevac wrote:


FreeBSD, ZFS wins hands down. That being said I neither have a need nor
a hardware good enough to use ZFS at home.


I am testing a 500GB ZFS mirror on an intel D945GCLF atom board with 2 GB
Ram. I boot FreeBSD as diskless. It seems to work fine.

Rod.



Re: gcc: error trying to exec 'cc1': execvp: no such file or directory

2020-11-20 Thread Roderick



On Fri, 20 Nov 2020, Bryan Steele wrote:


It took you *6* emails before finally mentioning which platform were
on, even after being asked..


Yes, excuse me, I answered to Nick Samsung nc10, but not mentioned i386.


i386 removed the base gcc compiler in OpenBSD 6.6, so the binaries were


Your link for 6.8 says: "Disabled gcc in base on armv7 and i386."


obsolete even on your 6.7 install.. i386 has been a default clang arch
since OpenBSD /6.2/.


Clang was default, gcc may be obsolete, but /usr/bin/gcc is till now
there, broken. In the upgrade instructions is not mentioned to delete
it:

https://www.openbsd.org/66.html

The man page of gcc-local is till now (6.8) delivered in comp68.tgz

Rod.



Re: gcc: error trying to exec 'cc1': execvp: no such file or directory

2020-11-20 Thread Roderick



On Thu, 19 Nov 2020, Todd C. Miller wrote:


On Thu, 19 Nov 2020 22:07:33 +, Roderick wrote:


g++, gcc and gcov in /bin are from Apr 13, 2019. The rest are from
Oct 5, 2020.


That explains your problem.  The upgrade would have removed any
obsolete /usr/lib/gcc-lib/amd64-unknown-openbsd* directory which
the old gcc binaries require.


tar tvzf base68.tgz | grep gcc

gives nothing. It seems, gcc was removed from i386. That explains
the old date of my gcc binary that was never deleted. But that
does not explain that /usr/lib/gcc-lib disappeared. I think it
was never in the upgrade instructions to delete it.

I tested my disk with gsmartcontrol and it is OK. Problems
that my gigant root fs could bring are, in my oppinion, only
when booting, and they never occur.

Rod.



Re: gcc: error trying to exec 'cc1': execvp: no such file or directory

2020-11-19 Thread Roderick



Thanks you both, Nick, Todd!

On Thu, 19 Nov 2020, Todd C. Miller wrote:


There should now be a /usr/lib/gcc-lib/amd64-unknown-openbsd6.8
directory for use by the updated gcc/g++ but for some reason you
don't have those updated gcc binaries.


I do not even have a directory /usr/lib/gcc-lib, but I sure had
it at a time, I did use gcc before.


Perhaps you ran out of space in /usr or some other problem prevented
the sysupgrade from finishing.


Out of space is impossible. Used 8.8G from 131G. The problem is
perhaps the so big /dev/wd0a containing everything? It was never
before a problem. I am now testing the disc with gsmartcontrol.


Nick's advice is good.  There are obsolete file removal instructions
in the Upgrade Guide, e.g.


I always did delete then in upgrade68 and upgrade67


Once you have the obsolete files removed, do a manual upgrade from
the 6.8 bsd.rd and it should fix things.


I will be upgrading to 6.8 from 6.8. :)

Good night
Rod.



Re: gcc: error trying to exec 'cc1': execvp: no such file or directory

2020-11-19 Thread Roderick



On Thu, 19 Nov 2020, Nick Holland wrote:


Worst case, unload all pacakges, then go through the /usr, /bin and /bin
directories looking for files older than your current install, and
removing
them (most of them aren't bad.  But something isn't right).  Then do
another upgrade to whatever you want to be running, because you probably
just blew away something incorrectly.  Finally, reinstall packages you
want.


g++, gcc and gcov in /bin are from Apr 13, 2019. The rest are from
Oct 5, 2020.

rbound in /sbin is from Oct 12, 2019. vmctl and vmd in sbin are from
Oct 11, 2018. The rest from Oct 5, 2020.

In the directories in /usr are a lot of old files. Perhaps some libraries
play a role.

Rod.



Re: gcc: error trying to exec 'cc1': execvp: no such file or directory

2020-11-19 Thread Roderick



Upgraded from 6.7 to 6.8 in a very nice Samsung nc10 nettop.

Upgrade with sysupgrade, third time done with it. As I remember, I always
followed carefully the instructions.

The problem arose, I suspect, on 6.6 (upgraded, but did not use it
to much) or on 6.7.

I wanted to run gcc that I always had there, base gcc. I never used
something called egcc. If I installed the package now, then because
I though gcc was removed.

In worst case I back up some files and reinstall. But perhaps someone
knows the cause.

Rod.


On Thu, 19 Nov 2020, Nick Holland wrote:


On 2020-11-19 08:36, Roderick wrote:


broken gcc is the old gcc, the one of the package is installed as egcc.

Do only I have a broken gcc?

R.

On Thu, 19 Nov 2020, Roderick wrote:



After upgrading, I still have gcc, but no package gcc.

I get the above error. I get it also after installing gcc, and also after
deinstalling it, making "pkg_delete -a" and reinstalling.

Any hint, what can I do?


You have provided almost no info to go on.
Upgraded from what to what?  On what platform?  What process did you use?
I'm not even sure what you are wanting to do -- run base gcc?  Run a
package gcc?

I think it is very safe to say you made an error somewhere, probably in an
upgrade process.  Not necessarily in your most recent upgrade, it may just
be a problem than finally came home to roost.  Most likely (since I've
done it, I'm going to assume you did), you skipped some important step
in upgradeXX.html that wasn't unimportant.  You may have even got away with
it for a few upgrades since.

Worst case, unload all pacakges, then go through the /usr, /bin and /bin
directories looking for files older than your current install, and removing
them (most of them aren't bad.  But something isn't right).  Then do
another upgrade to whatever you want to be running, because you probably
just blew away something incorrectly.  Finally, reinstall packages you
want.

And to be clear -- I'm NOT advocating deleting old files for giggles or as
any kind of routine activity as part of an upgrade.  But on a screwed up
system, the hunt for old files often reveals what is actually going on.

(in my case, I recently found my userland and kernel were over a year out
of sync on a machine I only use occasionally, due to unsupervised upgrades
and not looking at the results.  I had not properly removed the /var/tmp
directory however long ago that was, and base unpacks a symlink
in /var/tmp to /tmp, that failed, tar bailed and much of baseXX.tgz was
never unpacked.  I'm really surprised this machine was as functional as it
was.)

Nick.






Re: gcc: error trying to exec 'cc1': execvp: no such file or directory

2020-11-19 Thread Roderick



broken gcc is the old gcc, the one of the package is installed as egcc.

Do only I have a broken gcc?

R.

On Thu, 19 Nov 2020, Roderick wrote:



After upgrading, I still have gcc, but no package gcc.

I get the above error. I get it also after installing gcc, and also after
deinstalling it, making "pkg_delete -a" and reinstalling.

Any hint, what can I do?

Thanks.
R.






gcc: error trying to exec 'cc1': execvp: no such file or directory

2020-11-19 Thread Roderick



After upgrading, I still have gcc, but no package gcc.

I get the above error. I get it also after installing gcc, and also after
deinstalling it, making "pkg_delete -a" and reinstalling.

Any hint, what can I do?

Thanks.
R.



Re: Recommended License

2020-10-10 Thread Roderick



And by the same logic, the original BSD license does not demand that
the permission ("Redistribution and use in source and binary forms,
with or without modification, are permitted provided that the
following conditions are met") be copied.

It only demands that the copyright note and the disclaimer be copied, and
also the rule that this must happen in succesive redistributions
(if they are permited in some way).

That "The FreeBSD Project" copirights "the compilation of
software known as FreeBSD" and seems to take himself the right to
license software it has not the copyright, is strange.

Rod.



Re: Recommended License

2020-10-10 Thread Roderick



Well, my last question is perhaps superflous, because it is
impossible to make the many authors agree, but I wonder that
FreeBSD copyrights "The compilation of software known as FreeBSD"
in its /usr/src/COPYRIGHT:


The compilation of software known as FreeBSD is distributed under the
following terms:

Copyright (c) 1992-2020 The FreeBSD Project.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met: [...]
"

Rod.



Recommended License

2020-10-10 Thread Roderick



I just read this:

https://cvsweb.openbsd.org/src/share/misc/license.template?rev=HEAD

It is a nice license, because it is short, and I wonder why a permisive
license cannot be shorter (well, I do not understand the many legal
words).

But perhaps to short? It does not mention that the disclaimer should
be copied as in the original BSD licence. From the meaning I cannot
see that a disclaimer is part of the "permission notice".

As I see, authors in OpenBSD retain their copyright? Do they agree
to a common license for the whole?

Rod.



Re: time_t

2020-10-05 Thread Roderick



On Mon, 5 Oct 2020, Christian Weisgerber wrote:


There's an #ifdef __LP64__ ...


Yes. That is not to oversee, but I oversaw it, because I wanted to
oversee it.

For lazyness I use snprintf to fill the mtime field of a component of
a v7 tar file I generate:

snprintf([136],12,"%011lo", time(NULL));

This was not a problem in FreeBSD, where I wrote the program.
But when I compiled it in OpenBSD, I got an error: time(NULL)
is long long, lo is only long. I thought (without thinking too
much) that this is because sizes are different, and I saw the
included files (without seeing too much) and found a (false)
explanation.

Back to tar files: there is place for 11 octal digits, that is
only twice the time you can count with 32 bits, in years:

2^33/(60*60*24*365.25*2)=136.09930083403047126524

Also not too much. Is it not a better solution to begin a new epoch
every 68.05 years? We can do a big celebration at the beginning of
each new epoch.

Rod.



Re: time_t

2020-10-05 Thread Roderick



The source of my confusion with FreeBSD:

/usr/include/time.h contains: typedef __time_t time_t; and includes
 

/usr/include/sys/types.h includes 

/usr/include/machine/_types.h includes 

/usr/include/x86/_types.h contains:
  typedef __int32_t __time_t;
  typedef int __int32_t;

Of course I am doing something wrong. Perhaps there is a definition
that makes the difference. I write only small programs I need,
no macros, and copy the necessary includes from the man pages, no
nested includes ad nauseam.

Rodrigo


On Mon, 5 Oct 2020, Roderick wrote:



Thanks anybody for the instructive answers!

On Mon, 5 Oct 2020, Todd C. Miller wrote:

> Are you sure about that?  FreeBSD declares __time_t to be __int64_t
> on amd64.  On FreeBSD/amd64 __int64_t is defined as a long.

You are right. My error. I just run:

#include 
#include 
int main() {printf("%ld\n",sizeof(time_t));}

And got: 8.

That is easier than navigating on the include files.

Rodrigo





Re: time_t

2020-10-05 Thread Roderick



Thanks anybody for the instructive answers!

On Mon, 5 Oct 2020, Todd C. Miller wrote:


Are you sure about that?  FreeBSD declares __time_t to be __int64_t
on amd64.  On FreeBSD/amd64 __int64_t is defined as a long.


You are right. My error. I just run:

#include 
#include 
int main() {printf("%ld\n",sizeof(time_t));}

And got: 8.

That is easier than navigating on the include files.

Rodrigo



time_t

2020-10-05 Thread Roderick



The result of time() has type time_t and we know what kind of number
goes there: seconds since 0 hours, 0 minutes, 0 seconds, January 1,
1970, Coordinated Universal Time.

In my FreeBSD running on a 64 bit processor this type is: int (__32_t).
It considers this size enough for above information.

In my OpenBSD running on a 32 bit processor this type is: long long
(__64_t).

None of both has an unsigned type, although time moves forward
(more or less fast!!!).

Is there a reason for this discrepancy? Is there no standard for the
size of time_t?

And what does mean the types with __? I find it so confusing. :)

Rod.



Re: man tar

2020-10-04 Thread Roderick



On Sun, 4 Oct 2020, Ottavio Caruso wrote:


Recent versions of tar(1) on {Free,Net}BSD stipulate: [...]


As far as I know it was always so, as it is also in OpenBSD. But
that is a very interesting issue on history of the tar command.

I see only a documentation problem.

Rod.



man tar

2020-10-04 Thread Roderick



We read there:

"
-f archive

Filename where the archive is stored. Defaults to /dev/rst0. If set to 
hyphen (‘-’) standard output is used. See also the TAPE environment 
variable.


""

Well, hyphen (‘-’) may also mean stdin as expected, but it seems not
to be mentioned/insinuated on the man page.

Rod.


Re: ideas needed for password management

2020-09-24 Thread Roderick



(1) I would separate login to Email (smtp+imap authentication)
from any other login (to machine) as many people told you here.

(2) Perhaps write a cgi script? But that needs a lot of care
due to security.

(3) offer a web mailer that has this service? Prayer webmail has
this, but it looks very primitive, just calls a program as I
remember, and seems not to be mantained. Perhaps other webmail has it?

Rod.



On Wed, 23 Sep 2020, Hakan E. Duran wrote:


Dear all,

I set up a simple mail server on OpenBSD on a VPS, based on OpenSMTP and 
Dovecot. The users will be the Unix users on the VPS for simplicity. However, I 
now have the problem of allowing users setting and modifying their own 
passwords (perhaps even their usernames) without giving them ssh access to the 
host. I don't have technical background and training for this type of work; 
however, I love doing this, please be gentle with me. The mail server is a 
hobby that is intended for family and a few friends, and is not mission 
critical.

I thought something like Webmin could work for this purpose, but without root 
access of course. However, I am not sure if such a tool exists. Any other ideas 
are welcome.

Thank you so much in advance for your suggestions.

Hakan






Re: Must disable /usr/libexec/security on backup disks

2020-09-14 Thread Roderick



On Sun, 13 Sep 2020, Theo de Raadt wrote:


Rupert Gallagher  wrote:


This is stupid.


Your tone is the real stupid.


Well, at least it is not diabolic like the infame tritone.

Rod.



Re: scp host:file* /tmp/nonexistent

2020-08-02 Thread Roderick



On Sat, 1 Aug 2020, Christian Weisgerber wrote:


Public service announcement: The original BSD repository can be
browsed here (converted from SCCS):
https://svnweb.freebsd.org/csrg/

Wanna know what those hippies at Berkeley really did?
You can look it up.


Thanks for the nice repo with the commentaries!

Here is the code for cp:

https://svnweb.freebsd.org/csrg/bin/cp/cp.c?revision=69112=markup
https://svnweb.freebsd.org/csrg/bin/cp/utils.c?revision=66606=markup

A challenge: where does the code distinguish src from src/ ?

Indeed it behaves like rsync, but we read in the source something
that seems to contradict it:

/*
  * Cp has two distinct cases:
  *
  * cp [-R] source target
  * cp [-R] source1 ... sourceN directory
  *
  * In both cases, source can be either a file or a directory.
  *
  * In (1), the target becomes a copy of the source. That is, if the
  * source is a file, the target will be a file, and likewise for
  * directories.
  *
  * In (2), the real target is not directory, but "directory/source".
  */

Was it a bug?

BTW, I do not remember this behaviour in SunOS, but also not in
FreeBSD when I used it many years ago, although it was there.

Rodrigo



Re: scp host:file* /tmp/nonexistent

2020-08-02 Thread Roderick



On Sat, 1 Aug 2020, Theo de Raadt wrote:


Christian Weisgerber  wrote:


On 2020-08-01, Roderick  wrote:


It is not documented in 4.4BSD. I suppose this is not original BSD?


Public service announcement: The original BSD repository can be
browsed here (converted from SCCS):
https://svnweb.freebsd.org/csrg/

Wanna know what those hippies at Berkeley really did?
You can look it up.


I'm not sure you're talking to READERS...


I suppose not, because everyone that is not a kernel developer, left
long ago ashamed the list.



Re: scp host:file* /tmp/nonexistent

2020-08-01 Thread Roderick



On Sat, 1 Aug 2020, Theo de Raadt wrote:


People should really use rsync (which has it's own oddities), ...


For example the ugly behaviour when the source file ends with / ?

Also FreeBSD's cp behave like rsync and is documented in its man page:

-R  If source_file designates a directory, cp copies the directory and
the entire subtree connected at that point. If the source_file
ends in a /, ...

It is not documented in 4.4BSD. I suppose this is not original BSD?

Rod.



Re: how to mount phone?

2020-07-15 Thread Roderick



On Tue, 14 Jul 2020, Peter Nicolai Mathias Hansteen wrote:


What usually works better is to install an sftp client (I use AndFTP
in sftp mode) on the phone and use that to transfer the pictures to your 
machine.


No, no! Better the server on the phone, as I wrote before.

Do you get why? :)

Rod.



Re: how to mount phone?

2020-07-14 Thread Roderick



The easiest way I know is to install in the phone:

https://play.google.com/store/apps/details?id=org.galexander.sshd

and use the WLAN hotspot to transfer files with scp / sftp / rsync.

Rod.



On Mon, 13 Jul 2020, Justin Muir wrote:


Hi,

Just wishing to mount my phone to access photos.

Here's the output from dmesg:

ugen0 at uhub0 port 3 "Alcatel U50? Alcatel U50?" rev 2.00/3.10 addr 2

Any ideas on how this might be mounted??


tia!





Re: Filling a 4TB Disk with Random Data

2020-06-05 Thread Roderick



On Mon, 1 Jun 2020, Eike Lantzsch wrote:


I'd think that a degausser would also erase the servo tracks which will make
the disk irrevocably unusable. If that's what you want then just drill holes
through the disk - it's quicker.


Or perhaps to put it on an induction cooktop?



Re: Filling a 4TB Disk with Random Data

2020-06-05 Thread Roderick



On Fri, 5 Jun 2020, Janne Johansson wrote:


Then again, if you count how many hours it will take to securely erase a
disk, one might doubt the option of "just run this command and it will do
the same in 10 seconds".


Not 10 seconds, but there will be sure a difference if the task is done
by the disk hardware/firmware instead of the CPU/OS/software.

Rod.



Re: Filling a 4TB Disk with Random Data

2020-06-05 Thread Roderick



Is not there a SCSI command "sanitize" for that?

Can be issued with OpenBSD?

Perhaps his disc supports it.

Rod.



Re: timegm()

2020-04-21 Thread Roderick



On Tue, 21 Apr 2020, Otto Moerbeek wrote:


O.K., deprecated. And what is the alternative?


The paragraph above it (discussing timelocal()) suggests it's
mktime().


Thanks. I would preffer to reimplement timegm if it disappears than
going trhough the locale: it should be one or two lines with trivial
arithmetic calculations.

Rodrigo



timegm()

2020-04-21 Thread Roderick



Acording to the man page: "timegm() is a deprecated interface that
converts [...]"

O.K., deprecated. And what is the alternative?

Thanks for any hint
Rodrigo



Re: memmem

2020-04-14 Thread Roderick




On Tue, 14 Apr 2020, Florian Obser wrote:


I thought so, too. No context, no explanation just a one-liner.


I mean the algorithm. It seems there is a lot of hard work to do
with string routines. Also the regular expressions in OpenBSD seems
to be the inefficient, perhaps historical implementation of
Henry Spencer.

BTW. It would be interesting to have something like memmem, but to search
many substrings at the same time. And to have back references in
lex/flex would be fantastic! :)

Rod.



memmem

2020-04-14 Thread Roderick



https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/lib/libc/string/memmem.c?rev=1.4=text/plain

Is that not a little too primitive?

Rod.



Re: strncasecmp

2020-04-10 Thread Roderick



On Fri, 10 Apr 2020, Theo de Raadt wrote:


Because either string could be shorter than len.


Thanks. I get it. :) My non-strings do not have a '\0' in the
first len bytes and I need a case insensitive comparison.
Of course I could ignore strncasecmp and use tolower() to write
the trivial function, ...


"NUL-terminated string" is firmly explaining to people that in C,
a string is only a string if it ends in a NUL.  There's a large
contingent of folk who don't get it.


The word "string" is also found in the man pages of bcmp and memcmp.
Wrote by that large contingent?

Rod.



strncasecmp

2020-04-10 Thread Roderick




From the man page:


"
These functions compare the NUL-terminated strings s1 and s2 and
return an [...].

strncasecmp() and strncasecmp_l() compare at most len characters.
"

Why NULL-terminated when comparing at most len characters?!

Rod.



mail.local / mail

2020-04-04 Thread Roderick




From me



From me


Do you see the two above lines as identical?

mail.local quotes only the first line above with ">".
"mail" does not delete it. See:

https://man.openbsd.org/mail.local

Many years ago I used "mail" a lot with the old SunOS (BSD derivative).
I remember it used MMDF, I remember clearly the ^A^A^A^A separators,
I remember that I used a "mail" program that behaved like the BSD one,
but I do not remember any problem writing "From" at the beginning
of a paragraph following an empty line.

Rodrigo



Re: Question about marketability of OpenBSD Laptops

2020-01-26 Thread Roderick


On Sat, 25 Jan 2020, Michael G Workman wrote:

> their bank accounts are empty, due to banking malware like Zeus, others are
> 
> It seems like most of the victims were using windows computers when these
> attacks happened, 

But how do they internet banking? With the web browser? Then they must
use a secure browser.

If they use other program, I am curious to know what program for 
internet banking with OpenBSD you want to offer.

I would be happy only with retrieving bank account statements with
the german HBCI/FinTS. In my oppinion very verbosely bad documented 
protocols.

Rod.



Re: Android (MTP) with OpenBSD: Tiny success story

2020-01-23 Thread Roderick


BTW. 

If the purpose is transfering files, you can install in Android:

https://play.google.com/store/apps/details?id=org.galexander.sshd

and perhaps

https://play.google.com/store/apps/details?id=jackpal.androidterm

Then using the WiFi hotspot of Android, you can do sftp, rsync,
ssh and scp to your phone in a local net.

No strange MTP protocol needed.

Rodrigo

On Wed, 22 Jan 2020, myml...@gmx.com wrote:

> 
> On 1/22/20 11:37 AM, Stanislav wrote:
> > devel/adb was installed successfully (OpenBSD 6.6).
> > Sorry for that fisrt comment. Then I just got fresh ports. This new report
> > is actual.
> > Adb tool works fine! I made several tests for shell, pull, backup, reboot.
> > The device is the same: mentioned by me before for described umass-method.
> > Android: 4.1.2, baseband & build: Apr 1 2013
> > 
> > 
> > 
> > --
> > Sent from:
> > http://openbsd-archive.7691.n7.nabble.com/openbsd-user-misc-f3.html
> > 
> Android 4.1.2??? wow!!!  It's possible since simple-mtpfs was not
> released until 2013 that it's not compatible, just a thought, not sure.
> 
> The command I use, after creating a directory /mnt/phone is
> "simple-mtpfs --device 1 /mnt/phone/", after which I can see all
> directories on the phone.
> 
> Current devices that i've used simple-mtpfs works perfectly.  You do
> however have to put your device into file transfer mode.
> 
> 
> I included a screen shot, not sure if it will show up.
> 
> usb_settings
> 


Re: Leaving OpenBSD (with patch)

2020-01-08 Thread Roderick


Theo, please, give him the travel blessing, before departure.

Rod.


On Wed, 8 Jan 2020, cho...@jtan.com wrote:

> Some people have needs that OpenBSD doesn't meet. Of course the
> logical thing to do is to adapt it to meet them or to use something
> which does but to some -- in line with the general complexication
> that's progressing nowadays -- this simple solution is not enough
> and the need to announce one's inadequacy to the world in passive
> aggressive tones arises.
> 
> Indeed this happens so commonly that it has become something on the
> order of a FAQ, and in order not to have to eat my own words from
> the other day I've spent actual time in the other text editor doing
> some actual hacking (I know, right?!?) and include this diff for
> the developers' consideration.
> 
> I have taken the liberty of assuming you want to be at least
> moderately polite as you tell people to kindly fuck off. My apologies
> if that's an oversight; I can re-do it if you wish.
> 
> Matthew
> 
> 
> cvs diff: Diffing .
> Index: faq1.html
> ===
> RCS file: /home/flask/src/openbsd/cvsync/www/faq/faq1.html,v
> retrieving revision 1.238
> diff -u -p -r1.238 faq1.html
> --- faq1.html   2 Oct 2019 15:40:06 -   1.238
> +++ faq1.html   8 Jan 2020 16:12:30 -
> @@ -29,6 +29,7 @@ FAQ - Introduction to OpenBSD
>Migrating to OpenBSD
>Reporting Bugs
>Supporting the Project
> +  Flouncing Out
>  
>  
> 
> @@ -415,3 +416,46 @@ contribute.
>If you're a student, talk to your professors about using OpenBSD as a
>learning tool for Computer Science or Engineering courses.
>  
> +
> +Flouncing Out
> +
> +
> +If the bug or other general but il-described annoyance you've recently
> +encountered has not been immediately fixed by the volunteers who
> +create OpenBSD and provide it for free and at their own expense for
> +your personal and frequently unthanked benefit, you may feel that
> +simply leaving quietly and using whatever system you wish because it's
> +not as if anyone even wants to stop you is not enough. In
> +that case you can post a goodbye message to one or more mailing lists
> +expressing your feelings in a last-ditch passive aggressive attempt to
> +make developers, by-standers and the peanut gallery such as your's
> +truly feel sorry for your self-imposed plight or whatever it is you're
> +after (nb. although cross-posting is usually considered bad
> +netiquette, a blind-eye is turned to it when flouncing out in a huff
> + in the case of extreme outrage non-OpenBSD mailing lists may
> +be copied in).
> +
> +
> +The most common variants on this theme, which the OpenBSD project
> +provides free of charge for you to use or adapt as you wish for this
> +or indeed any other purpose, are included here. A popular adaptation
> +is to refer to the alternative obliquely with terms such as "the other
> +camp" or "the enemy".
> +
> +
> +  If OpenBSD won't adopt thing then I will have to
> +  use alternative instead
> +  (a popular variants on this reads "won't make thing
> +  the default").
> +  Other people feel the same; I can't put up with it and have to
> +  use alternative instead.
> +  It's presumed that the popularity of this variant is the hinted
> +  suggestion that more users will eventually bugger off and is
> +  being offered as a good-will gesture  a reminder to the
> +  developers that things will eventually get better.
> +  I would prefer to use OpenBSD but I can't because reason.
> +  unsubscribe
> +
> +
> +
> +Good-bye. Your help has certainly been appreciated.
> 
> 



Re: But there is Fossil...

2020-01-07 Thread Roderick


On Mon, 6 Jan 2020, Sean Kamath wrote:
 
> Having said that, I use whatever repo projects provide.  I’m not here to 
> say VCS “A” is better than VCS “B”, just saying installing various 
> VCS’s under OpenBSD is pretty damn simple.

It seems to be like the wars perl vs python, emacs vs vi, etc.

But no, there are differences: it is groupware, about workflow.
The appropriate VCS may depend on the way people works, see
for example:

https://www.fossil-scm.org/home/doc/trunk/www/fossil-v-git.wiki

BTW, I like that the fossil repository may be everywhere, may
easily created be moved to everyhere, that many checkouts may be 
easily open (GIT has the repository inside the checkout). 
It is indeed the VCS for "solo-repo people". And I like the 
simple format (RCS files) of CVS. Perhaps these things
are les dependent from the workflow.

It is an interesting thema, but perhaps off topic.

Rodrigo


Re: openssl / did something change?

2020-01-06 Thread Roderick


On Mon, 6 Jan 2020, Zé Loff wrote:

> Someone had the same issue some weeks ago.  See:
> https://marc.info/?l=openbsd-misc=157548338310097=2
> and the following discussion.  Solution: add -md md5

Thank you very much for the fast answer. I was a litle in panic.

Rodrigo


openssl / did something change?

2020-01-06 Thread Roderick


I cannot decrypt files with

openssl aes-256-cbc -d -a -salt < encrypted-file.encrypted

That I encrypted with

openssl aes-256-cbc -e -a -salt < file > file.encrypted

I get the error:

bad decrypt
616640944:error:06FFF064:digital envelope routines:CRYPTO_internal:bad 
decrypt:/usr/src/lib/libcrypto/evp/evp_enc.c:527:

And it is very improvable that I forgot the password.

What I do not remember is the version of openssl and if I used
OpenBSD or FreeBSD for encrypting. At the moment I do not have access
to the FreeBSD machine. I tried with a modern slax-linux (in USB Stick)
and it failed also.

I thank you for any hint.

Rodrigo



Re: Request for recommendation - encryption and signature for file backup

2020-01-04 Thread Roderick


On Sat, 4 Jan 2020, Philippe Meunier wrote:

> Roderick wrote:
> >I do use openssl for encrypting files in my laptop.
> 
> So do I.  I only encrypt the 0.001% of files that are really important and
> then those files are encrypted on my computer too, not just on the backup
> system [...]

I have an encrypted partition, that I mount only when necessary. Perhaps
that is also an alternative for Aham: mount, send backup, umount.

Rodrigo



Re: But there is Fossil...

2020-01-04 Thread Roderick



On Sun, 5 Jan 2020, go...@disroot.org wrote:

> so I don't understand what's wrong with FreeBSD and OpenBSD.

I do not see a problem in CVS.



Re: But there is Fossil...

2020-01-04 Thread Roderick


On Sat, 4 Jan 2020, Karel Gardas wrote:

> Fossil is superfine and I'd like it for various reasons too, but unfortunately
> it does not scale to the OpenBSD repo size well.
> 
> As a test, you can try and clone fossil repo of NetBSD and I'm sure you will
> find out quickly why people are working on GoT and OpenGIT.

Perhaps no test necessary, but to read this:

http://fossil-scm.org/home/technote/be8f2f3447ef2ea3344f8058b6733aa08c08336f

But is there realy a need to substitute CVS?

And why should be any repository Git or Got like Git? Because any script
must be python?

And yes, I also like fossil very much.

Rodrigo



Re: Request for recommendation - encryption and signature for file backup

2020-01-03 Thread Roderick


I would perhaps write a script that calls openssl for encripting and
signing, rsync to send new files, something simple.

I do use openssl for encrypting files in my laptop.

Rodrigo


On Thu, 2 Jan 2020, Aham Brahmasmi wrote:

> Namaste misc,
> 
> What tool(s) would you recommend to encrypt and sign a file - correctly
> - for backup?
> 
> I possess a limited ability to read code, and I am certainly not a
> cryptographer.
> 
> In my limited understanding, to securely backup and restore a file, the
> steps are:
> 
> To backup:
> Step 1 - encrypt the file using a tool
> Step 2 - sign the encrypted file using a tool
> Step 3 - backup the signature and the encrypted file
> 
> To restore:
> Step 1 - verify the encrypted backup with its signature
> If Step 1 exits with success,
> Step 2 - decrypt backup to file
> If Step 2 exits with success,
> Step 3 - use file to restore
> 
> For the tools to encrypt and sign, I think I may use the following:
> 
> For encryption: encpipe
> encpipe (https://github.com/jedisct1/encpipe) is ISC licenced, written
> in C by Monsieur Denis and seems simple. If there is one thing that I
> know - and I admit I don't know much - all things being equal, simple
> beats complex.
> 
> However, I do not understand the math underlying the tool or whether all
> things are indeed equal - possible attack vectors, mitigations et al.
> And hence, my request.
> 
> For signature: signify
> I think signify may suffice for signature. For other platforms, minisign
> (https://github.com/jedisct1/minisign) is compatible with signify.
> 
> Dhanyavaad,
> ab
> -|-|-|-|-|-|-|--
> 
> 



Re: perl popularity inside openbsd community? (Re: Suggestion: Replace Perl ...)

2020-01-01 Thread Roderick


BTW. Also tcl has coroutines since a while:

https://www.tcl.tk/man/tcl8.6/TclCmd/coroutine.htm

Rodrigo.



Re: Suggestion: Replace Perl with Lua in the OpenBSD Base System

2019-12-31 Thread Roderick


On Tue, 31 Dec 2019, Theo de Raadt wrote:
> Roderick  wrote:

>> I am curious to know why tcl, my fovourite scripting lanuage, would
>> not be a candidate.
[...]
> Wow, it's a lot like you can't read.

It is more an academic question. I wanted to know more objective
critera than personal preferences when selecting a scripting
language. That perl is prefered, is understandable: it is one of the
oldest and very early on BSD. Tcl is also as old and evolved, 
but its existence is today almost ignored. And I really do not 
understand what new brings python that is today so in fashion, 
the idea that indentation has a semantic does not make me entusiastic.

Rodrigo



Re: Suggestion: Replace Perl with Lua in the OpenBSD Base System

2019-12-31 Thread Roderick


On Tue, 31 Dec 2019, Marc Espie wrote:

> lua would definitely NOT be appropriate for that. The only half valid
> candidate would be python.

I am curious to know why tcl, my fovourite scripting lanuage, would
not be a candidate.

I suspect, tcl is being underestimated, and the decission for one
or other scripting language is mostly guided by personal prefferences
and fashion (today python).

Rodrigo



Re: ownership of mailboxes with dovecot

2019-12-31 Thread Roderick


On Tue, 31 Dec 2019, Eike Lantzsch wrote:

> system user XOR virtual user
> That's what I have to setup now. Correct?

As said, I had UW imap serving system user mailboxes, and now
cyrus imap serving virtual users. You have to decide. With
dovecot I have no other experience than compiling it.

I think, I would preffer now UW Imap, because I have only few and trusted
users, and because it is very simple, no much configuration and 
mantainance needed: it just publishes the mailboxes with imap,
accessed with the system user/password. I installed cyrus imap because 
I wanted some integration with cyrus sasl and ldap that I also use 
for authentication in sendmail. Now I think it is for my purposes
an exageration.

Indexing may be nice, but there is not a lot of emails.

I do not know the state of UW imap today and if it is considered secure
by OpenBSD people. I would also be glad to hear oppinions.

Rodrigo



Re: ownership of mailboxes with dovecot

2019-12-31 Thread Roderick


On Tue, 31 Dec 2019, Eike Lantzsch wrote:

> > Is dovecot or fetchmail who create the mailboxes?!
> fetchmail doesn't configure anything, especially not mailboxes.
> I regret having mentioned fetchmail.
> It happens as part of setting up dovecot with virtual users.

If they are virtual users, why are they also users in the system?!

BTW, I installed many years ago UW Imap on FreeBSD, contained
today in alpine mail's source. It served out of the box the mailboxes 
of the system users with imap. No configuration needed.

Rod.



Re: ownership of mailboxes with dovecot

2019-12-31 Thread Roderick


On Tue, 31 Dec 2019, Eike Lantzsch wrote:

> I'm using an IMAP mailserver with dovecot which is entirely limited to my
> local network.
> It pulls my external mail with fetchmail. [...]
> user username1@foodomain.local.fantasea mailbox is owned by vmail [...]
> Obviously dovecot has other ideas about security than OpenBSD. 

Is dovecot or fetchmail who create the mailboxes?!

> Can I remedy this (then: how?) or should I go on to ignore this warning?

Perhaps configuring fetchmail?

Rod.



Re: Suggestion: Replace Perl with Lua in the OpenBSD Base System

2019-12-30 Thread Roderick


On Mon, 30 Dec 2019, Theo de Raadt wrote:

>  wrote:
> 
> > A smaller base afforded to by Lua will reduce the
> > attack surface and complexity of the OpenBSD project as a whole.
> 
> 1) I think that is a baseless and irrelevant claim.
> 
> 2) No.

It is not about the claim, he is trying to sell lua, because lua should be
everywhere, also in the bootloader (they bloated FreeBSDs bootloader by
substituting forth with lua), also in tex, you are forced to install
luatex with the bloat of "texlive".

Lua means moon, from latin luna. Lua phanatics should be called lunatics.

But there is also some python phanaticism. It is a scripting language
more, the only new (horrible) thing seems to be that indentation has 
a meaning, it contains the whole tcl/tk as "tkinter"  that alone 
should be enough for reasonable scripting.

Rodrigo.



Re: What do you use to generate invoices on OpenBSD?

2019-12-28 Thread Roderick


I find the question strange. The program depends on the laws of
the country and personal taste. Nothing to do with OpenBSD.

I would write a script with tcl (and eventually tk) that access a
db (sqlite prefered if there is no big amount data) and generate tex 
code. Is that really difficult?! It is like a dynamic web page.

I wrote my own double-entry accounting program with tcl, tk and sqlite.
A delight using it compared with gnucrash.

Rod.


On Sat, 21 Dec 2019, Mikolaj Kucharski wrote:

> Hi,
> 
> Do you generate invoices on OpenBSD? What do you recommend? If you have
> experience in more than one app, why did you chose one over the other?
> If you use something open-source on other OS, let me know as well. If
> you use some own written app, for generating invoices, I'm also
> interested to hear, just to get an idea, which way people decide to go.
> 
> Please carbon-copy me in the replies, thanks!
> 
> -- 
> Regards,
>  Mikolaj
> 
> 



Re: thank you for 6.6 and bsd.rd

2019-12-21 Thread Roderick


On Thu, 19 Dec 2019, Theo de Raadt wrote:

> for 6.5 onwards, all you had to was type
> 
> sysmerge
> sysupgrade

I read somewhere that something like this was coming for 6.6, but 
I remember that I followed the instructions for upgrading from 6.5 
to 6.6, and this was to be done manually, I had to delete acording 
to the instructions some files.

Since upgrading twice a year is something like a must for OpenBSD,
this new feature is more than welcome, although manual upgrading
was never something difficult. Thanks.

Rod.



Re: Home NAS

2019-11-18 Thread Roderick



What can be newer or not existent yesterday, but has the same filename?
Something that one changed with an editor? Would not be better to use
a version contro system?

Rod.

On Mon, 18 Nov 2019, Nick Holland wrote:


On 2019-11-17 11:39, Jean-François Simon wrote:

Hi,

I found it, there exist glastree which is available from ports.

Nice small "poor man's" backup as the author qualifies,
though makes incremental backup through hard links:

# if yesterday does not exist or today is newer, copy the file
# else hard link the file to yesterday


rsync --link-dest -- it's been in rsync for well over 10 years at this
point.  Little wrapper shell script and away you go...


Re: vi in ramdisk?

2019-11-16 Thread Roderick



On Sat, 16 Nov 2019, U'll Be King of the Stars wrote:


I assumed that the canonical reference for ed was K, "The Unix Programming


Reference = man page. Under /usr/share/doc/usd/ in an old BSD System
you may find Brian W. Kernighan ed Tutorial. Just google for it.


Sam looks very interesting too,


Yes. It is a perfectionated ed, not anymore line oriented, and with gui.
I am tired of emacs bloating and I am thinking on sam as an alternative,
but the background colour is annoying.


What is sos?  Is it something like open mode in Vi?


Editor in DEC 10 with TOPS-10, I think standard there.

Rod.



Re: vi in ramdisk?

2019-11-15 Thread Roderick



On Thu, 22 Jan 1970, Chris Bennett wrote:


Yes, but ed also allows one to easily work with only 1-3 lines of
screen.


I think with every line editor is so?

The power of ed is in the regular expressions, search and substitution.

The only thing that I find more comfortable in sos and miss in ed
is the line alter mode that allows to interactively delete and
insert characters in a line. That is also what one wants to carefully
do in configuration files. Normaly no big editing.

Rod.



Re: vi in ramdisk?

2019-11-15 Thread Roderick



On Fri, 15 Nov 2019, Ian Darwin wrote:


Who needs cat when you have echo?


Echo? Necessary?! Terrible waste of paper in a teletype terminal!
I remember editing with sos in TOPS 10 after giving the command:
tty noecho.

Rod.



Re: vi in ramdisk?

2019-11-15 Thread Roderick



On Fri, 15 Nov 2019, Theo de Raadt wrote:


Christian Weisgerber  wrote:



How large is a C implementation of TECO?


he probably means cat plus the shell's redirection capability.


I think, TECO is much more powerfull that ed and vi.

But perhaps DEC 10s SOS?

I do not know if it runs in unix or if there is a C implementation.
But I remember it as much simpler than ed, but more comfortable,
and for manually editing enough.

Isn't really in unix nothing simpler than ed?

Well, the advantage of ed is, that it is the standard unix editor.

Rod.



Re: vi in ramdisk?

2019-11-15 Thread Roderick



On Fri, 15 Nov 2019, Noth wrote:


ed is included in the ramdisk, but if your use case is using vi to fix a


I imagine, it is there for using it in scripts.

I think, for editing config files, there are sure editors that
are simpler, smaller, not so powerful, but easier to use than ed.

Rod.



Re: Home NAS

2019-11-14 Thread Roderick



On Thu, 14 Nov 2019, Jan Betlach wrote:

Should I byte the bullet and build the NAS on FreeBSD taking advantage of 
ZFS, snapshots, replications, etc? Or is this an overkill?


I built my "NAS" with FreeBSD due to the self healing properties of
ZFS with checksums and redundant data, and due to the fact that
ZFS became more or less a standard that run in many OS and will not
be forgotten from one day to other.

But I am unhappy with ZFS, it is too heavy and complicated for my
purpose, do not pass to the unix environement, and my use is for less
than NAS, "only" for archival purposes. But I do not see at the
moment a simple alternative that fulfill my expectations.

Rodrigo



Re: urtwn(4) gets wedged periodically

2019-11-14 Thread Roderick



On Wed, 13 Nov 2019, Theo de Raadt wrote:


The mailing lists are full of discussions of bugs in usb.


This could explain, why devices that have problems in OpenBSD have
no problem in FreeBSD, although they ported the driver from OpenBSD.


But no, let's keep concluding these problems is narrowly restricted
to a specific brand of device...


But there is indeed diferences on brands. And I have run(4) devices
that works and other that do not work.

Rodrigo.



Re: Tools for writers

2019-11-06 Thread Roderick



On Wed, 6 Nov 2019, Oliver Leaver-Smith wrote:


The use case I have is for a novel which should require less formatting
than a technical book, so I should be able to retrofit that after once
I have investigated the many tools mentioned in the thread.


Plain TeX would mean in that case a simple text file with few formatting
tags, for example for italics and boldface. Then you can generate
a postcript file with tex and dvips commands and print it, if you want.
Later you can perfectionate it.

To read the first pages of "The TeXBook" would be enough for the beginning,
and you find a pdf version googling for it.

nroff is interesting, because is a unix standard from the beginning
and (in the meantime only almost) everywhhere, but is more complicated
to learn, the source less readable, and the result not better.

Rodrigo



Re: Tools for writers

2019-11-04 Thread Roderick



On Mon, 4 Nov 2019, Steve Litt wrote:


[...] If you can even conceive of it being ePub or some
other lineflow reading format, Texlive and all the TeX/LaTeX
tools dead-end you.


TeX produces dvi, a well documented and simple page description language.
Then it is transformed to postscript or pdf.

They are by far not dead end.



Re: Skype alternatives for OpenBSD

2019-11-03 Thread Roderick



On Sun, 3 Nov 2019, Jonathan Drews wrote:


I thought Skype used a protocol that allowed other clients to connect to
it then I read the Wikipedia page on Skype. The technology is owned by
Microsoft.


A standard is SIP. Then a solution would be something like:

https://kb.asipto.com/kamailio:skype-like-service-in-less-than-one-hour



Re: Tools for writers

2019-11-03 Thread Roderick



Here is an old system, written in FORTRAN and C, perhaps compiles in
OpenBSD:

http://www.tustep.uni-tuebingen.de/tustep_eng.html

But I never used it and I am hyppy with TeX.

Rodrigo



Re: Tools for writers

2019-11-03 Thread Roderick




On Sun, 3 Nov 2019, Ingo Schwarze wrote:


And finally, the only thing that is seriously wrong with
the "print/texlive" port is how ridiculously large it is.


That is "texlive". Donald Knuths TeX/mf is exactly the opposite to bloat.



Re: WLAN disconnects after a while

2019-10-08 Thread Roderick



Just tried EDIMAX EW7811Un with RTL 8188CUS chipset (urtwn driver).

It is recommended for OpenBSD in many places, for example here:

https://flak.tedunangst.com/post/some-mini-usb-wifi-adapters

It works perfectly. It does not disconnect.

I think this is the choice if the internal WLAN Device of a
mobile computer does not work and one does not want to test
changing the internal device. Reason: its size.

Rodrigo




txpower

2019-09-29 Thread Roderick



It seems, it disappeared from ifconfig because only wi supported it.

Can I be sure that my WLAN is not sending stronger than the law allows?

Rodrigo



Re: WLAN disconnects after a while

2019-09-29 Thread Roderick



Report on new experience. :)

I bought a used no name, Model WS-WN689HN2, distributed in germany
by conrad electronics. The good news: till now it does not disconnect.

It is a coarseness with two big antenae, I read "wireless N high
power". But that is all: no where it is written how many watts
it sends.

What is the chipset? It is recognized as RT3071, RF RT3022. And I
did test two normal USB wlan sticks (with no external antenae)
with the same chipset recognized, and the link in both is interrupted
after a short period of time. They recognized the same APs, and
the one with two antenae not necessarily with more dBm.

Also interesting is that the same devices regognizes more APs
in OpenBSD than in FreeBSD, and that in OpenBSD ping takes longer
(perhaps depends on the slower CPU).

Well, soon I will buy and test a urtwn. :)

Rodrigo



Behaviour of sync and umount changed?

2019-09-27 Thread Roderick



As far I remember, they did not run in underground, but blocked the
terminal. Am I wrong?

Rodrigo



Re: WLAN disconnects after a while

2019-09-26 Thread Roderick

On Thu, 26 Sep 2019, Roderick wrote:


Now I am waiting to see if the link gets lost.


rsu0: could not send join command
rsu0: could not send site survey command

--

# ifconfig rsu0
...
status: no network
...



Re: WLAN disconnects after a while

2019-09-26 Thread Roderick




Another WLAN Stick I have is rsu, recognized as RTL8188S, but
with it I do not even get the link.


A small discovery: it is a little diferent from other sticks.

It requires "ifconfig rsu0 up" before "dhclient rsu0".

It seems to work very good: no packet loss. Now I am waiting
to see if the link gets lost.

Rodrigo



Re: WLAN disconnects after a while

2019-09-26 Thread Roderick



Another WLAN Stick I have is rsu, recognized as RTL8188S, but
with it I do not even get the link.

Below an up to date dmesg.

Soo I will perhaps buy an urtwn for my collection of USB sticks.

Rodrigo




OpenBSD 6.5 (GENERIC.MP) #1356: Sat Apr 13 15:16:41 MDT 2019
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
real mem  = 2137341952 (2038MB)
avail mem = 2083033088 (1986MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: date 12/11/08, BIOS32 rev. 0 @ 0xfd5f0, SMBIOS rev. 2.5 @ 
0xdf010 (36 entries)
bios0: vendor Phoenix Technologies Ltd. version "04CA.MP00.20081211.KTW" date 
12/11/2008
bios0: SAMSUNG ELECTRONICS CO., LTD. NC10
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC HPET MCFG TCPA TMOR APIC BOOT SLIC SSDT SSDT SSDT
acpi0: wakeup devices HDEF(S4) PXS1(S4) PXS2(S4) PXS3(S4) USB1(S3) USB2(S3) 
USB3(S3) USB4(S3) USB7(S3) SLT0(S4) SLT1(S4) SLT2(S4) SLT3(S4) SLT6(S4) 
LANC(S4) PWRB(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) Atom(TM) CPU N270 @ 1.60GHz ("GenuineIntel" 686-class) 1.60 GHz, 
06-1c-02
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,EST,TM2,SSSE3,xTPR,PDCM,MOVBE,LAHF,PERF,SENSOR,MELTDOWN
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 132MHz
cpu0: mwait min=64, max=64, C-substates=0.2.2.0.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Atom(TM) CPU N270 @ 1.60GHz ("GenuineIntel" 686-class) 1.60 GHz, 
06-1c-02
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,EST,TM2,SSSE3,xTPR,PDCM,MOVBE,LAHF,PERF,SENSOR,MELTDOWN
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins, remapped
acpihpet0 at acpi0: 14318179 Hz
acpimcfg0 at acpi0
acpimcfg0: addr 0xe000, bus 0-255
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 2 (RP01)
acpiprt2 at acpi0: bus -1 (RP02)
acpiprt3 at acpi0: bus 3 (RP03)
acpiprt4 at acpi0: bus 4 (PCIB)
acpiec0 at acpi0
acpicpu0 at acpi0: C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C1(1000@1 mwait.1), PSS
acpipwrres0 at acpi0: FN00, resource for FAN0
acpitz0 at acpi0: critical temperature is 98 degC
"PNP0A08" at acpi0 not configured
acpibat0 at acpi0: BAT1 type LION oem "SAMSUNG Electronics"
acpicmos0 at acpi0
acpiac0 at acpi0: AC unit offline
acpibtn0 at acpi0: LID0
acpibtn1 at acpi0: PWRB
acpibtn2 at acpi0: SLPB
"PNP0C0B" at acpi0 not configured
acpivideo0 at acpi0: GFX0
bios0: ROM list: 0xc/0xec00! 0xdf000/0x1000! 0xe/0x1800!
cpu0: Enhanced SpeedStep 1596 MHz: speeds: 1600, 1333, 1067, 800 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82945GME Host" rev 0x03
inteldrm0 at pci0 dev 2 function 0 "Intel 82945GME Video" rev 0x03
drm0 at inteldrm0
intagp0 at inteldrm0
agp0 at intagp0: aperture at 0xd000, size 0x1000
inteldrm0: apic 1 int 16
inteldrm0: 1024x600, 32bpp
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
"Intel 82945GM Video" rev 0x03 at pci0 dev 2 function 1 not configured
azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x02: msi
azalia0: codecs: Realtek ALC272
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x02: apic 1 int 17
pci1 at ppb0 bus 2
ath0 at pci1 dev 0 function 0 "Atheros AR5424" rev 0x01: apic 1 int 16
ath0: AR5424 14.2 phy 7.0 rf 10.2 eeprom 5.3, EU1W, address 00:24:2b:e3:03:40
ppb1 at pci0 dev 28 function 2 "Intel 82801GB PCIE" rev 0x02: apic 1 int 18
pci2 at ppb1 bus 3
mskc0 at pci2 dev 0 function 0 "Marvell Yukon 88E8040" rev 0x13, Yukon-2 FE+ 
rev. A0 (0x0): msi
msk0 at mskc0 port A: address 00:13:77:f3:aa:3a
eephy0 at msk0 phy 0: 88E3016 10/100 PHY, rev. 0
uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x02: apic 1 int 23
uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x02: apic 1 int 19
uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x02: apic 1 int 18
uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x02: apic 1 int 16
ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x02: apic 1 int 23
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 
addr 1
ppb2 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xe2
pci3 at ppb2 bus 4
ichpcib0 at pci0 dev 31 function 0 "Intel 82801GBM LPC" rev 0x02: PM disabled
pciide0 at pci0 dev 31 function 2 "Intel 82801GBM SATA" rev 0x02: DMA, channel 
0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: 
wd0: 16-sector PIO, LBA48, 152627MB, 312581808 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 6
ichiic0 at pci0 dev 31 function 3 

Re: WLAN disconnects after a while

2019-09-25 Thread Roderick



On Wed, 25 Sep 2019, Roderick wrote:


I would like to buy another USB UMTS stick and try with it. Is there
a recommendation of a good working one, that is also sensible and
powerfull enough to send and receive through some walls?


Lapsus. I mean WLAN stick. Any recommendation?



What I have is recognized as run (RT3001), urtw (RTL8187), athn (AR9271).
With the last two I have a lot of packet los, 25% or more.


Rod.



Re: WLAN disconnects after a while

2019-09-25 Thread Roderick



On Mon, 23 Sep 2019, Sebastian Benoit wrote:


Today a fix was okayed for a problem that sounds like it might be yours:


The AP I am using does not change channel, hence that is not the problem.

I would like to buy another USB UMTS stick and try with it. Is there
a recommendation of a good working one, that is also sensible and
powerfull enough to send and receive through some walls?

What I have is recognized as run (RT3001), urtw (RTL8187), athn (AR9271).
With the last two I have a lot of packet los, 25% or more.

The nettop has one recognized as ath (AR5424), but when doing
dhclient I get the message:

ar5k_ar512_nic_wakeup: invalid radio frequeny mode
ath0: unable to resethardware; hal status 0

Thanks
Rodrigo.



WLAN disconnects after a while

2019-09-23 Thread Roderick



I still have this problem:

https://marc.info/?t=15148946743=1=2

Now tested with other AP (FritzBox).

I am the only one?



Re: backing up ldapd data

2019-08-24 Thread Roderick



On Fri, 23 Aug 2019, Allan Streib wrote:


With OpenLDAP slapd I would run slapcat periodically to dump out the
directory in LDIF format for backup.

What is the best approach for backing up ldapd?


Good to know that not only I have problems learning the most
elementary things about (open)ldap. I also would like to know
the answer to this question. I also would do what the OP does,
but also save the configuration (slapcat -b cn=config) that
is also stored as ldap. Or perhaps the solution is to see where
openldap saves the data in the file system and back up that as
normal files.

At some point, with a lot of effort, I did undestood the simple
principles of how this hierarchical db works. But it is inflated,
also all documentation, with something that has the taste of big
burocracy. ldap is awful.

Rodrigo



Re: Recommended web and database server specification

2019-08-15 Thread Roderick




On Thu, 15 Aug 2019, Roderick wrote:


It [sqlite] is good integrated with tcl, hence I would use as server:

https://de.wikipedia.org/wiki/NaviServer


I mean, I would not use php. :)



Re: Recommended web and database server specification

2019-08-15 Thread Roderick




On Thu, 15 Aug 2019, Tito Mari Francis Escano wrote:

to prepare this be deployed and run for quite a long time and ready for about 
60,000 visits per day at most.


Perhaps sqlite:

https://www.sqlite.org/whentouse.html

It is good integrated with tcl, hence I would use as server:

https://de.wikipedia.org/wiki/NaviServer

Rodrigo



Re: RNG question

2019-07-30 Thread Roderick



On Tue, 30 Jul 2019, Peter J. Philipp wrote:


On Tue, Jul 30, 2019 at 06:11:15AM -0600, Theo de Raadt wrote:

Peter J. Philipp  wrote:

[...]
I'm not misreading.  Why is this done?


That is a low-grade question.


OK I retract it then.  Don't worry about it.


You cannot retract it. Impossible.

Rod.



Re: SCM

2019-07-29 Thread Roderick



On Mon, 29 Jul 2019, Mohamed Fouad wrote:


fossil is interesting! what - if anything - you don't like about it
Roderick?


As said, I like it very much, but for bigger projects I would preffer CVS.

That fossil is used for bigger projects, is for me a proof of the good
quality, reliability of sqlite3.

Rod.



Re: SCM

2019-07-29 Thread Roderick



On Sun, 28 Jul 2019, Nathan Hartman wrote:


*IF* the OpenBSD devs ever wants to change SCMs--I said **IF**--then I
root for Subversion. Subversion offers the following advantages:


If wants to change just for changing, then there are reasons to select
something else? I realy do not understand this logic that drives this
discussion.

What I like of CVS: rcs textfiles, transparency, no strange db. That
is a reason for which I would decide for CVS and nothing else for a
bigger project.

I use fossil for my small programs, better said, misuse, because I
do not use it as a real SCM, but just for backuping history. And I
like it very much.

Rodrigo



Re: Postscript printer recommendations

2019-07-16 Thread Roderick



On Tue, 16 Jul 2019, Jonathan Drews wrote:


These are the notes I made for printing on my old OpenBSD computer: [...]


It seems too complicated. In principle only the a field "if" to
printcap should be necessary.


1) Go to http://openprinting.org/printer_list.cgi?make=HP
and look for the Deskjet 6940


Unfortunately dj6940 uses hplip. A filter from HP. That is not
ghostscript.

Does hplip run in OpenBSD? Do someone know how to configure a
printer with hplip? Ist it possible with lpd or only cups?

Rodrigo



Re: Postscript printer recommendations

2019-07-14 Thread Roderick




On Sun, 14 Jul 2019, Adam Thompson wrote:

Nearly every printer sold today (including cheap inkjets AND b printers) 
have these tracking dots. [...]



The absolute highest resolution graphics today are mostly printed using
ESC/P (if Epson), PCL3 (if HP), or whatever Canon uses (if Canon). [...]


Thanks for the nice review! I thing the OP was interested in unexpensive
printing. There play some other factors a role: price of toner, price
of drum, if the cartridge contain both or not, if there are other
producers of the cartidge than the producer of the printer, etc.

Rodrigo



Re: Oddity re. order of ifconfig commands

2019-07-14 Thread Roderick



On Sun, 14 Jul 2019, cho...@jtan.com wrote:


I don't know what you mean by "haven't configured re0 with an IP address".
What else is 10.100.200.1/24?


A subnet. But it seems to be a valid way of doing:

ifconfig re0 inet 10.100.200.1 netmask 255.255.255.0

That is new to me. Perhaps lays the problem in your previous configuration
of re0?

Rod.



Re: Oddity re. order of ifconfig commands

2019-07-14 Thread Roderick



On Sun, 14 Jul 2019, U'll Be King of the Stars wrote:


Is there documentation that explains how to configure this kind of
point-to-point Ethernet connection, and associated routing tables, on
OpenBSD?


I never had problems with it: just as normal LAN.

Point to point. Hmm. I used slip+tcp/ip instead of zmodem to
transfer files between rs232. Now remains ppp, a litle more
complicated.

Rodrigo



Re: Oddity re. order of ifconfig commands

2019-07-14 Thread Roderick



On Sun, 14 Jul 2019, cho...@jtan.com wrote:


I also string a cable between their ethernet ports for maximum speed


Was it a crossover cable?


drogo# pkill -f re0


Do you have somewhere a program called re0 running?!


drogo# ifconfig re0 10.100.200.1/24


Why the name of a whole net for just an address of an interface?

Rodrigo



Re: Postscript printer recommendations

2019-07-14 Thread Roderick



On Sat, 13 Jul 2019, Jonathan Drews wrote:

I hope that you got it: with a postscript printer you do not need
ghostscript.


The printcap is easy to configure. Here is a sample printcap I
came across in misc:
1)
lp|xerox|Xerox_WorkCenter_3225:\
   :lp=/dev/ulpt0:\
   :sh:sd=/var/spool/output/lpd:\
   :lf=/var/log/lpd-errs:


For a printer using ghostscript you will need one field more. I
have for my PCL printer:

lp|lj4l:\
:lp=/dev/ulpt0:\
:if=/usr/local/libexec/lpr/iflj4l:\
:sh:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:

my file iflj4l contains a filter that translates Postcript to PCL
for the lj4l printer. Well, it does in my case something more.
This filter is normaly a script that calls gs (Ghostcript).

You can see here how to write the script:

https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/printing-lpd.html

Or just google for a specific printer: you are not the only one with
the problem.

You do not need cups.

Rodrigo.



Re: Postscript printer recommendations

2019-07-13 Thread Roderick



On Sat, 13 Jul 2019, Jonathan Drews wrote:


Hi Folks:  I need some recommendations on what brand of printers will
work with Ghostscript (Postscript).


If you find a printer that understands postcript, then you will be
perhaps happy. You will not need Ghostscript.

Otherwise, you need to translate the postscript file that you want
to print to the language of the printer: this is done with
ghostscript, as far as it supports this language.

Perhaps a PCL printer + Ghostscript? I use a HP Laserjet 4l and am very
happy. Inexpensive printing, but unfortunately HP does not support it
anymore, perhaps it will get difficult to get the toner.

Perhaps the following helps you to see what language a printer supports
and how, if possible, to configure it with ghostscript:

https://wiki.linuxfoundation.org/openprinting/database/databaseintro

But see also for a specific printer how expensive is the toner cartridge
and how many pages you can print with it.

Rod.



Re: When will OpenBSD become a friendly place for bug reporters?

2019-07-12 Thread Roderick



On Fri, 12 Jul 2019, Ingo Schwarze wrote:


(There seems to be a trend where big corps are quite happy to
discourage people from running their own MTAs


Not just running their own MTAs, also using non-commercial .edu
infrastructure.


Not only that.

Here you see the developer of cyrus-imap moving to MS Exchange
and G Suite:

https://www.cmu.edu/computing/services/comm-collab/email-calendar/cyrus/decommission.html

The same for the developer of UW imap:

https://itconnect.uw.edu/connect/email/google-apps/
https://itconnect.uw.edu/connect/email/exchange-online/

And the same from the house of exim:

https://help.uis.cam.ac.uk/service/email

And sure they are not an exception, it seems to be a trend.

Rod.



Re: When will OpenBSD become a friendly place for bug reporters?

2019-07-09 Thread Roderick



On Tue, 9 Jul 2019, cho...@jtan.com wrote:


Perhaps rather than whining that OpenBSD lacks some specific feature,
those who want it could write it?


Or perhaps better not. All depends on what is a feature and for whom.

I, as normal user, am glad that packages are not inflated with debugging
symbols.

Rod.



Re: Future of X.org?

2019-07-09 Thread Roderick



On Mon, 8 Jul 2019, Steve Litt wrote:


It's one thing to support an alternative: Quite another to call
for the death of the original.


Unfortunately it is not an alternative as I wrote before.

X11 is among other things a standard. If wayland imposes itself,
we will have soon programs for X and programs for wayland. A chaos.

For many advanced purposes other than desktop, wayland is not enough:
X11 will not die as also RS-232 is not death. Also because it will be
difficult to port every X11 program.

A linux distribution may have wayland as default, perhaps soon
all linux distributions. Should all operating systems follow
as zelous wayland propagandists want?

Well, today we want to see any open source and not only open source
program in any free, general purpose Operating System. This is the
reason why we can move from one *BSD to other or to a linux
distribution or to Solaris. Obviously no such OS want to be fully
autonome, the exeption is for example Plan9, and you see the price.

Rodrigo



Re: umsm0: this device is not using CDC notify message in intr pipe. HP Compaq dc5750

2019-07-05 Thread Roderick



On Fri, 5 Jul 2019, Kihaguru Gathura wrote:


This was working up and until OpenBSD 6.4 amd64.


With OpenBSD 6.5 i386 release on a Samsung nc10 nettop and
with a Huawei E372 modem umsm is working. I do not know what
is happening in current.

For me it would be a catastrophe if it stops working: the E372 is
something special, as OpenBSD that supports it.

Rodrigo



Re: Future of X.org?

2019-07-01 Thread Roderick



On Mon, 1 Jul 2019, Juan Francisco Cantero Hurtado wrote:


Can you show me what missing Wayland part is bigger than DRM+Mesa+LLVM?.


What do you want to say with the question?

As far as I understand, neither DRM nor Mesa are parts of (original)
X11. Further, you read in Wikipedia:

-
https://en.wikipedia.org/wiki/Direct_Rendering_Manager

DRM was first developed as the kernel space component of the X Server's 
Direct Rendering Infrastructure,[1] but since then it has been used by 
other graphic stack alternatives such as Wayland. 
--


And

--
https://en.wikipedia.org/wiki/Mesa_(computer_graphics)

Besides 3D applications such as games, modern display servers (X.org's 
Glamor or Wayland's Weston) use OpenGL/EGL; therefore all graphics 
typically go through Mesa.

---

In the german Wikipedia you read:


https://de.wikipedia.org/wiki/EGL_(Programmierschnittstelle)

Mesa 3D – ist zurzeit die einzige freie Implementierung von EGL (und 
etlichen weiteren graphic rendering APIs)

-

Namely, the only free implementation of EGL is Mesa 3D. And EGL is
needed by Wayland.

For all these cool desktop (or freedesktop) things, like turbo accelerated
3 or 4D rendering, the bloat will be necessary, be it in X11, Wayland
or also plan9 rio if it is once ported to OpenBSD (that would be by
the way a good idea).

Rodrigo


Re: Future of X.org?

2019-07-01 Thread Roderick



On Mon, 1 Jul 2019, Juan Francisco Cantero Hurtado wrote:


Xorg is the most insecure software in base.


Why? Because it has bugs? Or because, in oppossite to wayland,
it can listen to outside connections if configured so (by default
it does not)?


If you only care about the remote apps, with wayland you can still run
the apps within wayland. "ssh -X" will work fine.


I never do ssh -X. Nonsense in a LAN.

If X11 is so bad for you, then sure also nfs. Should it also be deletet?


it is not a big lost for obvious reasons.


It is not a big lost *for you*.

Rodrigo.



Re: Future of X.org?

2019-06-30 Thread Roderick



On Sun, 30 Jun 2019, Juan Francisco Cantero Hurtado wrote:


Nope, you misunderstood the text.


No. It is *you* that do not understand what X11 is and want it death.
A very destructive attitude.


"This doesn't mean that remote rendering won't be possible with Wayland,
it just means that you will have to put a remote rendering server on top
of Wayland. One such server could be the X.org server".


You quote the text and are unable to get the conclusion: having
wayland, if you need X11, then you must implement an X11 server.

Is it not clear from the text that for upgrading wayland to X11,
you must implement X11, and the autor avoided it for keeping it simple?

Is it not clear that wayland is *never* a substitute of X11?

You confuse X11 with a graphical display, such the old ones of
Amiga or MacOS. It was always possible to have it in unix. But
that was never the purpose of X11. The graphic display is only
a byproduct of X11.

I remember in the 1990s that it was possible to run a comercial
X11 in Macs: They had their graphical display, but that was neither X11
nor a substituite of it. But you are trying to convince us that
wayland is a substitute of X11, that X11 must die.

And Xorg / xenocara is not bloat: it runs on meager X11 terminals.
The bloat will come with wayland.

And X11 imposes an standard. Programs done as X11 clients may run in
any OS display in other. Wayland will bring chaos.

Rodrigo



Re: Future of X.org?

2019-06-30 Thread Roderick




On Sun, 30 Jun 2019, Juan Francisco Cantero Hurtado wrote:


You can run (local or remote) X11 applications inside of a Wayland
compositor.


The following contradicts your above assertion:

https://wayland.freedesktop.org/faq.html#heading_toc_j_8

Rod.



  1   2   3   >