HOWTO on running Tizen on ArchLinux (using Ubuntu chroot)

April 24, 2013

Here is my honest confession about Ubuntu and Tizen. I seriously dislike them as they are bloated and designed & developed by nuts. Anyway, I wanted the Tizen SDK to run on my ArchLinux box (for code review & curiosity).

Here is the HOWTO on running Tizen on ArchLinux (using Ubuntu chroot) : I know it is SICK!!

Create preliminary Ubuntu chroot in ArchLinux :

  1. aurget –deps -Sy –nodiscard –noedit –noconfirm –asroot debootstrap

  2. mkdir /home/ubuntu-chroot

  3. cd /home/ubuntu-chroot

  4. debootstrap –arch=amd64 quantal ubuntu-quantal-amd64 http://192.168.17.10:3142/archive.ubuntu.com/ubuntu/

  5. ln -s /proc/mounts ubuntu-quantal-amd64/etc/mtab

  6. rm ubuntu-quantal-amd64/etc/resolv.conf

  7. echo “nameserver 8.8.8.8” > ubuntu-quantal-amd64/etc/resolv.conf

  8. echo “log:x:19:” >> ubuntu-quantal-amd64/etc/group

  9. update /etc/apt/sources (curl http://192.168.17.10/public/apt-cacher/sources.list > ubuntu-quantal-amd64/etc/apt/sources.list )

Chrooting to Ubuntu chroot :

  1. cat chroot-to-ubuntu.sh

xhost +
mount -o bind /proc/ ubuntu-quantal-amd64/proc/
mount -o bind /dev/ ubuntu-quantal-amd64/dev/
LC_ALL=en_US.UTF-8 chroot ubuntu-quantal-amd64 bash
killall -gq dbus-launch

killall -gq /usr/lib/rtkit/rtkit-daemon

sleep 3
umount ubuntu-quantal-amd64/proc/
umount ubuntu-quantal-amd64/dev/

Setting-up Ubuntu chroot :

  1. apt-get update

  2. apt-key adv –keyserver keyserver.ubuntu.com –recv-keys 16126D3A3E5C1192

  3. apt-key adv –keyserver keyserver.ubuntu.com –recv-keys C2518248EEA14886

  4. dpkg-divert –local –rename –add /sbin/initctl

  5. ln -sf /bin/true /sbin/initctl

  6. apt-get -y –no-install-recommends install locales wget curl debconf devscripts gnupg vim aptitude mc

  7. apt-get -y –no-install-recommends install build-essential git-core

  8. locale-gen en_US.UTF-8

  9. update-locale en_US.UTF-8

  10. ln -sf /usr/share/zoneinfo/Asia/Kolkata /etc/localtime

  11. adduser USERNAME

  12. gpasswd -a USERNAME root

  13. gpasswd -a USERNAME users

  14. gpasswd -a USERNAME sudo

Apps/themes [optional] :

  1. apt-get -y –no-install-recommends install vim-gtk

  2. apt-get -y –no-install-recommends install gtk2-engines-oxygen gtk3-engines-oxygen oxygen-icon-theme

  3. echo “gtk-theme-name = \”oxygen-gtk\”” > /etc/gtk-2.0/gtkrc

  4. echo “gtk-icon-theme-name = \”oxygen\”” >> /etc/gtk-2.0/gtkrc

  5. echo “gtk-font-name = \”Liberation Sans 9\”” >> /etc/gtk-2.0/gtkrc

  6. cat /etc/gtk-2.0/gtkrc > /etc/gtk-3.0/gtkrc

Preparing for Tizen development :

  1. apt-get –no-install-recommends install oracle-java6-installer

  2. apt-get -y –no-install-recommends install procps gettext libdbus-1-3 libcurl3 expect gtk2-engines-pixbuf grep zip make qemu-user-static libwebkitgtk-1.0-0 libgnome2-0 pciutils libxtst6 libglu1-mesa libv4l-0

  3. apt-get -y –no-install-recommends install xdg-utils unzip

  4. apt-get -y –no-install-recommends install qemu-kvm

  5. su – USERNAME

  6. mkdir -p ~/.local/share/desktop-directories/

  7. wget http://download.tizen.org/sdk/InstallManager/tizen-sdk-2.0-ubuntu64.bin

  8. bash ./tizen-sdk-2.0-ubuntu64.bin

  9. su – tizen-dev

  10. /home/tizen-dev/tizen-sdk/ide/startup.sh &

 

Advertisements

One Response to “HOWTO on running Tizen on ArchLinux (using Ubuntu chroot)”


  1. You do not need to use ubuntu chroot. It is possible to setup Tizen SDK on Archlinux. I try it today and everythink works well (IDE and emulator).


Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: