Re: DNS resolution when 1st nameserver does not know

2024-02-15 Thread Rudolf Sykora
Stuart Henderson  wrote:
> On 2024-02-15, Rudolf Sykora  wrote:
> > Josh Grosse  wrote:
> >> On Thu, Feb 15, 2024 at 02:15:07PM +0100, rsyk...@disroot.org wrote:
> >> > 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?
> >> 
> >> Take a look at unwind(8) and unwind.conf(5).
> >
> >
> > Ok. Creating /etc/unwind.conf with 
> >
> > forwarder {X.X.X.X} 
> >
> > where X.X.X.X is the IP address of the DNS server within the VPN,
> > and turning on unwind with
> >
> > ;rcctl enable unwind
> > ;rcctl start unwind
> >
> > does do something, in the sense that I get all the symbolic
> > names resolved. But can I tell what DNS server was asked for
> > the translation? --- so that I can check that it is the
> > local nameserver (as obtained from the local DHCP server)
> > that gets queried first and only when it does not know the
> > answer, unwind asks VPN DNS server (X.X.X.X above) for the
> > answer?
> 
> you can't do "fallback if domain doesn't exist in the first resolver",
> but you can tell it to always use the forwarder for certain domains.
> as well as configuring the forwarder, use something like "preference
> autoconf" and "force forwarder {some.domain other.domain}".

Thanks. I think
force forwarder {vpn.domain}
works for me.

Ruda



Re: DNS resolution when 1st nameserver does not know

2024-02-15 Thread Rudolf Sykora
Josh Grosse  wrote:
> On Thu, Feb 15, 2024 at 02:15:07PM +0100, rsyk...@disroot.org wrote:
> > 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?
> 
> Take a look at unwind(8) and unwind.conf(5).


Ok. Creating /etc/unwind.conf with 

forwarder {X.X.X.X} 

where X.X.X.X is the IP address of the DNS server within the VPN,
and turning on unwind with

;rcctl enable unwind
;rcctl start unwind

does do something, in the sense that I get all the symbolic
names resolved. But can I tell what DNS server was asked for
the translation? --- so that I can check that it is the
local nameserver (as obtained from the local DHCP server)
that gets queried first and only when it does not know the
answer, unwind asks VPN DNS server (X.X.X.X above) for the
answer?

Thanks.


Ruda




Re: tmux: mouse works in st but not in xterm

2024-02-01 Thread Rudolf Sykora
Stuart Henderson  wrote:
> On 2024-02-01, Omar Polo  wrote:
> > On 2024/02/01 12:06:13 +0100, rsyk...@disroot.org wrote:
> >> Dear list,
> >> 
> >> 
> >> when I run tmux in xterm, the mouse support does not work.
> >
> > by default mouse support is disabled on xterm on OpenBSD.  No clue why,
> > as I think it's useful.  The knob to enable it is
> >
> > XTerm*allowMouseOps: true
> >
> > which is documented in xterm.
> 
> -
> PatchSet 127
> Date: 2021/10/31 18:38:43
> Author: matthieu
> Branch: HEAD
> Tag: (none)
> Log:
> Disable mouse tracking by default.
> 
> This causes extra control sequences to be sent to the shell when an
> application that has it enabled crashes. Discussed with deraadt@
> 
> Members:
> Makefile:1.36->1.37
> xterm.man:1.55->1.56
> 
> -

thank you. I probably should have found it in the man page.
I will reenable it hoping it will not cause me any harm.


Best regards,
Ruda



Re: midnight commander sftp problem after upgrade to OpenBSD 7.0

2021-10-19 Thread Rudolf Sykora
Dear list,


sorry for the noise, the sftp connection doesn't most probably work due
to a change in the server's settings, and is not OpenBSD related.
It was just a time coincidence of my upgrade and their change.


Best regards
Rudolf Sykora


Rudolf Sykora  writes:

> Hello list,
>
>
> I used to use the 'sftp connection' with mc, it worked, seemingly, until I
> upgraded OpenBSD from 6.9 to 7.0. Now it says, when I try to use it:
>
>  The requested method(s) are not currently supported (-33)
>
> Does anybody know what could have happened (and whether it is related to
> the upgrade, or what can I do to get the functionality back)?
>
>
> Thank you!
> Rudolf Sykora



midnight commander sftp problem after upgrade to OpenBSD 7.0

2021-10-19 Thread Rudolf Sykora
Hello list,


I used to use the 'sftp connection' with mc, it worked, seemingly, until I
upgraded OpenBSD from 6.9 to 7.0. Now it says, when I try to use it:

 The requested method(s) are not currently supported (-33)

Does anybody know what could have happened (and whether it is related to
the upgrade, or what can I do to get the functionality back)?


Thank you!
Rudolf Sykora



Re: use tablet interface under vm running linux / pressure on wacom

2021-06-09 Thread Rudolf Sykora
Dear list,


Stuart Henderson  writes:

> On 2018-12-04, rsyk...@disroot.org  wrote:
>> 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).
>>
>
> 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).

I just want to check if, perhaps, there is something new about the
possibility of the mentioned 'device passthrough' in vmd.

Regarding the option to improve usbtablet(4), I asked Frank Groeneveld,
the author of wacom drivers on OpenBSD, about that in 2017:

> Dear Frank,
>
> I noticed you are the author of wacom drivers
> for openbsd. I also noticed, in the caveats part
> of the related man page, that no pressure sensitivity
> is implemented. Do you plan to add it at some point?
> Would it be difficult?
>
> (I have an Intuos3 tablet, and the lack of pressure
> sensitivity on openbsd is one reason I still have
> to use linux.)

and he answered:

> Yes, I wrote the driver to use the tablet as mouse replacement. Reading
> the sensitivity is not difficult in the kernel driver, however, I
> believe that the X mouse driver doesn't support sensitivity eithet,.
> That means we would also need to write a new X driver or extend an
> existing one. I have no experience doing that.

Is he right about the X mouse driver, or not? Ie., in the end, would it
be necessary to modify sth. else apart from usbtablet(4), or the
improvement in the latter would suffice to bring pressure sensitivity
(then I would perhaps try to modify it).



Thanks for any comments!

Ruda



mail -r option problem

2021-01-30 Thread Rudolf Sykora
Dear list,


I tried to use the -r option with the mail program, but whenever I use
the option I get a error like this:


odin$ mail -r abcd -s abcd rudolf.syk...@cvut.cz
a
EOT
odin$ sendmail: command failed: 550 Invalid recipient: 


odin$ mail -s abcd rudolf.syk...@cvut.cz 
sdas
EOT
odin$


can anybody help me understand why? 


Thanks
Ruda



Re: relay email from users to per-user smtp servers

2021-01-24 Thread Rudolf Sykora
Dear Chris,


thank you for your ideas.

Chris Bennett  writes:
> It sounds to me that need to configure your email clients to do the
> switcheroo about from addresses, etc.
> I use neomutt, which might not be suitable since it's a text only.
> But I login to my shell. Then I start neomutt and bind keys within my
> neomuttrc, to then login to another IMAP server
> (from a list I have setup) and then reply with the correct From address,
> using either the local smtpd or one on another server.
>
> Using smtpd to send really just means sending the right email
> and credentials, so there is no real problem having many email addresses
> for one user. I use Dovecot for IMAP and base smtpd.

You might be right, however... I hoped that using smtpd would ensure
such things like solution for possible errors during sending, queueing
of mail when offline, etc (and the user mail agent would just pass the
mail itself, the name of the server to relay it to, and where to get
credentials from [or just pass them, too]). But, reading the answers,
it probably cannot be easily arranged like that.

(Btw., I am not against text-only user interfaces. I am writing this in
mu4e, though I am thinking even about mblaze tools [but that has its own
problems], or some plan9 [9front] tools. Unfortunately, a good solution
for email is still something out of my reach.)


Thanks
Ruda



Re: relay email from users to per-user smtp servers

2021-01-24 Thread Rudolf Sykora


Martijn van Duren  writes:

> I have no clue on what you're trying to do, so here's my best guess.
> Your users have something like a shell account and want to submit mail
> via the sendmail command. Your users want you to forward the mail to
> their "standard" mailserver before it is relayed further.
>
> Afaik there is no option to configure a specific runtime determined
> relay host option, so you'd have to create a different "relay host"
> action per match rule.

thank you, as far as I can tell you understand me right.

