SIMPLE DOCKER FULL OS
========
the git
https://github.com/realsifocopypaste333/docker-full-os
====================
Assalamulaikum
May peace be upon you
Greating floss (free libre open source software ) gnu linux :)
==============
This time we will talk about simple docker full os gnu linux os :)
===========
What is docker full os ?
Docker full os gnu linux os, in simple meaning, mean special kinds of docker that truely full gnu linux os which is running in the container in native performance.
it’s like vm (virtual machine) or chroot or termux or proot with native perfomance.
=========
The benefits of the docker full os gnu linux os
it has native performance
it very easy to make and to use
we can make simple cloud gaming / cloud computing :)
etc
==========
the weakness of the docker full os gnu linux
it need a lot of space
there is no enough documentaries about docker full os
etc
=========
HOW TO MAKE DOCKER FULL OS GNU LINUX OS
======================
example = sparky linux kde plasma / xfce semi rolling :)
==================
==============
sudo apt update
sudo apt install docker* docker-compose*
xhost +
===========
4a. install pulse audio in os host (server)
4b. make a config file for pulse audio in host os (server)
example = /home/realsifo/Downloads/pulse/pulseaudio.socket
default-server = unix://home/realsifo/Downloads/pulse/pulseaudio.socket
autospawn = no daemon-binary = /bin/true
enable-shm = false Share socket and config file with docker and set environment variables PULSE_SERVER and PULSE_COOKIE. Container user must be same as on host:
4c. run this command in host os (server)
pactl load-module module-native-protocol-unix socket=/home/realsifo/Downloads/pulse/pulseaudio.socket
=====================
sudo docker pull kalilinux/kali-rolling
sudo docker images
===============
docker run -ti --device=/dev/dri:/dev/dri --privileged --cap-add=ALL --device /dev/snd --volume /dev:/dev -v /dev:/dev --group-add audio -v /var/run/docker.sock:/host/var/run/doc -v /:/media/prime --env PULSE_SERVER=unix:/home/realsifo/Downloads/pulse/pulseaudio.socket --env PULSE_COOKIE=/home/realsifo/Downloads/pulse/pulseaudio.cookie --volume /home/realsifo/Downloads/pulse/pulseaudio.socket:/home/realsifo/Downloads/pulse/pulseaudio.socket --volume /home/realsifo/Downloads/pulse/pulseaudio.client.conf --publish=0.0.0.0:3351:3351 --publish=0.0.0.0:51:51 --group-add video --volume=“/tmp/.X11-unix:/tmp/.X11-unix” --env=“DISPLAY” -e XAUTHORITY=/root/.Xauthority --name docker-full-os-001 93b4ab65e32a
=================
apt update
apt full-upgrade
==================
apt install nano pulseaudio* neofetch vlc* smplayer* wget uget cairo-dock* alsa-utils* network-manager net-tools* cairo-dock-plug-ins* dbus dbus-x11 thunar* chromium* rofi* terminator* sudo kate* kwrite* geany* geany-plugin-addons* aptitude* qt5-style-kvantum-themes qt5-style-kvantum-l10n qt5-style-kvantum libreoffice krita* gimp* kdenlive* handbrake* yt-dlp* isomaster* k3b* apt-utils* git htop* compiz* compiz-boxmenu* compiz-plugins* compizconfig-settings-manager* emerald* emerald-themes* fusion-icon* simple-ccsm* usbutils* lxqt* nmap* wireshark* sqlmap* metasploit-framework* airgeddon* bleachbit* xfce4* xfce4-goodies* kde-full* plasma-nm
if we use intel gpu , we need to install intel vulkan driver
a. aktivate the i386 multi-arch
dpkg --add-architecture i386 && sudo apt update
b. install the necesary apps
apt install libvulkan1 libvulkan1:i386 mesa-vulkan-drivers mesa-vulkan-drivers:i386 vulkan-tools*
c. we can also install wine dan lutris
apt install wine64 lutris*
======================
7.add user for docker full os
7a. add user
adduser namauser
b. make the user become sudo
usermod -aG sudo username
===========================
8a. cek the docker container that runing
sudo docker ps -a
B. save the docker container into docker image
sudo docker container commit --pause=false id-container nama-image:label
example
sudo docker container commit --pause=false c092aa5afec0 kali-linux:kali-linux-joss
C. to exite the docker container
exit
or
sudo docker stop id-container
D. tho run the docker container
sudo docker start id-container
E. to enter the running docker continer
sudo docker exec -it id-container bash
F. to erase the docker continer
sudo docker container rm -f id-container
G. to see the docker image
sudo docker images
H. to erase the docker image
sudo docker rmi -f id-image
I. to erase unessary docker image
sudo docker rmi $(docker images -qa -f ‘dangling=true’)
nb.
all that comman must run in host os not inside the docker full os
=======
===============
=========================
HOW TO ACESS DOCKER FULL OS
we can access the apps gui in docker full os from the host OS using clie , rofi or cairo dock
su user-name
apps name
su user-name
rofi -show run
select the apps
su user-name
cairo-dock
===================
2a. install xrdp server in docker full os
2b… edit nano /etc/xrpd/xrdp.ini
edit the xrdp’s port
2c. sudo service xrpd restart
2.d. install the xrdp clinet like remmina , etc
================
3a. install gnu linux os in other laptop (client’s laptop)
3b. install remmin client in client’s laptop
3c. run remmina xrdp client to start the cloud computing / cloud gaming :)
==============
nb.
wine / lutris sometimes will error in docker full os, how to fix it
open lutris
setting the game with lutris
in the game menu , select wine regristry
edit the hcu -------> wine
add key X11 DRIVER
add string “UseXVidMode”=“N”
add string UseXVidMode -------> edit the VALUE to N
add string “UseXRandR”=“N”
add string UseXRandR -------> edit the VALUE to N
close wine
=============
=====================
=================
docker full os flatpak fix
INSTALL FLATPAK
a. enter root
su
b. install flatpak
apt install flatpak
c. install the flatpak components
apt install --yes appstream-util
G_DEBUG=fatal-criticals appstream-util validate-relax
d. work around
dbus-send --system /org/freedesktop/DBus org.freedesktop.DBus || dbus-daemon --system --fork
rm -fr run/dbus/pid
dbus-send --system /org/freedesktop/DBus org.freedesktop.DBus || dbus-daemon --system --fork
dbus-send --system /org/freedesktop/DBus org.freedesktop.DBus || dbus-daemon --system --fork
e. add flatpak flathub repo :)
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
f. install the flatpak apps
example peazip
flatpak install flathub io.github.peazip.PeaZip
g. run the flatpak’s apps in Mode user
su userid
flatpak run name-of-the-flapak’s-apps
flatpak run io.github.peazip.PeaZip
or we can run vaia the menu
================
=======================
this text is using the full creative common (cc) license
==============================
thanks
My Allah, The God bless you all. insya Allah ( by the God’s will )
============
gretting floss (free libre open source software) gnu linux :)
Wassalamulaikum
peace be upon you
===============
A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don’t control.
Rules:
Be civil: we’re here to support and learn from one another. Insults won’t be tolerated. Flame wars are frowned upon.
No spam posting.
Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it’s not obvious why your post topic revolves around selfhosting, please include details to make it clear.
Don’t duplicate the full text of your blog or github here. Just post the link for folks to click.
Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).
No trolling.
Resources:
Any issues on the community? Report it using the report flag.
Questions? DM the mods!
Or use distrobox