Re: make usb audio device always rsnd/1 - not rsnd/2

2024-06-19 Thread Geoff Steckel

On 6/19/24 07:25, Divan Santana wrote:

Greetings All,

I have a USB audio bluetooth dongle plugged in.

azalia0 at pci0 dev 31 function 3 "Intel 600 Series HD Audio" rev 0x01: msi
audio0 at azalia0
uaudio0 at uhub5 port 1 configuration 1 interface 3 "Creative Creative BT-W5" 
rev 2.00/10.00 addr 7
uaudio0: class v1, full-speed, sync, channels: 2 play, 1 rec, 3 ctls
audio1 at uaudio0

I also have a usb camera plugged in.

uaudio1 at uhub1 port 6 configuration 1 interface 3 "Logitech C270 HD WEBCAM" 
rev 2.00/0.21 addr 9
uaudio1: class v1, high-speed, sync, channels: 0 play, 1 rec, 2 ctls
audio2 at uaudio1

To use this bluetooth audio device I do:

doas rcctl set sndiod flags -f rsnd/0 -F rsnd/1

Sometimes upon rebooting these devices switch device numbers.  This
makes the above sndiod flags no longer valid.

How can one make "Creative Creative BT-W5" device always rsnd/1 and not

A -workaround- is:
  Don't explicitly name an audio device in your commands.
  Use the environment variable AUDIODEVICE instead.
You would -source- a shell script which looked at (for instance) dmesg
and deduced the correct setting. There may be a library call which
returns something useful like a serial number, manufacturer, etcThat 
script would only have to be run once a session. hth Geoff Steckel

Re: epub reader

2024-06-19 Thread Rob Schmersel
On Thu, 20 Jun 2024 07:17:13 +0200
Rob Schmersel  wrote:

> On Wed, 19 Jun 2024 22:25:42 +0200
> Dan  wrote:
> 
> > 
> > 
> > Thanks for reaching out Antoine, appreciated.
> > 
> > I know it is not enough but this is what I can I pass you:
> > 
> > https://takeyou.to/l/fol1 [a screenshot of Foliate under my XFCE]
> > 
> > Unfortunately Foliate doesn't appear to help a lot. Same result both
> > launching it from GUI and from console.
> > 
> > 
> > If I try with pkg_check:
> > 
> > wiz@/home/pocahontas# pkg_check foliate
> > Packing-list sanity: ok
> > Direct dependencies: ok
> > Reverse dependencies: ok
> > Files from
> > packages|**|100%Warning:
> > couldn't read packing-list from installed package foliate File
> > /var/db/pkg/foliate/+CONTENTS does not exist Can't call method
> > "thorough_check" on an undefined value at
> > /usr/libdata/perl5/OpenBSD/PkgCheck.pm line 836.
> > 
> > 
> > -Dan
> > 
> > 
> > Antoine Jacoutot  wrote:
> > 
> > > Foliate broken how?
> > > 
> > 
> > > > On 19 Jun 2024, at 18:55, Dan  wrote:
> > > > 
> > > > Hello,
> > > > 
> > > > I'm here asking for an epub ebook reader port as Foliate (almost
> > > > under my XFCE) appears broken from a while and Calibre is not
> > > > exactly a light ebook reader.
> > > > 
> > > > Thnks!
> > > > 
> > > > -Dan
> > 
> 
> foliate is working for me under XFCE, but I'm getting the same error
> when running pkg_check

Follow-up: mmm it seems that foliate is quite picky. I found 1 book
that showed the same error and which resulted in a WebKitWebProcess.core
file produced in the books folder. 

Opening the book in Sigil and letting it fix the html solves that issue.
(Incidently, as you mentioned calibre, I see this happening with most 
books that are converted with calibre)



Re: epub reader

2024-06-19 Thread Rob Schmersel
On Wed, 19 Jun 2024 22:25:42 +0200
Dan  wrote:

> 
> 
> Thanks for reaching out Antoine, appreciated.
> 
> I know it is not enough but this is what I can I pass you:
> 
> https://takeyou.to/l/fol1 [a screenshot of Foliate under my XFCE]
> 
> Unfortunately Foliate doesn't appear to help a lot. Same result both
> launching it from GUI and from console.
> 
> 
> If I try with pkg_check:
> 
> wiz@/home/pocahontas# pkg_check foliate
> Packing-list sanity: ok
> Direct dependencies: ok
> Reverse dependencies: ok
> Files from
> packages|**|100%Warning:
> couldn't read packing-list from installed package foliate File
> /var/db/pkg/foliate/+CONTENTS does not exist Can't call method
> "thorough_check" on an undefined value at
> /usr/libdata/perl5/OpenBSD/PkgCheck.pm line 836.
> 
> 
> -Dan
> 
> 
> Antoine Jacoutot  wrote:
> 
> > Foliate broken how?
> > 
> 
> > > On 19 Jun 2024, at 18:55, Dan  wrote:
> > > 
> > > Hello,
> > > 
> > > I'm here asking for an epub ebook reader port as Foliate (almost
> > > under my XFCE) appears broken from a while and Calibre is not
> > > exactly a light ebook reader.
> > > 
> > > Thnks!
> > > 
> > > -Dan
> 

foliate is working for me under XFCE, but I'm getting the same error
when running pkg_check



pf can't redirect outgoing traffic to localhost

2024-06-19 Thread whistlez
Hello,
I have sslsplit listening on 127.0.0.1 port 10443 and I want redirect
all my outgoing desktop web traffic  to sslsplit, then localhost port
10443. SSLSPLIT is just a kind of transparent proxy but cannot be used
as a conventional proxy (set up on the browser config).  Reading the
pf.conf man seems that there isn't a way to do that.
For example rdr-to does not support redirection to localhost. 
man:
rdr-to is usually applied inbound.  If applied outbound, rdr-to to a
local IP address is not supported.
Divert-to does not support outgoing traffic ("pass out" or "match out").
Also I tried to make an IF alias like this
ifconfig em0 inet 192.168.0.6 255.255.255.0
ifconfig em0 inet alias 192.168.0.7 255.255.255.0
my gw is 192.168.0.1
I put listening the sslsplit on 192.168.0.7 (the alias) port 10443 and I
make a pf rule like this:
pass out log on em0 proto tcp from 192.168.0.6 to port 443 rdr-to
192.168.0.7 port 10443
pass out log on em0 proto tcp from 192.168.0.6 to port 80  rdr-to
192.168.0.7 port 10080
even this does not work... I suspect that even 192.168.0.7 is local ip.
Any help ?



Re: epub reader

2024-06-19 Thread Dan


Sorry, retreat:

wiz# pkg_check foliate-3.1.0
Packing-list sanity: ok
Direct dependencies: ok
Reverse dependencies: ok
Files from packages: ok


However the problem persists.


-Dan


Dan  wrote:

> 
> tip:
> 
> wiz$ ls /var/db/pkg/foliate ls:
> /var/db/pkg/foliate: No such file or directory
> 
> wiz$ ls /var/db/pkg/foliate-3.1.0 
> +CONTENTS  +DESC +REQUIRING 
> 
> Tet me know how is better to fix, eventually.
> 
> 
> -Dan
> 
> 
> 
> Dan  wrote:
> 
> > 
> > 
> > Thanks for reaching out Antoine, appreciated.
> > 
> > I know it is not enough but this is what I can I pass you:
> > 
> > https://takeyou.to/l/fol1 [a screenshot of Foliate under my XFCE]
> > 
> > Unfortunately Foliate doesn't appear to help a lot. Same result both
> > launching it from GUI and from console.
> > 
> > 
> > If I try with pkg_check:
> > 
> > wiz@/home/pocahontas# pkg_check foliate
> > Packing-list sanity: ok
> > Direct dependencies: ok
> > Reverse dependencies: ok
> > Files from
> > packages|**|100%Warning:
> > couldn't read packing-list from installed package foliate File
> > /var/db/pkg/foliate/+CONTENTS does not exist Can't call method
> > "thorough_check" on an undefined value at
> > /usr/libdata/perl5/OpenBSD/PkgCheck.pm line 836.
> > 
> > 
> > -Dan
> > 
> > 
> > Antoine Jacoutot  wrote:
> > 
> > > Foliate broken how?
> > > 
> > 
> > > > On 19 Jun 2024, at 18:55, Dan  wrote:
> > > > 
> > > > Hello,
> > > > 
> > > > I'm here asking for an epub ebook reader port as Foliate (almost
> > > > under my XFCE) appears broken from a while and Calibre is not
> > > > exactly a light ebook reader.
> > > > 
> > > > Thnks!
> > > > 
> > > > -Dan
> > 
> 



