`
Linux provides exceptional stability, minimal disk space usage, and robust networking capabilities. It also offers a higher level of security compared to most operating systems. Known for its reliability and resistance to crashes, Linux is an ideal environment for deploying application servers in production.
In case you have windows workstation, you can install linux virtual machine and practice linux.
Make sure virtualization is on in your bios setting
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.provision "shell", path: "pg_config.sh"
config.vm.box = "bento/ubuntu-19.04"
# config.vm.network "forwarded_port", guest: 80, host: 8080
config.vm.boot_timeout = 1000
config.vm.provider "virtualbox" do |v|
# v.gui = true
v.memory = 1024
v.cpus = 1
end
config.vm.network "private_network", ip: "10.11.12.14"
config.vm.hostname = "myvm19"
config.vm.network :forwarded_port, guest: 22, host: 2224, id: "ssh", auto_correct: true
# config.vm.box_check_update = false
# config.vm.synced_folder "../data", "/vagrant_data"
end
change ubuntu version as per your need ex: config.vm.box = “bento/ubuntu-18.04” or you can change linux distribution as well : config.vm.box = “centos/7”
vagrantTip="[35m[1mThe shared directory is located at /vagrant\nTo access your shared files: cd /vagrant(B[m"
echo -e $vagrantTip > /etc/motd
vagrant up # to start vm - first time it will download provided virtual box and complete the setup
vagrant ssh # to go inside the vm (ssh to vm). you are into linux for your practice
vagrant halt # to turn off vm
vagrant status # to check status of VM - on or off
vagrant destroy # to delete a VM
You can find other Vagrantfiles at : Git Repo