In my case, my computer gathers mail from various mail services using
mbsync. I want to be able to reply the mail, but have the reply use the
mail server that is most suited for the reply. E.g., if I get an email
from school (downloaded from the school service), I need that my answer
is as if sent using the school service; similarly with my work mail,
etc. (The people at work want me to use their address when dealing with
work-related matters; it's then easily recognizable.) I thought the
program used to create a message does not have to know how to send email
(speak SMTP) but would just pass it to something that can (smtpd), to
relay the mail further. But for this I'd need that the server to be used
for sending be easily modified by user, as well as have some easy means
to supply the needed credentials.

Thanks
Ruda



relay email from users to per-user smtp servers

2021-01-22 Thread Rudolf Sykora
Dear list,


if I have several users, each of which wants to be able to send email to
generally different smtp servers with their own credentials, how does
one arrange such a thing? Can it be done easily without having a
separate rule in the system-wide /etc/mail/smtp.conf for each individual
user? Can it be done that they themselves can easily modify the smtp
servers information/credentials?


Thanks for comments
Ruda



Re: adding user to a group

2021-01-08 Thread Rudolf Sykora


Todd C. Miller  writes:

> You need to login in again.  Logging in via ssh, a virtual console,
> X11 or running su will set the groups list.  Setting groups is a
> privileged operation so simply starting a new shell or opening a
> new xterm is not sufficient.

Thanks, su helped.
(Although I do not understand the reasoning behind the need to log
out/in, i.e., why isn't the group membership just updated after the
usemod command...)

Ruda



adding user to a group

2021-01-08 Thread Rudolf Sykora
Dear list,


I tried to add myself to the "dialer" group:

#usermod -G dialer ruda

But when I write

$groups

in a terminal I still do not see the new group. Not even if I open a new login
shell (by writing "ksh -l"). However, when I log in in a text console
(ctrl-alt-1), I see the new group there.

What is it that I have to do to have the membership updated, i.e., how
can I open e.g. a terminal in the running environment that would see my
new groups?


Thanks for comments
Ruda



Re: video capture / streaming

2020-08-05 Thread Rudolf Sykora
Hello,

Mihai Popescu  writes:

> For camera access as an user see: /etc/fbtab (fBtab not fStab)

Is fbtab usable also in the case of login via xenodm? Into fbtab one
should enter the login device name (like /dev/ttyp1), but is there such
a thing when xlogin logs you in? 

Thanks
Ruda



video capture / streaming

2020-07-24 Thread Rudolf Sykora
Dear list,


I'd like to stream video from my (usb-connected) camera via a web
server. The 1st I tried was to see if the camera works. So:

odin$ video
video: /dev/video: Permission denied
odin$ doas video
No protocol specified
video: cannot open display :0.0
odin$ xhost +
access control disabled, clients can connect from any host
odin$ doas video 
^Codin$

Ie, at last I saw an X window with the video. But is it possible to run
the video command as an ordinary user? (I had to doas...)

Next I want to stream the video via some kind of a server.
On the internet I saw people using 'ffmpeg' to serve the file somehow,
as well as using 'nginx' with the 'rtmp' module. Is any of this the way
how you would achieve the goal, or is it possible to use, say, the 'httpd'
server?

At this moment I know very little both about streaming and available
servers to do the job, and that's why I am asking for recommendation
based on some experience and knowledge.

Thank you for any comments.


Ruda



one-character expansion in shell

2020-05-06 Thread Rudolf Sykora
Hello list,


is this an expected behaviour?

odin$ ls v?k*
ls: v?k*: No such file or directory
odin$ ls v??k*
výkres.1.pdfvýkres.2.pdfvýkres.5.pdfvýkres.8.pdf
výkres.10.pdf   výkres.3.pdfvýkres.6.pdfvýkres.9.pdf
výkres.11.pdf   výkres.4.pdfvýkres.7.pdf
odin$ locale
LANG=
LC_COLLATE="C"
LC_CTYPE=en_US.UTF-8
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_MESSAGES="C"
LC_ALL=


It seems I have to use double '??' to mach a single character.

Thanks for comments!


Best regards
Rudolf Sykora



Re: pinentry-tty in OpenBSD? to be used with emacs

2019-12-10 Thread Rudolf Sykora


Timo Myyrä  writes:

> I don't know about pinentry but emacs freezes sound familiar. Have you
> tried using the workaround given in following site:
> https://omecha.info/blog/org-capture-freezes-emacs.html
>
> Timo

Thanks! The freezing using a graphical emacs made me change to a
terminal emacs. The link seems relevant to me (I first tried to move to
the athena build [also because with GTK build there is some long lasting
bug when one runs emacs in its daemon mode], but no matter what, emacs
froze randomly at the very point the linked page discusses. So I will
try the quick fix (a hack, I would say); still, he only changes an
x-selection-timeout from 5000 ms to 10 ms, while my emacs froze (when it
did) apparently forever (ie, not just for 5 s).


Regarding the pinentry-emacs I now have yet another problem. 
When the pinentry prompt appears in one emacs frame (on one computer,
say at work), as it happens for me when the validity of the passphrase
has timed out, it blocks any other emacs frame. Ie, when I run
emacsclient -c from another machine, it freezes.

I tried a few things to no avail...


Thanks for any help.


Best regards
Ruda



Re: pinentry-tty in OpenBSD? to be used with emacs

2019-12-09 Thread Rudolf Sykora


Xiyue Deng  writes:

> On Mon, Dec 09, 2019 at 11:34:38AM +0100, Rudolf Sykora wrote:
>> Date: Mon, 09 Dec 2019 11:34:38 +0100
>> From: Rudolf Sykora 
>> To: Stefan Hagen , OpenBSD Misc Mailing List
>>  
>> Cc: Pierre-Emmanuel Andre 
>> Subject: Re: pinentry-tty in OpenBSD? to be used with emacs
>>
>>
>> rsyk...@disroot.org writes:
>>
>> December 8, 2019 5:45 PM, "Stefan Hagen"  wrote:
>>
>> > Stefan Hagen wrote:
>> >
>> >> Rudolf Sykora wrote:
>> >>> On linux, I believe, there is a pinentry-tty program, but that one is
>> >>> not available on OpenBSD.
>> >>
>> >> Have you tried pinentry-curses? I'm using it on my remote machines
>> >> to decrypt passwords in my password-store. Works well so far.
>> >
>> >> Well, the attached patch enables pinentry-tty in security/pinentry.
>>
>> I tried pinentry-curses. Now I was able to try pinentry-tty,
>> too. However, with both I apparently have the same problem. The prompt
>> for passphrase is just thrown somewhere into the emacs window, and I am
>> not able to enter the password (emacs most probably doesn't know about
>> the request for passphrase, it tries to interpret keypresses as commands).
>>
>> I even tried to enable pinentry-emacs in the pinentry Makefile; it
>> is built. But when I choose it for the pinentry-program in
>> ~/.gnupg/gpg-agent.conf, at the moment when the passphrase should be
>> entered, I get the message
>> gpg: problem with the agent: No pinentry.
>>
>>
>> Thanks for any more help.
>>
>> Ruda
>>
>
> You can try to add "allow-emacs-pinentry" to your gpg-agent.conf and
> reconnect gpg-agent and retry.
>
> Relevant discussion on Reddit:
> https://www.reddit.com/r/emacs/comments/68xtx1/reliable_way_of_setting_up_gpg_password_input_in/dh2ozi2?utm_source=share_medium=web2x

Thanks for the link. Although it didn't help, I finally, by trial and
error, got my emacs to ask for the passphrase. In my case, I changed
~/.gnupg/gpg-agent.conf to just have:

allow-emacs-pinentry

inside, and in my .emacs I have:

(setenv "INSIDE_EMACS" (format "%s,comint" emacs-version))
(pinentry-start)

I have installed the pinentry package from M-x list-packages.  And then
(after
pkill emacs gpg-agent
) emacs started to ask me as I wanted.  I note that compiling and
installing the pinentry-emacs (or pinentry-tty) within the pinentry port
seems unnecessary. Furthermore, both lines in my .emacs seem to be
essential.  It's a pity I still do not understand how the chain really
works, but at least it works somehow now.

Hope it might help somebody in the future. I lost many hours with
such a trivial thing.


Best regards
Ruda



Re: pinentry-tty in OpenBSD? to be used with emacs

2019-12-09 Thread Rudolf Sykora


rsyk...@disroot.org writes:

December 8, 2019 5:45 PM, "Stefan Hagen"  wrote:

> Stefan Hagen wrote:
>
>> Rudolf Sykora wrote:
>>> On linux, I believe, there is a pinentry-tty program, but that one is
>>> not available on OpenBSD.
>>
>> Have you tried pinentry-curses? I'm using it on my remote machines
>> to decrypt passwords in my password-store. Works well so far.
>
>> Well, the attached patch enables pinentry-tty in security/pinentry.

I tried pinentry-curses. Now I was able to try pinentry-tty,
too. However, with both I apparently have the same problem. The prompt
for passphrase is just thrown somewhere into the emacs window, and I am
not able to enter the password (emacs most probably doesn't know about
the request for passphrase, it tries to interpret keypresses as commands). 

I even tried to enable pinentry-emacs in the pinentry Makefile; it
is built. But when I choose it for the pinentry-program in
~/.gnupg/gpg-agent.conf, at the moment when the passphrase should be
entered, I get the message
gpg: problem with the agent: No pinentry.


Thanks for any more help.

Ruda



pinentry-tty in OpenBSD? to be used with emacs

2019-12-08 Thread Rudolf Sykora
Dear list,


I've been using mu4e to read email, and the passwords are read using
gpg2 and the gpg-agent (both 2.2.12). Nowadays I use emacs running in a
terminal (somehow any graphical emacs keeps to freeze randomly when I
use mu4e together with the org-capture feature; terminal emacs just
works). Until recently I used to ssh -X to my box to read email (and
used a graphical window to enter my passphrase), but now I would like to
use mosh instead (so that hibernating and waking up my notebook does not
interrupt the connection). But as mosh cannot be used for X forwarding,
I need to use a non-graphical means of entering a passphrase to
gpg-agent. On linux, I believe, there is a pinentry-tty program, but
that one is not available on OpenBSD. Also I found mentions of
pinentry-emacs. I tried to install the elpa pinentry package, added
allow-emacs-pinentry to ~/.gnupg/gpg-agent.conf, but whatever I tried, I
don't see any sign that it ever does something.  There is also a
pinentry-ncurses program available on OpenBSD, but that one seems to not
play well with my emacs; I see some prompt in emacs, but I cannot enter
the needed information.  Can anybody help me to get some way to enter a
passphrase to be relayed to gpg-agent inside emacs running in a
terminal?

I am using emacs 26.3 on OpenBSD 6.6.


Thanks for any comments!

Rudolf Sykora



Re: problem to copy a (possibly large) file over a network device

2019-08-01 Thread Rudolf Sykora


Nick Holland  writes:

> On 7/31/19 3:45 AM, Rudolf Sykora wrote:
> [probably irrelevant stuff snipped]

I believe you snipped quite a relevant part.

> Well, that looks broke.  Not supposed to do that.

yes.


> Well, looking at the version of OpenBSD that you are using ... oh.

6.5 GENERIC.MP#2 amd64
stable, with all syspatches applied.


> Well, your dmesg shows ... hmm.

I am attaching it to this email.


> Looking at your rsync command line I see ... well...

Here you have it, though most probably irrelevant:

/usr/local/bin/rsync -a --delete --exclude-from=/etc/rsync-backup_exclude -e 
ssh /home /var/www bac...@utef15.troja.mff.cuni.cz:odin

(The problem stays with scp, or anything, once a network device
(localhost is enough) participates.)


> Your environment is ... hm. no idea about that either.

Do not know what you mean.


> As for your follow up, no, there is no setting deliberately set to,
> "don't work properly" you need to change to "work correctly" in
> OpenBSD.

Nobody spoke about "deliberately", or working in a "binary" way.
In the follow-up I added the information that the size of files can be
larger than 10 GB. In some systems (e.g. plan9) there are quite a few
limits/constants which lead, or can lead, to problems when
exceeded. That is what was meant by the settings.


Thanks anyway
Ruda



dmesg output:

OpenBSD 6.5 (GENERIC.MP) #2: Tue Jul 23 23:38:56 CEST 2019

r...@syspatch-65-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 17040211968 (16250MB)
avail mem = 16514150400 (15749MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xeceb0 (84 entries)
bios0: vendor Dell Inc. version "A21" date 09/21/2015
bios0: Dell Inc. OptiPlex 9010
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC FPDT TCPA MCFG HPET SSDT SSDT SSDT DMAR ASF! SSDT 
SLIC
acpi0: wakeup devices UAR1(S3) P0P1(S4) USB1(S3) USB2(S3) USB3(S3) USB4(S3) 
USB5(S3) USB6(S3) USB7(S3) PXSX(S4) RP01(S4) PXSX(S4) RP02(S4) PXSX(S4) 
RP03(S4) PXSX(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) Core(TM) i7-3770 CPU @ 3.40GHz, 3392.92 MHz, 06-3a-09
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.1, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz, 3392.30 MHz, 06-3a-09
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 4 (application processor)
cpu2: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz, 3392.30 MHz, 06-3a-09
cpu2: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 6 (application processor)
cpu3: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz, 3392.30 MHz, 06-3a-09
cpu3: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 0, core 3, package 0
cpu4 at mainbus0: apid 1 (application processor)
cpu4: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz, 3392.30 MHz, 06-3a-09
cpu4: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,RDT

Re: problem to copy a (possibly large) file over a network device

2019-08-01 Thread Rudolf Sykora


Rudolf Sykora  writes:

> In one terminal:
> ;tar -cf - www | pv | nc localhost 7000
>
> In another terminal:
> ;nc -l 7000 | pv | tar -xpf -


are there some settings which I could try to change?
(Some files are >10GB, if that matters.)

Thanks
Ruda



problem to copy a (possibly large) file over a network device

2019-07-31 Thread Rudolf Sykora
Dear list,


I am able to copy a subtree 'www' with the command

; tar -cf - www | pv|  (cd ~ruda/tmp/test && tar -xpf -)

but I can't do the same with

In one terminal:
;tar -cf - www | pv | nc localhost 7000

In another terminal:
;nc -l 7000 | pv | tar -xpf -


[
I actually wanted to do a backup of the subtree with rsync over the
network, but that didn't work, spitting sth. like

rsync error: unexplained error (code 255) at io.c(820) [sender=3.1.3]
[sender] _exit_cleanup(code=10, file=io.c, line=820): about to call
exit(255)

I then tried to do the copying with nc, which again did not succeed; but
without any message this time, it just got stuck.

So I tried to copy just locally, within one machine, using localhost.
]

What one sees with the nc command is that the connection keeps existing,
but the copying itself stops. Ie., I can ctrl-c at the source end, and
the receiving command exits.

As I have no idea what can cause this behaviour, I am asking for any
help.

Thank you!


Best regards
Rudolf Sykora



probable bug in openbsd chromium, at least in the stable package

2019-07-26 Thread Rudolf Sykora
Hello,

just starting chromium leads to a production of the following IP packets:
(
tcpdump -l -e ether host 18:03:73:25:3b:b6 and dst 224.0.0.251 |tee dat
)

11:17:26.587274 18:03:73:25:3b:b6 01:00:5e:00:00:fb ip 82: 224.0.0.251.mdns > 
224.0.0.251.mdns: 0 PTR? _googlecast._tcp.local.(40) [ttl 1]
11:17:27.601780 18:03:73:25:3b:b6 01:00:5e:00:00:fb ip 82: 224.0.0.251.mdns > 
224.0.0.251.mdns: 0 PTR? _googlecast._tcp.local.(40) [ttl 1]
11:17:29.612110 18:03:73:25:3b:b6 01:00:5e:00:00:fb ip 82: 224.0.0.251.mdns > 
224.0.0.251.mdns: 0 PTR? _googlecast._tcp.local.(40) [ttl 1]


It's Chromium Version 73.0.3683.86 (Official Build) (64-bit)
distributed as a package in OpenBSD 6.5.

Such packets, with the source address of 224.0.0.251.mdns, should never
be produced. (RFC 1112, sec. 6.2: "The IP source address of the outgoing
datagram must be one of the individual addresses corresponding to the
outgoing interface.")


Thanks.
Best regards,
Rudolf Sykora



Re: sh : COMMAND LINE EDITING when relevant?

2019-05-22 Thread Rudolf Sykora


Dear Ingo,

Ingo Schwarze  writes:

>> 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?
>
> Near the beginning, the sh(1) manual page contains this paragraph:
>
>   This version of sh is actually ksh in disguise.  As such, it also
>   supports the features described in ksh(1).  This manual page describes
>   only the parts relevant to a POSIX compliant sh.  If portability is a
>   concern, use only those features described in this page.

yes, I was aware of that paragraph.

> In particular, the section "COMMAND HISTORY AND COMMAND LINE EDITING"
> describes only those features of ksh(1) "Vi editing mode" required by
> POSIX.  Wo do not provide a shell or an execution mode of ksh
> providing exactly those features and no extensions.

What I didn't know was that the mode I asked about really is,
essentially, the vi editing mode, and, as such, has to be explicitly
turned on with 'set -o vi'. I wrongly thought there are 3 modes: emacs,
vi, and the one I asked about (the one described in the sh man page).


So, the short answer to my question would probabbly be: the commands
described in the mentioned section are relevant when the vi editing mode
of ksh is on.


Thanks
Ruda



chromium vulnerability?

2019-03-11 Thread Rudolf Sykora
Dear list,

https://thehackernews.com/2019/03/update-google-chrome-hack.html

claims there is a serious vulnerability in chrome.
I run stable 6.4, with the 69.0.3497.100p0 version, while they advice
upgrading to 72.0.3626.121.

What should I do if I want to stay on the stable branch and have a
secure (to the known point) browser.

(Apart from chromium I run firefox, which I try to keep up to date with

doas env
PKG_PATH=https://packages.rhaalovely.net/pub/OpenBSD/6.4/packages/amd64
pkg_add -u firefox-esr

but I guess there is nothing like this for chromium).

So do you recommend avoiding chromium until the next stable release of
OpenBSD, or what do you do?

(I also use "openup", but so far no upgrade for chrome has appeared
there).

Thanks for comments
Ruda



install portslist?

2018-12-14 Thread Rudolf Sykora
Hello,

I now see this:

odin$ pwd
/usr/ports

odin$ make search key=texmacs  
Please install portslist
 pkg_add portslist
*** Error 1 in /usr/ports (Makefile:80 '/usr/local/share/ports-INDEX': @exit 1)

odin$ doas pkg_add portslist
portslist-6.8: ok
odin$ make search key=texmacs 
Please install portslist
 pkg_add portslist
*** Error 1 in /usr/ports (Makefile:80 '/usr/local/share/ports-INDEX': @exit 1)

odin$ pkg_info -Q portslist
portslist-6.8 (installed)

odin$ make search key=texmacs 
Please install portslist
 pkg_add portslist
*** Error 1 in /usr/ports (Makefile:80 '/usr/local/share/ports-INDEX': @exit 1)


Is this expected? What am I doing wrong?

Thanks
Ruda



find the process that heavily uses a disc

2018-10-16 Thread Rudolf Sykora
Hello,

please, how can I monitor disk usage and tell
what process is using it heavily?

(I hear [and see] that the disk is being used,
but cannot think of a process that would cause
it.)


Thanks
Ruda



wacom tablet settings? absolute mode?

2018-10-11 Thread Rudolf Sykora
Hello,

when I connect my Wacom Intuos3 tablet via usb, I see (in the console)

uhidev0 at uhub0 port 3 configuration 1 interface 0 "Tablet PTZ-930"
rev 1.10/1.02 addr 2
uhidev0: iclass 3/1, 13 report ids
ums0 at uhidev0 reportid 1: 3 buttons, Z dir
wsmouse0 at ums0 mux 0
uhid0 at uhidev0 reportid 2: input=9, output=0, feature=1
uhid1 at uhidev0 reportid 3: input=0, output=0, feature=1
uhid2 at uhidev0 reportid 4: input=0, output=0, feature=1
uhid3 at uhidev0 reportid 5: input=0, output=0, feature=8
uhid4 at uhidev0 reportid 6: input=0, output=0, feature=8
uhid5 at uhidev0 reportid 7: input=0, output=0, feature=4
uhid6 at uhidev0 reportid 8: input=0, output=0, feature=4
uhid7 at uhidev0 reportid 9: input=0, output=0, feature=1
uhid8 at uhidev0 reportid 10: input=0, output=0, feature=2
uhid9 at uhidev0 reportid 11: input=0, output=0, feature=1
uhid10 at uhidev0 reportid 12: input=9, output=0, feature=0
uhid11 at uhidev0 reportid 13: input=0, output=0, feature=1


usbdevs -vd /dev/usb0 says

Controller /dev/usb0:
...
addr 02: 056a:00b2 Tablet, PTZ-930
 full speed, power 300 mA, config 1, rev 1.02
 driver: uhidev0


The tablet then works basically as a mouse.
I wanted to switch the tablet to the 'absolute' mode (and perhaps
later change some of its other properties).
To this end I created a file /etc/X11/xorg.conf with the content
(I do not know if it is necessary to do it like this, nor I know
if what I do makes much sense)

Section "InputClass"
Identifier "PTZ-930"
MatchUSBID "056a:*"
Driver "usbtablet"
Option "Type" "stylus"
Option "Mode" "Absolute"
Option "Device" "/dev/uhid6"
EndSection

(The /dev/uhid6 I copied from somebody else. I do not know
why uhid6.)

I restarted X (do I have to?).
No change in behaviour at all.

I checked /var/log/Xorg.0.log if I can spot anything relevant.
It mentions /etc/X11/xorg.conf:

...
[22.895] (==) Using config file: "/etc/X11/xorg.conf"
[22.895] (==) Using system config directory
"/usr/X11R6/share/X11/xorg.conf.d"
...

and then there is this part

[26.189] (II) config/wscons: checking input device /dev/wskbd
[26.189] (II) wskbd: using layout us
[26.189] (II) LoadModule: "kbd"
[26.190] (II) Loading /usr/X11R6/lib/modules/input/kbd_drv.so
[26.212] (II) Module kbd: vendor="X.Org Foundation"
[26.212]compiled for 1.19.6, module version = 1.9.0
[26.212]Module class: X.Org XInput Driver
[26.212]ABI class: X.Org XInput driver, version 24.1
[26.212] (II) Using input driver 'kbd' for '/dev/wskbd'
[26.212] (**) /dev/wskbd: always reports core events
[26.212] (**) /dev/wskbd: always reports core events
[26.212] (**) Option "Protocol" "standard"
[26.212] (**) Option "XkbRules" "base"
[26.212] (**) Option "XkbModel" "pc105"
[26.212] (**) Option "XkbLayout" "us"
[26.212] (II) XINPUT: Adding extended input device "/dev/wskbd"
(type: KEYBOARD, id 6)
[26.412] (II) config/wscons: checking input device /dev/wsmouse
[26.412] (II) LoadModule: "ws"
[26.413] (II) Loading /usr/X11R6/lib/modules/input/ws_drv.so
[26.426] (II) Module ws: vendor="X.Org Foundation"
[26.426]compiled for 1.19.6, module version = 1.3.0
[26.426]Module class: X.Org XInput Driver
[26.426]ABI class: X.Org XInput driver, version 24.1
[26.426] (II) Using input driver 'ws' for '/dev/wsmouse'
[26.426] (**) /dev/wsmouse: always reports core events
[26.426] (II) ws: /dev/wsmouse: debuglevel 0
[26.426] (**) Option "Device" "/dev/wsmouse"
[26.426] (**) ws: /dev/wsmouse: ZAxisMapping: buttons 4 and 5
[26.426] (**) ws: /dev/wsmouse: WAxisMapping: buttons 6 and 7
[26.426] (**) ws: /dev/wsmouse: associated screen: 0
[26.426] (II) ws: /dev/wsmouse: minimum x position: 0
[26.426] (II) ws: /dev/wsmouse: maximum x position: 1919
[26.426] (II) ws: /dev/wsmouse: minimum y position: 0
[26.426] (II) ws: /dev/wsmouse: maximum y position: 1079
[26.426] (==) ws: /dev/wsmouse: Buttons: 7
[26.427] (**) ws: /dev/wsmouse: YAxisMapping: buttons 4 and 5
[26.427] (II) XINPUT: Adding extended input device "/dev/wsmouse"
(type: MOUSE, id 7)
[26.427] (**) /dev/wsmouse: (accel) keeping acceleration scheme 1
[26.427] (**) /dev/wsmouse: (accel) acceleration profile 0
[26.427] (**) /dev/wsmouse: (accel) acceleration factor: 2.000
[26.428] (**) /dev/wsmouse: (accel) acceleration threshold: 4

but as far as I can tell, nothing about usbtablet.
(And no error anywhere, either.)


Can anybody explain to me what is wrong? I do not understand how the
chain of drivers usb - uhid - wscons - usbtablet is supposed to work, and what
decides which individual driver is eventually chosen for a device...

Thanks for any comments.

Ruda



pharo smalltalk on openbsd

2018-10-05 Thread Rudolf Sykora
Hello,

does anybody run pharo smalltalk on openbsd?

Does it work?

Thanks
Ruda



Re: alpine linux under vm? freezes

2018-09-04 Thread Rudolf Sykora
Hello,

On Thu, 30 Aug 2018 at 21:07, Rudolf Sykora  wrote:
>
> On Thu, 30 Aug 2018 at 20:43, Rudolf Sykora  wrote:
> > I connect to the console with the 'vmctl console' command.
> > At various moments I am no longer able to write anything,
> > the alpine system as if freezes.
>
> It seems to be a problem with the console.
> I still can ssh to the system, and it is
> working.

so is there anything I could do to be able to use the console?

[I managed to install alpine linux, but only because I could
get ssh connection soon enough (and the console gave me the
necessary time before breaking). Now, with slackware I am
not so lucky...

Thanks
Ruda



Re: alpine linux under vm? freezes

2018-08-30 Thread Rudolf Sykora
On Thu, 30 Aug 2018 at 20:43, Rudolf Sykora  wrote:
> I connect to the console with the 'vmctl console' command.
> At various moments I am no longer able to write anything,
> the alpine system as if freezes.

It seems to be a problem with the console.
I still can ssh to the system, and it is
working.

Thanks
Ruda



alpine linux under vm? freezes

2018-08-30 Thread Rudolf Sykora
Hello,

I tried to run alpine linux (alpine-virt-3.8.0-x86_64.iso)
under the OpenBSD (latest snapshot) virtual machine.

I was able to boot it, even to install it to an image.

I connect to the console with the 'vmctl console' command.
At various moments I am no longer able to write anything,
the alpine system as if freezes.

Has anybody encountered something similar?

Thanks for any comments.

Thanks
Ruda



PS.: I like OpenBSD but I seem to need some linux, too,
for various programs (Julia, J, Texmacs, reduce,
pressure sensitivity for a Wacom Intuos 3 tablet, ...)



Re: sshfs permission problem

2018-08-03 Thread Rudolf Sykora
On 3 August 2018 at 15:30, Maurice McCarthy  wrote:
> On 03/08/2018, Rudolf Sykora  wrote:
>> doas sshfs syk...@pc109.fzu.cz: /home/ruda/mnt/fzu -o uid=1000 -o gid=1000
>
> Leave out the 'doas' ?

Afaik, no, you can't.
Any mounting on OpenBSD seems to need root privileges.

Ruda



sshfs permission problem

2018-08-03 Thread Rudolf Sykora
Hello!

I run

doas sshfs syk...@pc109.fzu.cz: /home/ruda/mnt/fzu -o uid=1000 -o gid=1000

But then the mount point is owned (after the mounting) by root:

drwx--  1 root  wheel512 Aug  3 13:22 fzu

Hence I cannot enter the directory as the usual (and wanted) user 'ruda'.

1) doas chmod 777 fzu does not help (does nothing)
2) doas chown ruda:ruda fzu   gives permission denied

What can I do?

Thanks
Ruda



upgrading to a snapshot; what to do with ports tree?

2018-08-02 Thread Rudolf Sykora
Hello,

when I switch to a recent snapshot, I can also download ports.tar.gz
related to it.
Should I just first completely remove the old tree
(rm -rf /usr/ports), or should I keep it and untar the
ne ports.tar.gz over it?

(I guess the first, but...)

Thanks
Ruda



how to switch to a snapshot?

2018-07-25 Thread Rudolf Sykora
Hello,

I'd perhaps like to switch to a recent snapshot.
I read
https://www.openbsd.org/faq/current.html
but do not quite understand it.

If I download the snapshot (ie bsd.rd), boot from it, choose Upgrade
at the prompt, and upgrade any installed packages (??using pkg_add -u where
available, otherwise from updated ports??), do I still have to follow
those points described further down on the page, such as

2018/04/04 - PF_TRANS_ALTQ removed

etc.?

I'd expect I should watch for changes of syntax for configuration
files, right?

Thanks
Ruda



Re: linux under vm on openbsd tutorial

2018-07-16 Thread Rudolf Sykora
On 16 July 2018 at 14:01, Oliver Marugg  wrote:
> Did you enable VT/Extendend Mem64 Technology and Excute Disable Bit support
> in BIOS?

This helped.
I found some items in BIOS pertaining to virtualization, enabled them,
and vmd now runs.

Thanks
Ruda



Re: linux under vm on openbsd tutorial

2018-07-16 Thread Rudolf Sykora
OpenBSD 6.3 (GENERIC.MP) #4: Sun Jun 17 11:22:20 CEST 2018

r...@syspatch-63-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 17044406272 (16254MB)
avail mem = 16520765440 (15755MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xeceb0 (84 entries)
bios0: vendor Dell Inc. version "A21" date 09/21/2015
bios0: Dell Inc. OptiPlex 9010
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC FPDT TCPA MCFG HPET SSDT SSDT SSDT ASF! SSDT SLIC
acpi0: wakeup devices UAR1(S3) P0P1(S4) USB1(S3) USB2(S3) USB3(S3)
USB4(S3) USB5(S3) USB6(S3) USB7(S3) PXSX(S4) RP01(S4) PXSX(S4)
RP02(S4) PXSX(S4) RP03(S4) PXSX(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) Core(TM) i7-3770 CPU @ 3.40GHz, 3392.91 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,IBRS,IBPB,STIBP,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu0: 256KB 64b/line 8-way L2 cache
acpitimer0: recalibrated TSC frequency 3392316555 Hz
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.1, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz, 3392.30 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,IBRS,IBPB,STIBP,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 4 (application processor)
cpu2: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz, 3392.30 MHz
cpu2: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,IBRS,IBPB,STIBP,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 6 (application processor)
cpu3: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz, 3392.30 MHz
cpu3: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,IBRS,IBPB,STIBP,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 0, core 3, package 0
cpu4 at mainbus0: apid 1 (application processor)
cpu4: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz, 3392.30 MHz
cpu4: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,IBRS,IBPB,STIBP,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu4: 256KB 64b/line 8-way L2 cache
cpu4: smt 1, core 0, package 0
cpu5 at mainbus0: apid 3 (application processor)
cpu5: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz, 3392.30 MHz
cpu5: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,IBRS,IBPB,STIBP,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu5: 256KB 64b/line 8-way L2 cache
cpu5: smt 1, core 1, package 0
cpu6 at mainbus0: apid 5 (application processor)
cpu6: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz, 3392.30 MHz
cpu6: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,IBRS,IBPB,STIBP,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu6: 256KB 64b/line 8-way L2 cache
cpu6: smt 1, core 2, package 0
cpu7 at mainbus0: apid 7 (application processor)
cpu7: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz, 3392.30 MHz
cpu7: 

linux under vm on openbsd tutorial

2018-07-16 Thread Rudolf Sykora
Hello,

please, is there some good (easy to follow, up to date)
tutorial about how to set up a linux distribution
under virtual machine on OpenBSD?

[
I found eg

http://www.h-i-r.net/2017/04/openbsd-vmm-hypervisor-part-2.html

but as soon as I issue
rcctl start vmd
I get 'failed'
]

Thanks
Ruda



Re: Julia on OpenBSD?

2018-07-16 Thread Rudolf Sykora
Dear Ze,

On 13 July 2018 at 11:24, Zé Loff  wrote:
> If absolute top-notch performance isn't a concern I'd say its much much
> quicker and easier to setup a VM with some barebones linux

ok, thanks for the recommendation. I will probably try it (also for
other software: TeXmacs, J, pressure sensitivity of Wacom Intuos3)

> 
> As a side note, I (a statistician) was once contracted to aid a research
> project that needed to use some Julia code created by a third party.
> Julia was (still is?) very much a moving target back then, the code
> wasn't maintained and didn't work anymore.  I tried to make it work
> again and ended up rewriting the whole thing in C++.  At least C++ is
> stable (code-wise), is fast, runs everywhere and there are bindings to
> interface it with other langs.
> 

Well, this should become better when Julia is  >1.0, no?

Thanks
Ruda



Julia on OpenBSD?

2018-07-13 Thread Rudolf Sykora
Hello,

has anyone any experience with running Julia (language)
on OpenBSD? How difficult was it to set it up? (It isn't
in the Ports.)

Thanks!
Ruda



httpd directory auto index but hide the parent ..

2018-06-20 Thread Rudolf Sykora
Hello list,

I have

odin$ cat /etc/httpd.conf
server "default" {
listen on * port 80
directory auto index
root "htdocs/TESLA"
}
odin$

and a bunch of files in the htdocs/TESLA directory.
Can I somehow arrange that the parent of TESLA (i.e. "..") is not
listed when the page is loaded?

Thanks!
Ruda



screenshot with maim: Invalid number of channels provided to image.

2018-06-19 Thread Rudolf Sykora
Hello,

when I run the maim program to take a screenshot, I get an error:

odin$ maim -s Sr90.png
Failed to detect a compositor, OpenGL hardware-accelleration disabled...
Maim encountered an error:
Invalid number of channels provided to image.
odin$

I do not get any picture.
Can anybody help, please?

Thanks
Ruda



Re: fdisk MBR contains more than one OpenBSD partition!

2018-05-09 Thread Rudolf Sykora
> So please describe more in detail what kind of backuping you want.

I just want to regularly rsync /home to the "backup" partition
with some history (along the lines of

https://netfuture.ch/2013/08/simple-versioned-timemachine-like-backup-using-rsync/
).

This partition (or part of it) will later also be backed up to some
other machine.

The partition will be mounted read-only most of the time; only for
back-up it will remounted.

I would prefer that the backup partition be readable / mountable from
other machines. That's why I tried a separate MBR partition rather
than an OpenBSD disklabel one.

Ruda



Re: mail sign/encrypt

2018-05-09 Thread Rudolf Sykora
> > I'd suggest Thunderbird + Enigmail

I want a small thing, hence Thunderbird is out.
Similarly, mutt does way too many things (it's not just MUA),
similarly (al)pine. (And both use ncurses, which I also
want to avoid).

For me mmh, mblaze or similar (eg. plan9 tools) is the way to go.
Even snail is way too complex.

So for now I sign and send email (prepared in message.txt) with this:

openssl smime -sign -in message.txt -text -signer sec/certCVUT.mycrt.pem \
-inkey sec/certCVUT.mykey.pem -certfile sec/certCVUT.caChain.pem \
-from rudolf.syk...@cvut.cz -to rsyk...@disroot.org \
-subject "HI" | sendmail -t

where certCVUT.mycrt.pem contains my certificate,
certCVUT.mykey.pem contains my private key, and
certCVUT.caChain.pem contains the chain of ca's.
All these can be obtained from the .p12 file using
appropriate openssl commands.

Thanks
Ruda



fdisk MBR contains more than one OpenBSD partition!

2018-05-09 Thread Rudolf Sykora
Hello misc,

I wanted to use a MBR partition for backup purposes,
so I (almost) created (using fdisk) another OpenBSD MBR (A6)
partiotion, but then I got the message

MBR contains more than one OpenBSD partition!
Write MBR anyway? [n]

So am I doing it wrong?

Thanks for comments!

Ruda



mail sign/encrypt

2018-05-03 Thread Rudolf Sykora
Hello misc,

I'd like to be able to optionally
- sign my email,
- encrypt the email.

I have a certificate in the .p12 form,
containing my private key and two certificates,
one of them mine.

I want to prepare mail locally, i.e. to use
some simple locally installed MUA.

Is there a way with the default "mail" program,
or do I have to install some more powerful MUA?

Thanks
Ruda



Re: smtpd relay problem

2018-05-03 Thread Rudolf Sykora
Dear Bruno, Mazocomp,

>  via smtps+auth://a...@smtp.gmail.com:465 \

thanks, it works now.

I wrongly expected that using secure+auth would
choose the ports (465 when smtps and 587 for tls
fall-back).

Thanks
Ruda


PS.: Thanks to Mazocomp for supplementary information.



smtpd relay problem

2018-05-02 Thread Rudolf Sykora
Hello misc,

I just wanted to send mail through my gmail account
using smtpd in the relay mode.
I am unsuccessful so far, and do not understand what's
going wrong.

smtpd log of the attempt to send the email follows.
Can anybody help, please?

Thanks
Ruda

odin# smtpd -dv
debug: init ssl-tree
debug: init ca-tree
debug: init ssl-tree
debug: using "fs" queue backend
debug: using "ramqueue" scheduler backend
debug: using "ram" stat backend
info: OpenSMTPD 6.0.4 starting
debug: init ssl-tree
debug: init ca-tree
debug: init ssl-tree
debug: using "fs" queue backend
debug: using "ramqueue" scheduler backend
debug: using "ram" stat backend
debug: init ssl-tree
debug: init ca-tree
debug: init ssl-tree
debug: using "fs" queue backend
debug: using "ramqueue" scheduler backend
debug: using "ram" stat backend
setup_peer: klondike -> control[44050] fd=4
setup_peer: klondike -> pony express[21680] fd=5
setup_peer: control -> klondike[96213] fd=4
debug: init ssl-tree
debug: init ca-tree
debug: init ssl-tree
debug: using "fs" queue backend
debug: using "ramqueue" scheduler backend
debug: using "ram" stat backend
setup_peer: control -> lookup[58540] fd=5
setup_proc: klondike done
debug: init ssl-tree
debug: init ca-tree
debug: init ssl-tree
debug: using "fs" queue backend
debug: using "ramqueue" scheduler backend
setup_done: ca[96213] done
debug: using "ram" stat backend
setup_peer: control -> pony express[21680] fd=6
setup_peer: pony express -> control[44050] fd=4
setup_peer: control -> queue[82925] fd=7
setup_peer: lookup -> control[44050] fd=4
setup_peer: pony express -> klondike[96213] fd=5
setup_peer: control -> scheduler[51194] fd=8
setup_peer: lookup -> pony express[21680] fd=5
setup_peer: pony express -> lookup[58540] fd=6
debug: init ssl-tree
debug: init ca-tree
debug: init ssl-tree
debug: using "fs" queue backend
debug: using "ramqueue" scheduler backend
debug: using "ram" stat backend
setup_proc: control done
setup_done: control[44050] done
setup_peer: lookup -> queue[82925] fd=6
setup_peer: pony express -> queue[82925] fd=7
setup_peer: queue -> control[44050] fd=4
setup_proc: lookup done
setup_done: lka[58540] done
setup_proc: pony express done
setup_peer: queue -> pony express[21680] fd=5
setup_done: pony[21680] done
setup_peer: queue -> lookup[58540] fd=6
setup_peer: queue -> scheduler[51194] fd=7
debug: init ssl-tree
debug: init ca-tree
debug: init ssl-tree
debug: using "fs" queue backend
debug: using "ramqueue" scheduler backend
debug: using "ram" stat backend
setup_proc: queue done
debug: ca_engine_init: using RSA privsep engine
setup_done: queue[82925] done
setup_peer: scheduler -> control[44050] fd=4
setup_peer: scheduler -> queue[82925] fd=5
setup_proc: scheduler done
debug: bounce warning after 4h
setup_done: scheduler[51194] done
smtpd: setup done
debug: queue: done loading queue into scheduler
debug: parent_send_config_ruleset: reloading
debug: parent_send_config: configuring pony process
debug: parent_send_config: configuring ca process
debug: smtp: listen on IPv6:::1 port 25 flags 0x400 pki "" ca ""
debug: init private ssl-tree
debug: smtp: listen on IPv6:fe80::1%lo0 port 25 flags 0x400 pki "" ca ""
debug: smtp: listen on 127.0.0.1 port 25 flags 0x400 pki "" ca ""
debug: smtp: will accept at most 501 clients
debug: smtpd: scanning offline queue...
debug: smtpd: offline scanning done
debug: smtp: new client on listener: 0xe8882c55000
ec30efb21d77a7c5 smtp event=connected address=local host=
odin.troja.mff.cuni.cz
smtp: 0xe88a4f5b000: fd 13 from queue
smtp: 0xe88a4f5b000: message fd 13
debug: 0xe88a4f5b000: end of message, error=0
ec30efb21d77a7c5 smtp event=message address=local host=
odin.troja.mff.cuni.cz msgid=a28bb908 from=
to= size=381 ndest=1 proto=ESMTP
debug: scheduler: evp:a28bb908e6f62646 scheduled (mta)
ec30efb21d77a7c5 smtp event=closed address=local host=odin.troja.mff.cuni.cz
reason=quit
debug: smtp: 0xe88a4f5b000: deleting session: done
debug: mta: received evp:a28bb908e6f62646 for 
debug: mta: draining [relay:smtp.gmail.com,starttls,smtps,auth=secrets:A,mx]
refcount=1, ntask=1, nconnector=0, nconn=0
debug: mta: querying secret for [relay:smtp.gmail.com
,starttls,smtps,auth=secrets:A,mx]...
debug: control -> client: pipe closed
debug: mta: querying MX for [relay:smtp.gmail.com
,starttls,smtps,auth=secrets:A,mx]...
debug: clearing p=client, fd=11, pid=0
debug: mta: [relay:smtp.gmail.com,starttls,smtps,auth=secrets:A,mx] waiting
for MX secret
debug: mta: ... got secret for
[relay:smtp.gmail.com,starttls,smtps,auth=secrets:A,mx]:
AHJ1ZG9sZi5zeWtvcmFAZ21haWwuY29tAHBvaG9kYWpheno=
debug: mta: draining [relay:smtp.gmail.com,starttls,smtps,auth=secrets:A,mx]
refcount=2, ntask=1, nconnector=0, nconn=0
debug: mta: [relay:smtp.gmail.com,starttls,smtps,auth=secrets:A,mx] waiting
for MX
debug: MXs for domain smtp.gmail.com:
 66.102.1.108 preference -1
 66.102.1.109 preference -1
debug: mta: ... got mx 

repeated set of messages about usb mouse

2018-04-30 Thread Rudolf Sykora
Hello misc,

I am (on 6.3, amd64) repeatedly getting these messages every now and then:

---
uhub4 at uhub3 port 5 configuration 1 interface 0 "Genesys Logic USB2.0
Hub" rev 2.00/88.32 addr 3
uhidev1 at uhub4 port 1 configuration 1 interface 0 "Logitech USB Optical
Mouse" rev 2.00/72.00 addr 4
uhidev1: iclass 3/1
ums1 at uhidev1: 3 buttons, Z dir
wsmouse1 at ums1 mux 0
uhidev2 at uhub4 port 2 configuration 1 interface 0 "Logitech USB Keyboard"
rev 1.10/64.00 addr 5
uhidev2: iclass 3/1
ukbd0 at uhidev2: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev3 at uhub4 port 2 configuration 1 interface 1 "Logitech USB Keyboard"
rev 1.10/64.00 addr 5
uhidev3: iclass 3/0, 3 report ids
uhid12 at uhidev3 reportid 1: input=1, output=0, feature=0
uhid13 at uhidev3 reportid 2: input=1, output=0, feature=0
uhid14 at uhidev3 reportid 3: input=3, output=0, feature=0
wsmouse1 detached
ums1 detached
uhidev1 detached
wskbd1: disconnecting from wsdisplay0
wskbd1 detached
ukbd0 detached
uhidev2 detached
uhid12 detached
uhid13 detached
uhid14 detached
uhidev3 detached
uhub4 detached
---

(And I am not plugging it in and out...)

The mouse otherwise works just fine.

Is anything wrong?

Thank you
Ruda



Re: sshfuse: fusefs: libfuse vnode reclaim failed

2018-04-23 Thread Rudolf Sykora
Well it happened again along the same lines..., showing
'libfuse vnode reclaim failed'
And again uninterruptable, unkillable, unrebootable system, only
power button helped.

So isn't there really any way to kill such a beast?

(
I use 6.3. The line I use to start sshfs is basically just
doas sshfs $MACHINE $MOUNTPOINT -o uid=1000 -o gid=1000
)


On 20 April 2018 at 02:34, IL Ka  wrote:
> First, make sure your SSH connection is stable.

I believe I can say it is stable.
(From the other-systems experience.)

But anyway, even if it were unstable, I thought the system
should never enter a state where it has to be unplugged...


> If it works, then we can try
> to investigate it:
>
>
>> libfuse vnode reclaim failed
>
> This message is from following code:
> if (fb_queue(fmp->dev, fbuf))
> printf("fusefs: libfuse vnode reclaim failed\n");
>
> "fuse_lookup.c"
>
> As we can see, "fb_queue" retruns error, but we do not know
> which error.
>
> I think we need to know this error to understand what happened.
>
> In "fb_queue" source (fusebuf.c) we can see that error is
> return code from "tsleep" or "fbuf->fb_err".
>
>
> This code is part of this commit:
> https://github.com/openbsd/src/commit/5e69e0b69176a7f878c899ef5828a6273ab7f0bb
> Written by https://github.com/natano , while file originally written by
> Sylvestre Gallon 
>
> So, you have 2 options here:
>
> Debug it yourself by kernel debugging (gdb)
> or patch kernel and print this error value to kernel log
> (printf(9)) (could be good contribution to kernel btw)
>
> Or you can write to tech@ or bugs@
> about this problem and wait for developer's attention.

So I should probably write to bugs@...

Thanks
Ruda



Re: doas id -ru returns 0 ?

2018-04-23 Thread Rudolf Sykora
On 23 April 2018 at 17:19, Philip Guenther <guent...@gmail.com> wrote:
> On Mon, Apr 23, 2018 at 4:53 PM, Rudolf Sykora <rudolf.syk...@gmail.com>
> wrote:
>>
>> I expected that
>>
>> doas id -ru
>>
>> would return my uid.
>>
>> But it returns 0 (ie root)
>>
>> Can anybody comment on it?
>
>
> Hmm, what led you to expect it to return your UID?
>
> doas, like su, sets both the effective and real UID to the target user's;
> running something with doas is not the same as making it setuid and running
> it.  Running with effective!=real can trip up programs that didn't expect
> it, so it not a safe choice for something like doas.

Aha. Thanks for the explanation!
I thought it's more like setuid...
Sorry.

Ruda



doas id -ru returns 0 ?

2018-04-23 Thread Rudolf Sykora
Hello,

I expected that

doas id -ru

would return my uid.

But it returns 0 (ie root)

Can anybody comment on it?

Thanks
Ruda



Re: sshfuse: fusefs: libfuse vnode reclaim failed

2018-04-20 Thread Rudolf Sykora
Dear IL,

On 20 April 2018 at 02:34, IL Ka  wrote:
> First, make sure your SSH connection is stable.
> ...
> I can't help you unfortunatelly because
> this issue is not reproducible for me: I tried sshfs: it works like charm.

thanks for the information!
I will keep using it and we will see.

What surprised me the most was the state into which I got,
i.e., that I couldn't kill it, reboot, ...

Best regards
Ruda



sshfuse: fusefs: libfuse vnode reclaim failed

2018-04-19 Thread Rudolf Sykora
Hello,

I've been trying to use sshfs.

It started ok, but after a while the program
using it as if froze, in the console I see repeatedly

fusefs: libfuse vnode reclaim failed

The program at that moment can't be terminated,

The whole system at that point starts to be weird.
I was unable to kill sshfs even with -9. I was
unable even to reboot. I had to push the power
button in the end.

Has anybody else experienced something similar?

Thanks for comments

Ruda



Re: is there foomatic-rip for lpd on openBSD 6.3?

2018-04-10 Thread Rudolf Sykora
On 10 April 2018 at 09:58, Theo Buehler  wrote:
>> I do read man pages. But 1) As far as I can tell, you will not find any
>> information anywhere about foomatic-rip (or any other smart filter)
>
> use the pkglocatedb package:
> https://www.openbsd.org/faq/faq15.html#PkgFind
>

Ok. This is good to know.
Thanks
Ruda



Re: is there foomatic-rip for lpd on openBSD 6.3?

2018-04-10 Thread Rudolf Sykora
Dear Predrag,

> Around here we actually read man pages and pkg-readmes

I do read man pages. But 1) As far as I can tell, you will not find any
information anywhere about foomatic-rip (or any other smart filter)
when you just install the system, and 2), on a similar note, you can
only read pkg-readmes when you have the packages already installed.
I didn't know it all goes with the cups-filters package.


> Here is my post which would have answered your question.
>
> https://marc.info/?l=openbsd-ports=141490031517069=2

No.
I read your post before I asked. It's actually one of the few
things I found. But there you say: install foomatic-rip. It does
not mention where to get it.

Thanks
Ruda



is there foomatic-rip for lpd on openBSD 6.3?

2018-04-09 Thread Rudolf Sykora
Hello,

I want to print from openBSD 6.3. I tried to use lpd and found
some information on the web about setting up /etc/printcap.
Many texts use the foomatic-rip program. I can't find one
in ports. Is there anything instead? What's the recommended
way to set up printing?

Thanks for any comments
Ruda



Re: texmacs on 6.2

2018-04-05 Thread Rudolf Sykora
>> Try to fix TeXmacs so that it builds with clang; note that there are new
>> releases upstream.

According to TeXmacs developers:

"The default compiler for TeXmacs in linux became clang a few months ago. So I
guess it is just a matter of fixing building issues in OpenBSD..."

Ruda



Re: texmacs on 6.2

2018-04-03 Thread Rudolf Sykora
Hello,

>> What can I do?
>
> Try to fix TeXmacs so that it builds with clang; note that there are new
> releases upstream.
>
>> Why isn't i386 and amd64 available?
>
> Because i386 and amd64 use clang as the base compiler.

thanks for the answer!

Ruda



texmacs on 6.2

2018-04-01 Thread Rudolf Sykora
Hello,

I have probably a trivial (user) question.

I've used texmacs on 6.1, amd64.
Now I wanted to install it on 6.2, i386, but I can
neither find a package nor i386 is mentioned
among Archs in ports (the same for amd64, btw.).

What can I do?
Why isn't i386 and amd64 available?

Thanks
Ruda



cwm window manager usage, hidden windows

2016-12-05 Thread Rudolf Sykora
Hello,

I've been trying cwm for a while and would like to
ask a question about it. As cwm seems to be developed
within openbsd, I dare ask here.

I seem to need desktops, thus my .cwmrc contains

sticky yes
bind M-1grouponly1
bind M-2grouponly2
bind M-3grouponly3
bind M-4grouponly4
bind MS-1   movetogroup1
bind MS-2   movetogroup2
bind MS-3   movetogroup3
bind MS-4   movetogroup4

which emulates desktops, and works fine
as long as one doesn't have hidden windows. My problem
with a hidden window shows, when

1) I have a certain group of windows,
2) I hide one window,
3) I switch to another group,
4) and I return to the original group.
Now the window that I hid is no longer hidden.
This I find annoying.
(The movetogroup unhides all windows.)

