Elektrine
Log in Register
Paige Chat Timeline Gallery Friends Email Drive DNS Private DNS Domains VPN Kairo Nerve
Remote

JdeBP

@JdeBP@tty0.social
mastodon 4.6.0
  • Open on tty0.social

This is specifically for the command-line and system tools stuff, including #nosh and #djbwares.

For anything else, including general computer programming, the non-politics account is @JdeBP@mastodonapp.uk and the politics account is @JdeBP@mastodon.scot. #senryu and #SlowLife tasks are at @JdeBP@toot.wales.

116 Followers
5 Following
37 Posts
Joined December 18, 2022
WWW:
http://jdebp.info/
GitHub:
https://github.com/jdebp
Hacker News:
https://news.ycombinator.com/user?id=JdeBP
GOPHER:
gopher://jdebp.info:70/1/
Open post
JdeBP @JdeBP@tty0.social
· 3w ago
@ska@social.treehouse.systems Good questions, but that's as far as I got with the version control history. I'm presuming that there are some public discussions somewhere. @daztucker@infosec.exchange is the person who made that commit marking the 'hack', so let's see whether xe is around. (-: #OpenSSH
1
2
0
0
Open post
JdeBP @JdeBP@tty0.social
· 3mo ago

@cks@mastodon.social

nc wasn't changed. The relevant line of code has been

if (vflag || zflag) {

ever since Eric Jackson re-wrote #OpenBSD #nc in 2001. Martin Pieuchot changed the stream from standard output to standard error in 2009, but nc has been doing this for quarter of a century.

What actually happened was that #Debian people had been locally patching this line from 2012 to 2023.

https://salsa.debian.org/debian/netcat-openbsd/-/commit/2f5a8bea5f84847ee36a90e59f585b5cb3c07537

https://salsa.debian.org/debian/netcat-openbsd/-/commit/c9586231ff0e481ba51f96abd576cb506883a166

The Stearns fork of pre-Jackson #netcat respects -v here.

tty0.social
8
1
3
0
Open post
JdeBP @JdeBP@tty0.social
· 3mo ago

@pertho@mastodon.bsd.cafe

If 'go to' means first choice, where possible, then of course it is #httpd from #djbwares. Simple; static; secure; low resource usage; and I know exactly how it works.

One of the reasons that I maintain it is so that I can use it myself. (-:

http://jdebp.info/Softwares/djbwares/

It is running on #NetBSD for my public WWW site. But I have an internal WWW site where it runs on #FreeBSD.

Years ago, it was my own httpd and httppd, on OS/2. (-:

tty0.social
4
0
1
0
Open post
JdeBP @JdeBP@tty0.social
· 3mo ago

@rl_dane@polymaths.social

The 'cat -v considered harmful folks' (Kernighan and Pike) invented vis(1).

> The preferred approach in this case is a separate program that deals with non-printable characters. We called ours vis […] because its job is to make things visible.

I suspect that they would approve of sqz(1) likewise abstracted from cat -s, because they also said

> cat isn’t […] for compressing multiple blank lines […] it’s for concatenating files.

#vis #sqz #cat #Unix #TextProcessing #nosh

tty0.social
4
1
0
0
Open post
JdeBP @JdeBP@tty0.social
· 3mo ago

@chesheer@mastodon.bsd.cafe @cos@aus.social

It would be interesting to trace the relationships, if any, between the twain.

Here's something for your doco: Pendleton's actual shar posting to comp.unix.wizards in 1988, complete with UUCP bang paths in the signature block.

https://groups.google.com/g/comp.unix.wizards/c/HVObC4kIJ9g/m/q6PYo0bEUL8J

Notice that Pendleton did VMS emulation before emacs.

https://groups.google.com/g/comp.unix.questions/c/zvywB_vQt2s/m/bg2TiwXL8aUJ

Also note that the BSDs have cfmakeraw(3) available in the C library.

#readline #ile #Unix #emacs #VMS #termios #FreeBSD #OpenBSD #NetBSD

groups.google.com
4
1
2
0
Open post
JdeBP @JdeBP@tty0.social
· 3mo ago

@rl_dane@polymaths.social

When you view manual pages on a video terminal, the -s ('squeeze') option to the final $PAGER in the pipeline does this. You'll be surprised at how many blank lines there really are in manuals.

less, (BSD) more, most, and (my) console-tty37-viewer all have this option.

Given that, it's an of course moment, with a nod to the people who think that this should no more be a part of cat than vis(1) is, that cat has a squeeze option too.

#Unix #TextProcessing #nosh

tty0.social
2
0
0
1
Open post
JdeBP @JdeBP@tty0.social
· 3mo ago

@colinstu@birdbutt.com @ariadne@social.treehouse.systems

I wrote about this, a few years ago.

https://news.ycombinator.com/item?id=37317970

#doas #OpenDoas #OpenBSD

news.ycombinator.com
2
0
1
0
Open post
JdeBP @JdeBP@tty0.social
· 2mo ago

Today has been the day to discover that all of the work that I put in to making a program work on Debian has completely broken its long-standing functionality on FreeBSD.

1
1
0
0
Open post
JdeBP @JdeBP@tty0.social
· 3mo ago

@wolf480pl@mstdn.io @cks@mastodon.social

Nah. With per-user service management it is far more likely to be D-Bus. It could be a D-Bus service failing, or not present, or not starting properly; or even a problem with the per-user broker.

Crank up your D-Bus monitor.

#systemd

tty0.social
1
1
0
0
Open post
JdeBP @JdeBP@tty0.social
· 3mo ago

@rl_dane@polymaths.social

It's food for thought, too. All this fuss made about cat, repeated to this day in some quarters, and of the three things explicitly pointed out as wrong with what Berkeley did, only a tool to do one of them, vis(1), was ever written in 43 years.

The ironic cherry on top is that the only operating systems that come with vis out of the box are the BSDs.

#Unix #TextProcessing #nosh #cat #vis #linenumber #sqz

tty0.social
1
1
0
0
Open post
JdeBP @JdeBP@tty0.social
· 3mo ago

@rl_dane@polymaths.social

Well since vis(1) came about because of cat -v, it seems that there should be a sqz(1) because of cat -s .

#Unix #TextProcessing #nosh

tty0.social
1
1
0
0
Open post
JdeBP @JdeBP@tty0.social
· 3mo ago

@chesheer@mastodon.bsd.cafe

No need to define its own constants for the standard file descriptors, either. Gaining means that you gain STDERR_FILENO, STDIN_FILENO, et al..

That 'extern int errno' is actually wrong and needs to come out. A well known thing to change, that is.

That's all I spotted from a quick shufti. There's probably something more in the string handling. Code from that period often wasn't good with strings. I've not looked, though.

#ile #Unix #termios #unistd #errno

tty0.social
1
0
0
0
Open post
JdeBP @JdeBP@tty0.social
· 3mo ago

As you can see, @rl_dane@polymaths.social has me wondering whether anyone has ever written a sqz(1) #Unix #TextProcessing tool, to go alongside vis(1).

@JdeBP@tty0.social

I am tempted to just quickly knock one together and put it into the #nosh toolset.

tty0.social
1
1
0
0
Open post
JdeBP @JdeBP@tty0.social
· 3mo ago

@gumnos@mastodon.bsd.cafe

No. sysstat is specific to Linux alone.

https://sysstat.github.io/faq.html#sar-2.5

And the other sar that you may be thinking of is in #Illumos and its derivatives and comes from AT&T Unix System 5 and not from BSD.

https://illumos.org/man/1/sar

@darkuncle@infosec.exchange @rl_dane@polymaths.social

sysstat.github.io
1
1
0
0
Open post
JdeBP @JdeBP@tty0.social
· 3mo ago

@rl_dane@polymaths.social

It basically redraws entire lines at a time, and a single character change invalidates the entire line that it is on.

#urwid #TUIs #SerialCommunications #Unix #ncurses

tty0.social
1
0
0
0
Open post
JdeBP @JdeBP@tty0.social
· 3mo ago

@rl_dane@polymaths.social

Youth of today, with your emulators! (-:

I simply have an actual serial port that I can set to 1200 BPS, and log in on.

From a quick perusal of its 'raw' driver's code, you probably do not want to know #urwid's drawing behaviour.

#TUIs #SerialCommunications #Unix #ncurses

tty0.social
1
1
0
0
Open post
JdeBP @JdeBP@tty0.social
· 7mo ago
Replying to on tty0.social
@gumnos@mastodon.bsd.cafe I am the voice of experience: @rl_dane@polymaths.social was talking about getopt yesterday, and I found that I was running a /usr/local/bin/getopt from ports with very different handling of '--' (alluded to by @steeph@todon.eu , so I had been checking it out) to the actual #FreeBSD /usr/bin/getopt on the machine. I wouldn't be surprised if I'm running a different /usr/bin/grep (I checked that.) to you. "I'm using FreeBSD grep." has famously been two entirely different programs over the years. #getopt #grep
3
0
0
0
Open post
JdeBP @JdeBP@tty0.social
· 6mo ago
Replying to
On that subject: I can now give @cks@mastodon.social one of the most delayed and useless responses to a mailing list question, ever. https://omnios.org/ml-archive/2014-February/002358.html Changing the BPS setting for a terminal service in #OmniOS is done with ttyadm(8). Use the -l option to pick the desired chain of speed settings from ttydefs. https://man.omnios.org/man8/ttyadm Create an entry with sttydefs(8) if necessary that has "115200" in the stty flags and that chains to the next slower speed. https://man.omnios.org/man8/sttydefs @alanc@hachyderm.io @Radio_Azureus@ioc.exchange
omnios.org
2
0
0
0
Open post
JdeBP @JdeBP@tty0.social
· 4mo ago
Replying to
@encthenet@flyovercountry.social @mwl@io.mwl.io @putney@universeodon.com Here you go. http://jdebp.info/Proposals/freebsd-boot-manual-page.html #boot #EFI #FreeBSD #loader
jdebp.info
1
0
0
0
Open post
JdeBP @JdeBP@tty0.social
· 5mo ago
Replying to
@simontatham@hachyderm.io Here you go. https://github.com/gwsw/less/commit/afb59e175395fd679404cbd1c45e9fd1d4d285c6 @minego@pdx.social#less
GitHub

If search_type is changed by an incomplete (not executed) · gwsw/less@afb59e1

search command, don't retain that search_type in the next "n" command.

1
0
0
0
Open post
JdeBP @JdeBP@tty0.social
· 6mo ago

@justine

@cks was discussing this a few weeks ago. This is the Bostic #nvi clone copying the original Joy+Horton #vi undo/redo behaviour.

@cks@mastodon.social

#OpenBSD

Justine Smithies (@justine@snac.smithies.me.uk)
snac.smithies.me.uk

Justine Smithies (@justine@snac.smithies.me.uk)

563 following, 2598 followers · Friend, Lover, Sister, Mother & Wife Loves cooking BSD, Linux chick Mobiles: #Fairphone4 #OnePlus6T #OnePlus6 #PinePhonePro Watch PineTime Hand wired #Pico #QMK #Keyboard Daily drivers: #ThinkPad P14s Gen 1 AMD - #FreeBSD with #CoW ( #FVWM for #Wayland ) Dell Optiplex 3080 Tower - #OpenBSD with #MangoWM and #Waybar Editor: ed(1) vi/nvi HomeLab: #FreeBSD

1
0
0
0
Open post
JdeBP @JdeBP@tty0.social
· 6mo ago
Replying to
@justine It transpires that there are multiple forks of #nvi, but only some of them have the UTF-8 improvements from the end of the 1990s. How interesting! That's another thing that Sven Guckes never covered. https://guckes.net/vi/clones.html#nvi #OpenBSD
guckes.net
1
0
0
0
Open post
JdeBP @JdeBP@tty0.social
· 6mo ago

@alanc@hachyderm.io @Radio_Azureus@ioc.exchange

I had to write that FGA in part because *everyone* forgot about the SAF. (-:

#Illumos #OmniOS #SmartOS #OpenIndiana #Tribblix #ServiceAccessFacility

tty0.social
1
0
0
0
Open post
JdeBP @JdeBP@tty0.social
· 7mo ago
Replying to on tty0.social
@gumnos@mastodon.bsd.cafe A subtler version of another part of the bug is caused by a similarly bad handling of EOF in another part of #FreeBSD #grep's roll-its-own I/O library. https://cgit.freebsd.org/src/tree/usr.bin/grep/file.c#n139 With your example of /usr/bin/grep x You can enter a single space, then terminate the read(2) with the EOF special character; and you'll have to send EOF 2 more times to get grep to exit. A regular file containing just a SPC exhibits the same behaviour of wrongly needing to receive EOF from read() twice.
cgit.freebsd.org
1
0
0
0
Open post
JdeBP @JdeBP@tty0.social
· 3mo ago

@cks@mastodon.social

You should have this:

https://manpages.ubuntu.com/manpages/resolute/man1/dbus-monitor.1.html

If it cannot connect, in a session for the relevant user, without tweaking the DBUS_SESSION_BUS_ADDRESS environment variable, or at all, then that might well be the problem. (-:

@wolf480pl@mstdn.io
#systemd #DesktopBus

manpages.ubuntu.com
0
1
0
0
Open post
JdeBP @JdeBP@tty0.social
· 3mo ago

@wild1145@mastodonapp.uk

Does your system show stats about how many transactions connections serviced before they closed? Or, alternatively, what the lifetimes of established connections are?

I'm asking because I'm putting the occasional knob into the HTTP server in #djbwares and you've made me think about transaction caps and what's reasonable when one is under attack from an LLM scraper; when one really doesn't want the attacker to be able to hold existing connections open indefinitely.

#httpd

tty0.social
0
0
0
0
Open post
JdeBP @JdeBP@tty0.social
· 3mo ago

@oclsc@mstdn.ca

Arch has #OpenBSD #nc twice in the AUR. One package applies all of the Debian patches. One does not.

But they won't have noticed this difference, since they added these to the AUR around the time that Debian stopped patching the if test.

https://aur.archlinux.org/packages/openbsd-netcat-tls

https://aur.archlinux.org/packages/openbsd-netcat-git

#NetBSD, #FreeBSD, and #DragonFlyBSD all use the Jackson netcat.c with the if statement as in the original, so their ncs will all do this too.

https://gitweb.dragonflybsd.org/?p=dragonfly.git;a=blob;f=crypto/libressl/apps/nc/netcat.c;hb=HEAD#l718

@cks@mastodon.social
#netcat

mstdn.ca

Norman Wilson (@oclsc@mstdn.ca) - Mastodon Canada

0
0
0
0
Open post
JdeBP @JdeBP@tty0.social
· 3mo ago

If this were a bitmap font, some of its ideas would be interesting to play around with and see how they work on a userspace VT. (The #unscii PET font is probably the closest to this, but it has guttering.)

Bit it's a vector font playing at being a bitmap font by drawing lots of quadrilaterals, which is too much hard work, further compounded by there being no version targetting a power of 2 size.

https://velvetyne.fr/fonts/jgs-font/

#JGSfont #UserVTs

tty0.social
0
0
0
0
Open post
JdeBP @JdeBP@tty0.social
· 6mo ago

@josevnz@fosstodon.org

Looks complex. (-:

C shell:

% printf '%s\n' $path

Z shell:

% printf '%q\n' "$path[@]"

#UnixShells #CShell #ZShell #zsh #csh

tty0.social
0
0
0
0
Open post
JdeBP @JdeBP@tty0.social
· 7mo ago

@lattera@bsd.network

I'm wondering how many people spotted the missing ^ there.

It's interesting to consider such an old convention still in use; in light of the fact that #Unicode not only has for the whole of this century so far given us proper arrow symbols, and even a Control-key symbol (⎈ U+2388), but also has a character (␗ U+2417) with a control code picture for ETB.

I still often use ^ too. (-:

#CaretNotation #SpecialCharacters #werase #ASCII

tty0.social
0
0
0
0
Open post
JdeBP @JdeBP@tty0.social
· 2mo ago

@cks@mastodon.social

The per-user systemd process is not the broker. That runs as a per-user service, conventionally named/aliased dbus.service. This is one of the two that one could have on Debian:

https://sources.debian.org/src/dbus/1.16.2-5/bus/systemd-user/dbus.service.in

The manager_enumerate stuff is for one thing looking in /proc/self/mountinfo and checking out mount points. So that's another thing to check out.

Could be NFS again, after all. (-:

@wolf480pl@mstdn.io
#DesktopBus #systemd

sources.debian.org
0
1
0
0
Open post
JdeBP @JdeBP@tty0.social
· 6mo ago

@ska@social.treehouse.systems

#s6 doesn't even have anything dealing generally with the #Unix accounts database in the first place, does it?

That is more the domain of nsss and utmps, ne?

#utmps #nsss

tty0.social
0
1
0
0
Open post
JdeBP @JdeBP@tty0.social
· 6mo ago

@Radio_Azureus@ioc.exchange

#Illumos (and thus #OmniOS, #SmartOS, #Tribblix, et al.) has #ifconfig as well.

Indeed, some of its tooling, such as for service management, has been stable since the late 1980s; whereas the BSDs went through some churn in this area in the 1990s and early 2000s.

https://illumos.org/man/8/ifconfig

tty0.social
0
0
0
0
Open post
JdeBP @JdeBP@tty0.social
· 2mo ago

@cks@mastodon.social

That could very well be your problem. Something is waiting for #DesktopBus, and it's taking its time for the per-user broker to come up.

D-Bus is a bit fragile. I had to go through all of this stuff for per-user service management with the #nosh toolset, and there are many ways in which the D-Bus mechanisms can break.

A few ways were because originally the design was that the first client forked the broker process. Not good when the client's resource limited.

@wolf480pl@mstdn.io
#systemd

tty0.social
0
1
0
0
Open post
JdeBP @JdeBP@tty0.social
· 5mo ago
Replying to
@arstechnica@mastodon.social @dangoodin@infosec.exchange Not to be confused with #daemontools, a different (and older) piece of software entirely that is approaching 30 years old, still going, and probably really hard to perform a supply chain attack on. http://jdebp.info/FGA/daemontools-family.html #djbwares
jdebp.info
0
0
0
0
Back
313k7r1n3
Elektrine

Tor hidden service

elekhj7afj4qnrr4yd3bkzslsyo5jgfxw3orgjkhlcxifueodybyiiad.onion

I2P eepsite

j6b6cyk6gjmepjih7jjadxgxvvf3lzzujljuu2v4biemzpg3naya.b32.i2p

Platform

  • Email
  • Chat
  • Timeline
  • VPN
  • DNS

Company

  • About
  • Contact
  • FAQ
  • Lite (no JS)

Legal

  • Terms of Service
  • Privacy Policy
  • Transparency Report
  • Report Abuse
  • Warrant Canary
  • VPN Policy

Support

  • support@elektrine.com
  • Report Security Issue
Mail client setup IMAP mail.elektrine.com:993 POP3 mail.elektrine.com:995 SMTP mail.elektrine.com:465
© 2026 Elektrine. All rights reserved. Server: 23:01:56 UTC