-
Notifications
You must be signed in to change notification settings - Fork 1
/
chroot.sh
40 lines (27 loc) · 1.18 KB
/
chroot.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
31
32
33
34
35
36
37
38
#!/bin/bash
export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true
useradd chromix -m -p ""
usermod -aG sudo chromix
printf "toor\ntoor\n" | passwd
apt install ca-certificates -y
cat > /etc/apt/sources.list << EOF
deb https://deb.debian.org/debian/ bookworm main contrib non-free non-free-firmware
deb-src https://deb.debian.org/debian/ bookworm main contrib non-free non-free-firmware
deb https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
deb-src https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
deb https://deb.debian.org/debian/ bookworm-updates main contrib non-free non-free-firmware
deb-src https://deb.debian.org/debian/ bookworm-updates main contrib non-free non-free-firmware
EOF
apt update
apt install linux-image-6.1.0-25-amd64 network-manager console-setup console-setup-linux pciutils \
xserver-xorg-video-all xserver-xorg-input-evdev x11-xserver-utils \
x11-xkb-utils x11-utils xinit chromium -y
cat > ~/.xinitrc << EOF
#!/bin/bash
exec chromium --no-sandbox
EOF
chmod +x ~/.xinitrc
cat > /etc/resolv.conf << EOF
nameserver 8.8.8.8
nameserver 10.0.2.3
EOF