Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
#!/bin/bash img=debian_arm.img folder=debian release=sid clear echo "Checking needed packages..." apt-get install binfmt-support qemu qemu-user-static debootstrap echo "Creating empty IMG..." dd if=/dev/zero of=$img bs=1024 count=2000000 echo "Formating IMG..." mke2fs -Fj $img mkdir $folder echo "Mounting IMG..." modprobe loop mount -t ext3 -o noatime,errors=remount-ro $img $folder || exit 1 echo "Starting Debootstrap..." debootstrap --foreign --arch armel $release $folder cp /usr/bin/qemu-arm-static $folder/usr/bin DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true \ LC_ALL=C LANGUAGE=C LANG=C chroot $folder /debootstrap/debootstrap --second-stage DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true \ LC_ALL=C LANGUAGE=C LANG=C chroot $folder dpkg --configure -a echo "deb http://http.debian.net/debian $release main non-free contrib" > $folder/etc/apt/sources.list echo "export PATH=/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin" > $folder/root/.bashrc echo "export TERM=xterm" >> $folder/root/.bashrc for fs in /dev /proc /sys; do mount -o bind "$fs" "$folder$fs" done chroot $folder bash
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)