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..
Step 1.
Installing Docker…. I am Using aurman package manager to install docker.
Step 2.
Start docker by writing
sudo systemctl start docker
Step 3.
Install ubuntu on docker.
sudo docker pull ubuntu
Step 4.
Run Ubuntu inside docker. write
sudo docker run -it ubuntu
Step 5.
Update and Upgrade Ubuntu.
Exit the Prompt…
Now how to start that Ubuntu prompt again ?
Step 1.
Find container id of that image.. write
sudo docker ps -a
Here top one is my Ubuntu image.
Step 2.
First start the container by writing
sudo docker start <CONTAINER ID>
then -
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>
Give Password:
passwd <Username>
Entry this User in Sudoer file.
nano /etc/sudoers
And add following line.
Change User
su <Username>
Make up down arrow key working for this user
chsh -s /bin/bash
Unminimize (Not Mendatory)
sudo unminimize
Step 2:
Start sshd by writing..
/etc/init.d/ssh restart
Step 3:
Find ethernet ip by writing..
ifconfig
in eth0 after inet you find this.
Step 4:
Find port by writing..
nmap localhost
Step 5:
Open VS code.
Go to extensions and install SSH Client
Restart VS Code.
Step 6.
Click on this key symbol
Step 7.
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..
Then Connect.
How to connect it to file manager ?
Follow everything of previous up to step 4.
Step 5:
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.