From bbf27fb75d0e1ea6856057857b9267d7fb5c6cb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristian=20Cezar=20Mois=C3=A9s?= Date: Sun, 20 Oct 2024 20:14:54 +0000 Subject: Upload files to "/" --- README.md | 18 ++++++++++++++++-- exherbo.sh | 1 + fedora.sh | 1 + kali.sh | 1 + novnc.txt | 22 ++++++++++++++++++++++ tutorial.txt | 12 ++++++++++++ void.sh | 1 + 7 files changed, 54 insertions(+), 2 deletions(-) create mode 100644 exherbo.sh create mode 100644 fedora.sh create mode 100644 kali.sh create mode 100644 novnc.txt create mode 100644 tutorial.txt create mode 100644 void.sh diff --git a/README.md b/README.md index 6b72a85..cab1d35 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,17 @@ -# dockervm +# DOCKERVM +Just some docker commands to use docker like VmWare/Virtualbox -Docker VM \ No newline at end of file +![image](https://github.com/cristiancmoises/dockervm/assets/86272521/ab87b45c-4139-4f58-b0da-04811fba3a46) + +# ACCESS THE SYSTEM IN THE CONTAINER + docker run -it IMAGE_ID_HERE /bin/bash +# START ALL STOPPED CONTAINERS + docker start $(docker ps -a -q --filter "status=exited") +# RUN THE LAST STOPPED CONTAINER: + docker start -a -i 'docker ps -q -l' +# LIST ALL IMAGES + docker images +# LIST ALL CONTAINERS + docker ps -a +# RE-ACCESS THE SYSTEMS + docker exec -it CONTAINER_ID_HERE /bin/bash diff --git a/exherbo.sh b/exherbo.sh new file mode 100644 index 0000000..b1690cd --- /dev/null +++ b/exherbo.sh @@ -0,0 +1 @@ +docker pull exherbo/exherbo-x86_64-pc-linux-gnu-base diff --git a/fedora.sh b/fedora.sh new file mode 100644 index 0000000..78d42af --- /dev/null +++ b/fedora.sh @@ -0,0 +1 @@ +docker pull fedora diff --git a/kali.sh b/kali.sh new file mode 100644 index 0000000..64efe5c --- /dev/null +++ b/kali.sh @@ -0,0 +1 @@ +docker pull kalilinux/kali-bleeding-edge diff --git a/novnc.txt b/novnc.txt new file mode 100644 index 0000000..6fb2ef1 --- /dev/null +++ b/novnc.txt @@ -0,0 +1,22 @@ +# GRAPHICAL INTERFACE +apt install xfce-desktop xorg -y +# CONFIGURE A PASSWORD FOR ROOT ON KALI +passwd +# FIREWALL - HOST CONFIG +iptables -A INPUT -i docker0 -j ACCEPT +# CONFIG FOR KALI LINUX +apt update && apt upgrade && apt install novnc x11vnc tigervnc-standalone-server dbus-x11 python-py python3-pip -y +# NUMPY INSTALL +user > pip install numpy +user > pip3 install numpy +# START DBUS +dbus-launch +# START VNCSERVER +vncserver +# START NOVNC +/usr/share/novnc/utils/novnc_proxy --listen 8081 --vnc localhost:5900 +# ACESS VIA BROWSER +CONTAINER_IP:8081/vnc.html +# THAT'S ALL :) +# FIX SOME HOSTNAME BUGS +echo $(hostname -I | cut -d\ -f1) $(hostname) | sudo tee -a /etc/hosts diff --git a/tutorial.txt b/tutorial.txt new file mode 100644 index 0000000..383e6da --- /dev/null +++ b/tutorial.txt @@ -0,0 +1,12 @@ +# ACCESS THE SYSTEM IN THE CONTAINER +docker run -it IMAGE_ID_HERE /bin/bash +# START ALL STOPPED CONTAINERS + docker start $(docker ps -a -q --filter "status=exited") +# RUN THE LAST STOPPED CONTAINER: + docker start -a -i 'docker ps -q -l' +# LIST ALL IMAGES + docker images +# LIST ALL CONTAINERS + docker ps -a +# RE-ACCESS THE SYSTEMS + docker exec -it CONTAINER_ID_HERE /bin/bash diff --git a/void.sh b/void.sh new file mode 100644 index 0000000..e79cd9f --- /dev/null +++ b/void.sh @@ -0,0 +1 @@ +docker pull voidlinux/voidlinux -- cgit v1.2.3