mouse in midnight commander (mc); alternate screen
Dear list, I would like to use the mouse in the midnight commander running in xterm in X11. However, mouse does not seem to do anything other than in the xterm terminal itself. I did not find any clue in the man page. I tried running like mc -x mc -g but to no avail. Furthermore, I would also like to use ctrl-o to get to the alternate screen (or subshell). At the moment, ctrl-o hides the panels but does not give the prompt. Can anybody help, please? I run 7.6 GENERIC.MP#338 amd64. Thank you. Ruda
DNS resolution when 1st nameserver does not know
Dear list, my computer is connected to a LAN, from which it obtains its IP and also local-DNS-server IP via DHCP. The latter is then inserted into /etc/resolv.conf by, I believe, resolvd. The computer is furthermore connected via wireguard VPN to another network with its own DNS server, serving the local IPs there. The DNS server in my LAN, of course, does not know the (non-public) IPs in the remote network. However, as it comes 1st in /etc/resolv.conf, the nameserver that comes next (I manually added it to the file) --- and which would know the answer --- is never asked. I can stop resolvd and use the DNS server within the VPN for all the traffic. But I'd still prefer to have most of the work done by the local DNS server, and only if it doesn't know I would ask the server in the VPN. Is there anything simple I can do? Thank you for your comments. Best regards, Ruda
tmux: mouse works in st but not in xterm
Dear list, when I run tmux in xterm, the mouse support does not work. When I run tmux in the st terminal, mouse support is functional (e.g., I can resize the panes). Can somebody perhaps have a clue, what can be going on? On linux, there is no problem in xterm. I also renamed ~/.Xdefaults to get any settings there out of the game, tried to set TERM to the same value as st uses, but all to no avail. I do not know what to try next. Thanks! Ruda PS.: I do have set -g mouse on in ~/.tmux.conf; that's why mouse works in st.
Re: a2ps error; printing utf8 to a postscipt printer
Jan Stary wrote: > On Oct 23 17:22:37, rsyk...@disroot.org wrote: > > > > Loosely related: What program do you use to print utf8 > > encoded text file to a postscipt printer? (Neither a2ps, nor > > enscript does it. > > u2ps is in ports. Great. It seems to work for me. Thanks. Ruda
Re: a2ps error; printing utf8 to a postscipt printer
Antoine Jacoutot wrote: > On Mon, Oct 23, 2023 at 05:22:37PM +0200, rsyk...@disroot.org wrote: > > Dear list, > > > > > > after upgrading to OpenBSD 7.4 (as far as I can tell), > > a2ps program stopped working: > > > > ;a2ps /home/ruda/mnt/tarkil/SIMUL/acceptance/accept1detE0.ijs > > [/home/ruda/mnt/tarkil/SIMUL/acceptance/accept1detE0.ijs (plain): 2 pages > > on 1 sheet] > > Usage: a2ps-lpr-wrapper [-d printer] FILE... > > a2ps: received SIGPIPE > > > > It seems to me that a2ps-lpr-wrapper expects a FILE argument, > > while a2ps (which invokes the wrapper?) does not supply one... > > > > Has anybody else had this issue? > > Thanks for comments. > > > > Loosely related: What program do you use to print utf8 > > encoded text file to a postscipt printer? (Neither a2ps, nor > > enscript does it. At this moment I either remove any > > diacritics with 'recode -f utf8..flat ...', or open the > > file in gedit and print from there. I heard there is > > 'paps' and 'cedilla' programs, but neither is in ports > > and I failed to compile the former as cloned from github.) > > See https://savannah.gnu.org/bugs/?64047 > I will cook up a patch. Yes, that's it. Thanks! I confirm that applying of the patch there worked form me. (It's essentially a removal of one line in a2ps-lpr-wrappe.) Ruda
a2ps error; printing utf8 to a postscipt printer
Dear list, after upgrading to OpenBSD 7.4 (as far as I can tell), a2ps program stopped working: ;a2ps /home/ruda/mnt/tarkil/SIMUL/acceptance/accept1detE0.ijs [/home/ruda/mnt/tarkil/SIMUL/acceptance/accept1detE0.ijs (plain): 2 pages on 1 sheet] Usage: a2ps-lpr-wrapper [-d printer] FILE... a2ps: received SIGPIPE It seems to me that a2ps-lpr-wrapper expects a FILE argument, while a2ps (which invokes the wrapper?) does not supply one... Has anybody else had this issue? Thanks for comments. Loosely related: What program do you use to print utf8 encoded text file to a postscipt printer? (Neither a2ps, nor enscript does it. At this moment I either remove any diacritics with 'recode -f utf8..flat ...', or open the file in gedit and print from there. I heard there is 'paps' and 'cedilla' programs, but neither is in ports and I failed to compile the former as cloned from github.) Ruda
pdfsig alternative to check digital signatures in pdf documents
Dear list, on linux there is often a program called 'pdfsig', which can check validity of digital signatures of various parts of a pdf document. What is the alternative on OpenBSD (I thought pdfsig would be a part of poppler-utils, but it is not)? Thank you for any comments. Best regards, Ruda
Re: All my Rust programs stop working on OpenBSD 7.3
On 2023-04-11 10:17, Laurence Tratt wrote: In case it's useful to anyone else, one can set this globally in ~/.cargo/config.toml (and avoid tweaking multiple Cargo.toml's, which can be a pain with dependencies) with: [patch.crates-io] ring = { path = "/usr/local/share/ring-0.16.20" } However, there is one gotcha: this will cause your Cargo.lock to be altered, so if you're working on a project with a checked-in Cargo.lock, you need to be careful. I want to thank for this (and other contributors in this thread). I know next to nothing about Rust and its related problems on OpenBSD (caused by its security features). After the upgrade to 7.3 I saw similar segfaults as here reported, which made me to rebuild my program (I use pizauth to cope with the authentication of mbsync with office365), but that was not sufficient. Installing the rust-ring package and creating this ~/.cargo/config.toml file made it work again. Best regards, Ruda
Re: fido2 hardware key with PIN in browsers
Greg Steuck wrote: > rsyk...@disroot.org writes: > > > Fabio Martins wrote: > >> About your question, I believe you need to do a tail -f /var/log/messages > > > > this is what I see after pluging the key in the computer: > > > > Apr 7 19:02:06 odin /bsd: uhidev1 at uhub0 port 1 configuration 1 > > interface 1 "GoTrust Idem Key" rev 2.00/1.11 addr 2 > > Apr 7 19:02:06 odin /bsd: uhidev1: iclass 3/0 > > Apr 7 19:02:06 odin /bsd: fido0 at uhidev1: input=64, output=64, feature=0 > > Apr 7 19:02:06 odin /bsd: uhidev2 at uhub0 port 1 configuration 1 > > interface 2 "GoTrust Idem Key" rev 2.00/1.11 addr 2 > > Apr 7 19:02:06 odin /bsd: uhidev2: iclass 3/1 > > Apr 7 19:02:06 odin /bsd: ukbd0 at uhidev2: 8 variable keys, 6 key codes > > Apr 7 19:02:06 odin /bsd: wskbd1 at ukbd0 mux 1 > > Apr 7 19:02:06 odin /bsd: wskbd1: connecting to wsdisplay0 > > Apr 7 19:02:06 odin /bsd: ugen0 at uhub0 port 1 configuration 1 "GoTrust > > Idem Key" rev 2.00/1.11 addr 2 > > This is a good start of debugging effort. We can tell that the kernel is > happy enough with your device. Now you can go one step further and see > if ssh can use it. > > If you are feeling ambitious about debugging this for chrome, try > running it with --enable-logging --v=1 and then look into > ~/.config/chromium/chrome_debug.log for anything matching "fido". > > You can then do the same on Linux and compare the outputs. > > How much do you care about having this extra pin protection? I have been > using a few older FIDO devices for years now, so we know this much > works. After upgrading to OpenBSD to 7.3 today, the operation started to work in chrome, so the key seems to be useable for me now. (I only encountered a minor difficulty to actually start chrome. It did not start the first time due to some trap, nor the second time, but then it finally started. This behaviour is daunting, but, in the end, the process succeeded.) I do not know why the use of the key did not work before the upgrade, but anyhow. Regarding the question about the PIN: To the extent I understand the PIN is a requirement by the security level to be used. I use the key to communicate with the state (public administration). There the condition is given that the PIN is to be used. Best regards, Ruda
Re: fido2 hardware key with PIN in browsers
Fabio Martins wrote: > About your question, I believe you need to do a tail -f /var/log/messages this is what I see after pluging the key in the computer: Apr 7 19:02:06 odin /bsd: uhidev1 at uhub0 port 1 configuration 1 interface 1 "GoTrust Idem Key" rev 2.00/1.11 addr 2 Apr 7 19:02:06 odin /bsd: uhidev1: iclass 3/0 Apr 7 19:02:06 odin /bsd: fido0 at uhidev1: input=64, output=64, feature=0 Apr 7 19:02:06 odin /bsd: uhidev2 at uhub0 port 1 configuration 1 interface 2 "GoTrust Idem Key" rev 2.00/1.11 addr 2 Apr 7 19:02:06 odin /bsd: uhidev2: iclass 3/1 Apr 7 19:02:06 odin /bsd: ukbd0 at uhidev2: 8 variable keys, 6 key codes Apr 7 19:02:06 odin /bsd: wskbd1 at ukbd0 mux 1 Apr 7 19:02:06 odin /bsd: wskbd1: connecting to wsdisplay0 Apr 7 19:02:06 odin /bsd: ugen0 at uhub0 port 1 configuration 1 "GoTrust Idem Key" rev 2.00/1.11 addr 2
fido2 hardware key with PIN in browsers
Dear list, I have a USB hardware security key GoTrust Idem Key and while I can use it on linux in a chromium browser to login to some services -- you have to input a PIN number and then touch the key -- it seems to not work on OpenBSD (neither chrome nor firefox). Is this process supported on OpenBSD or there is no such functionality available now? Thank you for any comments. Best regards, Ruda
Re: redirection puzzle
Martijn van Duren wrote: > > > > odin:~$ echo 1 | tee $(tty) | sed 's/1/2/' > > tty(1) is one of the shorter applications, so it's easy to see what it > does: > t = ttyname(STDIN_FILENO); > if (!sflag) > puts(t ? t : "not a tty"); > > Since $(tty) is part of the chain now, so stdin is the output of echo > and the output will be "not a tty". You might have some additional files > laying around. :-) So this is probably the way, right? odin:~$ A=$(tty) echo 1 | tee $A | sed 's/1/2/' 1 2 odin:~$ Thanks. Ruda
redirection puzzle
Dear list, I needed to show the stdout of a command as well as pass it to another command's stdin. This works: odin:~$ echo 1 | tee /dev/stderr | sed 's/1/2/' 1 2 odin:~$ and this works, too: odin:~$ echo 1 | tee /dev/ttyp8 | sed 's/1/2/' 1 2 odin:~$ where /dev/ttyp8 is the result of the tty command: odin:~$ tty /dev/ttyp8 odin:~$ but this does not work: odin:~$ echo 1 | tee $(tty) | sed 's/1/2/' 2 odin:~$ I do not understand why... Thanks for any comments (and sorry for such a trivial question). Best regards, Ruda
some simple way to serve videos?
Hello, until now I have www-served (httpd) my photos using, as it seems to me, a very simple way: into a directory with photos I copied a file called gallery.html taken from https://github.com/gfwilliams/ThinGallery . This created a browsable gallery of photos (using a web browser and over the internet), simple enough for my mom to orient in and use. Is there any similar way so that I could serve also video files? Thanks for any comments / recommendations. (I want something that lives on my machine. I know there are some 'big' frameworks, perhaps MediaGoblin, Serviio; also I could perhaps run a docker with minnich under a virtual machine runing linux. But is there something easy and available on OpenBSD?) Best regards, Ruda
Re: lddtree on OpenBSD?
18 September 2022 at 19:59, "Stuart Henderson" wrote: > On 2022/09/18 15:58, rsyk...@disroot.org wrote: > > > > > 16 September 2022 at 14:21, "Stuart Henderson" wrote: > > > > You need to list library paths on the command line too. > > > > Eventually, I seem to have achieved what I needed by some other means, > > but still, I also tried to add some paths to the lddtree, but it does > > not seem to help: > > odin$ ldd /usr/X11R6/bin/xclock > > /usr/X11R6/bin/xclock: > > Start End Type Open Ref GrpRef Name > > 0eb6c5609000 0eb6c5619000 exe 1 0 0 /usr/X11R6/bin/xclock > > 0eb9b07d6000 0eb9b0855000 rlib 0 1 0 /usr/X11R6/lib/libXaw7.so.15.0 > > ... > > odin$ lddtree /usr/X11R6/bin/xclock /usr/X11R6/lib > > /usr/libexec/ld.so => /usr/libexec/ld.so > > libXaw7.so.15.0 => not found > > ... > > > > ... while /usr/X11R6/lib/libXaw7.so.15.0 does exist. > > (I tried a few other ways, but to no avail.) > > > > Nonetheless, thanks for your help. > > > > I'm not quite sure how useful the information is, but it does work. > > $ lddtree > USAGE: lddtree [root] [library path...] > > $ lddtree /usr/X11R6/bin/xclock / /usr/lib /usr/X11R6/lib > /usr/libexec/ld.so => /usr/libexec/ld.so > libXaw7.so.15.0 => /usr/X11R6/lib/libXaw7.so.15.0 > libXmu.so.11.0 => /usr/X11R6/lib/libXmu.so.11.0 > ... Ok. Thanks. Finally it does work for me, too. What I did not realize (but it makes sense in the backsight), is that I *have to* specify the 'root' part (the /) if I want to list the library paths. I read the usage to say the [root] is optional. [A usage something like lddtree [ [library_path [library_path] ... ]] would make it clear to me from the beginning, although I do not know if people ever write it like that.] Thanks again. Ruda
Re: lddtree on OpenBSD?
16 September 2022 at 14:21, "Stuart Henderson" wrote: > You need to list library paths on the command line too. Eventually, I seem to have achieved what I needed by some other means, but still, I also tried to add some paths to the lddtree, but it does not seem to help: odin$ ldd /usr/X11R6/bin/xclock /usr/X11R6/bin/xclock: StartEnd Type Open Ref GrpRef Name 0eb6c5609000 0eb6c5619000 exe 10 0 /usr/X11R6/bin/xclock 0eb9b07d6000 0eb9b0855000 rlib 01 0 /usr/X11R6/lib/libXaw7.so.15.0 ... odin$ lddtree /usr/X11R6/bin/xclock /usr/X11R6/lib /usr/libexec/ld.so => /usr/libexec/ld.so libXaw7.so.15.0 => not found ... ... while /usr/X11R6/lib/libXaw7.so.15.0 does exist. (I tried a few other ways, but to no avail.) Nonetheless, thanks for your help. Ruda > On 16 September 2022 12:59:34 rsyk...@disroot.org wrote: > > > > > 15 September 2022, 15:37, "Stuart Henderson" wrote: > > > > > > > > That's an OpenBSD port, you can untar it in /usr/ports/devel and build it > > > > > > > Ok. I built it (although it first built a lot of stuff, namely rust). I > > can > run it, > > but trying it out, I get, eg: > > > > odin$ ldd /usr/X11R6/bin/xclock > > /usr/X11R6/bin/xclock: > > Start End Type Open Ref GrpRef Name > > 0f0d7ffa8000 0f0d7ffb8000 exe 1 0 0 /usr/X11R6/bin/xclock > > 0f10024fd000 0f100257c000 rlib 0 1 0 > > > /usr/X11R6/lib/libXaw7.so.15.0 > > 0f1026b58000 0f1026b78000 rlib 0 2 0 > > > /usr/X11R6/lib/libXmu.so.11.0 > > 0f0fb8d8b000 0f0fb8dfc000 rlib 0 3 0 > /usr/X11R6/lib/libXt.so.11.0 > > 0f10400e 0f1040237000 rlib 0 9 0 > > > /usr/X11R6/lib/libX11.so.18.0 > > 0f0fe7b58000 0f0fe7b65000 rlib 0 2 0 > > > /usr/X11R6/lib/libXrender.so.6.0 > > 0f102fcf7000 0f102fd12000 rlib 0 1 0 > > > /usr/X11R6/lib/libXft.so.12.0 > > 0f1053a6e000 0f1053a99000 rlib 0 1 0 > > > /usr/X11R6/lib/libxkbfile.so.6.0 > > 0f10263cb000 0f10263fc000 rlib 0 1 0 /usr/lib/libm.so.10.1 > > 0f0fb01ee000 0f0fb02e3000 rlib 0 1 0 /usr/lib/libc.so.96.1 > > 0f0f96557000 0f0f9656e000 rlib 0 2 0 > > > /usr/X11R6/lib/libXext.so.13.0 > > 0f0fca41e000 0f0fca429000 rlib 0 3 0 > /usr/X11R6/lib/libSM.so.9.0 > > 0f103407a000 0f1034098000 rlib 0 4 0 > > > /usr/X11R6/lib/libICE.so.11.0 > > 0f102f00 0f102f017000 rlib 0 1 0 > /usr/X11R6/lib/libXpm.so.9.0 > > 0f0fcef4f000 0f0fcef7f000 rlib 0 9 0 > /usr/X11R6/lib/libxcb.so.4.1 > > 0f0fa9eea000 0f0fa9f3c000 rlib 0 1 0 > > > /usr/X11R6/lib/libfontconfig.so.13.1 > > 0f0fa8b31000 0f0fa8b62000 rlib 0 2 0 > /usr/lib/libexpat.so.14.0 > > 0f0f9e533000 0f0f9e605000 rlib 0 2 0 > > > /usr/X11R6/lib/libfreetype.so.30.1 > > 0f102262b000 0f1022649000 rlib 0 3 0 /usr/lib/libz.so.6.0 > > 0f0fdbcd2000 0f0fdbcd8000 rlib 0 1 0 > > > /usr/X11R6/lib/libXau.so.10.0 > > 0f0f811d6000 0f0f811df000 rlib 0 1 0 > > > /usr/X11R6/lib/libXdmcp.so.11.0 > > 0f103bd3d000 0f103bd3d000 ld.so 0 1 0 /usr/libexec/ld.so > > odin$ lddtree /usr/X11R6/bin/xclock > > /usr/libexec/ld.so => /usr/libexec/ld.so > > libXaw7.so.15.0 => not found > > libXmu.so.11.0 => not found > > libXt.so.11.0 => not found > > libX11.so.18.0 => not found > > libXrender.so.6.0 => not found > > libXft.so.12.0 => not found > > libxkbfile.so.6.0 => not found > > libm.so.10.1 => /usr/lib/libm.so.10.1 > > libc.so.96.1 => /usr/lib/libc.so.96.1 > > odin$ > > > > so it seems something is still not quite right (I can run xclock...). > > > > Thanks for any more comments. > > > > Ruda > > > > PS.: I am not a programmer. I thought that what I need to do -- list > > hierarchically the dependency tree of a program/library -- is quite a > > common > > task people have to do from time to time. I am surprised there seems to not > > be an easy/ready way to it. > > >
Re: lddtree on OpenBSD?
17 September 2022 at 02:41, "Jaskaran Veer Singh" wrote: > > On Thu Sep 15, 2022 at 9:31 AM EDT, wrote: > > > > > 15 September 2022, 09:35, "Sebastien Marie" wrote: > > > > $ LD_DEBUG=1 xlogo 2>&1 | grep ^loading > > loading: libXt.so.11.0 required by xlogo > > loading: libXrender.so.6.0 required by xlogo > > loading: libXext.so.13.0 required by xlogo > > loading: libSM.so.9.0 required by xlogo > > ... > > > > Thank you, this might be useful. Can you do something similar > > with a library? Ie, xlogo above is an executable that you can > > run, what if xlogo were a library... > > > > Maybe you `ld` it against a hello world program before using the technique > above? I haven't tried it, but I think you would need to actually call a function from the library, ie, know some function name, in order for the linker to actually link the library to the executable. Not that this isn't doable, but... Thanks anyhow. Ruda
openup service question
Dear list, I have been using the "openup" service to keep my amd64 machine updated to the latest stable, i.e. 6.5, available at https://www.mtier.org/solutions/apps/openup/ Recently I get: odin# ./openup ===> Checking for openup update ===> Installing/updating syspatches Get/Verify syspatch65-011_expat.tgz 100% |**| 588 KB00:00 Installing patch 011_expat Errata can be reviewed under /var/syspatch ===> Updating package(s) https://stable.mtier.org/updates/6.5/amd64/: ftp: Error retrieving file: 401 Unauthorized https://stable.mtier.org/updates/6.5/amd64/: empty If anybody here understands what is happening to me, I'd be grateful to know. The site claims the support for the most recent release is free. Yet, ... I tried to contact their support twice, but got no reply. Thank you for any comments! Ruda PS.: Does using openup convey any advantage over running "syspatch" and "pkg_add -u" on amd64?
sh : COMMAND LINE EDITING when relevant?
Dear list, after reading the sh man page I have been wondering: When is the line editing mode described just after the 'COMMAND HISTORY AND COMMAND LINE EDITING' heading relevant? [I know there exist vi and emacs modes, but I cannot make my ksh shell behave along the lines described in the mentioned section (i.e different from both emacs and vi modes).] Thanks for comments Ruda
Re: is there anything like pdfnup or pdfjam?
January 22, 2019 12:46 AM, "Stuart Henderson" wrote: > Yes, as is pdfnup - "pkg_add pkglocatedb" then "pkglocate pdfjam". > (For some reason the programs are in texlive_base but the manpages are in > texlive_texmf-full).. Ok. To me it seems (I had texlive_base installed but not texlive_texmf-full) that only softlinks to scripts like pdfjam are in the texlive_base, not the actual scripts. These are only present when the texlive_texmf-full is installed (I only had texlive_texmf-minimal before). # pkglocate pdfnup texlive_base-2017p3:print/texlive/base,-main:/usr/local/bin/pdfnup texlive_texmf-full-2017p2:print/texlive/texmf,-full:/usr/local/man/man1/pdfnup.1 texlive_texmf-full-2017p2:print/texlive/texmf,-full:/usr/local/share/texmf-dist/scripts/pdfjam/pdfnu Thanks Ruda
Re: is there anything like pdfnup or pdfjam?
January 21, 2019 11:00 PM, "Vincent" wrote: > Personnally I'm doing it via the lp command in the cups package: > lp -o number-up=2 filename Well, that uses cups, which I don't use. Thanks anyway Ruda
is there anything like pdfnup or pdfjam?
Dear list, I want to print a pdf, but with two pages put on one physical page. On linux, pdfnup or pdfjam can do it. I cannot find these for OpenBSD. What do you use then? Thanks Ruda
Re: use tablet interface under vm running linux
December 4, 2018 9:18 PM, "Stuart Henderson" wrote: > On 2018-12-04, rsyk...@disroot.org wrote: > >> Dear list, >> >> I am running OpenBSD desktop, but I need to use my usb-connected >> tablet wacom Intuos3, which, under OpenBSD, cannot be used together >> with pressure sensitivity. >> >> Thus, I thought I could install, say, Alpine linux under vm, and >> use the tablet via linux. I have Alpine running in vm now. But >> I don't know how to make the tablet accessible to the linux, so that >> the requested functionality would be available (i.e., probably use >> drivers from linux for the tablet). >> >> Can anybody help or make any comments? >> Thanks! >> >> Ruda > > You would need some kind of device passthrough for this approach > to work, but vmd doesn't support that, and adding that is probably > much trickier than improving usbtablet(4). Ok, thanks for the answer, though negative! I may try at one point to look at usbtablet, but at the moment it's beyond my reach. Thanks Ruda
use tablet interface under vm running linux
Dear list, I am running OpenBSD desktop, but I need to use my usb-connected tablet wacom Intuos3, which, under OpenBSD, cannot be used together with pressure sensitivity. Thus, I thought I could install, say, Alpine linux under vm, and use the tablet via linux. I have Alpine running in vm now. But I don't know how to make the tablet accessible to the linux, so that the requested functionality would be available (i.e., probably use drivers from linux for the tablet). Can anybody help or make any comments? Thanks! Ruda