Skip to content

Instantly share code, notes, and snippets.

@alekssamos
Created July 27, 2021 16:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alekssamos/6e9aaa38b76ec9fcdb5c37cb0f1a870b to your computer and use it in GitHub Desktop.
Save alekssamos/6e9aaa38b76ec9fcdb5c37cb0f1a870b to your computer and use it in GitHub Desktop.
Fix sound Kali linux
#!/bin/bash
## http://helpexe.ru/programmirovanie/kak-vkljuchit-zvuk-v-kali-linux
# Check the script is being run by root
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root"
exit 1
fi
killall pulseaudio
apt-get purge -y pulseaudio pulseaudio-utils gstreamer0.10-pulseaudio paman pavumeter pavucontrol
apt-get install -y alsa-base alsa-tools alsa-tools-gui alsa-utils alsa-oss alsamixergui libalsaplayer0
apt-get install -y kmix
apt-get install -y pulseaudio alsa-utils
apt-get install -y gnome-core
killall pulseaudio
apt-get purge -y pulseaudio pulseaudio-utils gstreamer0.10-pulseaudio paman pavumeter pavucontrol
aplay /usr/share/sounds/alsa/Noise.wav
# Да, в моей конфигурации заработало после удаления, установки и удаления.
@alekssamos
Copy link
Author

alekssamos commented Jul 27, 2021

wget -O kali_sound.sh https://git.io/J4bdi && chmod +x kali_sound.sh && sudo ./kali_sound.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment