= LPIC2 2021 Sesión 0: Preparativos (2021-02-02)
* certificaciones LPIC
* exámenes LPIC2
== entornos laboratorio Vagrant
##Ususario:vagrant
##Pass: vagrant
##user:root
##pass:vagrant
Vagrant.configure("2") do |config|
config.vm.define "centos7" do |centos7|
config.vm.boot_timeout = 400
centos7.vm.box = "bento/centos-7.2"
#centos7.vm.network "forwarded_port", guest: 3000, host: 3002, auto_correct: true
centos7.vm.network "private_network", ip: "192.168.2.5"
centos7.vm.hostname = "sercentos7"
end
config.vm.define "centos6" do |centos6|
centos6.vm.box = "bento/centos-6.7"
config.vm.boot_timeout = 400
#centos6.vm.network "forwarded_port", guest: 3000, host: 3001, auto_correct: true
centos6.vm.network "private_network", ip: "192.168.2.152"
centos6.vm.hostname = "orion"
#centos6.vm.provision "shell", inline: <<-SHELL
# SHELL
end
end
* centos7 = 192.168.2.5
* centos6 = 192.168.2.152
=== máquinas vagrant
* centos6, falla repositorio:
* sustituir por este: {{ :info:cursos:pue:lpic2-2021:centos-base.repo |}} en **/etc/yum.repos.d/**
* ejecutar:yum clean all
yum update -y
* configuración **ntp**:
cp /etc/localtime /etc/locatime.original
ln -s /usr/share/zoneinfo/Europe/Andorra /etc/localtime
# en systemV
service ntpd restart
chkconfig --level 3 ntpd on
# en systemD
systemctl restart ntpd
systemctl enable ntpd
* programas para instalar:
yum install ntp -y
yum install vim -y
yum install git -y
yum install bash-completion -y