2 lines
3.6 KiB
HTML
2 lines
3.6 KiB
HTML
<!DOCTYPE html><head><meta charset="utf-8" /><meta name="description" content="C.C.M. personal website" /><meta name="viewport" content="width=device-width, initial-scale=1" /><title>📦 DockerVM — C.C.M. Homepage</title><link rel="stylesheet" href="/css/default.css" /></head><body><header><div id="block"><p>+>---------------------------<+</p><p>[<a href="/about.html">About</a>]--[<a href="/research.html">Research</a>]--[<a href="/projects.html">Projects</a>]</p><p>+>---------------------------<+</p><br /></div></header><div id="block"><h1>📦 DockerVM</h1><div>February 18, 2024</div><div><h2>Use docker like Qemu/VmWare/Virtualbox</h2><p><div style="text-align: center"><img src="/images/dockervm.png" /></div></p><h3>[<a href="/download/exherbo.sh">Exherbo</a>]</h3><h3>[<a href="/download/fedora.sh">Fedora</a>]</h3><h3>[<a href="/download/kali.sh">Kali</a>]</h3><h3>[<a href="/download/void.sh">Void</a>]</h3><h3>ACCESS THE SYSTEM IN THE CONTAINER</h3><div id="code"><pre style="overflow: auto"><code> docker run -it IMAGE_ID_HERE /bin/bash</code></pre></div><h3>START ALL STOPPED CONTAINERS</h3><div id="code"><pre style="overflow: auto"><code> docker start $(docker ps -a -q --filter "status=exited")</code></pre></div><h3>RUN THE LAST STOPPED CONTAINER:</h3><div id="code"><pre style="overflow: auto"><code> docker start -a -i 'docker ps -q -l'</code></pre></div><h3>LIST ALL IMAGES</h3><div id="code"><pre style="overflow: auto"><code> docker images</code></pre></div><h3>LIST ALL CONTAINERS</h3><div id="code"><pre style="overflow: auto"><code> docker ps -a</code></pre></div><h3>RE-ACCESS THE SYSTEMS</h3><div id="code"><pre style="overflow: auto"><code> docker exec -it CONTAINER_ID_HERE /bin/bash</code></pre></div><h1>NOVNC</h1><h3>GRAPHICAL INTERFACE</h3><div id="code"><pre style="overflow: auto"><code>apt install xfce-desktop xorg -y</code></pre></div><h3>CONFIGURE A PASSWORD FOR ROOT ON KALI</h3><p>passwd</p><h3>FIREWALL - HOST CONFIG</h3><div id="code"><pre style="overflow: auto"><code>iptables -A INPUT -i docker0 -j ACCEPT</code></pre></div><h3>CONFIG FOR KALI LINUX</h3><div id="code"><pre style="overflow: auto"><code>apt update && apt upgrade && apt install novnc x11vnc tigervnc-standalone-server dbus-x11 python-py python3-pip -y</code></pre></div><h3>NUMPY INSTALL</h3><div id="code"><pre style="overflow: auto"><code>user > pip install numpy
|
|
user > pip3 install numpy</code></pre></div><h3>START DBUS</h3><div id="code"><pre style="overflow: auto"><code>dbus-launch</code></pre></div><h3>START VNCSERVER</h3><div id="code"><pre style="overflow: auto"><code>vncserver</code></pre></div><h3>START NOVNC</h3><p>/usr/share/novnc/utils/novnc_proxy --listen 8081 --vnc localhost:5900</p><h3>ACESS VIA BROWSER</h3><p>CONTAINER_IP:8081/vnc.html</p><h3>FIX SOME HOSTNAME BUGS</h3><p>echo $(hostname -I | cut -d\ -f1) $(hostname) | sudo tee -a /etc/hosts</p></div></div><footer><div id="block"><br /><p>+>---------------------------<+</p><div>[<a href="https://github.com/cristiancmoises">GitHub</a>]--[<a href="https://www.linkedin.com/in/cristiancezarmoises">LinkedIn</a>]</div><div>[<a href="https://orcid.org/0000-0001-9533-4916">ORCID</a>]--[<a href="https://arxiv.org/search/?">ArXiv</a>]--[<a href="https://youtube.com/@securityops">Youtube</a>]</div><p>© 2024 Cristian Cezar Moises</p><p>[<a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a>]</p><p>Built with [<a href="http://haunt.dthompson.us">Haunt</a>] in [<a href="https://www.gnu.org/software/guile/guile.html">Scheme</a>]</p><p>+>---------------------------<+</p></div></footer></body> |