notes/My Default setup 2015-Q0LrcrXk.sh
user=metalx1000
adduser $user
apt-get install aptitude xorg xfce4 xclip vim xfce4-whiskermenu-plugin dos2unix gpm git task-xfce-desktop
service gpm start
apt-get install nmap gimp ffmpeg mplayer midori ettercap-text-only wireshark xfce4-power-manager sudo xpdf xfce4-goodies gpm libcurl3 libnss3-1d zsh
apt-get install pulseaudio paprefs pulseaudio-module-jack pavucontrol paman alsa-tools-gui jackd alsa-utils
apt-get install iceweasel midori cups axel xinput hexedit binwalk
apt-get install kdenlive blender terminator zynaddsubfx libappindicator1 imagemagick
apt-get install mtp-tools mtpfs #For Android and other MTP storage devices
wget -O .screenrc http://git.grml.org/f/grml-etc-core/etc/grml/screenrc_generic
wget -O .vimrc http://git.grml.org/f/grml-etc-core/etc/vim/vimrc
wget -O .zshrc http://git.grml.org/f/grml-etc-core/etc/zsh/zshrc
#make zsh default shell
chsh -s /bin/zsh root
chsh -s /bin/zsh $user
vim /etc/hosts
#set default from IPv6 to IPv4 for programs such as aptitude and wget
#uncomment the line "precedence ::ffff:0:0/96 100" /etc/gai.conf
echo 'precedence ::ffff:0:0/96 100' >> /etc/gai.conf
ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime
/sbin/hwclock --systohc
#chrome browser
#wget "https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb" -O /tmp/chrome.deb
wget "https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb" -O /tmp/chrome.deb
dpkg -i /tmp/chrome.deb
#apt-get -f install
adduser $user sudo
visudo
usermod -a -G pulse,pulse-access,vboxusers,dialout $user
#add these lines to /etc/pulse/default.pa
load-module module-jack-sink
load-module module-jack-source
vim /etc/pulse/default.pa
apt-get install apache2 mysql-server phpmyadmin
mkdir ~/www
ln -s ~/www /var/www/html/$user
#shortcut for menu popup
xfce4-popup-whiskermenu
#XFCE and pulseaudio volume controls
#amixer -D pulse sset Master 5%+
#amixer -D pulse sset Master 5%-
#amixer -D pulse set Master Playback Switch toggle
pactl set-sink-volume @DEFAULT_SINK@ -10% #Down 10%
pactl set-sink-volume @DEFAULT_SINK@ +10% #Up 10%
pactl set-sink-mute @DEFAULT_SINK@ toggle
#then set Jack as fallback in Pulseaudio volume manager by clicking green check mark
syntax highlighted by Code2HTML, v. 0.9.1