mirror of
https://github.com/brain-hackers/buildbrain
synced 2024-12-22 20:20:11 +09:00
52 lines
1.8 KiB
Bash
52 lines
1.8 KiB
Bash
|
#!/bin/bash
|
||
|
|
||
|
TIMEZONE="Asia/Tokyo"
|
||
|
|
||
|
/debootstrap/debootstrap --second-stage
|
||
|
|
||
|
cat <<EOF > /etc/apt/sources.list
|
||
|
deb http://ftp.jaist.ac.jp/debian buster main contrib non-free
|
||
|
deb-src http://ftp.jaist.ac.jp/debian buster main contrib non-free
|
||
|
deb http://ftp.jaist.ac.jp/debian buster-updates main contrib non-free
|
||
|
deb-src http://ftp.jaist.ac.jp/debian buster-updates main contrib non-free
|
||
|
deb http://security.debian.org/debian-security buster/updates main contrib non-free
|
||
|
deb-src http://security.debian.org/debian-security buster/updates main contrib non-free
|
||
|
EOF
|
||
|
|
||
|
cat <<EOF > /etc/apt/apt.conf.d/90-norecommend
|
||
|
APT::Install-Recommends "0";
|
||
|
APT::Install-Suggests "0";
|
||
|
EOF
|
||
|
|
||
|
apt update -y
|
||
|
apt install -y locales
|
||
|
|
||
|
echo "$TIMEZONE" > /etc/timezone && \
|
||
|
dpkg-reconfigure -f noninteractive tzdata && \
|
||
|
sed -i -e 's/# en_US.UTF-8 UTF-8/en_us.UTF-8 UTF-8/' /etc/locale.gen && \
|
||
|
echo 'LANG="en_US.UTF-8"' > /etc/default/locale && \
|
||
|
dpkg-reconfigure -f noninteractive locales && \
|
||
|
update-locale LANG=en_US.UTF-8
|
||
|
|
||
|
echo "brain" > /etc/hostname
|
||
|
|
||
|
|
||
|
echo root:root | chpasswd
|
||
|
|
||
|
cat <<EOF >> /etc/securetty
|
||
|
ttymxc0
|
||
|
EOF
|
||
|
|
||
|
DEBIAN_FRONTEND=noninteractive \
|
||
|
apt install -y dialog sudo \
|
||
|
libjpeg-dev libfreetype6 libfreetype6-dev zlib1g-dev \
|
||
|
xserver-xorg xserver-xorg-video-fbdev xserver-xorg-dev xorg-dev x11-apps \
|
||
|
openbox obconf obmenu \
|
||
|
weston xwayland \
|
||
|
bash tmux vim htop \
|
||
|
midori pcmanfm lxterminal xterm gnome-terminal fonts-noto-cjk \
|
||
|
dbus udev build-essential flex bison pkg-config autotools-dev libtool autoconf automake \
|
||
|
python3 python3-dev python3-setuptools python3-wheel python3-pip \
|
||
|
resolvconf net-tools ssh openssh-client avahi-daemon
|
||
|
|