Spaces:
Paused
Paused
Download scripts/ubuntu-init from duongkum9999/Kasm: direct link, hf CLI and curl.
- Browser
- Download file 531 Bytes
-
https://huggingface.co/spaces/duongkum9999/Kasm/resolve/main/scripts/ubuntu-init
- Command line
-
hf download hf://spaces/duongkum9999/Kasm/scripts/ubuntu-init
-
curl -L -o ubuntu-init https://huggingface.co/spaces/duongkum9999/Kasm/resolve/main/scripts/ubuntu-init
531 Bytes
| set -euo pipefail | |
| ROOTFS=/config/proot/ubuntu | |
| TARBALL=/tmp/ubuntu-base.tar.gz | |
| URL="https://cdimage.ubuntu.com/ubuntu-base/releases/noble/release/ubuntu-base-24.04.4-base-amd64.tar.gz" | |
| if [ ! -x "$ROOTFS/bin/bash" ]; then | |
| mkdir -p "$ROOTFS" | |
| wget -O "$TARBALL" "$URL" | |
| tar -xzf "$TARBALL" -C "$ROOTFS" | |
| rm -f "$TARBALL" | |
| cp /etc/resolv.conf "$ROOTFS/etc/resolv.conf" || true | |
| mkdir -p "$ROOTFS/root" | |
| cat > "$ROOTFS/root/.bashrc" <<'EOF' | |
| export TERM=xterm-256color | |
| export LANG=C.UTF-8 | |
| cd /root | |
| EOF | |
| fi |