Does anyone know how to setup Debian to get the beep() command to work?
it has a message in the logviwer
Could not open /dev/console
Not sure what it is looking for in terms of devices? The help for beep() does not mention anything nor does the Linux install notes.
thanks,
Todd Malone
beep() on linux
Search
Re: beep() on linux
I tried to install beep from debian
apt install beep
but that seems to be an OS level function
apt install beep
but that seems to be an OS level function
Re: beep() on linux
Maybe you can use the function startSound() instead of beep() if you want to play a sound.
Best Regards
Leopold Knipp
Senior Support Specialist
Best Regards
Leopold Knipp
Senior Support Specialist
-
- Posts: 373
- Joined: Tue Jan 15, 2019 3:12 pm
Re: beep() on linux
Is the console device not on your system? Or does the user not have rights to use the console device?
Re: beep() on linux
we need beep() to work on linux.
@gschijndel I use Linux about every 3-4 years, maybe you can give me a command to try to know about Console device, that is what the error message reference; NoPosix::beep():, Could not open /dev/consol
Since this is a standard OA function, I assume it is part of the install, or would make recommendations about additional install packages
Todd
@gschijndel I use Linux about every 3-4 years, maybe you can give me a command to try to know about Console device, that is what the error message reference; NoPosix::beep():, Could not open /dev/consol
Since this is a standard OA function, I assume it is part of the install, or would make recommendations about additional install packages
Todd
-
- Posts: 373
- Joined: Tue Jan 15, 2019 3:12 pm
Re: beep() on linux
The /dev/console is the system console, which is managed by the kernel nowadays. In the past it was a symbolic link.
Guess the beep function uses KDMKTONE to generate the beep and would work on '/dev/tty'.
I do not have a trick nor workaround to get it to work. The only way I see to get it to work is opening a support ticket and wait on a fix.
On my systems 'ls -l /dev/console' showed that only the root user has permission, but everybody has permission on '/dev/tty'.
Guess the beep function uses KDMKTONE to generate the beep and would work on '/dev/tty'.
I do not have a trick nor workaround to get it to work. The only way I see to get it to work is opening a support ticket and wait on a fix.
On my systems 'ls -l /dev/console' showed that only the root user has permission, but everybody has permission on '/dev/tty'.
Re: beep() on linux
case opened, I will update here when I find out
Re: beep() on linux
Does startSound() work on your machine?
If this one works you can use it instead of beep.
If you cannot use startSound() please describe in detail what functionality you want to achieve.
Best Regards
Leopold Knipp
Senior Support Specialist
If this one works you can use it instead of beep.
If you cannot use startSound() please describe in detail what functionality you want to achieve.
Best Regards
Leopold Knipp
Senior Support Specialist