Advertisement
LasterRooker

All In One Linux

Sep 17th, 2022 (edited)
1,020
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.42 KB | None | 0 0
  1. #Preparation
  2. #You Must Install Docker Before You Get Some Errors
  3.  
  4. #For Debian Base Linux
  5.  
  6. sudo apt update && sudo apt install -y docker.io
  7.  
  8. #For ArchLinux Base
  9.  
  10. sudo pacman -Syu && sudo pacman -S docker --noconfirm
  11.  
  12. #For Redhat Base Linux
  13.  
  14. sudo dnf update && sudo dnf install -y docker
  15.  
  16. #Main Installation To ~/.local File Location(You Can Change It Here & zshrc or bashrc)
  17.  
  18. curl -s https://raw.githubusercontent.com/89luca89/distrobox/main/install | sh -s -- --next --prefix ~/.local
  19.  
  20. curl -s https://raw.githubusercontent.com/89luca89/distrobox/main/extras/install-podman | sh -s -- --prefix ~/.local
  21.  
  22. #Know Your Shell
  23.  
  24. echo $SHELL
  25.  
  26. #To Add To Bashrc OR Zshrc (important)
  27.  
  28. nano ~/.bashrc
  29.  
  30. OR
  31.  
  32. nano ~/.zshrc
  33.  
  34. #Add These 4 Lines To ~/.bashrc Or ~/.zshrc
  35.  
  36. export PATH=$HOME/.local/bin:$PATH
  37. export PATH=$HOME/.local/podman/bin:$PATH
  38. xhost +si:localuser:$USER 2>/dev/null
  39. clear
  40.  
  41. #Then Restart Terminal & Open It Again
  42.  
  43. #Example To Create A Distro
  44.  
  45. distrobox create debian10 -i docker.io/library/debian:10
  46.  
  47. {distrobox create (your_given_name) -i docker.io/library/ubuntu:22.04}
  48.  
  49. distrobox enter debian10
  50.  
  51. #If You Want Root Account Login
  52.  
  53. distrobox enter --root debian10
  54.  
  55. #To Install An Application
  56.  
  57. sudo apt update && sudo apt install -y gimp locales-all
  58.  
  59. gimp
  60.  
  61. #To add to /usr/local/bin
  62.  
  63. sudo su
  64.  
  65. echo "distrobox enter debian10" >>/usr/local/bin/debian10
  66.  
  67. chmod 777 /usr/local/bin/debian10
  68.  
  69. exit
  70.  
  71. debian10
  72.  
  73. #To study more examples
  74.  
  75. https://github.com/89luca89/distrobox
  76.  
  77. #Distro Images(You Should Copy All Of Them)
  78.  
  79. AlmaLinux (UBI)
  80.  
  81. quay.io/almalinux/8-base:8
  82. quay.io/almalinux/8-init:8
  83.  
  84. AlmaLinux
  85.  
  86. quay.io/almalinux/almalinux:8
  87. quay.io/almalinux/almalinux:9
  88. quay.io/almalinux/almalinux:9-minimal
  89.  
  90. Alpine Linux
  91.  
  92. docker.io/library/alpine:3.15
  93. docker.io/library/alpine:3.16
  94. docker.io/library/alpine:latest
  95.  
  96. AmazonLinux
  97.  
  98. public.ecr.aws/amazonlinux/amazonlinux:1
  99. public.ecr.aws/amazonlinux/amazonlinux:2
  100. public.ecr.aws/amazonlinux/amazonlinux:2022.0.20220531.0
  101.  
  102. Archlinux      
  103.  
  104. docker.io/library/archlinux:latest
  105.  
  106. CentOS Stream
  107.  
  108. quay.io/centos/centos:stream8
  109. quay.io/centos/centos:stream9
  110.  
  111. CentOS  
  112.  
  113. quay.io/centos/centos:7
  114.  
  115. ClearLinux     
  116.  
  117. docker.io/library/clearlinux:latest
  118. docker.io/library/clearlinux:base
  119.  
  120. Debian
  121.  
  122. docker.io/debian/eol:wheezy
  123. docker.io/library/debian:8
  124. docker.io/library/debian:9
  125. docker.io/library/debian:10
  126. docker.io/library/debian:stable
  127. docker.io/library/debian:stable-backports
  128.  
  129. Debian  Testing    
  130.  
  131. docker.io/library/debian:testing
  132. docker.io/library/debian:testing-backports
  133.  
  134. Debian  Unstable    
  135.  
  136. docker.io/library/debian:unstable
  137.  
  138. Fedora  
  139.  
  140. registry.fedoraproject.org/fedora-toolbox:35
  141. quay.io/fedora/fedora:35
  142. quay.io/fedora/fedora:36
  143. registry.fedoraproject.org/fedora:37
  144. quay.io/fedora/fedora:rawhide
  145.  
  146. Gentoo Linux rolling    
  147.  
  148. You will have to Build your own to have a complete Gentoo docker image
  149.  
  150. Kali Linux
  151.  
  152. docker.io/kalilinux/kali-rolling:latest
  153.  
  154. Mageia
  155.  
  156. docker.io/library/mageia
  157.  
  158. Neurodebian nd100  
  159.  
  160. docker.io/library/neurodebian:nd100
  161.  
  162. Opensuse Leap  
  163.  
  164. registry.opensuse.org/opensuse/leap:latest
  165.  
  166. Opensuse Tumbleweed    
  167.  
  168. registry.opensuse.org/opensuse/tumbleweed:latest
  169. registry.opensuse.org/opensuse/toolbox:latest
  170.  
  171. Oracle Linux
  172.  
  173. container-registry.oracle.com/os/oraclelinux:7
  174. container-registry.oracle.com/os/oraclelinux:7-slim
  175. container-registry.oracle.com/os/oraclelinux:8
  176. container-registry.oracle.com/os/oraclelinux:8-slim
  177. container-registry.oracle.com/os/oraclelinux:9
  178. container-registry.oracle.com/os/oraclelinux:9-slim
  179.  
  180. RedHat (UBI)
  181.  
  182. registry.access.redhat.com/ubi7/ubi
  183. registry.access.redhat.com/ubi7/ubi-init
  184. registry.access.redhat.com/ubi8/ubi
  185. registry.access.redhat.com/ubi8/ubi-init
  186. registry.access.redhat.com/ubi8/ubi-minimal
  187. registry.access.redhat.com/ubi9/ubi
  188. registry.access.redhat.com/ubi9/ubi-init
  189. registry.access.redhat.com/ubi9/ubi-minimal
  190.  
  191. Rocky Linux
  192.  
  193. quay.io/rockylinux/rockylinux:8
  194. quay.io/rockylinux/rockylinux:8-minimal
  195. quay.io/rockylinux/rockylinux:9
  196. quay.io/rockylinux/rockylinux:latest
  197.  
  198. Scientific Linux
  199.  
  200. docker.io/library/sl:7
  201.  
  202. Slackware
  203.  
  204. docker.io/vbatts/slackware:14.2
  205.  
  206. Ubuntu  
  207.  
  208. docker.io/library/ubuntu:14.04
  209. docker.io/library/ubuntu:16.04
  210. docker.io/library/ubuntu:18.04
  211. docker.io/library/ubuntu:20.04
  212. docker.io/library/ubuntu:22.04
  213.  
  214. Void Linux
  215.  
  216. ghcr.io/void-linux/void-linux:latest-full-x86_64
  217. ghcr.io/void-linux/void-linux:latest-full-x86_64-musl
  218.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement