I've done dist-upgrade to kali-rolling and had a little sound problem (All sounds from system only like 'echo -en "\a"' kind of sounds didn't work and also from browser - found out afterwards pavucontrol to fix settings to work),

i was also in a hurry and ran a lot of commands as root and non-root (which is the user i work as most of the time and also log as) while trying to fix things and than i found myself within a bigger problem:

I DELETED all kinds of configuration files of pulseaudio and maybe alsa also, I've removed and reinstalled with apt-get any package that had to do with alsa or pulseaudio,

Now pulseaudio doesn't start on boot (i cant get it to work), volume bars from top/right corner don't work, cause of that also pavucontrol cant connect and i cant set the browser's sound on.
Alsa works fine and im changing the volume setting through alsamixer.

These are related commands i ran and tried, extracted from root/non-root (reader user) ~/.bash_history files (im still clueless of how to reverse it all):


ROOT USER
----------

rm -rf /home/reader/.pulse-cookie /tmp/pulse-* /home/reader/.pulse*
killall -9 pulseaudio
pulseaudio --start
su 1000 -c 'pulseaudio --start'
su 1000 '' -c 'pulseaudio --start'
su -c 'pulseaudio --start' 1000
pidof pulseaudio
killall -9 pulseaudio
pidof pulseaudio
su -c 'pulseaudio --start && echo OK' 1000
su 1000
su 1000 1000
ls /home/reader/.config/pulse/
cp /etc/pulse/client.conf /home/reader/.config/pulse/
cd /home/reader/.config/pulse/
ls client.conf -l && chmod 644 client.conf && ls -l client.conf
ls -l | head
chown reader:reader client.conf && ls -l client.conf
vi client.conf
exit
rm -rf /etc/pulse/ && apt-get install pulseaudio
apt-get remove pulseaudio && apt-get install pulseaudio
aptitude install pulseaudio
alsamixer
apt-get install alsamixer
lspci | grep audio
lspci |less
lspci | grep -i audio
apt-get install alsa-base alsa-utils alsa-oss alsa-source alsamixergui alsaplayer-gtk alsaplayer alsaplayer-oss snd-gtk-alsa
apt-get install alsa-base alsa-utils alsa-oss alsamixergui alsaplayer-gtk alsaplayer alsaplayer-
alsamixer
echo -en '\a'
pkill firefox
apt-get install pavucontrol
pkill firefox
apt-get install pavucontrol
pavucontrol
rm alsa
apt-get remove alsa
apt-get remove alsa*
pavucontrol
pkill firefox && reboot
apt-get install alsa-base alsa-utils alsa-oss alsamixergui alsaplayer-gtk alsaplayer alsaplayer-
apt-get install pulse*
apt-get install pulseaudio pulseaudio-module-x11 pulseaudio-utils pulseaudio-module-lirc pulseaudio-module-gconf pulseview
reboot
pavucontrol
exit
amixer -c 0 set Master playback 100% unmute
apt-get intall amixer
pavucontrol
alsamix
alsamixer
apt-get install pulseaudio pulseaudio-module-x11 pulseaudio-utils pulseaudio-module-lirc pulseaudio-module-gconf pulseview
apt-get install alsa-base alsa-utils alsa-oss alsamixergui alsaplayer-gtk alsaplayer alsaplayer-
apt-get install alsa*
apt-get install pulseaudio*
pavucontrol
apt-get remove pulseaudio* alsamixer* && apt-get install alsa* pulseaudio*
pavucontrol
rm -rf /etc/pulse/ && apt-get install pulseaudio
pavucontrol
apt-get remove pulseaudio
aptitude install pulseaudio
apt-get install pulseaudio
pavucontrol
killall -9 pulseauddio
killall -9 pulseaudio
pulseaudio --start
exit
less autogen.sh
exit
./autogen.sh
./configure
less LICENSE
dpkg-reconfigure pulseaudio
pkill firefox && reboot
less ~/.bash_history
apt-get install alsa-base* indicator-sound* libcanberra-pulse* osspd* osspd-pulseaudio* pulseaudio* pulseaudio-module-bluetooth* pulseaudio-module-x11* unity-control-center* unity-control-center-signon* webaccounts-extension-common* xul-ext-webaccounts*
ls /var/lib/pulse

NON-ROOT USER
--------------
pavucontrol
alsa
alsamixer
apt-get install pulseaudio*
pulseview
su -c 'apt-get install pulseaudio*'
pavucontrol
pulseview
pavucontrol
alsamixergui
alsamixer
pkill firefox
pav
pavucontrol
pkill firefox
alsamixergui
pavucontrol
start-pulseaudio-x11
su -c 'start-pulseaudio-x11 '
git clone git://anongit.freedesktop.org/pulseaudio/pulseaudio
pulseaudio/
ls pulseaudio/
cd pulseaudio/
configure
make
make install
less README
pwd
ls /usr/share/
ls /usr/local/
ls /usr/local/bin/
cd ..
cp pulseaudio/ /usr/local/src/
ls /usr/local/src/
su -c 'cp -R pulseaudio/ /usr/local/src/pulseaudio'
ls /usr/local/src/
cd /usr/local/src/pulseaudio/
./autogen.sh
su
cd ..
cd src/pulseaudio/
ls -l
./autogen.sh
su
ls /etc/pulse/
pidof alsa
pidof alsa*
ps aux | grep alsa
pstree | less
ls ~/.config/pulse/
cp ~/.config/pulse/client.conf /etc/pulse/
cp -c 'home/reader/.config/pulse/client.conf /etc/pulse/'
su -c 'cp home/reader/.config/pulse/client.conf /etc/pulse/'
su -c 'cp /home/reader/.config/pulse/client.conf /etc/pulse/'
pulseaudio --start



Any ideas?