JdeBP
JdeBP@tty0.social
<p>This is specifically for the command-line and system tools stuff, including <a href="https://tty0.social/tags/nosh" class="mention hashtag" rel="tag">#<span>nosh</span></a> and <a href="https://tty0.social/tags/djbwares" class="mention hashtag" rel="tag">#<span>djbwares</span></a>.</p><p>For anything else, including general computer programming, the non-politics account is <span class="h-card" translate="no"><a href="https://mastodonapp.uk/@JdeBP" class="u-url mention">@<span>JdeBP</span></a></span> and the politics account is <span class="h-card" translate="no"><a href="https://mastodon.scot/@JdeBP" class="u-url mention">@<span>JdeBP</span></a></span>. <a href="https://tty0.social/tags/senryu" class="mention hashtag" rel="tag">#<span>senryu</span></a> and <a href="https://tty0.social/
Posts
-
Post #3881576
@wolf480pl @cks 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
-
Post #3881575
@cks 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 #systemd #DesktopBus
-
Post #3881574
@cks That could very well be your problem. Something is waiting for #DesktopBus, and it&#39;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&#39;s resource limited. @wolf48...
-
Post #3881573
@cks 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&#39;s another thing to check out. Could be NFS again, after all. (-: @wolf480pl #DesktopBus #systemd
-
Post #3881572
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.
-
Post #3705880
@rl_dane 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 &#39;raw&#39; driver&#39;s code, you probably do not want to know #urwid&#39;s drawing behaviour. #TUIs #SerialCommunications #Unix #ncurses
-
Post #3705879
@cks nc wasn&#39;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://sals...
-
Post #3705878
@rl_dane 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
-
Post #3705877
@oclsc Arch has #OpenBSD #nc twice in the AUR. One package applies all of the Debian patches. One does not. But they won&#39;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 d...
-
Post #3705876
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&#39;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
-
Post #3705875
@gumnos 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&amp;T Unix System 5 and not from BSD. https://illumos.org/man/1/sar @darkuncle @rl_dane
-
Post #3705874
@wild1145 Does your system show stats about how many transactions connections serviced before they closed? Or, alternatively, what the lifetimes of established connections are? I&#39;m asking because I&#39;m putting the occasional knob into the HTTP server in #djbwares and you&#39;ve made me think about transaction caps and what&#39;s reasonable when one is under attack from an LLM scraper; when one really doesn&#39;t want the attacker to be able to hold existing connecti...
-
Post #3705873
@colinstu @ariadne I wrote about this, a few years ago. https://news.ycombinator.com/item?id=37317970 #doas #OpenDoas #OpenBSD
-
Post #3705872
@rl_dane When you view manual pages on a video terminal, the -s (&#39;squeeze&#39;) option to the final $PAGER in the pipeline does this. You&#39;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&#39;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 #TextProces...
-
Post #3705871
As you can see, @rl_dane has me wondering whether anyone has ever written a sqz(1) #Unix #TextProcessing tool, to go alongside vis(1). https://tty0.social/@JdeBP/116834743954481512 I am tempted to just quickly knock one together and put it into the #nosh toolset.
-
Post #3705870
@chesheer @cos It would be interesting to trace the relationships, if any, between the twain. Here&#39;s something for your doco: Pendleton&#39;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...
-
Post #3705869
@chesheer No need to define its own constants for the standard file descriptors, either. Gaining &lt;unistd.h&gt; means that you gain STDERR_FILENO, STDIN_FILENO, et al.. That &#39;extern int errno&#39; is actually wrong and needs to come out. A well known thing to change, that is. That&#39;s all I spotted from a quick shufti. There&#39;s probably something more in the string handling. Code from that period often wasn&#39;t good with strings. I&#39;ve not...
-
Post #3705868
@rl_dane 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
-
Post #3705867
@rl_dane The &#39;cat -v considered harmful folks&#39; (Kernighan and Pike) invented vis(1). &gt; 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 &gt; cat isn’t […] for compressing multiple blank lines […] it’s for concatenating files. #vis #sqz #cat #Unix #Te...
-
Post #3705866
@rl_dane It&#39;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
-
Post #3705865
@pertho If &#39;go to&#39; 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. (-:
-
Post #989838
@lattera I&#39;m wondering how many people spotted the missing ^ there. It&#39;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
-
Post #989837
@josevnz Looks complex. (-: C shell: % printf &#39;%s\n&#39; $path Z shell: % printf &#39;%q\n&#39; &quot;$path[@]&quot; #UnixShells #CShell #ZShell #zsh #csh
-
Post #989836
@Radio_Azureus #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
-
Post #989835
@ska #s6 doesn&#39;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
-
Post #989834
@alanc Service management, as I mentioned, began as the domain of the much older Service Access Facility, which comes from #Unix S5R4 in 1988. The #Illumos manual page for the sacadm command (for one) is dated 1992, and the Illumos #ServiceAccessFacility dates back to the days of #Solaris 2. The use of sacadm/pmadm/ttyadm/nlsadmin in Illumos et al. is the same now as it was when Æleen Frisch wrote about them for Solaris 2 in xyr book in 1995. http://jdebp.info/FGA/unix-service-access-facili...
-
Post #989833
@alanc @Radio_Azureus I had to write that FGA in part because *everyone* forgot about the SAF. (-: #Illumos #OmniOS #SmartOS #OpenIndiana #Tribblix #ServiceAccessFacility
-
Post #989832
@justine I wondered what you meant by that, as obviously a TUI program cannot affect what fonts the terminal emulator that displays its output will use. What this is is nvi not decoding UTF-8. That&#39;s an interesting difference betwen nvi in base and nvi in ports. I just tried nvi on some other operating systems and they all have fileencoding=&quot;UTF-8&quot; set. That makes me wonder when and how nvi gained UTF-8 support, as one of those is nvi version 1 from 2007. #nvi #...
-
Post #989831
@justine @cks was discussing this a few weeks ago. This is the Bostic #nvi clone copying the original Joy+Horton #vi undo/redo behaviour. https://mastodon.social/@cks/116030650374231189 #OpenBSD
-
Post #344577
@shlinkio I have this vague memory that when I first set up my github repositories, one could not turn off pull requests. I turned off almost everything that could be turned off. I&#39;ve just turned them off on all of my repositories. I wasted too much of my life combatting robot-generated bulk e-mail. I&#39;m going to nip robot-generated bulk pull requests in the bud before they become a problem. @ska #GitHub #AIslop