Last active
September 5, 2024 05:57
-
-
Save glenntnorton/0c97959516ab9be9a1b0d6c4c64aa710 to your computer and use it in GitHub Desktop.
rpi3b-bullseye-build.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/sh | |
# cqpack-bullseye-build.sh | |
# | |
# image: 20230102_raspi_3_bullseye | |
# | |
# initial boot - headless remote | |
# ------------------------------ | |
# 1. add id_rsa.pub to /boot/sysconfig.txt | |
# | |
# 2. change hostname | |
# REMEMBER: RIGHT NOW, YOU ARE STILL ROOT! | |
# | |
# 3. before doing an upgrade, install the 'locales' package (so it stop bitchin') | |
apt-get update && apt-get install -y locales | |
# reconfigure the locales | |
dpkg-reconfigure -locales | |
apt-get update && apt-get install -y upgrade | |
# reboot and quit | |
/sbin/shutdown -r +1 | |
exit | |
# log back in AS ROOT!! | |
# create sudo user | |
adduser xxx | |
usermod -aG sudo xxx | |
# verify | |
getent group sudo | |
apt-get update && apt-get install -y sudo | |
# everything ok? log back in as sudo user | |
# | |
# | |
# install misc. | |
sudo apt-get install console-setup vim tmux zip unzip zsh zsh-autosuggestions zsh-syntax-highlighting manpages man-db | |
# install .vimrc and copy custom colors to /usr/share/vim* | |
# | |
# install git | |
sudo apt-get install git | |
# install Tmux Plugin Manager (https://github.com/tmux-plugins/tpm) | |
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm | |
# install ohmyzsh | |
sh -c "$(wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)" | |
# install recon packages | |
#!/bin/bash | |
sudo apt-get install 0trace amap amass arp-scan arping dmitry dnsenum dnsmap emailharvester etherape fierce fping ike-scan ismtp masscan metagoofil nbtscan ncat netcat netdiscover nmap nmapsi4 onesixtyone p0f python3-shodan recon-ng sherlock smbmap smtp-user-enum snmpcheck spiderfoot ssldump sslh sslscan swaks theharvester wafw00f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment