Debian Programming :: Play Beep / Alert Sound When Somebody Joins LAN
Aug 23, 2013
Code handy which could play a beep/alert sound when somebody (any user) joins your LAN. Or as second-hand choice, if this is too hard, to play a beep when X terminal windows writes some output lines.
After nhandlers IRC session on ubuntu user days, I got inspired to check out irssi. One thing that I am having trouble with is getting irssi to play an alert sound of some sort when my nick is highlighted. I've tried this:
So I believe that I should get some kind of beep sound but I'm not. I'm running irssi on byobu and using Karmic Koala. Please, I welcome all of your advice about irssi even if it is not "on topic"
How might i be able to play a small blip/beep sound to let me hear/test the audio levels upon volume change? Mac OSX users may know what I'm talking about. I had a similar application in windows. It helps me guage my volumes before i play games/...../videos.
I'm trying to make my own BASH script for alerting low battery. It's working well, but it simply show messages, whether the state is 'Discharging' or 'Charging'.
Ubuntu 10.04. I want to change the startup sound and the mail alert sound (incoming mail) for Evolution Mail Client. I go to System > Preferences > Sound, and all I get are themes preset. I do not have option to browse to wav files. I also do not see a browse option in Email Settings. Do I have to change an actual file?
I'm having trouble getting ALSA to play multiple sound streams (multiple sounds at once). My code is running on an embedded ARM board using a AC97 sound. It will only play one without any mixing, I have to use pure ALSA as higher sound mixers are a nightmare to cross compile for ARM. I've tested my system with aplay for example
aplay -D plughw:0,1 bang.wav
works fine. So I tried dmix with
aplay -D plug:dmix Win.wav
That gave the following error
ALSA lib pcm_direct.c:1587snd_pcm_direct_parse_open_conf) The field ipc_gid must be a valid group (create group audio) aplay: main:550: audio open error: Invalid argument
I checked asound with
/etc # cat asound.conf pcm.EP93XX { type hw
[code]....
Does this mean dmix will not work? Is there someway with the above setup I can play multiple sounds? I have to use the vendor ALSA build (so can't update ALSA), I can change the .confs however. Also because I'm cross compiling things like pulseaudio SDL are very difficult to get working, so I basically need to use the above ALSA. Is there anyway I can find if dmix exists on the system?
Should add aplay -L does show dmix ? iec958 'cards.pcm.iec958' spdif 'cards.pcm.iec958'
This may seem like a stupid question (if not completely ridiculous ), but I was wondering if there's a way to configure audio events so that I can use a wav/ogg sound instead of the PC speaker's default beep for small events like hitting backspace in a text editor when it's the beginning of the document (or any other illegal keyboard action), or in Wine applications when it calls for an "asterisk" sound (it just beeps the PC speaker).
I've looked at similar threads, but they mainly just talk about either the beeps that the machine does when it boots up, or simply turning off the beeping completely. What I want to do is substitute the beeps (that are caused by the OS) for an actual sound that's played through the ALSA/OSS/whatever audio device.
I'm trying to figure out what in the world is going on with my sound in OpenSuSE. I put in a brand new Audigy chipset soundcard and finally got some sound to come out of the speakers. I used the guide here: SDB:AudioTroubleshooting - openSUSE. to fix the permissions on my sound and am able to get sound-test to play sounds as well as connect to the sound device in my vmware and play sounds. That being said, I have terrible sound quality coming out. There is a lot of static sound like white noise and the volume of the actual sound played is very low compared to the noise. The sounds also distort somewhat.
I have tried the pulse audio change in the tutorial above also and have been searching around google. The only problem that I saw similar was a person who fixed the problem by updating KDE. I don't have KDE, I'm using Afterstep.
I have learned a bunch about Ubuntu in the last few days but I am stuck now. I can't get a wav file I selected for new mail to play in fact the default one either. My sound is fine otherwise. Other files play OK. I have googled and wore my fingers up to the knuckle and still haven't found a clear solution. One poster even said Ubuntu does not allow a file other than the system ones. I can't accept that. If it wasn't possible why is the option there to select your own wav file?
just installed Lucid 64-bit. everything running smoothly including the sound except no system beep from PC speaker. system beep is enabled in system -> preferences -> sound. What else can I try? I'm dual booting with Hardy and system beep works fine in Hardy.
I tried to follow the instruction here: [URL]. But I failed at step 3 because there is no dropdown box on the linked page. One test command I found online returns errors: cat /dev/sndstat Sound Driver:3.8.1a-980706 (ALSA v1.0.20 emulation code) Kernel: Linux mary 2.6.30-bpo.2-686 #1 SMP Fri Dec 11 18:12:58 UTC 2009 i686 Config options: 0 Installed drivers: Type 10: ALSA emulation Card config: HDA Intel at 0xf3300000 irq 22 Audio devices: NOT ENABLED IN CONFIG Synth devices: NOT ENABLED IN CONFIG Midi devices: NOT ENABLED IN CONFIG Timers: 7: system timer Mixers: NOT ENABLED IN CONFIG
I've been using my girlfriend's Mackbook Pro and really like the beep sound when pressing backspace at a command prompt and really would like to have it on my ubuntu. However, I've checked "Terminal bell" option in the profile settings, but there is still no beep sound. What am I missing here?
I have the following problem with xterm on vnc on opensuse 11.4. I start a vncserver, and then inside that session I start xterm. However, if the xterm emits a beep/bel/ascii 7 then the sound comes out on the machine on which the *server* is running. Every other installation I've used has the sound come out on the viewer end (which is what you'd expect and want).
ok so a while ago i updated ubuntu and the sound stopped working. i cant hear anything now not even a system beep - i tried the Comprehensive Sound Problem Solutions Guide by LordRaiden but to no success. i tried alsamixer and all that to check its muted, and its not.
so I have vlc 1.0.4 and when I try to play .flv files they won't load and when I try to play .mp4 files they play but after 1 or 2 vidoes there is no sound at all. I can get sound form other applications such as amsn and ice weasel when it happens
I have a Macbook 5,2, on which I'm triple booting OS X - Linux - Windows, using bootcamp and rEFIt.I had a variation of Ubuntu 10.04 called Uber Student as the linux installation.I installed Ubuntu 11.04 AMD64 instead, by choosing the EFI boot option.Now this gave me some problems. When I shot down, the Macbook gives me a troubling long beep sound.When I start up, I'm still able to boot up into rEFIt and Grub2, but there is a big delay with the screen being black for about 30 seconds and the little white light in the left corner of the Macbook is blinking feverishly. I read something about a guy which had a similar problem and the process seemed to mess up the firmware on his Macbook, so he had to have his MB changed.
What's up with the scary beep sound and the long boot up delay?Secondly, when I want to do an update of the Ubuntu system, the update manager asks me to do a partial upgrade, which includes removing the grub-EFI, resulting in a system that won't boot...
As you know,whenever user turns the PC on,a beep sound is heard,then the bios starts,but recently this beep sound doesn,t come out of the case,and,so the bios does not start(nothing seen on the screen),then i have to hard reboot several times,and mostly,i have to shut down for some seconds to remove this problem,also sometimes this beep sound comes out but repeatedly for many times.
I am suspicious about the shut down button,because it,s a long time that this button usually is blinking.
I have been trying to play this game dawn-rpg.sourceforge.net and it immediately crashes whenever I try to play sounds. The only other sound in this system I have are the sounds for the bash/dash terminal.
So my questions are:-
a. How do I test if the sound system is working alright. b. Do I need to increase some kind of priorty/niceness to sound systems to make sure they get the available resources (cpu, memory ) whatever it needs ?
On the same topic, while I was searching on the Net I got this link http://rosegardenmusic.com/wiki/low-latency_kernels .
I know this is actually for people who want to make sounds/music but can some of these ideas/instructions be useful for me as well ?
I've been having some issues with my sound card since I cannot play a sound with my current user. As a root user I can play sounds with "aplay" but as my regular user, I can't play anything
# aplay file.wav ALSA lib confmisc.c:768:(parse_card) cannot find card '0' ALSA lib conf.c:4154:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4154:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name ALSA lib conf.c:4154:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:4633:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM default aplay: main:564: audio open error: No such file or directory
# sudo aplay file.wav Playing WAVE 'file.wav' : Signed 16 bit Little Endian, Rate 8000 Hz, Mono
I have add my user to the audio group with no success usermod -a -G audio myuser
After installing an external sound card, Im having some weird issues. The cards chipset is fully supported by suse, (CM8738) so I dont think thats the problem. Besides, I'm getting sound, but not in some applications. The system's sounds work just fine (login, logout themes) amarok plays without any problems, kaffeine, mplayer they all work flawlessly, in fact I can see the difference in quality between the onboard sound and my new card. However, no web browser is able to play any sound at all, firefox, opera or chrome, nothing,zip. Plus, vlc cant reproduce sound either, nor can smplayer.
I've tried switching channels on and off(muting)in kmixer and in alsamixer, on the console, with no results. I disabled the onboard audio on the bios before installing the new card, however my ati video card has integrated sound, which I cant disable.... I used to get this exact same problem randomly with the onboard sound, but I just had to go to kmixer and turn up the "pcm" channel volume, which was set to 0, and I had sound again on my browser. However this card's pcm channel is at max and turning it up or down affects the whole systems volume, not just the browser's. Is it better to just reinstall the sound system, if so how could I do that.
I have a little problem about string in Snort alerting. I understood about Snort alerting saved in /var/log/snort/alert and Snort will add a new entry if there was a attack from anywhere. Then here's my problem. Because it has a lot of file on it, all I want to do is parse that string in snort alert then make into simply log files with it. I'm getting confused with Snort alert and parse that file.
Here's the simple algorithm; Snort get the alert <- parse the alert with my parameter which I've configured with bash (ip address, dest, kind of attack and time) <- then sent that parse alert into new text (let's called snortsent.txt) <- after ten alerts then clear the text then waiting again until the Snort alert go on -> back to snort alert. Here's the sample of my snort alert: (/var/log/snort/alert)
I've been using Linux for about a week, now, and yesterday I finally got my audio to work. Before shutting-down yesterday, I installed some more audio-plugins. When I started-up my computer today, there were errors in the console-text that appears while the Debian Linux OS is loading. When I got to the desktop, I tried to play music, but no sound came-out. So, I tried to uninstall the plugins I installed yesterday and restarted. I got similar errors in the console-text as earlier. When my desktop loaded, I still had no sound. I had several problems with the entire sound architecture of the computer. I made some more changes in the application-download-manager-thingy and restarted and I no longer got the errors at boot-time.
Unfortunately, I still have absolutely no sound, and it appears as if ALSA is effectively dead. My soundcards are Rocketfish (PCI) and Realtek HD Audio (Integrated). I got Realtek to work yesterday with OSS.
Another problem is that WINE doesn't work, with the exception of WINE's default programs. I've been trying to get this thing to work for at least four days now, and I've made absolutely no progress...
Also, after fighting with it for a few days, I finally managed to get the internet to work, but Linux still thinks that I'm offline. It's really weird. This one's not so much of a problem as it is annoying. In addition, if I click-on the network-manager-thingy, it says that none of my connections have ever been used. Odd.
I learn from many experts online, and finally it works but still happens some sharing problems that I can handle it in different way. Here is what I have, and hopefully we can share what we have successed: -Sles Linux 11.3 installed, Samba 3.5.4 server configured and started, no DNS or LDAP installed.
-added to smb.conf: client ntlmv2 auth = yes wins support = Yes wins proxy = No lanman auth = yes
[Code]...
Reboot and now Win7 can join the domain, but with an error message about can't change the domain name to... but I just ignore it, and it works OK with any shared folders, the same way for WinXP. The only problem is that it won't map the logon drive P: but I can apply the "logon.bat" instead. However, I don't understand all of what I have done to make it work as I just copied from other experts.
When I had Lenny installed I made this computer be my alarm clock (with sanduhr) to wake me up for school in addition to my mom's TV (because I am a heavy sleeper) and now I cannot use this computer to do so. I'm not saying it's a bug. I'm just asking, how do I enable it again? I know that with Lenny to enable/disable beeping, I went to System=>Preferences=>Sound but now I don't see how to make beeping work again.