debian:

  ARCH="$(arch)"
  ARCH=amd64 # armhf i386=11min
  export ARCH
  export DISTRO="stable" # TODO prefer released version
  dir="rootfs-$DISTRO-$ARCH" 
  dir="."
 
  sudo apt-get install debootstrap sudo time binutils aptitude cdebootstrap # xhost
  cd "$dir" || exit
  # sudo mount -o remount -o exec .
  time sudo debootstrap --no-check-gpg --arch="$ARCH" "$DISTRO" "." # 2min
  
  l="dev dev/shm dev/pts sys proc home" # tmp
  for d in $l ; do sudo mount /$d --bind ./$d; done
  cp -a ./etc/resolv.conf   ./etc/resolv.conf.orig
  cat /etc/resolv.conf  >> ./etc/resolv.conf

  # xhost + localhost 
  id # user=rzr  ; uid=10000 
  sudo chroot . # setarch "$ARCH"
  
  export TERM=vt100

  apt-get update ; apt-get install etckeeper sudo
  sudo apt-get install byobu 

  sudo apt-get install sudo byobu localepurge # wget # pciutils ;
  byobu
  passwd
  # cat /etc/network/interface /etc/fstab
  
  sudo apt-get install grub-pc linux-image # linux-image-4.15.0-20-generic 
  sudo grub-install $dev # TODO 

  user=user # replace
  uid=1000 # replace
  sudo addgroup --gid "$uid" $user ; adduser --uid "$uid" --gid "$uid" $user
  su -l $user

ubuntu:

  ARCH="$(arch)"
  ARCH=amd64 # armhf i386=11min
  export ARCH
  export DISTRO="stable" # TODO prefer released version
    export DISTRO="bionic"
  dir="rootfs-$DISTRO-$ARCH" 
  dir="$PWD"

  mkdir -p local/install
  url=http://ports.ubuntu.com/ubuntu-ports/pool/main/d/debootstrap/debootstrap_1.0.116ubuntu1_all.deb
  wget -c $url 
  unp *.deb
  debootstrap=$dir/local/install/usr/sbin/debootstrap
 
  sudo apt-get install debootstrap sudo time binutils aptitude cdebootstrap # xhost
  cd "$dir" || exit
  # sudo mount -o remount -o exec .
  time sudo $debootstrap --no-check-gpg --arch="$ARCH" "$DISTRO" "." # 2min
  
  l="dev dev/shm dev/pts sys proc home" # tmp
  for d in $l ; do sudo mount /$d --bind ./$d; done
  cp -a ./etc/resolv.conf   ./etc/resolv.conf.orig
  cat /etc/resolv.conf  >> ./etc/resolv.conf

  # xhost + localhost 
  id # user=rzr  ; uid=10000 
  sudo chroot . # setarch "$ARCH"
  apt-get update ; apt-get install etckeeper sudo
  sudo apt-get install byobu 

  sudo apt-get install sudo byobu localepurge # wget # pciutils ;
  byobu
  user=user # replace
  uid=1000 # replace
  sudo addgroup --gid "$uid" $user ; adduser --uid "$uid" --gid "$uid" $user
  su -l $user
  # cat /etc/network/interface /etc/fstab
  
  sudo apt-get install grub-pc

TIZEN

export DISTRO=oneiric # or try later : export DISTRO=precise 
time wget -c http://download.tizen.org/sdk/current/tizen_sdk.bin
chmod a+rx ./tizen_sdk.bin # sha1=74cd923b32657261eb6863ecb0574e5128dec113
bash -x ./tizen_sdk.bin
sudo apt-get install python-software-properties ca-certificates # -java # y
sudo add-apt-repository ppa:webupd8team/java # CR r # jdk-7u5-linux-i586.tar.gz
sudo apt-get remove openjdk-6-jre ; apt-get autoremove
sudo apt-get update ; time sudo apt-get install oracle-java7-installer #
bash -x ./tizen_sdk.bin
sudo apt-get install qemu-kvm debhelper fakeroot realpath gettext liblua5.1-0 libcurl3 expect
# "libsdl-gfx1.2-4" "binutils-multiarch"
sudo perl -pi -e 's/main/main universe/' /etc/apt/sources.list
sudo apt-get update ; sudo apt-get install multiarch-support binutils-multiarch  libsdl-gfx1.2-4
# sudo apt-get install procps xsltproc libdbus-1-3  libexif12
# sudo apt-get install libgtk2.0-0 libxtst6 xdg-user-dirs xdg-utils unzip
# sudo apt-get install libwebkitgtk-1.0-0 chromium-browser libjpeg62
bash -x ./tizen_sdk.bin
bash -x  ./tizen_sdk/IDE/startup.sh
diff -u /etc/issue.orig /etc/issue
--- /etc/issue.orig     2012-06-07 17:28:08.000000000 +0200
+++ /etc/issue  2012-07-30 21:28:24.685333230 +0200
@@ -1,2 +1,2 @@
-Bodhi 2.0.0 \n \l
+Ubuntu 12.04 \n \l

DebiaN SqueezE :

export DISTRO=squeeze
apt-get update ; apt-get install sun-java6-jre sudo 
sudo apt-get install sun-java6-jdk eclipse

sudo apt-get install qemu-kvm binutils-multiarch debhelper fakeroot realpath libsdl-gfx1.2-4 gettext liblua5.1-0 libcurl3 expect
ln -fs /usr/bin/chromium-browser /opt/google/chrome/google-chrome

ERROR MESSAGES

# ./tizen_sdk.bin: line 32: lspci: command not found
apt-get update ; apt-get install sudo byobu wget pciutils ;
#  If you want to install TIZEN-SDK, you must install "qemu-kvm" "binutils-multiarch" "debhelper" "fakeroot" "realpath" "libsdl-gfx1.2-4" "gettext" "liblua5.1-0" "libcurl3" "expect"  package(s).
# ./tizen_sdk.bin: line 77: [: 10.10: unary operator expected
cat <<EOF | sudo tee /etc/lsb-release.mine
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
EOF
ln -fs  lsb-release.mine   /etc/lsb-release
# Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.swt.widgets.Display                                                                                           
sudo apt-get install eclipse # sun-java6-jdk
# df: Warning: cannot read table of mounted file systems: No such file or directory

IgnorE

# === Preparing to install ===
# SDK runs on Eclipse, which requires JRE, JRE 6 or newer package is required. 
sudo apt-get install openjdk-6-jre # not supported
# + ./InstallManager
# java.lang.NullPointerException
# at org.tizen.installmanager.ui.InstallManagerWindow$4.widgetSelected(InstallManagerWindow.java:390)


# at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
# java.lang.NullPointerException
# at org.tizen.installmanager.ui.InstallManagerWindow$4.widgetSelected(InstallManagerWindow.java:390)
 sudo mount --bind /var/run/dbus/ ./var/run/dbus
+ ./InstallManager
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV[thread -1216652480 also had an error] (0xb)[thread 2123885376 also had an error]

at pc=0x001e0ed6, pid=23351, tid=2116741952

#
# JRE version: 7.0_05-b05
# Java VM: Java HotSpot(TM) Server VM (23.1-b03 mixed mode linux-x86 )
# Problematic frame:
# C  [libdbus-1.so.3+0x2aed6]  dbus_watch_handle+0x3116

MORE

debootstrap.txt · Last modified: 2020/09/08 20:41 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki