Try Other Linux OS on Your Linux Destro Without Virtual Machine and Save a Large Amount of RAM Memory.
All Linux os in a single destro, without virtualbox
Linux is a community of open-source Unix like operating systems, based on the Linux Kernel. It was initially released by Linus Torvalds on September 17, 1991. Initially, Linux was created for personal computers and gradually it was used in other machines like servers, mainframe computers, supercomputers even in embedded systems like routers, automation controls, televisions, digital video recorders, video game consoles, smartwatches, etc. Linux distribution is an operating system that contains the Linux kernel and supporting libraries and software. Around 600 + Linux Distributions are available. From them some are base OS, and others are made by using them. and every Linux lover try to use different systems. So it is a great article for those linux-fan who want to use different linux os from one machine.
What is Docker ?
Docker is a set of platform as a service products that use OS-level virtualization to deliver software in packages called containers. Containers are isolated from one another and bundle their own software, libraries and configuration files; they can communicate with each other through well-defined channels. [Source. — Wikipedia]
Let Start ……
I am using Arch Linux OS, and I am Installing Ubuntu on this..
Installing Docker…. I am Using aurman package manager to install docker.
Start docker by writing
sudo systemctl start docker
Install ubuntu on docker.
sudo docker pull ubuntu
Run Ubuntu inside docker. write
sudo docker run -it ubuntu
Update and Upgrade Ubuntu.
Exit the Prompt…
Now how to start that Ubuntu prompt again ?
Find container id of that image.. write
sudo docker ps -a
Here top one is my Ubuntu image.
First start the container by writing
sudo docker start <CONTAINER ID>
sudo docker exec -it <CONTAINER ID> bash
How to open files of this Ubuntu container from VS Code ?
First of all install following packages.
apt install sudo openssh-client openssh-server nmap net-tools nano
Create an User :
useradd -m <Username>
Entry this User in Sudoer file.
And add following line.
Make up down arrow key working for this user
chsh -s /bin/bash
Unminimize (Not Mendatory)
Start sshd by writing..
Find ethernet ip by writing..
in eth0 after inet you find this.
Find port by writing..
Open VS code.
Restart VS Code.
Click on this key symbol
Click on the plus button. and fill up this..
Name : Any Name
Host : ip of ethernet host of your Ubuntu container
port : Port of Your Ubuntu Container
Username : <Username>
type : password
password : Password You set..
How to connect it to file manager ?
Follow everything of previous up to step 4.
Open File Manager.
Click on Connect to Server .
Server address is sftp://<host or ip_address of ubuntu container>
Write username and password. it’s done.
If installed file manager not support this then install nautilus. It will work on it.