User Tools

Site Tools


dev:building_gokien_without_booting_a_ubuntu_based_distro

Building Gokien without booting a Ubuntu based distro

For those who prefer working from a non-Ubuntu system (eg Gentoo, ArchLinux, Fedora…). Note: you still need a Ubuntu system installed in a separated partition. If not, install one or use debootstrap from your distro. Change UBUNTU_PARTITION and the username near YOUR_USERNAME_HERE, then paste all to a terminal

# Allows GUI apps to run in chroot
xhost +
 
UBUNTU_PARTITION=/dev/sda1
NEW_ROOT=$HOME/Projects/precise-chroot
 
mkdir -p ${NEW_ROOT}
 
sudo mount ${UBUNTU_PARTITION} ${NEW_ROOT}
 
sudo mount -o bind /proc ${NEW_ROOT}/proc
sudo mount -o bind /dev ${NEW_ROOT}/dev
sudo mount -o bind /dev/pts ${NEW_ROOT}/dev/pts
sudo mount -o bind /sys ${NEW_ROOT}/sys
 
sudo cp /etc/resolv.conf ${NEW_ROOT}/etc/resolv.conf
 
sudo chroot ${NEW_ROOT} /bin/bash
su thang #YOUR_USERNAME_HERE
export LC_ALL="en_US.UTF-8"
export DISPLAY=:0.0
 
# open your favorite terminal app session so that "open new tab" works on chroot environment
roxterm &
# A file manager may be very helpful
nautilus --no-desktop &
dev/building_gokien_without_booting_a_ubuntu_based_distro.txt · Last modified: 2013/06/19 01:18 by chin