{"id":8379,"date":"2016-04-19T23:15:33","date_gmt":"2016-04-19T14:15:33","guid":{"rendered":"http:\/\/www.ekesete.net\/log\/?p=8379"},"modified":"2016-05-12T08:29:07","modified_gmt":"2016-05-11T23:29:07","slug":"8379","status":"publish","type":"post","link":"https:\/\/www.ekesete.net\/log\/?p=8379","title":{"rendered":"ASUS ZenPad S8.0 chroot\u74b0\u5883\u4f5c\u62103"},"content":{"rendered":"<p>\u6c17\u304c\u3064\u3051\u3070\u4e09\u30f6\u6708\u3082\u3042\u3044\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u304c\u7d9a\u304d\u3067\u3059\u3002<\/p>\n<p>\u4eee\u60f3\u74b0\u5883\u306e\u4f7f\u7528\u65b9\u6cd5\u306f\u4f5c\u6210\u6642\u3068\u307b\u307c\u540c\u3058\u3067\u3059\u3002<br \/>\n 1.\u4f5c\u3063\u305f\u4eee\u60f3\u30a4\u30e1\u30fc\u30b8(ubuntu.img)\u3092SD\u30ab\u30fc\u30c9\u306b\u5165\u308c\u3066ZenPad\u306b\u633f\u5165\u3002<br \/>\n 2.\u30bf\u30fc\u30df\u30ca\u30eb\u30a2\u30d7\u30ea\u304b\u3089ubuntu.img\u3092\u9069\u5f53\u306a\u5834\u6240\u306b\u30eb\u30fc\u30d7\u30d0\u30c3\u30af\u30de\u30a6\u30f3\u30c8<br \/>\n 3.\u5fc5\u8981\u306a\u30c7\u30d0\u30a4\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u3064\u306a\u3050<br \/>\n 4.root\u6a29\u9650\u3067chroot\u3092\u5b9f\u884c<br \/>\n\u3053\u308c\u3067ubuntu\u74b0\u5883\u306b\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u6e96\u5099<\/h3>\n<p>chroot\u306f\u6a19\u6e96\u3067\u306f\u5165\u3063\u3066\u3044\u306a\u3044\u306e\u3067(<a href=\"https:\/\/play.google.com\/store\/apps\/details?id=com.zpwebsites.linuxonandroid&#038;hl=ja\">Complete Linux Installer(Linux on Android)<\/a>)\u306ebusybox\u3092\u4f7f\u308f\u305b\u3066\u3082\u3089\u3044\u307e\u3059\u3002<br \/>\n\u3053\u306e\u30a2\u30d7\u30ea\u3092\u30b9\u30c8\u30a2\u304b\u3089\u5165\u308c\u308b\u3068<br \/>\n\/data\/data\/com.zpwebsites.linuxonandroid\/files\/busybox<br \/>\n\u306bbusybox\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u304b\u3089\u6bce\u56de\u30b3\u30de\u30f3\u30c9\u3092\u6253\u3064\u306e\u3082\u9762\u5012\u306a\u306e\u3067\u8d77\u52d5\/\u7d42\u4e86(\u30c7\u30d0\u30a4\u30b9\u306e\u30a2\u30f3\u30de\u30a6\u30f3\u30c8)\u7528\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u66f8\u3044\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p>ZenPad\u3067\u306f\u5916\u90e8SD\u306f&#8221;\/storage\/MicroSD&#8221;\u306b\u30de\u30a6\u30f3\u30c8\u3055\u308c\u308b\u306e\u3067ubuntu\u306e\u4eee\u60f3\u30a4\u30e1\u30fc\u30b8<br \/>\n\u306f&#8221;\/storage\/MicroSD\/ubuntu.img&#8221;\u306b\u3042\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u30de\u30a6\u30f3\u30c8\u30dd\u30a4\u30f3\u30c8\u306f&#8221;\/storage\/MicroSD\/ubuntu&#8221;\u306b\u3059\u308b\u3053\u3068\u3068\u3057\u307e\u3059\u3002<br \/>\nroot\u53d6\u5f97\u5f8c\u306e\u30b7\u30a7\u30eb\u306f &#8220;\/tmp-mksh\/tmp-mksh&#8221; \u306e\u3088\u3046\u306a\u306e\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>start_ch.sh (\u8d77\u52d5\u7528)<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;height:300px;\"><div class=\"text codecolorer\">#!\/tmp-mksh\/tmp-mksh<br \/>\n<br \/>\n#\u30d5\u30a1\u30a4\u30eb\u4f4d\u7f6e\u6307\u5b9a<br \/>\nBBOX=\/data\/data\/com.zpwebsites.linuxonandroid\/files\/busybox<br \/>\nSD=\/storage\/MicroSD<br \/>\nUBUNTU=$SD\/ubuntu<br \/>\nUSER=ichinomoto<br \/>\n<br \/>\n#\u30de\u30a6\u30f3\u30c8\u30dd\u30a4\u30f3\u30c8\u304c\u7121\u3051\u308c\u3070\u4f5c\u6210<br \/>\nif [ ! -e $UBUNTU ]; then<br \/>\n&nbsp; mkdir $UBUNTU<br \/>\nfi<br \/>\n<br \/>\n#\u30de\u30a6\u30f3\u30c8<br \/>\ncd $SD<br \/>\nmount -t ext4 -o loop $SD\/ubuntu.img $UBUNTU<br \/>\n<br \/>\nmount -o bind \/dev\/ $UBUNTU\/dev\/<br \/>\nmount -t devpts devpts $UBUNTU\/dev\/pts<br \/>\nmount -t proc proc $UBUNTU\/proc<br \/>\nmount -t sysfs sysfs $UBUNTU\/sys<br \/>\n<br \/>\n#\u74b0\u5883\u8a2d\u5b9a\u3092\u884c\u3063\u3066chroot\u306e\u5b9f\u884c<br \/>\n$BBOX env -i TERM=linux SHELL=\/bin\/bash PATH=\/bin:\/sbin:\/usr\/bin:\/usr\/sbin DISPLAY=localhost:0 PULSE_SERVER=tcp:localhost:4712 $BBOX chroot $UBUNTU \/bin\/bash<\/div><\/div>\n<p>stop_ch.sh (\u505c\u6b62\u5f8c\u306eunmount\u7528)<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">#!\/tmp-mksh\/tmp-mksh<br \/>\n<br \/>\nSD=\/storage\/MicroSD<br \/>\nUBUNTU=$SD\/ubuntu<br \/>\n<br \/>\numount $UBUNTU\/sys<br \/>\numount $UBUNTU\/proc<br \/>\numount $UBUNTU\/dev\/pts<br \/>\numount $UBUNTU\/dev<br \/>\numount $UBUNTU<\/div><\/div>\n<p>\u3069\u3061\u3089\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3082\u5b9f\u884c\u524d\u306bsu\u3067root\u306b\u306a\u3063\u3066\u304b\u3089\u5b9f\u884c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u3053\u306e\u305f\u3081\u306b<a href=\"https:\/\/www.ekesete.net\/log\/?p=8270\">\u305d\u306e1<\/a>\u3067root\u3092\u53d6\u5f97\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>start.sh\u3092\u5b9f\u884c\u3059\u308c\u3070chroot\u74b0\u5883\u306eubuntu\u5185\u306b\u5c45\u308b\u3053\u3068\u306b\u306a\u308b\u306e\u3067\u3001\u3042\u3068\u306f\u666e\u901a\u306b\u4f7f\u3046\u3060\u3051\u3067\u3059\u3002<br \/>\n\u305d\u306e\u307e\u307e\u3060\u3068CUI\u3057\u304b\u4f7f\u3048\u306a\u3044\u72b6\u614b\u3067\u3059\u304c\u88cf\u3067\u30b5\u30fc\u30d0\u30fc\u3092\u52d5\u304b\u3057\u305f\u3044\u3068\u304bvim\u3092\u4f7f\u3044\u305f\u3044\u306a\u3069\u3068\u3044\u3046\u6700\u5c0f\u9650\u306e\u8981\u671b\u3067\u3042\u308c\u3070\u3053\u308c\u3067\u3082\u5341\u5206\u3002<br \/>\n\u30bd\u30d5\u30c8\u3092\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u3067\u304d\u308b\u3060\u3051\u3067\u3082\u304b\u306a\u308a\u306e\u5229\u70b9\u304b\u3068\u3002<\/p>\n<h4>GUI\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3059\u308b<\/h4>\n<p>CUI\u74b0\u5883\u3060\u3051\u3067\u3082\u826f\u3044\u3067\u3059\u304c\u3001\u305b\u3063\u304b\u304f\u306a\u306e\u3067X\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<br \/>\n\u3053\u3046\u3044\u3046\u74b0\u5883\u3067GUI\u3092\u4f7f\u3046\u5834\u5408\u306f\u3088\u304fxvfb+vnc\u3092\u4f7f\u3044\u307e\u3059\u304c\u3001Android\u3067\u306fGooglePlay\u306bXserver SDL\u3068\u3044\u3046X\u30b5\u30fc\u30d0\u30fc\u304c\u3042\u308b\u306e\u3067\u3053\u308c\u3092\u4f7f\u3044\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/play.google.com\/store\/apps\/details?id=x.org.server&#038;hl=ja\">XServer XSDL<\/a><\/p>\n<p>\u524d\u56de\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u3063\u305f\u306e\u3067\u3001\u4ee5\u964d\u306f\u305d\u306e\u30e6\u30fc\u30b6\u30fc\u3067\u64cd\u4f5c\u3059\u308b\u3053\u3068\u3092\u524d\u63d0\u306b\u8a18\u8f09\u3057\u307e\u3059\u3002<\/p>\n<p>XSDL\u306b\u63a5\u7d9a\u3059\u308b\u305f\u3081\u306e\u8a2d\u5b9a\u3068\u3057\u3066<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">$export DESKTOP=localhost:0<br \/>\n$export PULSE_SERVER=tcp:localhost:4712<\/div><\/div>\n<p>\u304c\u5fc5\u8981\u306a\u306e\u3067\u3059\u304c\u3001\u4e0a\u3067\u66f8\u3044\u305f\u8d77\u52d5\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u4ee5\u4e0b\u306e\u90e8\u5206\u306b\u65e2\u306b\u8a18\u8f09\u6e08\u307f\u3067\u3059\u3002<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">#\u74b0\u5883\u8a2d\u5b9a\u3092\u884c\u3063\u3066chroot\u306e\u5b9f\u884c<br \/>\n$BBOX env -i TERM=linux SHELL=\/bin\/bash PATH=\/bin:\/sbin:\/usr\/bin:\/usr\/sbin DISPLAY=localhost:0 PULSE_SERVER=tcp:localhost:4712 $BBOX chroot $UBUNTU \/bin\/bash<\/div><\/div>\n<p>\u30de\u30b7\u30f3\u30d1\u30ef\u30fc\u3082\u30b9\u30c8\u30ec\u30fc\u30b8\u30b5\u30a4\u30ba\u3082\u305d\u3053\u305d\u3053\u3042\u308b\u306e\u3067xubuntu\u306e\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u74b0\u5883\u3092\u307e\u308b\u3054\u3068\u5165\u308c\u308b\u306e\u3082\u6709\u308a\u3067\u3059\u3002<br \/>\n#unity\u306f\u91cd\u305d\u3046\u306a\u306e\u3068\u3001\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u3067\u3082\u4f7f\u3063\u3066\u3044\u306a\u3044\u306e\u3067ubuntu-desktop\u306f\u8a66\u3057\u3066\u3044\u307e\u305b\u3093\u304c\u52d5\u304f\u3068\u306f\u601d\u3044\u307e\u3059\u3002<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">$sudo apt-get install xubuntu-desktop<br \/>\n$xfce4-session<\/div><\/div>\n<p>X\u3067\u3064\u306a\u304c\u3063\u3066\u3057\u307e\u3048\u3070\u3042\u3068\u306f\u5927\u4f53\u901a\u5e38\u306eubuntu\u3068\u540c\u69d8\u3067\u3059\u3002<br \/>\n\u3053\u3053\u307e\u3067\u3059\u308b\u3068\u30de\u30a6\u30b9\u3068\u30ad\u30fc\u30dc\u30fc\u30c9\u304c\u307b\u3057\u304f\u306a\u308b\u306e\u3067Android\u5074\u3067BT\u30de\u30a6\u30b9\u3084\u30ad\u30fc\u30dc\u30fc\u30c9\u3092\u63a5\u7d9a\u3057\u3066\u304a\u304f\u3068\u826f\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u3053\u3093\u306a\u611f\u3058\u306b\u306a\u308a\u307e\u3059\u3002\u666e\u901a\u306ePC\u3068\u307b\u307c\u5909\u308f\u308a\u307e\u305b\u3093\u3002\u30b9\u30c8\u30ec\u30fc\u30b8\u304c\u9045\u3044\u306e\u3068\u30de\u30a6\u30b9\u306e\u52d5\u4f5c\u304c\u602a\u3057\u3044\u3067\u3059\u304c\u2026<br \/>\n<a href=\"https:\/\/www.ekesete.net\/log\/?attachment_id=8458\" rel=\"attachment wp-att-8458\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ekesete.net\/log\/wp-content\/uploads\/2016\/01\/chroot3-300x199.jpg\" alt=\"chroot3\" width=\"300\" height=\"199\" class=\"aligncenter size-medium wp-image-8458\" srcset=\"https:\/\/www.ekesete.net\/log\/wp-content\/uploads\/2016\/01\/chroot3-300x199.jpg 300w, https:\/\/www.ekesete.net\/log\/wp-content\/uploads\/2016\/01\/chroot3-768x509.jpg 768w, https:\/\/www.ekesete.net\/log\/wp-content\/uploads\/2016\/01\/chroot3.jpg 800w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\n\u3000<br \/>\n\u307e\u3042\u305b\u3063\u304b\u304f\u4f5c\u3063\u305f\u3093\u3067\u3059\u304c\u5b9f\u306f\u3042\u307e\u308a\u6d3b\u7528\u3055\u308c\u3066\u306a\u304b\u3063\u305f\u308a\u3002<br \/>\nAndroid\u74b0\u5883\u3067\u5341\u5206\u306a\u3093\u3067\u3059\u3088\u306d\u3048\u3002<br \/>\n\u3000<br \/>\n\u3000<br \/>\n\u3000<br \/>\n\u3000<\/p>\n<p>\u4ee5\u4e0b\u30e1\u30e2<\/p>\n<h4>wine\u3092\u5165\u308c\u3066\u307f\u308b<\/h4>\n<p>\u305b\u3063\u304b\u304f\u306a\u306e\u3067wine\u3092\u5165\u308c\u3066\u307f\u307e\u3059\u3002<br \/>\n\u3068\u3044\u3063\u3066\u3082\u624b\u9806\u306f\u901a\u5e38\u306e\u30c7\u30b9\u30af\u30c8\u30c3\u30d7PC\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306e\u3068\u540c\u3058\u3002<\/p>\n<p>\u6e96\u5099<br \/>\narch\u3092amd64\u306b\u3057\u305f\u5834\u5408\u3001\u5fc5\u8981\u306ai386\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u53c2\u7167\u5148\u304csources.list\u306b\u7121\u304f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u306a\u3044\u306e\u3067apt-get\u306e\u5bfe\u8c61\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306bi386\u3092\u8ffd\u52a0\u3002<br \/>\n\u53c2\u8003:<a href=\"http:\/\/askubuntu.com\/questions\/454253\/how-to-run-32-bit-app-in-ubuntu-64-bit\">How to run 32-bit app in Ubuntu 64-bit?<\/a><\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">#dpkg --add-architecture i386<br \/>\n#apt-get update<br \/>\n#apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386<\/div><\/div>\n<p>\u3053\u306e\u6b21\u3067wine\u306eppa\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u8ffd\u52a0\u3059\u308b\u306e\u306badd-apt-repository\u30b3\u30de\u30f3\u30c9\u304c\u7121\u3044\u3068\u3044\u308f\u308c\u308b\u306e\u3067\u5148\u306b\u5165\u308c\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">#apt-get install software-properties-common<\/div><\/div>\n<p>wine\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u8ffd\u52a0\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">#add-apt-repository ppa:ubuntu-wine\/ppa<br \/>\n#apt-get install wine1.8<\/div><\/div>\n<p>\u3000<br \/>\n\u3000<\/p>\n<hr>\n<p>[2016\/5\/12 \u4fee\u6b63]<br \/>\nXServerSDL\u3067\u4f7f\u7528\u3059\u308bPULSE_SERVER\u306e\u63a5\u7d9a\u30dd\u30fc\u30c8\u756a\u53f7\u304c\u9593\u9055\u3063\u3066\u3044\u305f\u306e\u3092\u4fee\u6b63<br \/>\n\u8aa4)PULSE_SERVER=tcp:localhost:4217<br \/>\n\u6b63)PULSE_SERVER=tcp:localhost:4712<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6c17\u304c\u3064\u3051\u3070\u4e09\u30f6\u6708\u3082\u3042\u3044\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u304c\u7d9a\u304d\u3067\u3059\u3002 \u4eee\u60f3\u74b0\u5883\u306e\u4f7f\u7528\u65b9\u6cd5\u306f\u4f5c\u6210\u6642\u3068\u307b\u307c\u540c\u3058\u3067\u3059\u3002 1.\u4f5c\u3063\u305f\u4eee\u60f3\u30a4\u30e1\u30fc\u30b8(ubuntu.img)\u3092SD\u30ab\u30fc\u30c9\u306b\u5165\u308c\u3066ZenPad\u306b\u633f\u5165\u3002 2.\u30bf\u30fc\u30df\u30ca\u30eb\u30a2\u30d7\u30ea\u304b\u3089ubuntu.\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.ekesete.net\/log\/?p=8379\">\u7d9a\u304d\u3092\u8aad\u3080 &raquo;<\/a><\/span><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,48,52],"tags":[],"class_list":["post-8379","post","type-post","status-publish","format-standard","hentry","category-android","category-linux","category-zenpad-s8-0"],"_links":{"self":[{"href":"https:\/\/www.ekesete.net\/log\/index.php?rest_route=\/wp\/v2\/posts\/8379","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ekesete.net\/log\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ekesete.net\/log\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ekesete.net\/log\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ekesete.net\/log\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8379"}],"version-history":[{"count":26,"href":"https:\/\/www.ekesete.net\/log\/index.php?rest_route=\/wp\/v2\/posts\/8379\/revisions"}],"predecessor-version":[{"id":8578,"href":"https:\/\/www.ekesete.net\/log\/index.php?rest_route=\/wp\/v2\/posts\/8379\/revisions\/8578"}],"wp:attachment":[{"href":"https:\/\/www.ekesete.net\/log\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8379"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ekesete.net\/log\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8379"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ekesete.net\/log\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8379"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}