Last active
October 20, 2019 12:09
-
-
Save 3m3x/a3e4258c04d63d37cba6ff8a09f4d417 to your computer and use it in GitHub Desktop.
Setup scripts for my Ubuntu workstation
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
#!/bin/bash | |
set -euo pipefail # https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/ | |
mkdir ~/src ~/bin | |
cd ~/src | |
# | |
# General tools | |
# | |
sudo add-apt-repository ppa:neovim-ppa/unstable | |
go get -u github.com/go-delve/delve/cmd/dlv # Delve debugger for Go | |
sudo snap install hub --classic # Github CLI | |
sudo apt install wireshark-gtk \ # Awesome packet capture and analysis | |
ngrep \ # apply grep to the network layer | |
silversearcher-ag \ # a better ack | |
ripgrep \ # better ripgrep | |
fzf \ # real good fuzzy search | |
gcr \ # Colourise CLI application output | |
figlet \ # Print ascii-art depiction of a phrase (for log4bash) | |
# Languages | |
golang \ # Go runtime | |
neovim # better vim | |
# Coloured log output in Bash - very cool | |
wget https://github.com/fredpalmer/log4bash/raw/master/log4bash.sh -O ~/src/log4bash.sh |
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
#!/bin/bash | |
# | |
# SysOps | |
# | |
mkdir /tmp/machine_install | |
cd /tmp/machine_install | |
wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip | |
unzip ngrok-stable-linux-amd64.zip -d ~/bin/ | |
echo -e "Remember to run ./ngrok authtoken <your_token_here>\n" | |
sudo apt install ncdu \ # better than du -sh * | |
iftop \ # To find which socket or process is using bandwidth | |
# Desktop | |
weechat-curses \ # CLI IRC client | |
ttf-mscorefonts-installer \ # Windows fonts | |
ttf-ancient-fonts \ | |
fonts-firacode \ # Nice font for the ol' eyeballs | |
redshift-gtk # Light mode shift (flux-like). | |
# Make sure you have Gnome location services turned on for automatic timezone adjustment | |
# Install Zoho mail client | |
wget https://downloads.zohocdn.com/zmail-desktop/linux/zoho-mail-desktop-x64-v1.0.16.AppImage | |
chmod u+x zoho-mail-desktop-x64-v1.0.16.AppImage | |
./zoho-mail-desktop-x64-v1.0.16.AppImage --appimage-extract | |
mv squashfs-root $HOME/zoho | |
# Don't forget to configure the .desktop file | |
# | |
# Configuration | |
# | |
sudo systemctl stop cups | |
sudo systemctl stop cups-browsed | |
sudo systemctl disable cups | |
sudo systemctl disable cups-browsed | |
sudo update-rc.d nfs-common disable | |
sudo update-rc.d rpcbind disable |
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
#!/bin/bash | |
sudo pip install --upgrade ducktoolkit | |
# Awesome reversing framework | |
git clone https://github.com/radareorg/radare2.git | |
radare2/sys/install.sh | |
# Install tools for hacking on the Rubber Ducky | |
apt-get install dfu-programmer | |
cd /tmp | |
wget https://github.com/hak5darren/USB-Rubber-Ducky/raw/master/Flash/ducky-flasher1.0.zip | |
unzip ducky-flasher1.0.zip | |
cd ducky-flasher1.0 | |
sudo python setup.py | |
cd .. && rm -rf ducky-flasher | |
cd ~/bin | |
wget https://github.com/hak5darren/USB-Rubber-Ducky/blob/master/duckencoder.jar?raw=true | |
echo -e '#!/bin/sh\njava -jar $HOME/bin/duckencoder.jar' > duckencoder | |
chmod 755 duckencoder | |
cd | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment