Re: PAX Formats

2024-09-10 Thread Christian Weisgerber
Robert B. Carleton: > I see FreeBSD tar(1) does support pax. I hadn't caught that yet... I > guess I need to catch up on my FreeBSD reading. FreeBSD uses tar(1) and cpio(1) from the libarchive project. You can get those on OpenBSD by installing the libarchive package, the utilities are called bs

Re: PAX Formats

2024-09-09 Thread Christian Weisgerber
"Robert B. Carleton": > Unfortunately, the FreeBSD pax command lacks the pax format supported by > OpenBSD. I'm backing up paths that exceed the limits of ustar, so I'm > looking at alternatives. Use FreeBSD's tar(1). > I realize I could just use the various versions of tar or cpio, but I > pref

Re: vi: How to display German umlauts?

2024-07-08 Thread Christian Weisgerber
Jan Stary: > > As I'd rather not switch to vim, I'd be very grateful for any tips > > concerning the display of umlauts in vi. > > vi can't do it. There's a port and package of nvi-2.2.1, which is a close relative of the base system nvi that has been extended with wide character support. -- Ch

Re: accidentally overwritten wrong drive with DD, please help

2024-07-05 Thread Christian Weisgerber
Jan Stary: > > > > > Why did you have your crypto volume as an 'i' partition? > > > > Why? Because it says so in the manual, what do you mean?? > > > In what manual does it say to create an 'i' partition specificaly? > > https://www.openbsd.org/faq/faq14.html#softraidCrypto > > Does anyone know w

Re: how to verify OpenBSD CVS repositories from mirrors?

2024-07-04 Thread Christian Weisgerber
Anon Loli: > That doesn't defent againts the mirror host itself being malicious.. like > HELLO > what are we talking about?? The AnonCVS mirror concept dates from a time when people didn't think mirrors would be malicious. It does not provide any guarantee of integrity. -- Christian "naddy" W

Re: lcamtuf on the recent xz debacle

2024-04-04 Thread Christian Weisgerber
Katherine Mcmillan: > Just for clarity, does anyone know what "Unix-like operating systems" > would be affected by this? None. TLDR: The build process of the backdoor explicitly aborts on platforms other than Linux x86-64. As the maintainer of the archivers/xz port, I took a look at the build s

Re: Entry in the list of UNIX and OpenBSD providers

2024-02-06 Thread Christian Weisgerber
"Theobald, Gerd": > C Germany > P Baden-Wuerttemberg > T Nuremberg > Z D-90411 Nuremberg is not in Baden-Wuerttemberg. -- Christian "naddy" Weisgerber na...@mips.inka.de

Re: cvs revert specific commit

2024-01-18 Thread Christian Weisgerber
Hrvoje Popovski: > I would like to revert only if_em.c rev. 1.369, but would like to leave > TSO stuff if_em.c rev. 1.370 and if_em.h rev 1.81. > > is this somehow possible? $ cd /sys/dev/pci $ cvs diff -kk -r1.369 -r1.368 if_em.c | patch -p0 -- Christian "naddy" Weisgerber

Re: time keeping fallback mechanics during reboot on octeon

2024-01-12 Thread Christian Weisgerber
Otto Moerbeek: > http://man.openbsd.org/octrtc seems to suggest EdgeRouter does not have > an RTC. A dmesg should give more certainty. I think the original poster is aware of this. If I understand correctly, he expects that on reboot the system clock is restored to the last value from before the

Re: Why is BRE still around? (Re: Porting shell scripts from Tiny Tools)

2023-11-17 Thread Christian Weisgerber
Marc Chantreux: > I the same mood: I realized recently that no implementation of awk > seems to implement quantifiers which is really desapointing. Awk uses EREs, so if by quantifiers you mean {n,m}, then awk most certainly supports this. -- Christian "naddy" Weisgerber

Re: Why is BRE still around? (Re: Porting shell scripts from Tiny Tools)

2023-11-17 Thread Christian Weisgerber
Marc Chantreux: > But is there another good reason for BRE to be still alive? > (perfomance, simplicity, or anything else). I think it is mostly for historical reasons, but note that BREs are not a strict subset of EREs: BREs allow back-references, EREs do not. The GNU project turned BREs and ER

Re: Reptar aka CVE-2023-23583

2023-11-15 Thread Christian Weisgerber
not jacinda ardern: > I saw something about a new intel microcode coming out (subject line) for a > goofy new bug somebody found. Do you guys package that up into the fw_update > (firmware.openbsd.org) magic or does it only come via the oem's bios updates? Whatever Intel releases. Yesterday th

Re: ETA for 7.4 packages-stable for aarch64?

2023-10-17 Thread Christian Weisgerber
Stephan Somogyi: > aarch64 packages-stable has historically been available; for 7.4 it's > populated for only for amd64, i386, and sparc64 on cdn.openbsd.org and > assorted mirrors. > > Is there an ETA for 7.4 aarch64 packages-stable? Uh, right. They were delayed because of a problem with the m

