A collection of Bash scripts to play music through the ancient motherboard piezo buzzer (PC Speaker). Turn your o>
These scripts leverage the beep utility to send specific frequencies (pcspkr kernel module.
Follow these steps to enable the sound:
- Install the
beeputility:sudo apt update && sudo apt install beep
in this exemple i use debian,for others distro,check for the package beep
- Enable the PC Speaker module: The buzzer is often blacklisted by default. Load it manually:
Install the beep utility:
sudo modprobe pcspkrTo make this permanent, ensure pcspkr is not listed in /etc/modprobe.d/ blacklist files.
- Permissions:
Depending on your setup, you might need to run these scripts with
sudoto access the hardware clock.
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- Run a melody:
./lagtrain.sh