Skip to content

Kanjurito/Beep-music-linux

Repository files navigation

Beep-music-linux

A collection of Bash scripts to play music through the ancient motherboard piezo buzzer (PC Speaker). Turn your o>

How it Works

These scripts leverage the beep utility to send specific frequencies ($Hz$) to the pcspkr kernel module.

Prerequisites

Follow these steps to enable the sound:

  1. Install the beep utility:
    sudo apt update && sudo apt install beep

in this exemple i use debian,for others distro,check for the package beep

  1. Enable the PC Speaker module: The buzzer is often blacklisted by default. Load it manually:

Install the beep utility:

sudo modprobe pcspkr

To make this permanent, ensure pcspkr is not listed in /etc/modprobe.d/ blacklist files.

  1. Permissions: Depending on your setup, you might need to run these scripts with sudo to access the hardware clock.

Usage

Clone the repository and make the scripts executable:

git clone https://github.com/Kanjurito/Beep-music-linux.git
cd Beep-music-linux.git
chmod +x *.sh
  1. Run a melody:
    ./lagtrain.sh

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages