{"id":703,"date":"2021-04-16T09:34:01","date_gmt":"2021-04-16T00:34:01","guid":{"rendered":"https:\/\/sirius10.dip.jp\/blog\/wordpress\/?p=703"},"modified":"2021-04-16T09:34:57","modified_gmt":"2021-04-16T00:34:57","slug":"post-703","status":"publish","type":"post","link":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/2021\/04\/16\/703\/","title":{"rendered":"\u305d\u308d\u305d\u308d\u30b2\u30fc\u30e0\u306f\u4e00\u65e6\u7d42\u308f\u308a\u306b\u3057\u3066 wine \u3092\u3084\u308d\u3046"},"content":{"rendered":"\n<p>\u3000web \u3067\u691c\u7d22\u3059\u308b\u3068\u3001Raspberry Pi OS \u3067 wine \u3092\u52d5\u304b\u3059\u306b\u306f\u3001qemu-x86_64-static \u3068 wine64 \u3092\u4f7f\u7528\u3059\u308c\u3070\u3044\u3044\u3068\u66f8\u3044\u3066\u3042\u308b\u306e\u3067\u3001\u3084\u3063\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"console\">$ sudo apt-get update<br>$ sudo apt-get upgrade<br>$ sudo apt-get update &amp;&amp; sudo apt-get install qemu qemu-user  qemu-user-static binfmt-support debootstrap binutils<\/p>\n\n\n\n<p>\u3000\u3053\u3053\u307e\u3067\u306f\u524d\u56de\u3067\u3084\u3063\u3066\u3044\u308b\u306e\u3067\u3053\u306e\u7d9a\u304d\u304b\u3089\u3002<\/p>\n\n\n\n<p class=\"console\">$ sudo mkdir \/x86_64\/<br>$ sudo debootstrap &#8211;foreign &#8211;arch amd64 stretch \/x86_64 http:\/\/ftp.us.debian.org\/debian<br>$ sudo mount -t sysfs sys \/x86_64\/sys\/<br>$ sudo mount -t proc proc \/x86_64\/proc\/<br>$ sudo mount &#8211;bind \/dev \/x86_64\/dev\/<br>$ sudo mount &#8211;bind \/dev\/pts \/x86_64\/dev\/pts\/<br>$ sudo mount &#8211;bind \/dev\/shm \/x86_64\/dev\/shm\/<br>$ sudo cp \/usr\/bin\/qemu-x86_64-static \/x86_64\/usr\/bin\/<br>$ sudo chroot \/x86_64\/ \/debootstrap\/debootstrap &#8211;second-stage<br>$ sudo chroot \/x86_64\/ \/bin\/su -l root<br># apt -y install locales<br># vi \/etc\/locale.gen (ja_JP.UTF-8\u306e\u884c\u306e\u30b3\u30e1\u30f3\u30c8\u3092\u89e3\u9664)<br># locale-gen<br># update-locale LANG=ja_JP.UTF-8<br># echo &#8220;export LANGUAGE=ja_JP.UTF-8&#8221; &gt;&gt; .bashrc<br># echo &#8220;export LC_ALL=ja_JP.UTF-8&#8221; &gt;&gt; .bashrc<br># echo &#8220;export DISPLAY=:0&#8221; &gt;&gt; .bashrc<br># source ~\/.bashrc<br># apt update<br># adduser -uid 1000 pi<br># apt -y install leafpad<br># apt -y install fonts-droid-fallback fonts-vlgothic<br># exit<br>$ sudo chroot \/x86_64\/ \/bin\/su -l pi<br>$ echo &#8220;export LANGUAGE=ja_JP.UTF-8&#8221; &gt;&gt; .bashrc<br>$ echo &#8220;export LC_ALL=ja_JP.UTF-8&#8221; &gt;&gt; .bashrc<br>$ echo &#8220;export DISPLAY=:0&#8221; &gt;&gt; .bashrc<br>$ source ~\/.bashrc<br>$ leafpad<br>$ exit<br>$ sudo chroot \/x86_64\/ \/bin\/su -l root<br># apt -y install wine64<br># exit<br>$ sudo chroot \/x86_64\/ \/bin\/su -l pi<br>$ winecfg<br>$ exit<br>$ sudo umount \/x86_64\/sys\/<br>$ sudo umount \/x86_64\/proc\/<br>$ sudo umount \/x86_64\/dev\/pts\/<br>$ sudo umount \/x86_64\/dev\/shm\/<br>$ sudo umount \/x86_64\/dev\/<\/p>\n\n\n\n<p>\u3000\u7d50\u5c40\u3001\u3044\u308d\u3044\u308d\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u304c\u3001 x86_64 \u3067\u3082\u52d5\u304b\u6765\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u3044\u3084\u3001\u52d5\u3044\u305f\u3053\u3068\u306f\u52d5\u3044\u305f\u3093\u3067\u3059\u304c\u3001win32 \u30a2\u30d7\u30ea\u304c\u307b\u3068\u3093\u3069\u52d5\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002wine32 \u3092\u5165\u308c\u308d\u3068\u8b66\u544a\u304c\u51fa\u307e\u3059\u304c\u3001\u5165\u308c\u308b\u3068\u4eca\u5ea6\u306f\u30d0\u30b9\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3000web \u3067\u691c\u7d22\u3059\u308b\u3068\u3001Raspberry Pi OS \u3067 wine \u3092\u52d5\u304b\u3059\u306b\u306f\u3001qemu-x86_64-static \u3068 wine64 \u3092\u4f7f\u7528\u3059\u308c\u3070\u3044\u3044\u3068\u66f8\u3044\u3066\u3042\u308b\u306e\u3067\u3001\u3084\u3063\u3066\u307f\u307e\u3059\u3002 $ sudo apt-get  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-703","post","type-post","status-publish","format-standard","hentry","category-wine"],"_links":{"self":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/703","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=703"}],"version-history":[{"count":4,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/703\/revisions"}],"predecessor-version":[{"id":1028,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/703\/revisions\/1028"}],"wp:attachment":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=703"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=703"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=703"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}