Re: SSH from old Mac fail to login via ssh rsa key

2023-10-08 Thread Christian Weisgerber
"Daniele B.": > I went to my Mac (SSH -V: OpenSSH 6.9p1 LibreSSL 2.1.8) and launched > ssh-keygen produced for my my user a nice RSA key. I grabbed it and I > went on my > cloud server (SSH -V: OpenSSH 9.2p1 OpenSSL 3.0.9) and appended it in > my .ssh/authorized_keys. While RSA _keys_ are still s

Re: Problem with nsd not being reloaded.

2023-08-12 Thread Christian Weisgerber
WATANABE Takeo: > I am using nsd, which runs by default on OpenBSD 7.2 amd64. > To update the zone file after changes have been made. > > As far as I could find, restarting the host seems to be > the only way to update the zone information. nsd-control(8) -- Christian "naddy" Weisgerber

Re: sysctl ddb.trigger

2023-05-30 Thread Christian Weisgerber
Paul de Weerd: > Indeed, `sysctl kern.securelevel=-1` allows entering DDB with `sysctl > ddb.trigger=1`. (Yes, I am logged in over serial, and that works > well). That was not clear from the ddb manpage, nor from the > securelevel manpage It's in sysctl(2): DBCTL_TRIGGER (ddb.trigger)

Re: hw RNG on APUs

2023-04-23 Thread Christian Weisgerber
Theo de Raadt: > That was in 2022. Lots of people will have machines without new BIOS. I have the latest firmware and the ccp(4) RNG returns nothing but 0. > I wonder if our kernel should have similar code to enable the registers. I tried that yesterday to no effect... but I'm not certain that

Re: curl-8.0.1 exists in two non-comparable versions (Someone forgot to bump a REVISION)

2023-04-22 Thread Christian Weisgerber
Andrew Daugherity: > This happened when I ran 'pkg_add -u' after upgrading an i386 system > from 7.2 to 7.3: > Error: curl-8.0.1 exists in two non-comparable versions > Someone forgot to bump a REVISION > It seems that it succeeded in the end, but what happened? Is there a > 7.3-stable curl pkg

Re: hw RNG on APUs

2023-04-21 Thread Christian Weisgerber
Christian Weisgerber: > I built a kernel with an instrumented driver. Unfortunately, no > entropy is provided: FWIW, it appears to work on the SoftIron OverDrive 1000: ccp: rng 058f9dad ccp: rng f0a495ba ccp: rng a757bdf7 ccp: rng 31b21d19 ccp: rng d1ce1c78 ccp: rng 863c9199 -- Chr

Re: hw RNG on APUs

2023-04-19 Thread Christian Weisgerber
Christian Weisgerber: > ccp(4) attaches, so presumably it is used as a source of entropy. > Whether the hardware actually provides random output, I don't know. I built a kernel with an instrumented driver. Unfortunately, no entropy is provided: ccp: rng ccp: rng 00

Re: hw RNG on APUs

2023-04-19 Thread Christian Weisgerber
Jan Stary: > Does OpenBSD use any hardware RNG on the PC Engines APUs? ccp0 at pci0 dev 8 function 0 "AMD 16h Crypto" rev 0x00 ccp(4) attaches, so presumably it is used as a source of entropy. Whether the hardware actually provides random output, I don't know. -- Christian "naddy" Weisgerber

Re: disabling horizontal scroll in ksh

2023-03-19 Thread Christian Weisgerber
sewn: > hi, i've recently switched to ksh and i've been very annoyed by the > horizontal scroll feature (happens when a commmand is longer than the > terminal's width) is there anyway to disable this feature? i would > prefer > to see the whole command, like in bash or ash. That's just the way t

Re: xsnow bitmap include in base?

2023-02-11 Thread Christian Weisgerber
David Rinehart: > After 7.2  install, I see this include file: > >     /usr/X11R6/include/X11/bitmaps/xsnow > > Just curious - With xsnow removed, is this file used for anything? Well, you could use it for something, e.g.: $ xsetroot -bitmap /usr/X11R6/include/X11/bitmaps/xsnow -- Christian

Re: Some NFS clients won't mount

2022-12-29 Thread Christian Weisgerber
"vitmau...@gmail.com": > My /var/log/daemon regarding the issue: > mountd[91001]: Refused mount RPC from host 192.168.1.4 port 57264 The client's mount request didn't come from a reserved port, i.e. <1024. OpenBSD's mountd(8) does not accept this. -- Christian "naddy" Weisgerber

Re: less prints superfluous characters with --no-init

2022-11-20 Thread Christian Weisgerber
On 2022-11-20, Reuben mac Saoidhea wrote: >> It is a builtin, so it is documented inside ksh. > > i think the 4.3BSD manual allowed for example `man while' for `man sh'? FreeBSD has a builtin(1) man page that attempts to list the csh(1) and sh(1) builtins and points to the respective man pages:

Re: less prints superfluous characters with --no-init

2022-11-18 Thread Christian Weisgerber
"Richard Ulmer": > I find this behaviour unexpected: > > $ printf foo | less --no-init | xxd > : 666f 6f1b 5b41 1b5b 4b foo.[A.[K > > less prints ANSI escape codes for 'cursor up' and 'erase in line' at the > end of my message. I cannot reproduce this. $ printf foo |

Re: sndio and bit perfect playback

2022-10-25 Thread Christian Weisgerber
Andre Smagin: > There is possibly one more use case for "bit-perfect". I have a small > collection of surround sound (5.1, 4.1, quad, etc) recordings extracted > from various DVDs, SACDs, and other sources. Yup. I even have a commercially released DTS-CD lying around somewhere, which is basically

Re: dump(8) is slow

2022-08-11 Thread Christian Weisgerber
On 2022-08-10, Tomasz Rola wrote: >> DUMP: Date this dump completed: Tue Aug 9 13:51:01 2022 >> DUMP: Average transfer rate: 36530 KB/s >> >> That is far below the read-write speed of a modern SATA drive. > > Ok. But what is a theoretic speed limit for this device? The data sheet claims 2

Re: dump(8) is slow

2022-08-09 Thread Christian Weisgerber
Kenneth Gober: > Are you certain that dump(8) is the big bottleneck here? My recollection > is that restore(8) is significantly slower, so of course if restore(8) is systat's default vmstat display shows you the time spend in disk accesses. Typical figures during the dump-restore run were 1.0 f

Re: cdio(1): cdplay with next and prev

2022-08-09 Thread Christian Weisgerber
On 2022-08-08, Lucian Popescu wrote: > lucian-pc# cdio cdplay > track 1 'a' 0200/00018053 1% > > From another terminal I issue the following command to play the next > song: > > lucian-pc# cdio next #exit code is 0 > > However this does not work. Can I use next and prev with cdplay? The ma

dump(8) is slow

2022-08-09 Thread Christian Weisgerber
Moving 9TB with dump|restore from an old hard disk to a bigger one reminded me again that dump(8) is, well, slow: DUMP: 9104433830 tape blocks DUMP: Date of this level 0 dump: Sat Aug 6 16:36:52 2022 ... DUMP: Date this dump completed: Tue Aug 9 13:51:01 2022 DUMP: Average transfer ra

Re: "set -o multiline" in ksh?

2022-08-08 Thread Christian Weisgerber
On 2022-08-08, Federico Giannici wrote: > What I really miss is multiline editing of current (very long) commands > (ksh simply horizontally "scrolls", showing only a part of the command > line). > > I know that in standard ksh this functionality is activated with "set -o > multiline", but und

Re: bsdtar -O | --to-stdout

2022-05-26 Thread Christian Weisgerber
On 2022-05-26, Nick Holland wrote: >> i'm looking for a way to reproduce -O flag in bsdtar/gtar using tar >> or pax but i didn't find one. > > Sounds like you are trying to send tar output (or input) to > stdin/stdout. No, to extract a file to stdout. OpenBSD's tar(1) or pax(1) can't do this.

Re: Please put vi in base

2022-03-12 Thread Christian Weisgerber
Ian Darwin: > It doesn't take that long to learn ed from the "bottom line" of vi, ed(1) is much like an interactive version of sed(1). Which is no coincidence. If you know the basics of sed(1), ed(1) is straightforward. -- Christian "naddy" Weisgerber na...@mips.inka.

Re: Please put vi in base

2022-03-12 Thread Christian Weisgerber
i...@tutanota.com: > I know how to use vi, but ed just draws the line. Here's just the book for you: Michael W. Lucas, Ed Mastery https://mwl.io/nonfiction/tools#ed -- Christian "naddy" Weisgerber na...@mips.inka.de

Re: Who is responding to my audio volume keys?

2021-12-19 Thread Christian Weisgerber
On 2021-12-18, "Richard Ulmer" wrote: > This works nicely, but one thing is missing: The volume keys on my > Laptop (ThinkPad T450) don't change the volume when the USB sound card > is used. They work when the internal sound card is used, but I don't > recall ever configuring this. There has to b

Re: lpr woes printing a broken pdf

2021-11-02 Thread Christian Weisgerber
Jan Stary: > I don't think it's lpr's fault, so this might not even be the list, > for lpr just sends what it gets (except wrapping it in the cf, df files > of the lpr protocol, right?), but I would still like to know: Exactly. lpr/lpd is just a transport protocol. > is it that gv can somehow i

Re: Snapshot generation stalled?

2021-09-01 Thread Christian Weisgerber
Karel Gardas: > installed snapshot on amd64 week or so ago to see how it is working. It's > #195 from Aug 23. During the past few days I've checked from time to time > with sysupgrade (with or without -s) but it always claimed I'm on the latest > snapshot. BTW, I use this to check the date of the

Re: Run a command on "last day of month"

2021-09-01 Thread Christian Weisgerber
Goetz Schultz: > I would go the other way and check tomorrows date. If it is "01", then I > know today is the last of this month: > > date --date="tomorrow" +%d > 02 That's not OpenBSD. $ date --date="tomorrow" +%d date: unknown option -- - usage: date [-aju] [-f pformat] [-r seconds] [

scp -M sftp

2021-08-03 Thread Christian Weisgerber
Damien Miller: > CVSROOT: /cvs > Module name: src > Changes by: d...@cvs.openbsd.org2021/08/02 17:38:27 > > Modified files: > usr.bin/ssh: scp.1 scp.c > usr.bin/ssh/scp: Makefile > > Log message: > support for using the SFTP protocol for file transfers in scp, via a

Re: nmea/udcf recommendation

2021-08-03 Thread Christian Weisgerber
Stuart Henderson: > > I don't have any practical experience with nmea(4), but I'd like > > to draw attention to ldattach(8)'s -t option. Unless your receiver > > offers a pulse per second signal, you are limited to a very jittery > > timestamp from the serial telegram, mirroring udcf's fundamenta

Re: nmea/udcf recommendation

2021-08-02 Thread Christian Weisgerber
Jan Stary: > playing with ntpd a bit, I am looking for a working > nmea or udcf sensor. Can people please recommend > an easy to use device known to work? The Gude mouseCLOCKs were discontinued years ago, so I don't think you could buy any udcf(4) hardware even if you wanted to, and udcf is liter

Re: DHCP non-issues

2021-07-19 Thread Christian Weisgerber
Peter J. Philipp: > Would OpenBSD be interested in a daemon that gets nameserver information from > pppoe0 and passes this nameserver information to resolvd(8)? Currently there > is no way to do that, so a userland daemon that uses a bpf device to spy on > pppoe(4) may be worthwhile to write? Is

DHCP non-issues

2021-07-19 Thread Christian Weisgerber
Look guys, it's simple. If you want IPv6 (SLAAC) autoconfiguration, you set "inet6 autoconf" for that interface. slaacd(8) will then automatically handle things. If you want IPv4 (DHCP) autoconfiguration, you set "inet autoconf" for that interface. dhcpleased(8) will then automatically handle t

Re: reposync:host key verification failed

2021-06-06 Thread Christian Weisgerber
On 2021-06-06, Avon Robertson wrote: > reposync: host key verification failed - see > /var/db/reposync/known_hosts > > The same error was then recorded in my log on the 3rd, 4th, 5th, and > 6th of June. The above known_hosts file does not exist on this machine. > The FILES section of reposync(1)

Re: Firefox: glxteset:libpci missing

2021-05-04 Thread Christian Weisgerber
"Peter N. M. Hansteen": > $ Crash Annotation GraphicsCriticalError: |[0][GFX1-]: glxtest: libpci > missing (t=0.395391) [GFX1-]: glxtest: libpci missing > > firefox runs, so it's not fatal. I suspect it's a misclassified > dependency in the package (build vs runtime). FWIW, I see the same warnin

Re: default Offset to 1MB boundaries for improved SSD (and Raid Virtual Disk) partition alignment

2021-04-21 Thread Christian Weisgerber
Tom Smyth: > if you were to have a 1MB file or a database that needed to read 1MB > of data, i > f the partitions are not aligned then > your underlying storage system need to load 2 chunks or write 2 > chunks for 1 MB of data, written, You seem to assume that FFS2 would align a 1MB file on an

Re: default Offset to 1MB boundaries for improved SSD (and Raid Virtual Disk) partition alignment

2021-04-20 Thread Christian Weisgerber
Tom Smyth: > just installing todays snapshot and the default offset on amd64 is 64, > (as it has been for as long as I can remember) It was changed from 63 in 2010. > Is it worth while updating the defaults so that OpenBSD partition > layout will be optimal for SSD or other Virtualized RAID env

Re: Another potential awk or xargs bug?

2021-04-15 Thread Christian Weisgerber
Jordan Geoghegan: > --- /tmp/bad.txt  Wed Apr 14 21:06:51 2021 > +++ /tmp/good.txt  Wed Apr 14 21:06:41 2021 I'll note that no characters have been lost between the two files. Only the order is different. > The only thing that changed between these runs was me using either xargs -P 1 > or -P 2.

Re: Help with ssh(1) between OpenBSD and iSH/Alpine on iOS

2021-02-06 Thread Christian Weisgerber
Erling Westenvik: > I can ssh FROM any OpenBSD box INTO iSH on my iPhone, and once > authenticated I can ssh back from there to the OpenBSD box or to any > other OpenBSD or Linux box, but! -- From iSH itself (ie. "directly" from > my iPhone) I can only successfully ssh to Linux boxes; if I ssh fro

Re: libreoffice package broken in -current 3.509

2021-01-17 Thread Christian Weisgerber
On 2021-01-17, "Nicola Dell'Uomo" wrote: > after upgarding packages from 3.507 to 3.509 in -current, libreoffice > crashes when it starts. This should be fixed with the next amd64 packages snapshot, which will appear sometime on Monday (UTC). -- Christian "naddy" Weisgerber

Re: phonetics on OpenBSD: IPA transcription

2021-01-08 Thread Christian Weisgerber
On 2021-01-08, Jan Stary wrote: > How do I install a font that has glyphs for those symbols? > Is there anything for that in ports? The Dejavu font that is included by default covers IPA. It's unlikely that you need to install anything else. And if you do, just install the Noto fonts and be do

Re: help needed with httpd.conf and rewrite directive

2021-01-07 Thread Christian Weisgerber
On 2021-01-07, John McGuigan wrote: > httpd's regex is based on Lua's, the following site will help you figure it > out: Or, you know, the patterns(7) man page. -- Christian "naddy" Weisgerber na...@mips.inka.de

Re: -current amd64 packages not updated? Impatient or broken?

2021-01-07 Thread Christian Weisgerber
Steve Williams: > I hesitate to send this because perhaps I'm just too impatient, but then > again, perhaps not.  This is not critical/time sensitive. > > I just thought I'd check if there a problem with the current packages folder > from the mirrors? No, the amd64 package builds have been sligh

Re: UNIX printing demystified

2020-10-24 Thread Christian Weisgerber
On 2020-10-24, Mihai Popescu wrote: > Is there a way to interface LPD directly with GUI apps like Chromium, > mupdf, etc? I mean just to print from GUI menu Print. Those print menus _should_ offer the option to print to lpr. They traditionally did. If they don't now, then this is worth examini

Re: Router advertisements for dynamic IPv6 prefix

2020-10-15 Thread Christian Weisgerber
On 2020-10-14, Fernando Gont wrote: > Set the VL to 30', and the PL to 15'. You could even set the VL to 15', > and the PL to 7.5', if necessary. How does this influence the lifetime of privacy addresses? Even with rad(8)'s defaults, I already need to specify an originating non-privacy addres

Re: time_t

2020-10-05 Thread Christian Weisgerber
On 2020-10-05, Roderick wrote: > The source of my confusion with FreeBSD: > /usr/include/x86/_types.h contains: >typedef __int32_t __time_t; >typedef int __int32_t; $ fgrep time_t /usr/include/x86/_types.h typedef __int64_t __time_t; /* time()... */ typedef __int32_t

Re: time_t

2020-10-05 Thread Christian Weisgerber
On 2020-10-05, "Peter N. M. Hansteen" wrote: > I hadn't looked in a while, but it amazes me that FreeBSD still has > 32-bit time_t. Only on FreeBSD/i386. On all other architectures, time_t is int64_t. See src/sys/*/include/_types.h. -- Christian "naddy" Weisgerber na.

Re: iwm0: fatal firmware error on Dell Latitude E5570

2020-09-24 Thread Christian Weisgerber
On 2020-09-24, Jan Stary wrote: > This is 6.8-beta/amd64 on a Dell Latitude E5570 (dmesg below). > iwm stopped working, saying > > iwm0: hw rev 0x200, fw ver 34.0.1, address e4:a4:71:40:21:08 > iwm0: fatal firmware error > iwm0: could not remove MAC context (error 35) I've been

Re: Understanding of keydisk backup for FDE

2020-08-28 Thread Christian Weisgerber
On 2020-08-27, Andreas Menge wrote: > I try to wrap my head around why the FAQ > (https://www.openbsd.org/faq/faq14.html#softraidFDEkeydisk) says that one > should create a backup of the keydisk with bs=8192 and skip=1. > > From the FAQ: > > # dd bs=8192 skip=1 if=/dev/rsd1a of=backup-keydisk.i

Re: i386, parallel port permission error?

2020-08-20 Thread Christian Weisgerber
On 2020-08-19, Doug Moss wrote: > I think the problem in lcdproc is in the code from this file (port.h) > https://github.com/lcdproc/lcdproc/blob/master/server/drivers/port.h > > I am out of my depth with this code. I have never even seen these > calls 'outb' and 'inb' You're saying this as if y

Re: gcc not on new OpenBSD 6.7 machine, clang problems

2020-08-17 Thread Christian Weisgerber
"Whiskey T.": > My datacenter installed OpenBSD 6.7 on a new machine: > > # uname -a > OpenBSD machine name 6.7 GENERIC.MP#182 amd64 > > # which gcc > which: gcc: Command not found. > configure:3711: checking whether the C compiler works > configure:3733: ccconftest.c >&5 > ld: error: cann

Re: scp host:file* /tmp/nonexistent

2020-08-01 Thread Christian Weisgerber
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

Re: Upgrade old 6.2 but 6.3 SHA256.sig on mirror different

2020-07-22 Thread Christian Weisgerber
"Theo de Raadt": > Johan Mellberg wrote: > > and https://ftp.openbsd.org/pub/OpenBSD/6.3/amd64/SHA256.sig > > (Canada, as I like to take them from different sources). I then ran: > > The format of the .sig files was changed in a very small way, intentionally, > way back then. You are hitting t

Re: Cleaning system's old ibraries/files after update to next -release or -current

2020-07-14 Thread Christian Weisgerber
On 2020-07-14, Ottavio Caruso wrote: >> > After system update I found lots of 'old' libraries versions >> > and possibly binaries from previous releases. >> >> If you need to ask, just don't remove them. Those files eat no bread, >> and in some situations, some of the libs may still be in use. >

Re: hostname.pppoe0, !/bin/sh when reconnecting

2020-06-17 Thread Christian Weisgerber
On 2020-06-17, Lévai, Dániel wrote: > I'm trying to run a script whenever I get a new IP address from my ISP over > pppoe0. They disconnect me occasionally and the router reconnects then, eg.: > /bsd: pppoe: GENERIC ERROR: RP-PPPoE: Child pppd process terminated > /bsd: pppoe0: received unexpect

Re: Filling a 4TB Disk with Random Data

2020-06-05 Thread Christian Weisgerber
On 2020-06-05, Roderick 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? I always keep a vat

Re: Issues expanding partition to grow disk

2020-06-02 Thread Christian Weisgerber
On 2020-06-02, "Darren S." wrote: > I'm dealing with a VPS on KVM with the disk having been recently > expanded from 50 >> 80 GB. > > Disklabel shows reasonable total sectors: > > # disklabel sd0 > total sectors: 167772160 > boundstart: 64 > boundend: 115330635 The upper boundary is still set t

Re: Filling a 4TB Disk with Random Data

2020-06-01 Thread Christian Weisgerber
On 2020-06-01, Justin Noor wrote: > Has anyone ever filled a 4TB disk with random data and/or zeros with > OpenBSD? Yes. > How long did it take? I don't remember. Hours. At a plausible 100 MB/s write speed it will take 11 hours. > What did you use (dd, openssl)? Can you share the command tha

Re: Convert ffs1 to ffs2?

2020-05-20 Thread Christian Weisgerber
On 2020-05-20, Christer Solskogen wrote: > Is that possible? umount, dump, newfs, mount, restore -- Christian "naddy" Weisgerber na...@mips.inka.de

Re: OpenBSD insecurity rumors from isopenbsdsecu.re

2020-05-11 Thread Christian Weisgerber
On 2020-05-11, Stuart Longland wrote: > BSD came from the US (University of California), but most of today's > implementations have been very significantly changed since then. BSD built on top of AT&T UNIX, which came from Bell Labs in New Jersey. -- Christian "naddy" Weisgerber

Re: More than 16 partitions

2020-04-24 Thread Christian Weisgerber
On 2020-04-23, Ian Darwin wrote: > So: I was able to newfs, mount, and use an OpenBSD partition which > disklabel called 'a' and which had no trace of an fdisk partition around it. > > As Allan pointed out, this is not for booting from - none of those > fdisk partitions looks very healthy. bios

Re: Wine for OpenBSD?

2020-04-11 Thread Christian Weisgerber
On 2020-04-11, Nikita Stepanov wrote: > Wine for OpenBSD? At hackathons, we typically ask the French developers to pick out a wine from the menu, but they are pretty reluctant to take on this responsibility. -- Christian "naddy" Weisgerber na...@mips.inka.de

Re: riscv

2020-03-13 Thread Christian Weisgerber
On 2020-03-13, "Peter J. Philipp" wrote: > Any developer working on a riscv port and willing to share their unofficial > work for possible future collaboration? I think I'd have heard by now if somebody was, so I'll go out on a limb and say no, nobody's working on a RISC-V port. -- Christian "

Re: man to render pure text? (or a pipe in vi macros ?)

2020-03-02 Thread Christian Weisgerber
On 2020-03-02, Marc Chantreux wrote: > i felt dumb reading this as i gave a try to the mandoc man. but i just > double checked: > > man mandoc|col -b|grep -w col > > gives me nothing. $ man mandoc|col -b|grep -w col to col(1) -b instead. -- Christian "naddy" Weisgerber

Re: man to render pure text? (or a pipe in vi macros ?)

2020-03-02 Thread Christian Weisgerber
Marc Chantreux: > > > * is there a way to ask man to deliver pure (non-formatted) text ? > > Pipe its output through "col -b". > > what is the gain of using col over fmt ? It's the designated tool for the job. That fmt also happens to replace sequences character1-backspace-character2 with chara

Re: man to render pure text? (or a pipe in vi macros ?)

2020-03-02 Thread Christian Weisgerber
Marc Chantreux: > * is there a way to ask man to deliver pure (non-formatted) text ? Pipe its output through "col -b". > * is there a way to introduce a | in vi macros? Yes, by prefixing it with a ^V character. To enter ^V in vi's input mode, press control-V twice. -- Christian "naddy" Weisg

Re: setxkbmap cannot completely set compose key

2020-02-20 Thread Christian Weisgerber
Xianwen Chen (陈贤文): > I forgot to report maybe an important piece of information. I use scim > to type in Chinese. I use the default xdm. Here is my .xsession: > > export LC_CTYPE=en_US.UTF-8 > > export XMODIFIERS=@im=SCIM > export GTK_IM_MODULE="scim" > export QT_IM_MODULE="scim" > scim -d I s

Re: VLAN or aliases or? best way to isolate untrustable hosts in a small network

2020-02-05 Thread Christian Weisgerber
On 2020-02-05, Janne Johansson wrote: >> # /etc/hostname.vlan101 >> description 'WLAN attached untrusted hosts' >> inet 192.168.156.0/24 255.255.255.0 vlandev run0 > > VLANs and wifi sounds like a non-starter. Yep, if you're building your access point with OpenBSD. More generally, though, any A

Re: VLAN or aliases or? best way to isolate untrustable hosts in a small network

2020-02-05 Thread Christian Weisgerber
Denis, I suspect the fundamental problem is that you don't understand what VLANs are. There should be a lot of articles about this topic on the net; maybe somebody here can recommend a good one. -- Christian "naddy" Weisgerber na...@mips.inka.de

Re: VLAN or aliases or? best way to isolate untrustable hosts in a small network

2020-02-04 Thread Christian Weisgerber
On 2020-02-03, Denis wrote: > Some hosts should be limited in internet access and/or local access or > simply be restricted in some way because they are untrusted. > > I'm looking for a possibility to isolate untrusted inside LAN using any > approach applicable. How do people isolate undesirable

Re: Low throughput with 1 GigE interface

2020-01-30 Thread Christian Weisgerber
On 2020-01-30, Jordan Geoghegan wrote: > All you're doing is benchmarking the speed of iperf on that machine. I vaguely remember a thread somewhere that concluded that one of these network benchmark tools degenerated into a benchmark of gettimeofday(2), which apparently is very cheap on Linux an

Re: Low throughput with 1 GigE interface

2020-01-30 Thread Christian Weisgerber
On 2020-01-30, livio wrote: > I am unable to achieve decent throughput with a 1 GigE interface > (Intel I210) on OpenBSD 6.6. When running iperf3 I get around 145Mbit/s. I get more than 30 Mbytes/s over SSH (!) to an APU2. $ scp -caes128-...@openssh.com /usr/ports/distfiles/texlive-20190410-te

Re: Odd /tmp behavior

2020-01-08 Thread Christian Weisgerber
On 2020-01-08, Nick Holland wrote: > Weird stuff happens when Softdeps are working as designed. To put it simply: Meta-data writes are delayed. -- Christian "naddy" Weisgerber na...@mips.inka.de

Re: possible SSH algorithm issues?

2020-01-08 Thread Christian Weisgerber
On 2020-01-08, "lu hu" wrote: > are these real issues? No. -- Christian "naddy" Weisgerber na...@mips.inka.de

Re: thank you for 6.6 and bsd.rd

2019-12-20 Thread Christian Weisgerber
On 2019-12-20, "Theo de Raadt" wrote: > well you missed out > > for 6.5 onwards, all you had to was type > > sysmerge > sysupgrade I think that was intended to read syspatch sysupgrade > for 6.6 onwards you'll only need sysupgrade -- Christian "naddy" Weisgerber

Re: What happened to 6.6/sgi?

2019-12-08 Thread Christian Weisgerber
On 2019-12-08, Stefan Hagen wrote: > I was browsing around and noticed that there are no files for the SGI > platform on the mirrors. OpenBSD/sgi has been discontinued. No 6.6 release was built. The mips64 CPU architecture remains alive on the octeon platform. > SGI is mentioned in the 6.6/RE

Re: LibreSSL vs. OpenSSL enc command

2019-12-04 Thread Christian Weisgerber
Dieter Rauschenberger: > This was serveral years ago before Libressl was invented. Now I wanted > to decrypt the docs with: > > openssl enc -aes-256-cbc -d < FOO.aes256 > FOO > > This did not work. The password did not work anymore. The default message digest function used for key derivation ch

Re: iPXE and UEFI boot

2019-12-01 Thread Christian Weisgerber
Christer Solskogen: > > With UEFI and PXE I have successfully netbooted > > * amd64 (Thinkpad X1C5) with BOOTX64.EFI after bluhm@'s recent > > bootdev_dip fix > > Is that already in current? Yes, it was committed five days ago. > I now tried having bsd.rd in tftp root > directory, and BOOTX.E

Re: iPXE and UEFI boot

2019-12-01 Thread Christian Weisgerber
On 2019-12-01, Christer Solskogen wrote: > I've tried sanboot for iso, but it fails. I *can* get BOOTX64.EFI to start, > but it cant find bsd.rd (perhaps BOOTX64.EFI requires tftpd?), No "perhaps". BOOTX64.EFI uses TFTP to load the kernel, just like pxeboot does. With UEFI and PXE I have succes

Re: vi in ramdisk?

2019-11-15 Thread Christian Weisgerber
On 2019-11-15, Roderick 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. Interestingly enough, the installer itself does not use ed, as far as I can tell. * I pretty regularly use ed to perform some configurat

Re: Requesting vi tips

2019-10-18 Thread Christian Weisgerber
On 2019-10-18, Nam Nguyen wrote: >> Since 'q' is unused in nvi, I have this in my .nexrc: >> map q !}fmt > > I just wanted to add that you can Ctrl-v Enter to produce the ^M at the end. > This way it inputs and executes the command for you. > > It could be like this if you want it to press Enter

Re: Requesting vi tips

2019-10-18 Thread Christian Weisgerber
On 2019-10-18, cho...@jtan.com wrote: > I didn't know [how] ! took movement commands. Thanks. I'll have a play > with that one. > > It's not quite M-q (it's M not C) but I'm using vi after all. Since 'q' is unused in nvi, I have this in my .nexrc: map q !}fmt Close enough to emacs's M-q. --

Re: Why regex doesn't work in while loop's condition?

2019-09-06 Thread Christian Weisgerber
On 2019-09-06, Andreas Kusalananda Kähäri wrote: >> read x; while [ "$x" != [abc] ]; do echo "Not a, b or c"; break; done > > The shells in the OpenBSD base system do not support matching regular > expressions with that syntax. You may have been thinking of bash, Just to head off crazy rumors:

Re: openrsync out of memory

2019-08-16 Thread Christian Weisgerber
On 2019-08-16, Jan Stary wrote: >> Does that mean openrsync tries to mmap() the entire file? >> The machine only has 256MB of memory, but it does transfer >> a test file of 300MB, so that can't be it. > > I forgot about 1GB swap, so that's why it works > for files up to around 1.2G, but not large

Re: Postscript printer recommendations

2019-07-13 Thread Christian Weisgerber
On 2019-07-13, "Jonathan Drews" wrote: > Hi Folks: I need some recommendations on what brand of printers will > work > with Ghostscript (Postscript). The cartridges for my 15 year old HP > Deskjet have gotten too expensive. I know Xerox makes some > Postscript printers. Are there any other manuf

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

2019-07-12 Thread Christian Weisgerber
On 2019-07-11, Ingo Schwarze wrote: > Quite likely. I'm so clueless that right now, i can't even seem to get > Compose to work even though i'm sure i had it working in the past. I use "setxkbmap -option compose:ralt" and compose works as expected for me in xterm. Zwölf Boxkämpfer jagen Viktor

Re: ssh-keygen specify max keysize for ed25519

2019-07-04 Thread Christian Weisgerber
On 2019-07-03, jungle boogie wrote: > $ ssh-keygen -t ed25519 -b 1000 > Bits has bad value 1000 (too large) That's fine, that's a generic argument parsing error. > $ ssh-keygen -t ed25519 -b 2 > key bits exceeds maximum 16384 That error makes no sense. ED25519 keys have a fixed le

Re: The su manual doesn't mention use root account by default

2019-06-13 Thread Christian Weisgerber
On 2019-06-13, "Theo de Raadt" wrote: >> I always considered that su is coming from _s_uper _u_ser. But maybe I >> am wrong, I am not from old UNIX days. > > incorrect. > > NAME > su - substitute user identity Well, that's V7, which appears to have engaged in a bit of revisionism together w

Re: IPsec bandwidth perf on APU4C4

2019-06-11 Thread Christian Weisgerber
mabi: > Last question hopefully... Reading the iked.conf man page I conclude that all > I need for that is to add to my ikev2 config is the following additional > parameter: > > childsa enc aes-128-gcm Correct. -- Christian "naddy" Weisgerber na...@mips.inka.de

  1   2   3   4   5   6   7   8   9   >