Is there any help (or does my use of cwm differ
from the usual use?)

Thanks for comments,
Ruda



failure to boot cd60.iso on HP OmniBook XE3

2016-09-30 Thread Rudolf Sykora
Hello,

I tried to boot from a CD with cd60.iso on
an old HP OmniBook XE3 (i386). The process gets
stuck with the last line
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
and does not get beyond that.

Is there any suggestion as to what I can try?

Thank you!

Ruda



what device for usb tablet to write to xorg.conf

2016-06-14 Thread Rudolf Sykora
Hello everyone,

please, what should one write in xorg.conf instead of /dev/uhid3 below:
Section "InputDevice"
Identifier "w_stylus"
Driver "usbtablet"
Option "Type" "stylus"
Option "Device" "/dev/uhid3"  <---
Option "Mode" "Absolute"
Option "Threshold" "10"
EndSection

when I see this (hopefully relevant) part of /var/log/messages:
(I want to point to Tablet PTZ-930. I could not find any
for-me-understandable description
of the usb architecture...)

Jun 13 08:39:32 skylark /bsd: uhidev0 at uhub2 port 1 configuration 1
interface 0 "Microsoft Microsoft 3-Button Mouse with IntelliEye(TM)"
rev 1.10/3.00 addr 2
Jun 13 08:39:32 skylark /bsd: uhidev0: iclass 3/1
Jun 13 08:39:32 skylark /bsd: ums0 at uhidev0: 3 buttons, Z dir
Jun 13 08:39:32 skylark /bsd: wsmouse0 at ums0 mux 0
Jun 13 08:39:32 skylark /bsd: uhidev1 at uhub2 port 2 configuration 1
interface 0 "Logitech USB Receiver" rev 2.00/42.00 addr 3
Jun 13 08:39:32 skylark /bsd: uhidev1: iclass 3/1
Jun 13 08:39:32 skylark /bsd: ums1 at uhidev1: 16 buttons, Z and W dir
Jun 13 08:39:32 skylark /bsd: wsmouse1 at ums1 mux 0
Jun 13 08:39:32 skylark /bsd: uhidev2 at uhub2 port 2 configuration 1
interface 1 "Logitech USB Receiver" rev 2.00/42.00 addr 3
Jun 13 08:39:32 skylark /bsd: uhidev2: iclass 3/0, 17 report ids
Jun 13 08:39:32 skylark /bsd: uhid0 at uhidev2 reportid 3: input=4,
output=0, feature=0
Jun 13 08:39:32 skylark /bsd: uhid1 at uhidev2 reportid 16: input=6,
output=6, feature=0
Jun 13 08:39:32 skylark /bsd: uhid2 at uhidev2 reportid 17: input=19,
output=19, feature=0
Jun 13 08:39:32 skylark /bsd: uhidev3 at uhub3 port 2 configuration 1
interface 0 "Tablet PTZ-930" rev 1.10/1.02 addr 2
Jun 13 08:39:32 skylark /bsd: uhidev3: iclass 3/1, 13 report ids
Jun 13 08:39:32 skylark /bsd: ums2 at uhidev3 reportid 1: 3 buttons, Z dir
Jun 13 08:39:32 skylark /bsd: wsmouse2 at ums2 mux 0
Jun 13 08:39:32 skylark /bsd: uhid3 at uhidev3 reportid 2: input=9,
output=0, feature=1
Jun 13 08:39:32 skylark /bsd: uhid4 at uhidev3 reportid 3: input=0,
output=0, feature=1
Jun 13 08:39:32 skylark /bsd: uhid5 at uhidev3 reportid 4: input=0,
output=0, feature=1
Jun 13 08:39:32 skylark /bsd: uhid6 at uhidev3 reportid 5: input=0,
output=0, feature=8
Jun 13 08:39:32 skylark /bsd: uhid7 at uhidev3 reportid 6: input=0,
output=0, feature=8
Jun 13 08:39:33 skylark /bsd: uhid8 at uhidev3 reportid 7: input=0,
output=0, feature=4
Jun 13 08:39:33 skylark /bsd: uhid9 at uhidev3 reportid 8: input=0,
output=0, feature=4
Jun 13 08:39:33 skylark /bsd: uhid10 at uhidev3 reportid 9: input=0,
output=0, feature=1
Jun 13 08:39:33 skylark /bsd: uhid11 at uhidev3 reportid 10: input=0,
output=0, feature=2
Jun 13 08:39:33 skylark /bsd: uhid12 at uhidev3 reportid 11: input=0,
output=0, feature=1
Jun 13 08:39:33 skylark /bsd: uhid13 at uhidev3 reportid 12: input=9,
output=0, feature=0
Jun 13 08:39:33 skylark /bsd: uhid14 at uhidev3 reportid 13: input=0,
output=0, feature=1
Jun 13 08:39:33 skylark /bsd: uhidev4 at uhub4 port 2 configuration 1
interface 0 "CHICONY Asus Keyboard" rev 2.00/0.70 addr 2
Jun 13 08:39:33 skylark /bsd: uhidev4: iclass 3/1
Jun 13 08:39:33 skylark /bsd: ukbd0 at uhidev4: 8 variable keys, 6 key codes
Jun 13 08:39:33 skylark /bsd: wskbd1 at ukbd0 mux 1
Jun 13 08:39:33 skylark /bsd: wskbd1: connecting to wsdisplay0
Jun 13 08:39:33 skylark /bsd: uhidev5 at uhub4 port 2 configuration 1
interface 1 "CHICONY Asus Keyboard" rev 2.00/0.70 addr 2
Jun 13 08:39:33 skylark /bsd: uhidev5: iclass 3/0, 3 report ids
Jun 13 08:39:33 skylark /bsd: uhid15 at uhidev5 reportid 1: input=1,
output=0, feature=0
Jun 13 08:39:33 skylark /bsd: uhid16 at uhidev5 reportid 2: input=2,
output=0, feature=0
Jun 13 08:39:33 skylark /bsd: uhid17 at uhidev5 reportid 3: input=2,
output=0, feature=0
Jun 13 08:39:33 skylark /bsd: vscsi0 at root
Jun 13 08:39:33 skylark /bsd: scsibus3 at vscsi0: 256 targets

and this is a part of the result of
; usbdevs -dv

Controller /dev/usb3:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
  uhub3
 port 1 powered
 port 2 addr 2: full speed, power 300 mA, config 1, PTZ-930(0x00b2),
Tablet(0x056a), rev 1.02
   uhidev3


Thanks a lot
Ruda Sykora



x clipboard that can copy images

2016-06-13 Thread Rudolf Sykora
Hello,

I need a program that would be able to "copy a .png file into
the clipboard", so that other programs (xournal, gimp, ...)
can paste the image.

I used xsel and xclip before, but these only work with text.
I tried to compile newer xclip, which can "copy images",
so far without success.
Apart from new xclip, bigger programs like copyq have
the ability to cope with images, but that's too big for
the task, I think.

Do you have any advice? What do you use?

Thanks
Ruda



generate xorg.conf

2016-06-13 Thread Rudolf Sykora
Hello,

please, how do one generate an xorg.conf file on openBSD?

I thought running
X -configure
(or X :1 -configure, if X is running)
would generate one, however, there seems to be no option -configure
present. So how, then?

(I want to read xorg.conf and then modify some parts to try to use wacom intuos3
tablet [pressure sensitivity].)

Thanks
Ruda



openbsd.org, openssh.com server(s) down

2016-03-15 Thread Rudolf Sykora
Hello,

