this post was submitted on 08 Jul 2023
-13 points (33.3% liked)

Selfhosted

40261 readers
938 users here now

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:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. 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.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

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

  1. it has native performance

  2. it very easy to make and to use

  3. we can make simple cloud gaming / cloud computing :)

  4. etc

==========

the weakness of the docker full os gnu linux

  1. it need a lot of space

  2. there is no enough documentaries about docker full os

  3. etc

=========

HOW TO MAKE DOCKER FULL OS GNU LINUX OS

======================

  1. install gnu linux in laptop server for os host

example = sparky linux kde plasma / xfce semi rolling :)

==================

  1. install gnu linux client's laptop for client os

==============

  1. install docker in host os (server) via cli (command line interface) / terminal

sudo apt update

sudo apt install docker* docker-compose*

xhost +

===========

  1. Make simple pulse audio fix in host os (server)

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

Prevent a server running in the container

autospawn = no daemon-binary = /bin/true

Prevent the use of shared memory

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

=====================

  1. PULL IMAGE GNU LINUX for DOCKER OS FULL OS in host os (server)

sudo docker pull kalilinux/kali-rolling

sudo docker images

===============

  1. run the DOCKER IMAGE

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

=================

  1. UPDATE DAN UPGRADE the DOCKER FULL OS

apt update

apt full-upgrade

==================

  1. INSTALL APPS in DOCKER FULL OS

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

===========================

  1. how to save the DOCKER FULL OS

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

  1. how to access docker full os directly for host 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

===================

  1. how to access docker full os FULL GUI / FULL DEKTOP directly for host os

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

  1. run remina apps in the host os (server)

================

  1. how to make simple cloud gaming or cloud comping using docker full os

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

  1. open lutris

  2. setting the game with lutris

  3. in the game menu , select wine regristry

  4. edit the hcu -------> wine

  5. add key X11 DRIVER

  6. add string "UseXVidMode"="N"

  7. add string UseXVidMode -------> edit the VALUE to N

  8. add string "UseXRandR"="N"

  9. add string UseXRandR -------> edit the VALUE to N

  10. 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

===============

top 10 comments
sorted by: hot top controversial new old
[–] lemann@lemmy.one 7 points 1 year ago (1 children)

Very wordy, but kinda cool I guess.

In the datahoarder community some people do something similar to this to run Backblaze Desktop on Linux with WINE

[–] msinfo32@lemmy.msinfo32.uk 2 points 1 year ago (2 children)

Got a link to that? Does it fully work?

[–] lemann@lemmy.one 2 points 1 year ago (1 children)
[–] msinfo32@lemmy.msinfo32.uk 2 points 1 year ago

Oh that looks great

yes :) it's working fine :)

[–] lvl@kbin.social 2 points 1 year ago (1 children)

Gives me the feeling someone overengineered this a bit. You can grab a Fedora Silverblue copy and get more or less the same experience with toolbox/distrobox.

yes of course :)

but docker full os is more flexyble and can be use as a simple cloud computing / simple cloud gaming :)

[–] 2xsaiko@discuss.tchncs.de 2 points 1 year ago

> kali linux

[–] code@lemmy.mayes.io 1 points 1 year ago

Or use distrobox

This looks kind of interesting IMHO.