mirror of
https://github.com/brain-hackers/buildbrain
synced 2025-10-17 05:38:37 +09:00
Build Brainux on CI
This commit is contained in:
11
os-brainux/override.sh
Executable file
11
os-brainux/override.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -uex -o pipefail
|
||||
|
||||
SRC=$1
|
||||
DST=$2
|
||||
|
||||
install -g root -o root -m 0644 $SRC/usr/lib/os-release $DST/usr/lib/os-release
|
||||
install -g root -o root -m 0644 $SRC/etc/issue $DST/etc/issue
|
||||
install -g root -o root -m 0644 $SRC/etc/issue.net $DST/etc/issue.net
|
||||
install -g root -o root -m 0644 $SRC/etc/motd $DST/etc/motd
|
2
os-brainux/override/etc/issue
Normal file
2
os-brainux/override/etc/issue
Normal file
@@ -0,0 +1,2 @@
|
||||
Brainux GNU/Linux 10 \n \l
|
||||
|
1
os-brainux/override/etc/issue.net
Normal file
1
os-brainux/override/etc/issue.net
Normal file
@@ -0,0 +1 @@
|
||||
Brainux GNU/Linux 10
|
12
os-brainux/override/etc/motd
Normal file
12
os-brainux/override/etc/motd
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
____ _
|
||||
| _ \ (_)
|
||||
| |_) |_ __ __ _ _ _ __ _ ___ __
|
||||
| _ <| '__/ _` | | '_ \| | | \ \/ /
|
||||
| |_) | | | (_| | | | | | |_| |> <
|
||||
|____/|_| \__,_|_|_| |_|\__,_/_/\_\
|
||||
|
||||
by Brain Hackers
|
||||
|
||||
https://github.com/brain-hackers
|
||||
|
9
os-brainux/override/usr/lib/os-release
Normal file
9
os-brainux/override/usr/lib/os-release
Normal file
@@ -0,0 +1,9 @@
|
||||
PRETTY_NAME="Brainux GNU/Linux 10 (buster)"
|
||||
NAME="Brainux GNU/Linux"
|
||||
VERSION_ID="10"
|
||||
VERSION="10 (buster)"
|
||||
VERSION_CODENAME=buster
|
||||
ID=debian
|
||||
HOME_URL="https://github.com/brain-hackers/README"
|
||||
SUPPORT_URL="https://github.com/brain-hackers/buildbrain"
|
||||
BUG_REPORT_URL="https://github.com/brain-hackers/buildbrain"
|
70
os-brainux/setup_brainux.sh
Executable file
70
os-brainux/setup_brainux.sh
Executable file
@@ -0,0 +1,70 @@
|
||||
#!/bin/bash
|
||||
|
||||
TIMEZONE="Asia/Tokyo"
|
||||
|
||||
/debootstrap/debootstrap --second-stage
|
||||
|
||||
if [ "${CI}" == "true" ]; then
|
||||
REPO=deb.debian.org
|
||||
REPO_SECURITY=deb.debian.org
|
||||
else
|
||||
REPO=localhost:65432
|
||||
REPO_SECURITY=localhost:65433
|
||||
fi
|
||||
|
||||
cat <<EOF > /etc/apt/sources.list
|
||||
deb http://${REPO}/debian buster main contrib non-free
|
||||
deb-src http://${REPO}/debian buster main contrib non-free
|
||||
deb http://${REPO}/debian buster-updates main contrib non-free
|
||||
deb-src http://${REPO}/debian buster-updates main contrib non-free
|
||||
deb http://${REPO_SECURITY}/debian-security buster/updates main contrib non-free
|
||||
deb-src http://${REPO_SECURITY}/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 \
|
||||
alsa-utils \
|
||||
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 python3-smbus \
|
||||
resolvconf net-tools ssh openssh-client avahi-daemon
|
||||
|
||||
# Get wild
|
||||
cat <<EOF > /etc/apt/sources.list
|
||||
deb http://deb.debian.org/debian buster main contrib non-free
|
||||
deb-src http://deb.debian.org/debian buster main contrib non-free
|
||||
deb http://deb.debian.org/debian buster-updates main contrib non-free
|
||||
deb-src http://deb.debian.org/debian buster-updates main contrib non-free
|
||||
deb http://deb.debian.org/debian-security buster/updates main contrib non-free
|
||||
deb-src http://deb.debian.org/debian-security buster/updates main contrib non-free
|
||||
EOF
|
||||
|
Reference in New Issue
Block a user