is it only I who cannot connect to either
of openbsd.org and openssh.com, or
is the server down?

Thanks
Ruda



Re: sshfs man page, -o idmap=user

2016-02-24 Thread Rudolf Sykora
> After putting
> kern.usermount=1
> into /etc/sysctl.conf and changing the rights
> chmod 660 /dev/fuse0
> I was then able to mount a remote filesystem, but
> I ran into permission problems. Thus I tried
> to add -o idmap=user into the command, which
> results in immediate diconnecting:
>
> $ sshfs -o idmap=user s...@ssh.du3.cesnet.cz: mnt/du3
> remote host has disconnected
> $ sshfs s...@ssh.du3.cesnet.cz: mnt/du3 -o idmap=user
> remote host has disconnected
> $ sshfs s...@ssh.du3.cesnet.cz: mnt/du3
> s...@ssh.du3.cesnet.cz's password:


I still haven't overcome this.
So is there any working way to mount locally a remote
filesystem (where all, the username, uid, gid are
different) and not run into permission problems?

Thanks
Ruda



general xdg-open configuration

2016-02-18 Thread Rudolf Sykora
Hello,

I appear to need to modify the default application used
by xdg-open to open a file directory. The man page of xdg-open
is not very helpful. Can anybody tell me what is the right
and general (I run fvwm) system-wide file on openbsd to edit?

