Created
July 27, 2021 16:43
-
-
Save alekssamos/6e9aaa38b76ec9fcdb5c37cb0f1a870b to your computer and use it in GitHub Desktop.
Fix sound Kali linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
# Да, в моей конфигурации заработало после удаления, установки и удаления. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
wget -O kali_sound.sh https://git.io/J4bdi && chmod +x kali_sound.sh && sudo ./kali_sound.sh