Fix Sound not Working In Kali Linux | pulseAudio| No Root

Hello friends, in today's article, I'm gonna show you how to fix the audio problem in Kali Linux, if you're able to recall, I made an article previously on how to install kali linux on android, and since then it's come to my attention that the audio server in Kali Linux doesn't function, therefore not allowing the OS to properly display audio as it should.

The solution to that problem is pulseAudio.

What is pulseAudio 

PulseAudio is a sound server system for POSIX OSes, meaning that it is a proxy for your sound applications. It is an integral part of all relevant modern Linux distributions and is used in various mobile devices, by multiple vendors. It performs advanced operations on sound data as it passes between your application and hardware. Things like transferring audio to a different machine, changing the sample format or channel count, or mixing several sounds into one input/output, are easily achieved using PulseAudio.

How To Install pulseAudio And Fix sound?

First of all update termux packages, to do that type the command : 
  • pkg update
After that we install pulseaudio in Termux.
  • pkg install pulseaudio
Once the pulseaudio is installed then we have to configure it to do that type the command :
  • nano $PREFIX/etc/pulse/default.pa
Add the following line in the file as shown in the picture below.
  • load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1 auth-anonymous=1
Now we have to edit daemon file, to do that, type the command:
  • nano $PREFIX/etc/pulse/daemon.conf
change 

 exit-idle-time = 20
            to  
exit-idle-time = -1" 

as shown in the picture below


now to the final configuration, on your home page type the command :
  • nano ../usr/bin/sound
paste the text below in the sound file :
  • pulseaudio --start --load="module-native-protocol-tcp auth-ip-acl=127.0.0.1 auth-anonymous=1" --exit-idle-time=-1
after that give storage access to sound by typing the command :
  • chmod +x ../usr/bin/sound
now we start PulsAudio by typing the command :
  • sound
Now start Kali and just execute the following command before playing any video or audio file. Enter this command inside Kali terminal before starting your Gui
  • export PULSE_SERVER=127.0.0.1
and when you start your Gui with the kex command your audio should work perfectly fine. You can always launch pulseAudio again by typing sound in termux terminal and export PULSE_SERVER=127.0.0.1 in Kali terminal 

Watch The  video Tutorial Here:



Post a Comment

Previous Post Next Post