Thanks
Ruda



ksh search history backwards patch still available

2016-02-16 Thread Rudolf Sykora
Hello,

does anybody have a patch described here

http://tech.openbsd.narkive.com/Ns42EcmB/patch-to-ksh-adding-history-search-backward-forward

which can be applied to the 5.8 release?
(direct use of the linked patch fails at a few places...)

Thanks
Ruda



sshfs man page, -o idmap=user

2016-02-02 Thread Rudolf Sykora
Hello,

Yesterday I was trying to use sshfs.
I use the 5.8 release.

1)
The man page of sshfs says:

   mounting
   sshfs [user@]host:[dir] mountpoint [options]

   unmounting
   fusermount -u mountpoint

However, the fusermount command does not exists
on my system, contrary to sshfs, which got installed
using the sshfs-fuse package.

After spending some time to find fusermount, I
found that a simple umount works instead...

Shouldn't the man page of sshfs be changed to
state and reflect that?

2)
After putting
kern.usermount=1
into /etc/sysctl.conf and changing the rights
chmod 660 /dev/fuse0
I was then able to mount a remote filesystem, but
I ran into permission problems. Thus I tried
to add -o idmap=user into the command, which
results in immediate diconnecting:

$ sshfs -o idmap=user syko...@ssh.du3.cesnet.cz: mnt/du3
remote host has disconnected
$ sshfs syko...@ssh.du3.cesnet.cz: mnt/du3 -o idmap=user
remote host has disconnected
$ sshfs syko...@ssh.du3.cesnet.cz: mnt/du3
syko...@ssh.du3.cesnet.cz's password:

The -o idmap option is documented in the map page
and I use a command like this on Linux.

Do you have any comments or can you help?


Thanks!
Ruda