2018-10-18 15:21:53 -06:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
#Populate root's home folder from /etc/skel
|
2018-10-23 17:21:53 -06:00
|
|
|
cp -rv /etc/skel/. /root/
|
2018-10-18 15:21:53 -06:00
|
|
|
|
|
|
|
#Time to git stuff...
|
|
|
|
cd /root/
|
|
|
|
git clone https://github.com/Veil-Framework/Veil.git
|
|
|
|
git clone https://github.com/leebaird/discover.git
|
|
|
|
git clone https://github.com/trustedsec/ptf
|
|
|
|
|
|
|
|
ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa
|
2018-10-18 18:01:16 -06:00
|
|
|
|
2019-09-27 14:19:09 -06:00
|
|
|
#Enable/disable our desired services
|
2018-10-18 15:21:53 -06:00
|
|
|
systemctl enable ssh
|
|
|
|
systemctl enable cups
|
|
|
|
systemctl enable apache2
|
|
|
|
systemctl enable mysql
|
|
|
|
systemctl enable postgresql
|
2019-10-10 15:10:16 -06:00
|
|
|
systemctl disable tor
|
|
|
|
systemctl disable cockpit.socket
|
2018-11-07 16:40:24 -07:00
|
|
|
systemctl enable xrdp
|
2018-11-07 16:30:35 -07:00
|
|
|
systemctl disable firewalld
|
2019-01-24 14:07:16 -07:00
|
|
|
|
2019-01-24 14:33:28 -07:00
|
|
|
#Allow VLC to run as root
|
|
|
|
sed -i 's/geteuid/getppid/' /usr/bin/vlc
|
|
|
|
|
2019-09-25 15:24:32 -06:00
|
|
|
#Get FTK Imager CLI
|
|
|
|
wget https://ad-zip.s3.amazonaws.com/ftkimager.3.1.1_ubuntu64.tar.gz
|
|
|
|
tar xvf ftkimager.3.1.1_ubuntu64.tar.gz
|
|
|
|
mv ftkimager /usr/bin/
|
|
|
|
rm ftkimager.3.1.1_ubuntu64.tar.gz
|
|
|
|
|
2019-09-24 14:18:33 -06:00
|
|
|
#Install VS Code extensions
|
|
|
|
codium --install-extension abusaidm.html-snippets --user-data-dir=~/.vscode-oss
|
|
|
|
codium --install-extension dbaeumer.vscode-eslint --user-data-dir=~/.vscode-oss
|
2019-09-24 15:28:19 -06:00
|
|
|
codium --install-extension ecmel.vscode-html-css --user-data-dir=~/.vscode-oss
|
2019-09-24 14:18:33 -06:00
|
|
|
codium --install-extension hookyqr.beautify --user-data-dir=~/.vscode-oss
|
|
|
|
codium --install-extension ms-azuretools.vscode-docker --user-data-dir=~/.vscode-oss
|
|
|
|
codium --install-extension ms-python.python --user-data-dir=~/.vscode-oss
|
|
|
|
codium --install-extension ms-vscode.cpptools --user-data-dir=~/.vscode-oss
|
|
|
|
codium --install-extension ms-vscode.csharp --user-data-dir=~/.vscode-oss
|
|
|
|
codium --install-extension ms-vscode.go --user-data-dir=~/.vscode-oss
|
|
|
|
codium --install-extension ms-vscode.powershell --user-data-dir=~/.vscode-oss
|
|
|
|
codium --install-extension rebornix.ruby --user-data-dir=~/.vscode-oss
|
|
|
|
codium --install-extension zignd.html-css-class-completion --user-data-dir=~/.vscode-oss
|
|
|
|
|
2019-09-27 14:19:09 -06:00
|
|
|
#Distro-specific stuff
|
|
|
|
DISTRO=$(cat /etc/lsb-release | grep DISTRIB_ID | cut -c 12-30)
|
|
|
|
|
2019-10-10 15:10:16 -06:00
|
|
|
#Remove CPU-hungry MATE menu applet
|
2019-10-10 15:45:16 -06:00
|
|
|
apt remove mate-applet-brisk-menu -y
|
2019-10-10 15:10:16 -06:00
|
|
|
|
2019-01-24 14:07:16 -07:00
|
|
|
case $DISTRO in
|
|
|
|
Parrot)
|
|
|
|
#Stop ParrotSec from overwriting all our desktop customizations every time parrot-skel updates. >:-(
|
|
|
|
apt-mark hold parrot-skel
|
|
|
|
;;
|
|
|
|
Kali)
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|