OT: SSH3 proposal

2024-02-04 Thread Carlos Lopez
Hi all,

https://blog.apnic.net/2024/02/02/towards-ssh3-how-http-3-improves-secure-shells/

Uhmm ... ssh over http/3? What do you think about it?

Best regards,
C. L. Martinez



Re: drm_dp_dual_mode_detect *ERROR*

2024-02-04 Thread Daniele B.


One err message more (after machdep.allowaperture=2):

drm:pid0:intel_dp_aux_wait_done *ERROR* [drm] *ERROR* AUX C/DDI C/PHY
C: did not complete or timeout within 10ms (status 0xa143003f)


>Hello, 
> 
>Testing a new monitor with speakers connection by a DisplayPort
>adapter 
>to HDMI.. I came to realize the real problem related to these messages 
>appearing at boot time and dmesg: 
> 
>drm:pid38311:drm_dp_dual_mode_detect *ERROR* [drm] *ERROR* Unexpected 
>DP dual mode adaptor ID 20  
> 
>drm:pid26205:drm_dp_dual_mode_detect *ERROR* 
>[drm] *ERROR* Unexpected DP dual mode adaptor ID 20 
> 
>..in few words the DP adapter that should pass audio and video
>channels 
>together let pass the video flow only (and indeed I'm able to use my 
>new screen) but without the audio channel (HDMI cable and connection 
>tested). 
> 
>Hope this is helpful, thanks 
> 
> 
>== Daniele Bonini 



Re: questions about RAID5C, RAID6, RAID6C, can Openbsd be a good storage-server OS?

2024-02-04 Thread David Rinehart


This is a good read: 
https://research.exoticsilicon.com/articles/backup_strategies


On Sun, 2024-02-04 at 19:02 +, beecdadd...@danwin1210.de wrote:
> hello
> 
> I will make a storage server, and RAID just has to be on it, right?
> 
> is RAID6 in work or maybe plans, I would like to know
> what about RAID5 + CRYPTO or RAID6 + CRYPTO?
> I read these
> https://www.reddit.com/r/openbsd/comments/r4bydk/encrypted_raid6_support/
> and from it
> https://marc.info/?t=15434869341=1=2
> 
> encryption is a must, I won't have it unencrypted
> what about RAID controller like RAID6 and software RAIDC combination?
> it would be cool to have redundancy like RAID6 and secure data with
> CRYPTO..
> RAID1C is too expensive
> 
> does anyone run multi-TB storage servers with OpenBSD? what raid do
> you run,
> what about hardware raid? I fear/dislike hardware raid but I never
> tried it
> I want to live without OpenZFS/FreeBSD, butnot without encryption and
> redundancy
> 
> I don't have to be able to boot from it (canbe other disk which also
> maybe in
> RAID1C), but would be nice
> 
> I know OpenBSD is not meant to be run as big fancy storage server
> with maybe
> complicated reliability like RAID6 + CRYPTO, but what you expect?
> everyone
> loves OpenBSD and wants to use it for everything, not FreeBSD
> 
> thank you I am sorry if I ask too much, I don't demand, just nice
> request
> 



Re: Proper way to set PATH environment with SSH non-interactive command

2024-02-04 Thread Andy Bradford
Thus said "Allan Streib" on Sun, 04 Feb 2024 20:54:26 -0500:

> Just send the full path to your  script in the ssh command, and set up
> the rest of the environment within the script.

Yes, this  too is an option.  It may actually  be the best option  in my
opinion. If the user knows that  their binary is found in a non-standard
path, then the simplest thing is to  specify the full path to the binary
and leave the environment alone.

Thanks,

Andy



Re: Proper way to set PATH environment with SSH non-interactive command

2024-02-04 Thread Allan Streib
Just send the full path to your script in the ssh command, and set up the
rest of the environment within the script.



Re: Proper way to set PATH environment with SSH non-interactive command

2024-02-04 Thread Andy Bradford
Thus said Kastus Shchuka on Sun, 04 Feb 2024 13:40:58 -0800:

>  SetEnv  Directly specify one or more environment variables and their
>  contents to be sent to the server.

Thank you this option looks like it could also work, except it's not one
of which a user with no  permissions can take advantage as the AcceptEnv
option is  disabled by default  on most servers  I imagine. So,  while a
normal user  can set  the environment for  interactive shells,  it seems
that for non-interactive shells, the  only viable solution is to prepend
each command  with the environment  to be set  (I see nothing  in ksh(1)
that suggests that  the environment of non-interactive  shells are under
the control of the user).

Also, I don't  seem to be succesful in making  SetEnv (or SendEnv) work.
I've reconfigured (and restarted) sshd_config to have:

AcceptEnv PATH

Then I configured ~/.ssh/config with:

Host localhost
  SetEnv PATH=/home/amb/bin:/bin:/usr/bin:/usr/local/bin


When I run "ssh -v localhost env"  I can see that the client sends the path:

debug1: channel 1: setting env PATH = 
"/home/amb/bin:/bin:/usr/bin:/usr/local/bin"
debug1: Sending command: env


But env reports the following PATH:

PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin

I also tried  using SendEnv but while the client  sends the environment,
the server seems to ignore it, even if I set the AcceptEnv pattern to *.

# sshd -T -C user=amb,host=localhost | grep acceptenv
acceptenv PATH

When I run "sshd -d -d" I see the following in the output:

debug2: Setting env 0: PATH=/home/amb/bin:/bin:/usr/bin:/usr/local/bin

So it  certainly looks like the  server is accepting the  path, however,
env still reports a different path. Is  this perhaps a bug? Maybe step 5
in LOGIN PROCESS  is overwriting the PATH that was  sent and received by
the server?

This is on OpenBSD 7.4.

Thanks,

Andy



Re: Proper way to set PATH environment with SSH non-interactive command

2024-02-04 Thread Kastus Shchuka
On Sun, Feb 04, 2024 at 08:39:27AM -0700, Andy Bradford wrote:
> Hello,
> 
> When using SSH to invoke a remote command via the syntax:
> 
> ssh remotehost remotecommand
> 
> The $HOME/.profile  is not used and  there appears to be  a very minimal
> environment setup.  The PATH does  not include any components  that have
> been added in .profile.
> 
> This is probably what step 5 in the LOGIN PROCESS is all about:
> 
> http://man.openbsd.org/sshd#LOGIN_PROCESS
> 
> According to the man page for sshd(8):
> 
>  After this, the client either requests an interactive shell or execution
>  of a non-interactive command, which sshd will execute via the user's
>  shell using its -c option.
> 
> So in the  case where an interactive  shell is chosen, the  PATH will be
> set  according to  .profile, but  in  the case  where a  non-interactive
> command is  chosen, a shell is  invoked with -c.  So I have a  script in
> $HOME/bin (which  is defined in PATH  normally in .profile) which  I can
> run when logged in interactively:
> 
> $ helloworld
> HELLO WORLD
> 
> But when I try to run it as a non-interactive command, it fails:
> 
> $ ssh localhost helloworld
> amb@localhost's password: 
> ksh: helloworld: not found
> 
> Obviously, one way to do this is by calling the command like:
> 
> $ ssh localhost PATH=\$HOME/bin:\$PATH helloworld
> amb@localhost's password: 
> HELLO WORLD
> 
> This works and can be seen in ssh -v output as:
> 
> debug1: Sending command: PATH=$HOME/bin:$PATH helloworld
> 
> But is there a  file that I can modify that will  cause the shell proper
> to load some  kind of environment setup also  for non-interactive shells
> started with -c?
> 
> sshd does have  PermitUserEnvironment and that works,  however, it's not
> enabled by default and  it's not a function of the  SHELL proper. From a
> user  perspective, it  seems  that  the user  only  has  control of  the
> environment when using interactive shells and there is no way to control
> the environment for  non-interactive shells (from the  remote side). Are
> these the only  2 options (PermitUserEnvironment or  prepend the command
> with the environment) or is there something I'm missing from ksh(1)?

See ssh_config(5):

 SetEnv  Directly specify one or more environment variables and their
 contents to be sent to the server.  Similarly to SendEnv, with
 the exception of the TERM variable, the server must be prepared
 to accept the environment variable.



Re: questions about RAID5C, RAID6, RAID6C, can Openbsd be a good storage-server OS?

2024-02-04 Thread Nick Holland

On 2/4/24 14:02, beecdadd...@danwin1210.de wrote:

hello

I will make a storage server, and RAID just has to be on it, right?


mybbe... (more later)
 

is RAID6 in work or maybe plans, I would like to know
what about RAID5 + CRYPTO or RAID6 + CRYPTO?
I read these
https://www.reddit.com/r/openbsd/comments/r4bydk/encrypted_raid6_support/
and from it
https://marc.info/?t=15434869341=1=2


best to start with authoritative sources that are up to date.
https://man.openbsd.org/softraid

you will note no reference to RAID6 in there.  Nor one-layer
softraid 5C, like there is 1C.

Is it "in the works"?  how would that matter?  If it is there, you
can use it.  If it isn't...you can't.  If it is "in the works", it
still isn't there.  So...I'd suggest just assuming it isn't there,
and if it is added (or you add it), upgrade at your next HW refresh.
 

encryption is a must, I won't have it unencrypted
what about RAID controller like RAID6 and software RAIDC combination?
it would be cool to have redundancy like RAID6 and secure data with CRYPTO..
RAID1C is too expensive


"RAID1C is too expensive" -- define expensive?
You can get a Really Big SATA disk for the price of a good HW RAID controller,
and a good HW RAID controller generally requires a big, power hungry chassis.
Oh...and if you are going to run HW RAID, you MUST have spare HW on-hand
because you can't just take the drives off RAID controller X and put them on
the RAID controller you just managed to find two years later when you need
it and hope it will work.  And of course, that implies a second chassis,
because these things tend to work together.


does anyone run multi-TB storage servers with OpenBSD? what raid do you run,
what about hardware raid? I fear/dislike hardware raid but I never tried it
I want to live without OpenZFS/FreeBSD, butnot without encryption and redundancy


HW RAID works, but you better understand your controller.  Most people get
their system running, pat themselves on the back, and are 100% hosed when
they need to replace a drive and have no idea how.  HW raid is usually a
little easier to figure out how to get running without reading the
instructions, but much harder to figure out when things go wonky.

(granted, SW raid, you have to figure out how to detect and swap out a
failed drive, but my SW RAID is more similar to yours than my HW RAID is
to yours, and thus, I can probably help you out more.  x the number of
people on misc@ :)
 

I don't have to be able to boot from it (canbe other disk which also maybe in
RAID1C), but would be nice

I know OpenBSD is not meant to be run as big fancy storage server with maybe
complicated reliability like RAID6 + CRYPTO, but what you expect? everyone
loves OpenBSD and wants to use it for everything, not FreeBSD


Realistically, for home use, I suspect OpenBSD will be more-than-sufficient
for most people.  You just don't need the World's Fastest for most
applications.  Case in point: I was whining to myself about the removal of
softdeps from OpenBSD recently...it is a HUGE performance hit for a few of
the systems I manage.  But you know what I discovered?  Worst case, even
though one backup went from two hours to eight or more hours, it doesn't
change what I accomplish in a day.  Wickedly fast is fun.  But the real
performance problem is usually me.  It would work fine for many business
uses, too.


thank you I am sorry if I ask too much, I don't demand, just nice request


OpenBSD Softraid RAID6 isn't a thing (yet?).
OpenBSD Softraid RAID5C isn't a thing (yet?).

Layered RAID isn't officially supported, but it works.  Layering crypto on
top of a HW RAID works in every sense.  Softraid doesn't even know it is on
HW RAID and doesn't care (though bioctl can be used to monitor both).
Expecting the system to come up on its own with manually layered softraid
is not wise.

If you want to layer your RAID, you will probably want to have your boot
partitions/drives be RAID1C (or just RAID1), then the data stored on a
big softraid "drive".  I would suggest NOT putting the layered RAID volumes
in /etc/fstab, but rather have some kind of manual script that you run post
boot to bring up the big data storage drives.  This way, when the power goes
out and you need an fsck on your array, you don't have to go to the box to
do it, you can do it remotely.

RAID1 wins a lot of awards for just plain simplicity, and thus, some
versatility.  So I'd suggest reconsidering your "need" for RAID5, and see
if you can get by with RAID1C on a big pair of drives.

