Initial commit
This commit is contained in:
commit
df5befa9d1
45 changed files with 2030 additions and 0 deletions
7
chroot/stage-1.sh
Executable file
7
chroot/stage-1.sh
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
set -x
|
||||
|
||||
cd debootstrap
|
||||
./debootstrap --second-stage
|
50
chroot/stage-2.sh
Executable file
50
chroot/stage-2.sh
Executable file
|
@ -0,0 +1,50 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
set -x
|
||||
|
||||
# Ensure temp files can be created (apt-key error)
|
||||
chmod -R 777 /tmp
|
||||
|
||||
# Recreate /dev/null
|
||||
rm -f /dev/null; mknod -m 666 /dev/null c 1 3
|
||||
|
||||
# Set password of user 'root' to 'wallaby'
|
||||
echo "root:wallaby" | chpasswd
|
||||
|
||||
echo "Delete debian-fresh if the next step fails, package register is outdated."
|
||||
|
||||
# Fix apt-key and enable https transport for apt
|
||||
apt-get install -y dirmngr apt-transport-https
|
||||
|
||||
# Add F-WuTS debian repo
|
||||
apt-key adv --keyserver pgp.mit.edu --recv-keys 0xE9368D5F3DE2EA910F48AF0412F68D62509CD98B
|
||||
echo "deb https://f-wuts.github.io/repo stretch main" >> /etc/apt/sources.list
|
||||
|
||||
apt-get update
|
||||
|
||||
# Don't setup keyboard layout interactively
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
||||
python python3 python3-pip \
|
||||
wpasupplicant wireless-tools udhcpd avahi-daemon openssh-server ntp net-tools \
|
||||
alsa-utils fontconfig i2c-tools xorg \
|
||||
build-essential \
|
||||
busybox sudo curl wget nano screen git \
|
||||
dbus \
|
||||
linux-image-3.18.21-custom linux-headers-3.18.21-custom linux-libc-dev \
|
||||
botui libwallaby libbotball
|
||||
|
||||
cd /
|
||||
|
||||
wget https://deb.nodesource.com/setup_6.x
|
||||
chmod +x setup_6.x
|
||||
|
||||
./setup_6.x
|
||||
rm setup_6.x
|
||||
apt-get install nodejs -y
|
||||
apt-get clean
|
||||
|
||||
npm config set unsafe-perm true
|
||||
npm install -g gulp browserify
|
||||
|
||||
pip3 install pipenv
|
25
chroot/stage-3.sh
Executable file
25
chroot/stage-3.sh
Executable file
|
@ -0,0 +1,25 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
cd /var/0s/source
|
||||
|
||||
cd harrogate
|
||||
npm install
|
||||
gulp compile
|
||||
|
||||
cd ..
|
||||
|
||||
cd c0re
|
||||
# Fix Click encoding error
|
||||
export LC_ALL=C.UTF-8
|
||||
export LANG=C.UTF-8
|
||||
pipenv install --system
|
||||
|
||||
systemctl enable c0re
|
||||
systemctl enable harrogate
|
||||
systemctl enable hostname
|
||||
systemctl enable reset_coproc
|
||||
systemctl enable setup_sound
|
||||
systemctl enable startup_sound
|
||||
systemctl enable x11
|
Reference in a new issue