Skip to content

PPKan/my-ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

my-ansible

credits go to ippsec

This is my personal ansible script and other scripts to initialize a new machine.

How to

# upgrade apt and distribution
sudo apt dist-upgrade -y && \
sudo apt update -y && \
sudo apt upgrade -y && \
sudo apt autoremove -y

# change user (optional) (remember to change password afterward) 
sudo useradd -m walnut && \
sudo usermod -a -G kali,adm,dialout,cdrom,floppy,sudo,audio,dip,video,plugdev,users,netdev,bluetooth,scanner,wireshark,kaboxer walnut && \
echo "walnut:walnut" | sudo chpasswd && \
echo /usr/bin/zsh | sudo chsh walnut

# restart and login with new user

# install ansible and git
cd /dev/shm && \
sudo apt install ansible git -y && \
git clone https://github.com/PPKan/my-ansible && \
cd my-ansible && \
ansible-galaxy install -r requirements.yml && \
echo "walnut" | sudo whoami && \
ansible-playbook main.yml 

# install [z4h](https://github.com/romkatv/zsh4humans)
sh zsh4humans.sh

# restart the vm
sudo shutdown -r -t 0

# change the password
sudo passwd walnut

internet configuration

https://forums.kali.org/showthread.php?20846-Troubleshooting-Internet-Network-Access

About

my personal build using ansible

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published