mynode/setup/setup_base_image_debian.txt

54 lines
1.1 KiB
Plaintext
Raw Normal View History

2019-10-03 03:10:20 +00:00
###
### Setup Base OS
###
# Install Debian 10.1.0 Net-install via CD
2019-10-10 18:17:54 +00:00
# URL: https://www.debian.org/CD/netinst/
# Follow instructions:
2019-10-03 03:10:20 +00:00
# - Graphical Install
# - English, US, American English
# - Hostname: myNode
# - Domain Name: <Leave Empty>
# - Root Password: bolt
# - Full Name: myNode
# - Username: mynode
# - Password: bolt
# - Timezone: Central
# - Partition: Guided Use Entire Disk, Continue, Continue, Continue, Yes
# - CDs and Packages: No, Next, Next
# - Software Selection: No GUI, No Print Server, Add SSH Server
# - Install Grub: Yes, /dev/sda
# - Install Complete: Continue
# Login as root / bolt
# Install basic Software
apt-get -y install sudo
useradd -p $(openssl passwd -1 bolt) -m -s /bin/bash admin
adduser admin sudo
# Delete mynode user
deluser mynode
rm -rf /home/mynode
2019-10-10 18:17:54 +00:00
exit
2019-10-03 03:10:20 +00:00
# Login as admin / bolt
# Delete root password
sudo passwd -d root
# Update packages
2019-11-07 03:55:05 +00:00
sudo apt-get -y update
2019-10-03 03:10:20 +00:00
sudo apt-get -y upgrade
2019-11-07 03:55:05 +00:00
# Install some basics
sudo apt-get -y install tmux
2019-10-03 03:10:20 +00:00
# Sync
sync
######################
### MAKE IMAGE NOW ###
2019-10-10 18:17:54 +00:00
### (if imaging) ###
######################