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 dir="debian_armel_wheezy" ver="wheezy" #create empty image and mount it img=debian_arm.img dd bs=512 count=5400000 if=/dev/zero of=$img #creates a empty IMG file that is about 2GB #fdisk $img #mkfs.ext4 $img mkfs.ext4 -F my_image.img mkdir $dir modprobe loop mount -o loop $img $dir #sudo cp -pfr squashfs-root/* op/ #copies with permissions intact #https://wiki.debian.org/EmDebian/CrossDebootstrap#QEMU.2Fdebootstrap_approach apt-get install binfmt-support qemu qemu-user-static debootstrap #mkdir $dir debootstrap --foreign --arch armel $ver $dir http://ftp.debian.org/debian/ cp /usr/bin/qemu-arm-static $dir/usr/bin DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true \ LC_ALL=C LANGUAGE=C LANG=C chroot $dir /debootstrap/debootstrap --second-stage DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true \ LC_ALL=C LANGUAGE=C LANG=C chroot $dir dpkg --configure -a echo "Welcome to your ARM chroot!" chroot $dir bash ################notes########## echo “deb http://http.debian.net/debian wheezy main non-free contrib” > /etc/apt/sources.list echo “export PATH=/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin” >> /root/.bashrc echo “export TERM=xterm” >> /root/.bashrc ###########bashrc###### export PATH=/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin export TERM=xterm export HOME=/root
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)