And as for my "mybbe" on automatically assuming you need RAID on a
storage server, you MIGHT just find that multiple stand-alone systems will
give you better redundancy for some applications.  RAID helps if your
disk fails, but there are a lot of other things that fail on storage servers,
and for SOME applications, having a whole other machine ready to roll is
a better solution.  Granted, my FIRST choice is TWO machines running RAID
storage, but that's 

questions about RAID5C, RAID6, RAID6C, can Openbsd be a good storage-server OS?

2024-02-04 Thread beecdaddict
hello

I will make a storage server, and RAID just has to be on it, right?

is RAID6 in work or maybe plans, I would like to know
what about RAID5 + CRYPTO or RAID6 + CRYPTO?
I read these
https://www.reddit.com/r/openbsd/comments/r4bydk/encrypted_raid6_support/
and from it
https://marc.info/?t=15434869341=1=2

encryption is a must, I won't have it unencrypted
what about RAID controller like RAID6 and software RAIDC combination?
it would be cool to have redundancy like RAID6 and secure data with CRYPTO..
RAID1C is too expensive

does anyone run multi-TB storage servers with OpenBSD? what raid do you run,
what about hardware raid? I fear/dislike hardware raid but I never tried it
I want to live without OpenZFS/FreeBSD, butnot without encryption and redundancy

I don't have to be able to boot from it (canbe other disk which also maybe in
RAID1C), but would be nice

I know OpenBSD is not meant to be run as big fancy storage server with maybe
complicated reliability like RAID6 + CRYPTO, but what you expect? everyone
loves OpenBSD and wants to use it for everything, not FreeBSD

thank you I am sorry if I ask too much, I don't demand, just nice request



Re: Problem sound

2024-02-04 Thread Todd
Make sure the device is not muted.

https://man.openbsd.org/sndioctl.1

On Fri, Feb 2, 2024, 9:02 AM Manfred Koch  wrote:

> Hi all,
>
> I'm a newbie in openbsd. I use the xfce Desktop but without sound. I
> have enabled sndiod_enable=YES
> in /etc/rc.conf.local. Further I tried pulseaudio without success.
> What's about dbus-daemon?
>
> Perhaps you can help me, to find a solution?
> Are you knowing a mailinglist for newbies in openbsd?
>
> I would appreciate for any tips.
>
> Thank you
>
> Manfred Koch
>
>


Proper way to set PATH environment with SSH non-interactive command

2024-02-04 Thread Andy Bradford
Hello,

When using SSH to invoke a remote command via the syntax:

ssh remotehost remotecommand

The $HOME/.profile  is not used and  there appears to be  a very minimal
environment setup.  The PATH does  not include any components  that have
been added in .profile.

This is probably what step 5 in the LOGIN PROCESS is all about:

http://man.openbsd.org/sshd#LOGIN_PROCESS

According to the man page for sshd(8):

 After this, the client either requests an interactive shell or execution
 of a non-interactive command, which sshd will execute via the user's
 shell using its -c option.

So in the  case where an interactive  shell is chosen, the  PATH will be
set  according to  .profile, but  in  the case  where a  non-interactive
command is  chosen, a shell is  invoked with -c.  So I have a  script in
$HOME/bin (which  is defined in PATH  normally in .profile) which  I can
run when logged in interactively:

$ helloworld
HELLO WORLD

But when I try to run it as a non-interactive command, it fails:

$ ssh localhost helloworld
amb@localhost's password: 
ksh: helloworld: not found

Obviously, one way to do this is by calling the command like:

$ ssh localhost PATH=\$HOME/bin:\$PATH helloworld
amb@localhost's password: 
HELLO WORLD

This works and can be seen in ssh -v output as:

debug1: Sending command: PATH=$HOME/bin:$PATH helloworld

But is there a  file that I can modify that will  cause the shell proper
to load some  kind of environment setup also  for non-interactive shells
started with -c?

sshd does have  PermitUserEnvironment and that works,  however, it's not
enabled by default and  it's not a function of the  SHELL proper. From a
user  perspective, it  seems  that  the user  only  has  control of  the
environment when using interactive shells and there is no way to control
the environment for  non-interactive shells (from the  remote side). Are
these the only  2 options (PermitUserEnvironment or  prepend the command
with the environment) or is there something I'm missing from ksh(1)?

Thanks,

Andy



drm_dp_dual_mode_detect *ERROR*

2024-02-04 Thread Daniele B.
Hello,

Testing a new monitor with speakers connection by a DisplayPort adapter
to HDMI.. I came to realize the real problem related to these messages
appearing at boot time and dmesg:

drm:pid38311:drm_dp_dual_mode_detect *ERROR* [drm] *ERROR* Unexpected
DP dual mode adaptor ID 20 

drm:pid26205:drm_dp_dual_mode_detect *ERROR*
[drm] *ERROR* Unexpected DP dual mode adaptor ID 20

..in few words the DP adapter that should pass audio and video channels
together let pass the video flow only (and indeed I'm able to use my
new screen) but without the audio channel (HDMI cable and connection
tested).

Hope this is helpful, thanks


== Daniele Bonini



Re: Astertisk missing library

2024-02-04 Thread Peter Fraser
Asterisk 20.5.2 works for me two different amd64 computers that I upgraded from 
7.3  amd64  to 7.4.
Sysctl hw and astererisk -cddd below
gateway:~ # doas sysctl hw
hw.machine=amd64
hw.model=Intel(R) Celeron(R) N5100 @ 1.10GHz
hw.ncpu=4
hw.byteorder=1234
hw.pagesize=4096
hw.disknames=sd0:63bd2dcfa75cdc16
hw.diskcount=1
hw.sensors.cpu0.temp0=54.00 degC
hw.sensors.cpu0.frequency0=285000.00 Hz
hw.sensors.cpu1.frequency0=285000.00 Hz
hw.sensors.cpu2.frequency0=285000.00 Hz
hw.sensors.cpu3.frequency0=285000.00 Hz
hw.sensors.acpitz0.temp0=27.80 degC (zone temperature)
hw.cpuspeed=1101
hw.setperf=100
hw.vendor=Techvision
hw.product=TVI7309X
hw.version=B0
hw.serialno=Default string
hw.uuid=00020003-0004-0005-0006-000700080009
hw.physmem=17000194048
hw.usermem=16982573056
hw.ncpufound=4
hw.allowpowerdown=1
hw.perfpolicy=auto
hw.smt=0
hw.ncpuonline=4
hw.power=1
hw.ucomnames=
gateway:~ # doas asterisk -cddd
Seeding global EID '60:be:b4:15:1f:bc'
Parsing /etc/asterisk/asterisk.conf
Asterisk 20.5.2, Copyright (C) 1999 - 2022, Sangoma Technologies Corporation 
and others.
Created by Mark Spencer 
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for 
details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=
Running as user '_asterisk'
Running under group '_asterisk'
Parsing /etc/asterisk/asterisk.conf
gl_pathc 3
UUID system initiated
PBX UUID: 9d75528f-a33e-4f94-adbd-86191bb432d7
extract int from [5] in [0, 2147483647] gives [5](0)
extract int from [50] in [0, 2147483647] gives [50](0)
extract int from [20] in [0, 2147483647] gives [20](0)
Unable to load config file 'stasis.conf'
extract int from [5] in [0, 2147483647] gives [5](0)
extract int from [50] in [0, 2147483647] gives [50](0)
extract int from [20] in [0, 2147483647] gives [20](0)
Could not load Stasis configuration; using defaults
Resetting translation matrix
Not changing threadpool size since new size 0 is the same as current 0
Increasing threadpool stasis/pool's size by 5
Creating topic. name: system:all, detail: 
Topic 'system:all': 0x280dfaee5d0 created
Creating topic. name: endpoint:all, detail: 
Topic 'endpoint:all': 0x280dfaef5d0 created
Creating topic. name: cache_pattern:0/endpoint:all, detail: 
Topic 'cache_pattern:0/endpoint:all': 0x280dfaef330 created
[Feb  4 10:33:11] NOTICE[107524]: loader.c:2405 load_modules: 280 modules will 
be loaded.
asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined symbol 
'ast_audiosocket_connect'
asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined symbol 
'ast_audiosocket_init'
asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined symbol 
'ast_audiosocket_send_frame'
asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined symbol 
'ast_audiosocket_receive_frame'
asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined symbol 
'ast_speech_new'
asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined symbol 
'ast_speech_destroy'
asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined symbol 
'ast_speech_grammar_load'
asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined symbol 
'ast_speech_grammar_unload'
asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined symbol 
'ast_speech_grammar_activate'
asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined symbol 
'ast_speech_grammar_deactivate'
asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined symbol 
'ast_speech_start'
asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined symbol 
'ast_speech_change_state'
asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined symbol 
'ast_speech_write'
asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined symbol 
'ast_speech_results_get'
asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined symbol 
'ast_speech_dtmf'
asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined symbol 
'ast_speech_get_setting'
asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined symbol 
'ast_speech_change'
asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined symbol 
'ast_speech_change_results_type'
asterisk:/usr/local/lib/asterisk/modules/app_stasis.so: undefined symbol 
'stasis_app_exec'
asterisk:/usr/local/lib/asterisk/modules/chan_audiosocket.so: undefined symbol 
'ast_audiosocket_connect'
asterisk:/usr/local/lib/asterisk/modules/chan_audiosocket.so: undefined symbol 
'ast_audiosocket_init'
asterisk:/usr/local/lib/asterisk/modules/chan_audiosocket.so: undefined symbol 
'ast_audiosocket_receive_frame'
asterisk:/usr/local/lib/asterisk/modules/chan_audiosocket.so: undefined symbol 

Re: GNUstep back and base in OpenBSD 7.4 ARM

2024-02-04 Thread Peter Hessler
On 2024 Feb 04 (Sun) at 20:17:44 +0800 (+0800), Tito Mari Francis Escaño wrote:
:Hi misc,
:I was hoping to install GNUstep packages in ARM but it seems gnustep-back
:and gnustep-base are not yet available in ARM.
:I was under the impression that these are needed to start basic GNUstep
:development.
:Please advise what options are available to move forward.
:Also addressed to Sebastian Reitenbach.
:Thank you.

Stuart already discussed armv7.  On arm64 gnustep-base simply failed to
build for 7.4-release packages, but it and the rest of gnustep are
building just fine in -current.


-- 
Right now I'm having amnesia and deja vu at the same time.
-- Steven Wright



Re: GNUstep back and base in OpenBSD 7.4 ARM

2024-02-04 Thread Sebastian Reitenbach
Hi,

On Sunday, February 04, 2024 13:17 CET, Tito Mari Francis Escaño 
 wrote:

> Hi misc,
> I was hoping to install GNUstep packages in ARM but it seems gnustep-back
> and gnustep-base are not yet available in ARM.
> I was under the impression that these are needed to start basic GNUstep
> development.
> Please advise what options are available to move forward.
> Also addressed to Sebastian Reitenbach.

I don't have arm around, but if you could test as @sthen advised, or find 
another way to make it 
work, and provide a patch, I'm happy to take it.

Sebastian

> Thank you.



Re: GNUstep back and base in OpenBSD 7.4 ARM

2024-02-04 Thread Stuart Henderson
On 2024-02-04, Tito Mari Francis Escaño  wrote:
> Hi misc,
> I was hoping to install GNUstep packages in ARM but it seems gnustep-back
> and gnustep-base are not yet available in ARM.
> I was under the impression that these are needed to start basic GNUstep
> development.

gnustep's libobjc2 failed to build on arm (32-bit), and afaik all the other 
gnustep
ports directly or indirectly depend on that.

http://build-failures.rhaalovely.net/arm/2023-11-23/x11/gnustep/libobjc2.log

armv7 is not a great development environment on OpenBSD, package builds
are pretty slow (over a month for a bulk build) so there's a slow turnaround
of finding out whether any changes result in breaking things on the arch,
and not many people have machines, so not many people are able to test fixes.

> Please advise what options are available to move forward.

You could try fixing the libobjc2 port, there's a chance that adding -fPIC
to CFLAGS might help.

-- 
Please keep replies on the mailing list.



Re: [answered]Re: how to play bytebeat on openbsd?

2024-02-04 Thread beecdaddict
that does work, then why doesn't this work?
./a.out | sox -r 8000 -c 1 -t u8 - -d
doesn't work
but if uint8_t is changed to int, it works well..
also in sox sounds sounds different compared to say mpv, cannot decide which
is better because I cannot seek forward in sox's play?

can you make music with sox/play alone? you can make guitar sounds with play,
maybe can also somehow write a whole song only in CLI?

#include 
#include 

int main (int argc, char **argv) {
  uint8_t t = 0;
  for (t=0;;t++)
putchar(t*((t>>12|t>>8)&63>>4));
}


On Sat, February 3, 2024 2:58 pm, Nick Owens wrote:
> try piping to
>
> sox -r 8000 -c 1 -t u8 - -d
>
> for example, this should work as a demo:
>
> python3 -c 'import sys; [sys.stdout.write(chr(( t & (t >> 8)) % 256)) for t in
> range(2**19)]' | sox -r 8000 -c 1 -t u8 - -d
>
>
> On Sat, Feb 3, 2024 at 6:20 AM  wrote:
>
>>
>> thank you, stranger!
>>
>> I found so many good C formulas, some sound like they could be used within
>> a game, even has pauses with silence and everything!
>>
>> I had to find out how to use sox, though on another site: `sox -r 8000 -c
>> -t
>> u8 test.raw output.wav`
>>
>> what is weird is that I can't get bytebeats if the `t` is int8_t or
>> something.. doesn't seem like that makes sense, it's like 4 bytes 32-bit,
>> not 1 byte.
>> not sure difference between signed 32, 64 and unsigned, but I tried 16-bit
>> `t`
>> and it's just not it.. am I messing something up?
>>
>> does this only mimic bytebeat, and is not true 8-bit technique to get
>> realistic bytebeat?
>>
>> On Fri, February 2, 2024 9:15 pm, Nick Owens wrote:
>>
>>> back when i used to mess with these, i frequently used `sox` to play the
>>> 8-bit
>>> samples. it can do the sample conversion for you to whatever the system
>>> needs.
>>>
>>>
>>> On Fri, Feb 2, 2024 at 11:08 AM Omar Polo  wrote:
>>>
>>>

 On 2024/02/02 18:41:46 +, beecdadd...@danwin1210.de wrote:


> hello
>
> I've tried for hours to play bytebeat as everyone else
>
>
>
> I cannot find anything on the entire internet
>
>
>
> all I got is `cat a.out >> /dev/speaker)` as root.. a.out is compiled
>  code , a loop and `putchar(t*((t>>12|t>>8)&63>>4));`.. this
> doesn't sound nearly the same as it does to other people it's also
> slow, not fast

 I don't think it makes sense to feed speaker(4) with an executable
 code.


 Haven't seen the code, but based on your description I guess it should
 be more like

 $ ./a.out | doas tee /dev/speaker



 or at least that's my guess, my crystall ball don't always works
 correctly.

>>>
>>>
>>
>>
>>
>
>





GNUstep back and base in OpenBSD 7.4 ARM

2024-02-04 Thread Tito Mari Francis Escaño
Hi misc,
I was hoping to install GNUstep packages in ARM but it seems gnustep-back
and gnustep-base are not yet available in ARM.
I was under the impression that these are needed to start basic GNUstep
development.
Please advise what options are available to move forward.
Also addressed to Sebastian Reitenbach.
Thank you.


Re: Astertisk missing library

2024-02-04 Thread Stuart Henderson
On 2024-02-03, Peter Fraser  wrote:
> Yes
>
> From pkg_info
>
> asterisk-20.5.2 open source multi-protocol PBX and telephony toolkit
...
>>The asterisk on a new system is missing a large number of symbols of the form:
>>
>>ast_sip_* ast_stir_* statis_app*
>>
>>I can't find what is missing, I assume some what a library dependency was 
>>missed, so my other Asterisk on other OpendBSD system are using the old 
>>version

Please show some actual error messages/logs. modules.conf might
be interesting too. Which machine arch are you using? Release or
snapshots?

20.5.2 works for me on a 7.4 amd64 system.

-- 
Please keep replies on the mailing list.