This commit is contained in:
Takumi Sueda 2021-03-22 20:10:33 +09:00
parent 5a62bc1858
commit 9fe585f2e1

View File

@ -44,14 +44,6 @@ echo "$TIMEZONE" > /etc/timezone && \
update-locale LANG=en_US.UTF-8 update-locale LANG=en_US.UTF-8
echo "brain" > /etc/hostname echo "brain" > /etc/hostname
echo root:root | chpasswd
cat <<EOF >> /etc/securetty
ttymxc0
EOF
DEBIAN_FRONTEND=noninteractive \ DEBIAN_FRONTEND=noninteractive \
apt install -y dialog sudo \ apt install -y dialog sudo \
libjpeg-dev libfreetype6 libfreetype6-dev zlib1g-dev \ libjpeg-dev libfreetype6 libfreetype6-dev zlib1g-dev \
@ -68,6 +60,19 @@ DEBIAN_FRONTEND=noninteractive \
# Fix Midori launch failure # Fix Midori launch failure
sudo update-mime-database /usr/share/mime sudo update-mime-database /usr/share/mime
# Setup users
adduser --gecos "" --disabled-password --home /home/user user
echo user:brain | chpasswd
echo "user ALL=(ALL:ALL) ALL" > /etc/sudoers.d/user
echo -e "127.0.1.1\tbrain" >> /etc/hosts
echo root:root | chpasswd
# Allow root login via UART
cat <<EOF >> /etc/securetty
ttymxc0
EOF
# Get wild # Get wild
cat <<EOF > /etc/apt/sources.list cat <<EOF > /etc/apt/sources.list
deb http://deb.debian.org/debian buster main contrib non-free deb http://deb.debian.org/debian buster main contrib non-free