Advertisement
nu11secur1ty

pulseaudio.sh

Sep 14th, 2016
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.90 KB | None | 0 0
  1. #!/usr/bin/bash
  2. # nu11secur1ty - http://nu11secur1ty.blogspot.com/
  3. # Taken from: https://github.com/nu11secur1ty/pulseaudio
  4.  
  5.  
  6.  
  7. ##### Running pulseaudio autostart ~ gui desktop audio
  8. echo -e "\n\e[01;32m[+]\e[00m Preparing pulseaudio"
  9.          file=/usr/local/bin/pulseaudio.sh; [ -e $file ] && cp -n $file{,.bkup}
  10. echo -e '#!/bin/bash\ntimeout 10 pulseaudio -D\nsleep 15\exit 0;' > $file
  11. chmod 0500 $file
  12. mkdir -p /root/.config/autostart/
  13.          file=/root/.config/autostart/pulseaudioscript.sh.desktop; [ -e $file ] && cp -n $file{,.bkup}
  14. echo -e '\n[Desktop Entry]\nType=Application\nExec=/usr/local/bin/pulseaudio.sh\nHidden=false\nNoDisplay=false\nX-GNOME-Autostart-        enabled=true\nName[en_US]=pulseaudio\nName=pulseaudio\nComment[en_US]=\nComment=' > $file
  15.       sleep 5;
  16. echo "After reboot your system everything will be ok with your audio controller. Have fun with nu11secur1ty -;)"
  17. exit 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement