Navigation

    Netgate Discussion Forum
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    Fun with /dev/speaker

    General pfSense Questions
    3
    11
    180
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      daplumber last edited by

      I've always appreciated pfSense's happy little melody announcing that it finally got to a login prompt or was shutting down.

      So I went looking for a few old tunes from the bad old BASIC days that might be pressed into service as notifications.

      This is my favourite so far:

      echo "E8 E8 F8 G8 G8 F8 E8 D8 C8 C8 E8 E8 E8 D12 D4 E8 E8 F8 C8 G8 F8 E8 D8 C8 C8 D8 E8 D8 C12 C4 D8 D8 E8 C8 D8 E12 F12 E8 C8 D8 E12 F12 E8 D8 C8 D8 P8 E8 E8 F8 G8 G8 F8 E8 D8 C8 C8 D8 E8 D8 C12 C4" >/dev/speaker

      Anyone else got any favorites? I'm thinking of the above if an IDS flags an attack or something.

      provels 1 Reply Last reply Reply Quote 2
      • provels
        provels @daplumber last edited by provels

        @daplumber
        Haha, fun. I bookmarked your original post and finally tried it on my FreeBSD NAS (no speaker in the FW). Is the alpha the note and the numeric the duration?

        EDIT - https://forums.freebsd.org/threads/beep-on-sucessful-bootup.64145/

        D 2 Replies Last reply Reply Quote 0
        • D
          daplumber @provels last edited by

          @provels my understanding is that speaker understands some form of Music Macro LanguageMML

          Yes, it’s note followed by duration as a fraction of a note.

          1 Reply Last reply Reply Quote 0
          • D
            daplumber @provels last edited by

            @provels BTW a lot of boards don’t have piezo speakers on the board, but do have a pair of header pins and a piezo speaker runs a couple of bucks on Amazon etc.

            provels 1 Reply Last reply Reply Quote 0
            • provels
              provels @daplumber last edited by

              @daplumber
              Reminds of my old days with DOS 3.1 on my IBM clone. Thanks for the wiki link. Now to compose the "Office" theme...

              D 1 Reply Last reply Reply Quote 0
              • D
                daplumber @provels last edited by

                @provels ooh, cool. Maybe the theme from “The Equalizer” too? ;-)

                provels 1 Reply Last reply Reply Quote 0
                • provels
                  provels @daplumber last edited by provels

                  @daplumber
                  Trying to find an online convertor for MIDI to MML, but the output does not resemble your original post. 🤷 Obvs, too many < > < < ...

                  2b994234-327b-4122-a349-c92f5ce2e095-image.png

                  D 1 Reply Last reply Reply Quote 0
                  • D
                    daplumber @provels last edited by

                    @provels Do see spkr (4) for the exact syntax supported.

                    1 Reply Last reply Reply Quote 1
                    • stephenw10
                      stephenw10 Netgate Administrator last edited by

                      Yeah, you need quotes around it.
                      spkrtest(8) is also included for further fun. 😉

                      Steve

                      provels D 2 Replies Last reply Reply Quote 1
                      • provels
                        provels @stephenw10 last edited by

                        @stephenw10
                        Haha, stupid server tricks! Gotta love it.
                        c1d73508-51ff-4663-b1b2-8fb3ed55c6d4-image.png

                        1 Reply Last reply Reply Quote 1
                        • D
                          daplumber @stephenw10 last edited by

                          @stephenw10 said in Fun with /dev/speaker:

                          spkrtest(8)

                          I can't believe I missed this! Thanks!

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post

                          Products

                          • Platform Overview
                          • TNSR
                          • pfSense
                          • Appliances

                          Services

                          • Training
                          • Professional Services

                          Support

                          • Subscription Plans
                          • Contact Support
                          • Product Lifecycle
                          • Documentation

                          News

                          • Media Coverage
                          • Press
                          • Events

                          Resources

                          • Blog
                          • FAQ
                          • Find a Partner
                          • Resource Library
                          • Security Information

                          Company

                          • About Us
                          • Careers
                          • Partners
                          • Contact Us
                          • Legal
                          Our Mission

                          We provide leading-edge network security at a fair price - regardless of organizational size or network sophistication. We believe that an open-source security model offers disruptive pricing along with the agility required to quickly address emerging threats.

                          Subscribe to our Newsletter

                          Product information, software announcements, and special offers. See our newsletter archive to sign up for future newsletters and to read past announcements.

                          © 2021 Rubicon Communications, LLC | Privacy Policy