This account is not set to public on notestock.
This account is not set to public on notestock.
This account is not set to public on notestock.
This account is not set to public on notestock.
This account is not set to public on notestock.
This account is not set to public on notestock.
This account is not set to public on notestock.
AntergosJPということもあって基本Archを使っているけど最近はDocker前提でサーバーを構築することが多いからベースはUbuntuになりつつある
This account is not set to public on notestock.
This account is not set to public on notestock.
This account is not set to public on notestock.
NEW_USER=eai
hostnamectl set-hostname hogehoge
localectl set-locale LANG=ja_JP.UTF-8 LANGUAGE="ja_JP:ja"
timedatectl set-timezone Asia/Tokyo
adduser ${NEW_USER}
echo "${NEW_USER} ALL=NOPASSWD: ALL" >> /etc/sudoers
mkdir /home/${NEW_USER}/.ssh
curl https://github.com/eai04191.keys > /home/${NEW_USER}/.ssh/authorized_keys
chown -R ${NEW_USER}: /home/${NEW_USER}/.ssh
chmod 700 /home/${NEW_USER}/.ssh
chmod 600 /home/${NEW_USER}/.ssh/authorized_keys
# User swap to eai
しなくてもrootのまま作業して
mkdir -p /home/eai/.ssh
curl https://github.com/eai04191.keys >> /home/eai/.ssh/authorized_keys
chown -R eai: /home/eai/.ssh
chmod 700 /home/eai/.ssh
chmod 600 /home/eai/.ssh/authorized_keys
すればいいんじゃないの