Re: epub reader

2024-06-19 Thread Dan


tip:

wiz$ ls /var/db/pkg/foliate ls:
/var/db/pkg/foliate: No such file or directory

wiz$ ls /var/db/pkg/foliate-3.1.0 
+CONTENTS  +DESC +REQUIRING 

Tet me know how is better to fix, eventually.


-Dan



Dan  wrote:

> 
> 
> Thanks for reaching out Antoine, appreciated.
> 
> I know it is not enough but this is what I can I pass you:
> 
> https://takeyou.to/l/fol1 [a screenshot of Foliate under my XFCE]
> 
> Unfortunately Foliate doesn't appear to help a lot. Same result both
> launching it from GUI and from console.
> 
> 
> If I try with pkg_check:
> 
> wiz@/home/pocahontas# pkg_check foliate
> Packing-list sanity: ok
> Direct dependencies: ok
> Reverse dependencies: ok
> Files from
> packages|**|100%Warning:
> couldn't read packing-list from installed package foliate File
> /var/db/pkg/foliate/+CONTENTS does not exist Can't call method
> "thorough_check" on an undefined value at
> /usr/libdata/perl5/OpenBSD/PkgCheck.pm line 836.
> 
> 
> -Dan
> 
> 
> Antoine Jacoutot  wrote:
> 
> > Foliate broken how?
> > 
> 
> > > On 19 Jun 2024, at 18:55, Dan  wrote:
> > > 
> > > Hello,
> > > 
> > > I'm here asking for an epub ebook reader port as Foliate (almost
> > > under my XFCE) appears broken from a while and Calibre is not
> > > exactly a light ebook reader.
> > > 
> > > Thnks!
> > > 
> > > -Dan
> 



Re: epub reader

2024-06-19 Thread Dan



Thanks for reaching out Antoine, appreciated.

I know it is not enough but this is what I can I pass you:

https://takeyou.to/l/fol1 [a screenshot of Foliate under my XFCE]

Unfortunately Foliate doesn't appear to help a lot. Same result both
launching it from GUI and from console.


If I try with pkg_check:

wiz@/home/pocahontas# pkg_check foliate
Packing-list sanity: ok
Direct dependencies: ok
Reverse dependencies: ok
Files from
packages|**|100%Warning:
couldn't read packing-list from installed package foliate File
/var/db/pkg/foliate/+CONTENTS does not exist Can't call method
"thorough_check" on an undefined value at
/usr/libdata/perl5/OpenBSD/PkgCheck.pm line 836.


-Dan


Antoine Jacoutot  wrote:

> Foliate broken how?
> 

> > On 19 Jun 2024, at 18:55, Dan  wrote:
> > 
> > Hello,
> > 
> > I'm here asking for an epub ebook reader port as Foliate (almost
> > under my XFCE) appears broken from a while and Calibre is not
> > exactly a light ebook reader.
> > 
> > Thnks!
> > 
> > -Dan



Re: sshd /var/empty

2024-06-19 Thread Nick Holland

On 6/19/24 00:42, 4 wrote:



On Tue, Jun 18, 2024 at 4:14 PM 4  wrote:

i'm sorry, i'm not smart, but i have a several questions. imagine
that we launch a ship far into space. we have only one
communication channel with this ship, and one day, when the ship
is already very far away from us, communication channel stops
working [...]

You did something wrong. It's pretty apparent from the tone of your
message you don't want help identifying what it was or how to fix
it, but for the benefit of others who find this thread in the
future, read the sshd_config man page to find out how to use the
ChrootDirectory option correctly.


i'm not talking about how to properly use chroot, but about the fact
that sshd refuses to launch because /var/empty has "too many rights".


You seem to fail to understand one of the basic goals of OpenBSD:
security through correctness.

Your starting example (spaceship communications) is the an example of
"Fail Open" -- when things go wrong, you want to be able to retain/regain
control and fix the problem.  (It is also an example of "embedded
systems" programming, where faults just aren't supposed to happen.  But
it also mandates very simple and verifiable code).

OpenBSD is very much a "Fail Closed" design.
If someone is storing your personal information on an OpenBSD server,
and that server is compromised, which would you rather happen?
  1) system continues to operate as best it can?
  2) Shut down, panic, stop doing whatever it was doing that allows
your data to escape?

You clearly think option 1 is the preferred choice.  OpenBSD developers
(and I) prefer option 2.

Let's look at /var/empty, which you are so upset about.
That's not a storage location.  As the name implies, it is intended to
be an empty directory.  The sshd process is chrooted into it.  It isn't
just your sshd's home directory, it's its entire existence.  If something
goes wrong with sshd, we want it confined within a space with no files,
and a space it can't create files and can't wander out to the rest of
the file system.  If someone finds a way to "break" sshd, the first hope
and first line of defense is it should crash and just kick the user out.
Failing that, we don't want the attacker to be able to wander the tree
or create files.

Back to your spaceship example...if at launch time, the control systems
detect the fuel tank is full of LOX, the LOX tank is full of fuel, and
one of the side boosters is mounted upside down, what do you want to
happen? You seem to advocate yelling, "You only live once!" and hitting
the launch button.  Again, that's not the OpenBSD way.

I do believe an OpenBSD developer once took great pride in how UNSTABLE
the OpenBSD kernel is.  The code has a path it needs to follow, deviate
from that path, and things get killed.  Deliberately.  By design.
Because...the code shouldn't have done that, and if it isn't playing
by the rules anymore...it needs to die because it can't be trusted.

Uptime is good.  Security is good.  Most people say, "Security is most
important!"...then start listing the exceptions.  "high uptime" "Run
my favorite poorly written software".  So really, security is the least
important consideration.  You want to be able to break your system and
repair it over the network without console access.  To your credit, you
are honest about that.  That's your call, but you are gonna want a
different OS.  Perhaps Windows 95 (remember the user name/PW prompt,
where if you just hit ESC, it went  away and dropped you at the desktop?).
OpenBSD is probably not the tool you want.

Nick.



Re: epub reader

2024-06-19 Thread Antoine Jacoutot
Foliate broken how?


—
Antoine

> On 19 Jun 2024, at 18:55, Dan  wrote:
> 
> Hello,
> 
> I'm here asking for an epub ebook reader port as Foliate (almost under my 
> XFCE)
> appears broken from a while and Calibre is not exactly a light ebook reader.
> 
> Thnks!
> 
> -Dan
> 



Re: epub reader

2024-06-19 Thread Mizsei Zoltán
AFAIK Zathura ( zathura-pdf-mupdf ) can open EPUBs. Feel free to try that.

Regards,
-ext

Dan írta 2024. jún.. 19, Sze-n 18:18 órakor:
> Hello,
>
> I'm here asking for an epub ebook reader port as Foliate (almost under my 
> XFCE)
> appears broken from a while and Calibre is not exactly a light ebook reader.
>
> Thnks!
>
> -Dan

-- 
--Z--



epub reader

2024-06-19 Thread Dan
Hello,

I'm here asking for an epub ebook reader port as Foliate (almost under my XFCE)
appears broken from a while and Calibre is not exactly a light ebook reader.

Thnks!

-Dan



Re: make usb audio device always rsnd/1 - not rsnd/2

2024-06-19 Thread Alexandre Ratchov
On Wed, Jun 19, 2024 at 01:25:44PM +0200, Divan Santana wrote:
> Greetings All,
> 
> I have a USB audio bluetooth dongle plugged in.
> 
> azalia0 at pci0 dev 31 function 3 "Intel 600 Series HD Audio" rev 0x01: msi
> audio0 at azalia0
> uaudio0 at uhub5 port 1 configuration 1 interface 3 "Creative Creative BT-W5" 
> rev 2.00/10.00 addr 7
> uaudio0: class v1, full-speed, sync, channels: 2 play, 1 rec, 3 ctls
> audio1 at uaudio0
> 
> I also have a usb camera plugged in.
> 
> uaudio1 at uhub1 port 6 configuration 1 interface 3 "Logitech C270 HD WEBCAM" 
> rev 2.00/0.21 addr 9
> uaudio1: class v1, high-speed, sync, channels: 0 play, 1 rec, 2 ctls
> audio2 at uaudio1
> 
> To use this bluetooth audio device I do:
> 
> doas rcctl set sndiod flags -f rsnd/0 -F rsnd/1
> 
> Sometimes upon rebooting these devices switch device numbers.  This
> makes the above sndiod flags no longer valid.
> 
> How can one make "Creative Creative BT-W5" device always rsnd/1 and not
> sometimes rsnd/2?
> 

Not yet.

Not exactly what you asked for, but you could try the audio/sndiokeys
port. It allows you to circulate through your audio devices with X
hot-keys. For instance, start "sndiokeys -D" and hit Ctrl-Alt-0 util
you hear a short "beep" on the desired device. Not perfect, but less
painful than running sndioctl(1) or restarting sndiod(8).

HTH



Re: make usb audio device always rsnd/1 - not rsnd/2

2024-06-19 Thread Thomas Frohwein
On Wed, Jun 19, 2024 at 01:25:44PM +0200, Divan Santana wrote:
> Greetings All,
> 
> I have a USB audio bluetooth dongle plugged in.
> 
> azalia0 at pci0 dev 31 function 3 "Intel 600 Series HD Audio" rev 0x01: msi
> audio0 at azalia0
> uaudio0 at uhub5 port 1 configuration 1 interface 3 "Creative Creative BT-W5" 
> rev 2.00/10.00 addr 7
> uaudio0: class v1, full-speed, sync, channels: 2 play, 1 rec, 3 ctls
> audio1 at uaudio0
> 
> I also have a usb camera plugged in.
> 
> uaudio1 at uhub1 port 6 configuration 1 interface 3 "Logitech C270 HD WEBCAM" 
> rev 2.00/0.21 addr 9
> uaudio1: class v1, high-speed, sync, channels: 0 play, 1 rec, 2 ctls
> audio2 at uaudio1
> 
> To use this bluetooth audio device I do:
> 
> doas rcctl set sndiod flags -f rsnd/0 -F rsnd/1
> 
> Sometimes upon rebooting these devices switch device numbers.  This
> makes the above sndiod flags no longer valid.
> 
> How can one make "Creative Creative BT-W5" device always rsnd/1 and not
> sometimes rsnd/2?

I don't have a perfect solution for this, but being in a similar
situation with my hardware, I've grown accustomed to keeping the
USB audio plugged, and only plugging in the camera when I need it;
therefore generally *after* the audio-only device. This way the USB
audio device is always rsnd/1 here. This may not be what you're looking
for... there are also USB hubs with physical on-off switches that I've
used for my USB camera this way. YMMV



make usb audio device always rsnd/1 - not rsnd/2

2024-06-19 Thread Divan Santana
Greetings All,

I have a USB audio bluetooth dongle plugged in.

azalia0 at pci0 dev 31 function 3 "Intel 600 Series HD Audio" rev 0x01: msi
audio0 at azalia0
uaudio0 at uhub5 port 1 configuration 1 interface 3 "Creative Creative BT-W5" 
rev 2.00/10.00 addr 7
uaudio0: class v1, full-speed, sync, channels: 2 play, 1 rec, 3 ctls
audio1 at uaudio0

I also have a usb camera plugged in.

uaudio1 at uhub1 port 6 configuration 1 interface 3 "Logitech C270 HD WEBCAM" 
rev 2.00/0.21 addr 9
uaudio1: class v1, high-speed, sync, channels: 0 play, 1 rec, 2 ctls
audio2 at uaudio1

To use this bluetooth audio device I do:

doas rcctl set sndiod flags -f rsnd/0 -F rsnd/1

Sometimes upon rebooting these devices switch device numbers.  This
makes the above sndiod flags no longer valid.

How can one make "Creative Creative BT-W5" device always rsnd/1 and not
sometimes rsnd/2?