forked from MegaTKC/systembox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-sysbox.sh
30 lines (30 loc) · 903 Bytes
/
install-sysbox.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
clear
echo "SysBox"
echo "Run x86 apps on ARM!"
sleep 5
echo "Setup Process Initiating..."
sleep 3
echo "Updating Sources"
sleep 2.5
sudo apt-get update
echo "Installing Dependencies..."
sleep 2.5
sudo apt-get install qemu-user-static schroot debootstrap
echo "Setting up..."
sleep 2.5
debootstrap --arch i386 --foreign testing /srv/chroot/debian-x86 http://deb.debian.org/debian
cp /usr/bin/qemu-i386-static /srv/chroot/debian-x86/usr/bin
chroot "/srv/chroot/debian-x86" /debootstrap/debootstrap --second-stage
echo "Creating the config file..."
sleep 2.5
sudo echo '[debian-x86]
description=Debian Testing x86 chroot
aliases=debian-x86
type=directory
directory=/srv/chroot/debian-x86
profile=desktop
personality=linux
preserve-environment=true' > /etc/schroot/chroot.d/debianx86.conf
sudo chmod 470 -R /etc/schroot/chroot.d/debianx86.conf
sleep 1
echo "Setup finished! Run sudo schroot -c debian-x86"