{"id":783,"date":"2017-01-17T21:54:22","date_gmt":"2017-01-17T12:54:22","guid":{"rendered":"http:\/\/okamurax.com\/?p=783"},"modified":"2020-05-05T01:10:48","modified_gmt":"2020-05-04T16:10:48","slug":"schroot-debootstrap%e3%81%a7%e7%92%b0%e5%a2%83%e6%a7%8b%e7%af%89","status":"publish","type":"post","link":"https:\/\/appbay.org\/?p=783","title":{"rendered":"schroot debootstrap\u3067\u74b0\u5883\u69cb\u7bc9"},"content":{"rendered":"<p><span style=\"color: #0000ff;\">sudo apt-get install schroot debootstrap<\/span><\/p>\n<p><span style=\"color: #0000ff;\">mkdir -p \/home\/okamura\/chroot<\/span><\/p>\n<p><span style=\"color: #0000ff;\">sudo debootstrap &#8211;arch=i386 &#8211;include=sudo jessie \/home\/okamura\/chroot http:\/\/ftp.jp.debian.org\/debian<\/span><\/p>\n<p>&#8211;\u3053\u3053\u304b\u3089\u4e0d\u8981(type=directory\u306b\u3059\u308b\u3068\u81ea\u52d5\u3067\u51e6\u7406)<\/p>\n<p><span style=\"color: #0000ff;\">sudo vim \/etc\/fstab<\/span><br \/>\n\u306b\u4ee5\u4e0b\u306e\u5185\u5bb9\u3092\u8ffd\u8a18<\/p>\n<p><span style=\"color: #0000ff;\">proc-chroot \/home\/okamura\/chroot\/proc proc defaults 0 0<\/span><br \/>\n<span style=\"color: #0000ff;\"> devpts-chroot \/home\/okamura\/chroot\/dev\/pts devpts defaults 0 0<\/span><br \/>\n<span style=\"color: #0000ff;\"> \/tmp \/home\/okamura\/chroot\/tmp none bind 0 0<\/span><br \/>\n<span style=\"color: #0000ff;\"> \/home \/home\/okamura\/chroot\/home none bind 0 0<\/span><\/p>\n<p><span style=\"color: #0000ff;\">sudo mount -a<\/span><br \/>\n\u306b\u3066\u78ba\u8a8d<\/p>\n<p>&#8211;\u3053\u3053\u307e\u3067\u4e0d\u8981<\/p>\n<p><span style=\"color: #0000ff;\">sudo vim \/etc\/schroot\/schroot.conf<\/span><br \/>\n\u306b\u4ee5\u4e0b\u8ffd\u8a18<\/p>\n<p><span style=\"color: #0000ff;\">[jessie]<\/span><br \/>\n<span style=\"color: #0000ff;\">description=Debian jessie<\/span><br \/>\n<span style=\"color: #0000ff;\">type=directory<\/span><br \/>\n<span style=\"color: #0000ff;\">directory=\/home\/okamura\/chroot<\/span><br \/>\n<span style=\"color: #0000ff;\"># users\u306bschroot\u8a31\u53ef\u3059\u308b\u30e6\u30fc\u30b6\u4e00\u89a7\u3092\u5217\u6319<\/span><br \/>\n<span style=\"color: #0000ff;\">users=okamura<\/span><br \/>\n<span style=\"color: #0000ff;\">groups=okamura<\/span><br \/>\n<span style=\"color: #0000ff;\">root-groups=root<\/span><br \/>\n<span style=\"color: #0000ff;\">aliases=default<\/span><\/p>\n<p>&#8211;\u3053\u3053\u304b\u3089\u4e0d\u8981<\/p>\n<p><span style=\"color: #0000ff;\">sudo vim \/home\/okamura\/chroot\/etc\/debian_chroot<\/span><br \/>\n\u3092\u4f5c\u6210\u3057jessie\u3068\u8ffd\u8a18<\/p>\n<p>&#8211;\u3053\u3053\u307e\u3067\u4e0d\u8981<\/p>\n<p><span style=\"color: #0000ff;\">schroot -l<\/span><br \/>\n\u8a2d\u5b9a\u3067\u78ba\u8a8d<\/p>\n<p><span style=\"color: #0000ff;\">schroot -c jessie -i<\/span><br \/>\n\u74b0\u5883\u78ba\u8a8d<\/p>\n<p><span style=\"color: #0000ff;\">schroot -c jessie -p<\/span><br \/>\n\u3067\u63a5\u7d9a<\/p>\n<p>\u30d0\u30fc\u30b8\u30e7\u30f3\u78ba\u8a8d<br \/>\n<span style=\"color: #0000ff;\">cat \/etc\/debian_version<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>sudo apt-get install schroot debootstrap mkdir -p \/home\/okamura\/chroot sudo debootstrap &#8211;arch=i386 &#038;#821 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/appbay.org\/?p=783\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;schroot debootstrap\u3067\u74b0\u5883\u69cb\u7bc9&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[145],"class_list":["post-783","post","type-post","status-publish","format-standard","hentry","category-1","tag-linux"],"_links":{"self":[{"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/783","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=783"}],"version-history":[{"count":2,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/783\/revisions"}],"predecessor-version":[{"id":806,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/783\/revisions\/806"}],"wp:attachment":[{"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=783"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=783"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=783"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}