×
Create a new article
Write your page title here:
We currently have 3,189 articles on s23. Type your article name above or create one of the articles listed here!



    s23
    3,189Articles

    HowTo/LiveWithoutSoundcard: Difference between revisions

    Content added Content deleted
    imported>mutante
    imported>mutante
    mNo edit summary
     
    (2 intermediate revisions by the same user not shown)
    Line 1: Line 1:
    === How to live without a soundcard ===

    Dont have a (working) [[soundcard]] but need a few signals, like a beep when a message arrives in your [[jabber]] client , a highlight in your [[irc]] client or when [[email]] arrives?
    Dont have a (working) [[soundcard]] but need a few signals, like a beep when a message arrives in your [[jabber]] client , a highlight in your [[irc]] client or when [[email]] arrives?


    Line 4: Line 6:


    Then you can make a [[shell]] script, for example in [[bash]], create a new text file ''beep.sh'' with any [[text editor]] like [[vi]] or [[joe]].
    Then you can make a [[shell]] script, for example in [[bash]], create a new text file ''beep.sh'' with any [[text editor]] like [[vi]] or [[joe]].

    === Beep.sh ===


    <pre>
    <pre>
    Line 19: Line 23:


    check out details on [http://seth.positivism.org/man.cgi/beep man beep].
    check out details on [http://seth.positivism.org/man.cgi/beep man beep].



    Play with the options, you could even compose your own [[:Category:Music|music]] with this ;)
    Play with the options, you could even compose your own [[:Category:Music|music]] with this ;)

    === Even without beep program ===

    If you dont want to use the ''beep'' program, you can even live without that, using:

    echo -e "\007" >/dev/tty10

    And on [[Windows]] (type Ctrl-G for the ^G):

    echo "^G"


    === Use executable script as player command ===


    When finished you make the ''beep.sh'' executable through:
    When finished you make the ''beep.sh'' executable through:
    Line 39: Line 55:


    [http://seth.positivism.org/man.cgi/beep Manual for beep (man beep)]
    [http://seth.positivism.org/man.cgi/beep Manual for beep (man beep)]



    [[Category:Computer]]
    [[Category:Computer]]
    [[Category:HowTo]]
    [[Category:HowTo]]
    [[Category:Linux]]

    Latest revision as of 12:02, 6 March 2005

    How to live without a soundcard[edit]

    Dont have a (working) soundcard but need a few signals, like a beep when a message arrives in your jabber client , a highlight in your irc client or when email arrives?

    In Debian, get apt-get install beep. In other Linux distributions or other OSes, install beep manually.

    Then you can make a shell script, for example in bash, create a new text file beep.sh with any text editor like vi or joe.

    Beep.sh[edit]

    #/bin/bash
    
    beep -f 523 -l 300
    beep -f 10000 -l 500
    beep -f 880 -l 1000
    ...
    
    -f is the frequency of the tone in Hertz
    
    -l is the duration of the tone in millisecond
    

    check out details on man beep.

    Play with the options, you could even compose your own music with this ;)

    Even without beep program[edit]

    If you dont want to use the beep program, you can even live without that, using:

    echo -e "\007" >/dev/tty10
    

    And on Windows (type Ctrl-G for the ^G):

    echo "^G"
    


    Use executable script as player command[edit]

    When finished you make the beep.sh executable through:

    chmod +x beep.sh
    

    and finally you can enter something like

    /home/yourname/beep.sh 
    

    as the player command in the settings of your Psi jabber client or according application that allows setting a custom player command on incoming events.


    Links[edit]

    Beep for Linux and Windows

    Manual for beep (man beep)

    Cookies help us deliver our services. By using our services, you agree to our use of cookies.
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.