Last active
February 11, 2020 23:26
-
-
Save austinsonger/884318fd29ad0171dee9f30b19b841a0 to your computer and use it in GitHub Desktop.
New Ubuntu VM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo -n true | |
sudo apt update -y | |
sudo apt list --upgradable -a | |
sudo apt upgrade -y | |
sudo dpkg --configure -a | |
sudo apt install -f | |
sudo apt update --fix-missing | |
sudo apt --fix-broken install -y | |
sudo apt install apt-transport-https ca-certificates curl software-properties-common -y | |
sudo apt install ubuntu-restricted-extras -y | |
sudo add-apt-repository universe | |
sudo apt-get install -y aptitude vlan reaver pyrit thc-ipv6 netwox nmap phantomjs nbtscan wireshark-qt tshark vlan dsniff tcpdump openjdk-8-jre p7zip openvpn libwebkitgtk-1.0-0 libssl-dev libmysqlclient-dev libjpeg-dev libnetfilter-queue-dev ettercap-text-only ghex pidgin pidgin-otr traceroute lft gparted autopsy subversion git gnupg htop ssh libpcap0.8-dev libimage-exiftool-perl aptitude p7zip-full proxychains curl terminator hydra hydra-gtk medusa irssi gnome-tweak-tool libtool build-essential rdesktop sshfs bzip2 extundelete rpcbind nfs-common gimp iw ldap-utils ntfs-3g samba-common samba-common-bin steghide whois aircrack-ng gnome-screenshot eog laptop-mode-tools openconnect gengetopt byacc flex cmake ophcrack gdb stunnel4 socat chromium-browser swftools hping3 tcpreplay tcpick gufw xtightvncviewer scalpel foremost unrar rar secure-delete yersinia vmfs-tools net-tools gstreamer1.0-plugins-bad freerdp-x11 libxfreerdp-client1.1 qemu-kvm qemu-utils binwalk qemu-system-x86 gvfs-fuse xdg-user-dirs gnome-applets-data gnome-applets git-core autoconf postgresql pgadmin3 screen keepass2 | |
sudo apt-get install -y python-yara python-paramiko python-distorm3 python-beautifulsoup python-pygresql python-pil python-pycurl python-magic python-pyinotify python-configobj python-pexpect python-msgpack python-requests python-pefile python-ipy python-openssl python-pypcap python-dns python-dnspython python-crypto python-cryptography python-dev python-twisted python-nfqueue python-scapy python-capstone python-setuptools python-urllib3 python3-pip python-pip ruby ruby-dev ruby-bundler php7.2-cli php7.2-curl python-notify python-impacket golang-go | |
sudo apt-get install -y libappindicator1 libreadline-dev libcapstone3 libcapstone-dev libssl-dev zlib1g-dev libxml2-dev libxslt1-dev libyaml-dev libffi-dev libssh-dev libpq-dev libsqlite-dev libsqlite3-dev libpcap-dev libgmp3-dev libpcap-dev libpcre3-dev libidn11-dev libcurl4-openssl-dev libpq5 libreadline5 libappindicator1 libindicator7 libnss3 libxss1 libssl1.0.0 libncurses5-dev libncurses5 | |
wget -nc https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
dpkg -i google-chrome-stable_current_amd64.deb | |
rm google-chrome-stable_current_amd64.deb | |
apt-get install rubygems | |
# Snap .# | |
######### | |
sudo apt install snapd | |
sudo snap install firefox --classic | |
sudo snap install chromium --classic | |
sudo snap install slack --classic | |
sudo snap install vscode --classic | |
sudo snap install atom --classic | |
sudo snap install powershell-preview --classic | |
sudo snap install powershell --classic | |
# Remove old package lists # | |
############################ | |
rm -rf /var/lib/apt/lists/* | |
apt-get update | |
## RDP ## | |
######### | |
sudo apt install gdm3 -y | |
sudo sed -i "s/^# AutomaticLoginEnable = true/ AutomaticLoginEnable = true/" /etc/gdm3/custom.conf | |
sudo sed -i "s/^# AutomaticLogin = user1/ AutomaticLogin = root/" /etc/gdm3/custom.conf | |
sudo apt install xfce4 -y | |
sudo apt install xrdp -y | |
sudo adduser xrdp ssl-cert | |
echo xfce4-session >~/.xsession | |
# sudo nano /etc/xrdp/xrdp.ini | |
# exec startxfce4 | |
# nano /etc/xrdp/startwm.sh | |
# #!/bin/sh | |
# if [ -r /etc/default/locale ]; then | |
# . /etc/default/locale | |
# export LANG LANGUAGE | |
# fi | |
# | |
# startxfce4 | |
# sudo systemctl restart xrdp | |
#wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh | |
#chsh -s `which zsh` | |
#cd ~/.oh-my-zsh/themes | |
#wget https://raw.githubusercontent.com/dikiaap/dotfiles/master/.oh-my-zsh/themes/oxide.zsh-theme | |
#wget https://raw.githubusercontent.com/jacqinthebox/arm-templates-and-configs/master/fino-clean.zsh-theme | |
#wget https://raw.githubusercontent.com/agnoster/agnoster-zsh-theme/master/agnoster.zsh-theme | |
#wget https://raw.githubusercontent.com/caiogondim/bullet-train-oh-my-zsh-theme/master/bullet-train.zsh-theme | |
# Go # | |
######### | |
mkdir -p ~/Downloads/gitrepos && cd ~/Downloads/gitrepos | |
wget https://dl.google.com/go/go1.12.9.linux-amd64.tar.gz | |
sudo tar -C /usr/local -xzf go1.12.9.linux-amd64.tar.gz | |
export PATH=$PATH:/usr/local/go/bin | |
# Node/NPM # | |
############ | |
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - | |
sudo apt install -y nodejs npm | |
# Python # | |
########## | |
sudo apt install python-virtualenv python-dev python3-distutils | |
sudo apt install python3-pip | |
sudo pip install virtualenvwrapper | |
# Clean # | |
######### | |
sudo apt autoremove --purge -y | |
sudo apt autoclean -y | |
sudo rm -rf /home/$USER/.local/share/Trash/* | |
sudo find /tmp/ -type f -mtime +1 -exec sudo rm {} \; | |
sudo find /tmp/ -type f -atime +1 -exec sudo rm {} \; | |
sudo apt remove -y | |
sudo apt clean -y | |
sudo apt clean all -y | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment