Enterprise IT Solutions/Linux

데비안 리눅스 배포 시 활용할 초기설정 스크립트

iseop 2022. 1. 4. 22:46   인쇄용 버전

Pre set-up requirements

  • /etc/hostname
  • /etc/hosts
  • /etc/network/interfaces
  • /etc/resolv.conf
  • /etc/sysctl.conf

 

Post set-up script

# Add the required user.
echo -e 'Skill39!\nSkill39!'|passwd
echo -e 'Skill39!\nSkill39!'|adduser skill39

# Set the required time zone.
ln -sf /usr/share/zoneinfo/Europe/Moscow /etc/localtime

# Visual-check keymap and locale.
cat /etc/default/keyboard
cat /etc/default/locale

# Install required system utilities.
# Set the system configuration requirements.
apt install smbclient curl lynx dnsutils ldap-utils ftp lftp ssh nfs-common rsync net-tools \
&& echo "permitrootlogin=yes" >> /etc/ssh/sshd_config \
&& systemctl disable systemd-timesyncd