Can i make ubuntu server do a system beep when ubuntu is ready to log in











up vote
0
down vote

favorite












So I'm using a ssh conection to log in and I need to know when ubuntu booted and it's ready for log in so I want to hear a beep when I can.










share|improve this question


























    up vote
    0
    down vote

    favorite












    So I'm using a ssh conection to log in and I need to know when ubuntu booted and it's ready for log in so I want to hear a beep when I can.










    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      So I'm using a ssh conection to log in and I need to know when ubuntu booted and it's ready for log in so I want to hear a beep when I can.










      share|improve this question













      So I'm using a ssh conection to log in and I need to know when ubuntu booted and it's ready for log in so I want to hear a beep when I can.







      system






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 15 at 10:19









      Vyctor661

      11




      11






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          Looks you need just to know when ssh is started. I see solution to stop ssh server autorun and make script with 2 steps run ssh + beep command.




          1. Be sure beep is work.


          sudo apt install beep. Then check. If isn't heart beep, run sudo modprobe pcspkr and then beep.





          1. Create script which run ssh and beep (Example: sshrun):



            #!/bin/bash
            update-rc.d ssh defaults
            systemctl enable ssh.socket
            beep



          2. Place the script you want to run in the /etc/init.d directory and make the script executable.



          chmod 755 sshrun



          You need check all steps first in your system environment. And сorrect each if needed.






          share|improve this answer





















          • soo i cant install beep Package beep is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source
            – Vyctor661
            Nov 15 at 12:40










          • That's a different and unrelated question. Look up how to enable the Universe repository.
            – user535733
            Nov 15 at 13:39











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














           

          draft saved


          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1093138%2fcan-i-make-ubuntu-server-do-a-system-beep-when-ubuntu-is-ready-to-log-in%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote













          Looks you need just to know when ssh is started. I see solution to stop ssh server autorun and make script with 2 steps run ssh + beep command.




          1. Be sure beep is work.


          sudo apt install beep. Then check. If isn't heart beep, run sudo modprobe pcspkr and then beep.





          1. Create script which run ssh and beep (Example: sshrun):



            #!/bin/bash
            update-rc.d ssh defaults
            systemctl enable ssh.socket
            beep



          2. Place the script you want to run in the /etc/init.d directory and make the script executable.



          chmod 755 sshrun



          You need check all steps first in your system environment. And сorrect each if needed.






          share|improve this answer





















          • soo i cant install beep Package beep is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source
            – Vyctor661
            Nov 15 at 12:40










          • That's a different and unrelated question. Look up how to enable the Universe repository.
            – user535733
            Nov 15 at 13:39















          up vote
          0
          down vote













          Looks you need just to know when ssh is started. I see solution to stop ssh server autorun and make script with 2 steps run ssh + beep command.




          1. Be sure beep is work.


          sudo apt install beep. Then check. If isn't heart beep, run sudo modprobe pcspkr and then beep.





          1. Create script which run ssh and beep (Example: sshrun):



            #!/bin/bash
            update-rc.d ssh defaults
            systemctl enable ssh.socket
            beep



          2. Place the script you want to run in the /etc/init.d directory and make the script executable.



          chmod 755 sshrun



          You need check all steps first in your system environment. And сorrect each if needed.






          share|improve this answer





















          • soo i cant install beep Package beep is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source
            – Vyctor661
            Nov 15 at 12:40










          • That's a different and unrelated question. Look up how to enable the Universe repository.
            – user535733
            Nov 15 at 13:39













          up vote
          0
          down vote










          up vote
          0
          down vote









          Looks you need just to know when ssh is started. I see solution to stop ssh server autorun and make script with 2 steps run ssh + beep command.




          1. Be sure beep is work.


          sudo apt install beep. Then check. If isn't heart beep, run sudo modprobe pcspkr and then beep.





          1. Create script which run ssh and beep (Example: sshrun):



            #!/bin/bash
            update-rc.d ssh defaults
            systemctl enable ssh.socket
            beep



          2. Place the script you want to run in the /etc/init.d directory and make the script executable.



          chmod 755 sshrun



          You need check all steps first in your system environment. And сorrect each if needed.






          share|improve this answer












          Looks you need just to know when ssh is started. I see solution to stop ssh server autorun and make script with 2 steps run ssh + beep command.




          1. Be sure beep is work.


          sudo apt install beep. Then check. If isn't heart beep, run sudo modprobe pcspkr and then beep.





          1. Create script which run ssh and beep (Example: sshrun):



            #!/bin/bash
            update-rc.d ssh defaults
            systemctl enable ssh.socket
            beep



          2. Place the script you want to run in the /etc/init.d directory and make the script executable.



          chmod 755 sshrun



          You need check all steps first in your system environment. And сorrect each if needed.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 15 at 11:23









          S_Flash

          928117




          928117












          • soo i cant install beep Package beep is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source
            – Vyctor661
            Nov 15 at 12:40










          • That's a different and unrelated question. Look up how to enable the Universe repository.
            – user535733
            Nov 15 at 13:39


















          • soo i cant install beep Package beep is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source
            – Vyctor661
            Nov 15 at 12:40










          • That's a different and unrelated question. Look up how to enable the Universe repository.
            – user535733
            Nov 15 at 13:39
















          soo i cant install beep Package beep is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source
          – Vyctor661
          Nov 15 at 12:40




          soo i cant install beep Package beep is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source
          – Vyctor661
          Nov 15 at 12:40












          That's a different and unrelated question. Look up how to enable the Universe repository.
          – user535733
          Nov 15 at 13:39




          That's a different and unrelated question. Look up how to enable the Universe repository.
          – user535733
          Nov 15 at 13:39


















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1093138%2fcan-i-make-ubuntu-server-do-a-system-beep-when-ubuntu-is-ready-to-log-in%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How to change which sound is reproduced for terminal bell?

          Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

          Can I use Tabulator js library in my java Spring + Thymeleaf project?