persistence-podman.txt 591 B

12345678910111213141516171819202122
  1. podman pull docker.io/library/ubuntu
  2. podman run -ti --name ubuntu ubuntu/ubuntu:latest /bin/bash
  3. # install neofetch for test
  4. podman start ubuntu ubuntu
  5. podman exec -ti --privileged ubuntu /bin/bash
  6. # sudo apt update && sudo apt upgrade && sudo apt install sudo (kali-linux-headless - for kali) neovim htop
  7. # setup user:
  8. # adduser {username}
  9. # usermod -aG sudo {username}
  10. podman exec -ti --user {username} --privileged ubuntu /bin/bash
  11. # cd /home/{username}
  12. # echo "zsh" >> .bashrc
  13. # echo "cd /home/{username}" >> .zshrc
  14. podman exec -ti --user {username} --privileged ubuntu /bin/zsh