3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

CentOSインストール

Last updated at Posted at 2015-11-23

#VagrantでCentOSインストール

vagrant box add CentOS67 https://github.com/CommanderK5/packer-centos-template/releases/download/0.6.7/vagrant-centos-6.7.box

mkdir centos
cd centos
vagrant init CentOS67
vagrant ssh

vi /etc/selinux/config
---
SELINUX=disabled
---

useradd -g ${username1} ${username1}
passwd ${username1}

useradd -g ${ansibleuser} ${ansibleuser}
passwd ${ansibleuser}

/etc/rc.d/init.d/iptables stop 
/etc/rc.d/init.d/ip6tables stop 
chkconfig iptables off 
chkconfig ip6tables off 

yum -y install man
yum -y groupinstall "Japanese Support"
yum -y install sysstat
yum -y install zip
yum -y install telnet
yum -y install lsof
yum -y install tcpdump
yum -y install strace
yum -y install dstat
yum -y install sshpass
yum -y install rpm-build
yum -y install bind-utils
yum -y install wget
yum -y install nc
yum -y install ntp
yum -y install bzip2
yum -y install net-snmp net-snmp-utils

chkconfig ntpd on


cat <<EOF > /etc/sysconfig/i18n 
LANG="ja_JP.UTF-8"
SYSFONT="lat0-sun16"
EOF
cat /etc/sysconfig/i18n

\cp /usr/share/zoneinfo/Japan /etc/localtime

cat <<EOF2 >/etc/sysconfig/clock
ZONE="Asia/Tokyo"
EOF2
cat /etc/sysconfig/clock

echo -e "${username1}\tALL=(ALL)\tALL" > /etc/sudoers.d/${username1}
chmod 440 /etc/sudoers.d/${username1}

yum update

passwd root
shutdown -h now



// /vargrant マウント失敗対応
sudo /etc/rc.d/init.d/vboxadd setup

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?