{"id":18885,"date":"2015-05-11T05:58:01","date_gmt":"2015-05-10T21:58:01","guid":{"rendered":"https:\/\/2blog.ilc.edu.tw\/25793\/2015\/05\/11\/%e5%ae%a2%e8%a3%bd%e5%8c%96-ubuntu-mac-style-myprecise2015_0420-%e5%85%89%e7%a2%9f\/"},"modified":"2021-03-18T17:24:26","modified_gmt":"2021-03-18T09:24:26","slug":"%e5%ae%a2%e8%a3%bd%e5%8c%96-ubuntu-mac-style-myprecise2015_0420-%e5%85%89%e7%a2%9f","status":"publish","type":"post","link":"https:\/\/2blog.ilc.edu.tw\/25793\/2015\/05\/11\/%e5%ae%a2%e8%a3%bd%e5%8c%96-ubuntu-mac-style-myprecise2015_0420-%e5%85%89%e7%a2%9f\/","title":{"rendered":"\u5ba2\u88fd\u5316 Ubuntu Mac Style myPrecise2015_0420 \u5149\u789f"},"content":{"rendered":"<p>\u53c3\u8003\u6587\u4ef6\uff1aFranklin ezgo \u6253\u5305\u6280\u8853\u521d\u7aba\u63a2<br \/>1. \u5207\u63db\u6210 root<br \/>$ <span style=\"color: #ff0000\">sudo su &#8211;<\/span><\/p>\n<p>2. \u5b89\u88dd squashfs-tools \u5957\u4ef6<br \/># <span style=\"color: #ff0000\">apt-get install squashfs-tools<\/span><\/p>\n<p>3. \u5efa\u7acb myPrecise \u76ee\u9304<br \/># <span style=\"color: #ff0000\">mkdir myPrecise<\/span><\/p>\n<p>4. \u639b\u8f09 iso \u5149\u789f<br \/># <span style=\"color: #ff0000\">mount -o loop myPrecise2015_0420.iso myPrecise<\/span>[@more@]<br \/>5. \u8907\u88fd myPrecise \u76ee\u9304\u6210 iso.myPrecise \u4ee5\u9032\u884c\u4fee\u6539\u4f5c\u696d<br \/># <span style=\"color: #ff0000\">cp -af myPrecise iso.myPrecise<\/span><\/p>\n<p>6. \u642c\u79fb iso.myPrecise\/casper\/filesystem.squashfs \u5230\u73fe\u5728\u7684\u76ee\u9304\u4e4b\u4e0b<br \/># <span style=\"color: #ff0000\">mv iso.myPrecise\/casper\/filesystem.squashfs .<\/span><\/p>\n<p>7. \u89e3\u958b filesystem.squashfs<br \/># <span style=\"color: #ff0000\">unsquashfs -d os.myPrecise filesystem.squashfs<\/span><\/p>\n<p>8. chroot \u5230 os.myPrecise \u76ee\u9304\u4e4b\u4e0b\uff0c\u524d\u7f6e\u5b57\u5143\u6539\u6210<span style=\"color: #ff0000\"> \/#<\/span> \u4ee3\u8868\u5728 chroot \u4e4b\u4e0b<br \/># <span style=\"color: #ff0000\">chroot .\/os.myPrecise<\/span><\/p>\n<p>9. \u639b\u8f09\u76ee\u9304<br \/>\/# <span style=\"color: #ff0000\">mount -t proc none \/proc<\/span><br \/>\/# <span style=\"color: #ff0000\">mount -t sysfs none \/sys<\/span><br \/>\/# <span style=\"color: #ff0000\">mount -t devpts none \/dev\/pts<\/span><\/p>\n<p>10. \u589e\u52a0 DNS Server \u8a2d\u5b9a<br \/>\/# <span style=\"color: #ff0000\">echo &#8220;nameserver 168.95.1.1&#8221; &gt; \/etc\/resolv.conf<\/span><\/p>\n<p>11. \u5207\u63db\u5230 \/etc\/apt \u76ee\u9304\u4e4b\u4e0b<br \/>\/# <span style=\"color: #ff0000\">cd \/etc\/apt<\/span><\/p>\n<p>12. \u4fee\u6539\u5957\u4ef6\u5eab\u4f86\u6e90<br \/>\/# <span style=\"color: #ff0000\">sed -ri &#8216;s\/tw.archive.ubuntu.com\/free.nchc.org.tw\/g&#8217; sources.list<\/span><br \/>\/# <span style=\"color: #ff0000\">sed -ri &#8216;s\/archive.ubuntu.com\/free.nchc.org.tw\/g&#8217; sources.list<\/span><br \/>\/# <span style=\"color: #ff0000\">sed -ri &#8216;s\/security.ubuntu.com\/free.nchc.org.tw\/g&#8217; sources.list<\/span><\/p>\n<p>13 . \u66f4\u65b0\u5957\u4ef6\u5eab<br \/>\/# <span style=\"color: #ff0000\">apt-get update<\/span><\/p>\n<p>14. \u79fb\u9664\u904a\u6232<br \/>\/# <span style=\"color: #ff0000\">apt-get remove &#8211;purge aisleriot gnome-games-data gnome-sudoku gnomine mahjongg<\/span><\/p>\n<p>15. \u79fb\u9664 Apache OpenOffice<br \/>\/# <span style=\"color: #ff0000\">apt-get remove &#8211;purge openoffice-calc openoffice-core01 openoffice-debian-menus openoffice-ure openoffice.org-hyphenation<\/span><\/p>\n<p>16. \u5b89\u88dd LibreOffice<br \/>\/# <span style=\"color: #ff0000\">apt-get install libreoffice libreoffice-l10n-zh-tw<\/span><br \/>\/# <span style=\"color: #ff0000\">apt-get install libreoffice-style-crystal libreoffice-style-hicontrast libreoffice-style-oxygen<\/span><\/p>\n<p>17. LibreOffice \u529f\u80fd\u8868\u4fee\u6539<br \/>\/#<span style=\"color: #ff0000\"> rm -rf \/etc\/skel\/.local\/share\/applications\/openoffice4-*<\/span><br \/>\/# <span style=\"color: #ff0000\">rm -rf \/etc\/skel\/.local\/share\/applications\/libreoffice*<\/span><br \/>\/# <span style=\"color: #ff0000\">cd \/usr\/share\/applications<\/span><br \/>\/# <span style=\"color: #ff0000\">cp libreoffice-base.desktop libreoffice-calc.desktop libreoffice-draw.desktop libreoffice-impress.desktop libreoffice-math.desktop libreoffice-writer.desktop \/etc\/skel\/.local\/share\/applications<\/span><\/p>\n<p>18. \u79fb\u9664 gimp<br \/>\/# <span style=\"color: #ff0000\">apt-get remove &#8211;purge gimp gimp-data gimp-data-extras gimp-help-common gimp-help-en gimp-resynthesizer libgimp2.0<\/span><\/p>\n<p>19. \u79fb\u9664 inkscape<br \/>\/# <span style=\"color: #ff0000\">apt-get remove &#8211;purge inkscape-trunk<\/span><br \/>\/# <span style=\"color: #ff0000\">rm -rf \/etc\/skel\/.local\/share\/applications\/inkscape.desktop<\/span><\/p>\n<p>20. \u79fb\u9664 Empathy<br \/>\/# <span style=\"color: #ff0000\">apt-get remove &#8211;purge empathy empathy-common nautilus-sendto-empathy<\/span><\/p>\n<p>21. \u79fb\u9664 Gwibber<br \/>\/# <span style=\"color: #ff0000\">apt-get remove &#8211;purge gwibber gwibber-service gwibber-service-facebook gwibber-service-identica gwibber-service-twitter libgwibber-gtk2 libgwibber2<\/span><\/p>\n<p>22. \u79fb\u9664 Pidgin<br \/>\/# <span style=\"color: #ff0000\">apt-get remove &#8211;purge pidgin pidgin-data pidgin-libnotify<\/span><br \/>\/# <span style=\"color: #ff0000\">rm -rf \/etc\/skel\/.local\/share\/applications\/pidgin.desktop<\/span><\/p>\n<p>23. \u79fb\u9664 skype<br \/>\/# <span style=\"color: #ff0000\">apt-get remove &#8211;purge skype skype-bin<\/span><\/p>\n<p>24. \u79fb\u9664 Brasero<br \/>\/# <span style=\"color: #ff0000\">apt-get remove &#8211;purge brasero brasero-cdrkit libbrasero-media3-1 rhythmbox-plugin-cdrecorder<\/span><\/p>\n<p>25. \u79fb\u9664 k3b<br \/>\/# <span style=\"color: #ff0000\">apt-get remove &#8211;purge k3b k3b-data libk3b6 libk3b6-extracodecs<\/span><br \/>\/# <span style=\"color: #ff0000\">rm -rf \/etc\/skel\/.local\/share\/applications\/kde4-k3b.desktop<\/span><br \/>\/# <span style=\"color: #ff0000\">rm -rf \/etc\/skel\/.local\/share\/applications\/alacarte-made-3.desktop<\/span><\/p>\n<p>26. \u79fb\u9664 network-manage \u53ca\u8a2d\u5b9a<br \/>\/# <span style=\"color: #ff0000\">apt-get remove &#8211;purge network-manager network-manager-gnome network-manager-pptp network-manager-pptp-gnome<\/span><br \/>\/# <span style=\"color: #ff0000\">mv \/etc\/resolv.conf \/run\/resolvconf<\/span><br \/>\/# <span style=\"color: #ff0000\">ln -s \/run\/resolvconf\/resolv.conf \/etc\/resolv.conf<\/span><\/p>\n<p>27. \u5b89\u88dd chromium \u700f\u89bd\u5668\u53ca Flash<br \/>\/# <span style=\"color: #ff0000\">apt-get install chromium-browser chromium-browser-l10n chromium-codecs-ffmpeg<\/span><br \/>\/# <span style=\"color: #ff0000\">apt-add-repository ppa:skunk\/pepper-flash<\/span><br \/>\/# <span style=\"color: #ff0000\">apt-get update<\/span><br \/>\/# <span style=\"color: #ff0000\">apt-get install pepflashplugin-installer<\/span><br \/>\/# <span style=\"color: #ff0000\">sed -i &#8216;$a. \/usr\/lib\/pepflashplugin-installer\/pepflashplayer.sh&#8217; \/etc\/chromium-browser\/default<\/span><\/p>\n<p>28. \u5b89\u88dd Adobe PDF Reader<br \/>\/# <span style=\"color: #ff0000\">add-apt-repository &#8220;deb http:\/\/archive.canonical.com\/ precise partner&#8221;<\/span><br \/>\/# <span style=\"color: #ff0000\">apt-get update<\/span><br \/>\/# <span style=\"color: #ff0000\">apt-get install acroread<\/span><\/p>\n<p>29. \u5b89\u88dd shutter \u64f7\u5716\u8edf\u9ad4<br \/>\/# <span style=\"color: #ff0000\">apt-get install shutter<\/span><\/p>\n<p>30. \u5b89\u88dd vim \u548c\u00a0 leafpad \u7de8\u8f2f\u5668<br \/>\/# <span style=\"color: #ff0000\">apt-get install vim leafpad<\/span><\/p>\n<p>31. \u5b89\u88dd\u81ea\u52d5\u5207\u63db\u80cc\u666f\u8edf\u9ad4 variety<br \/>\/# <span style=\"color: #ff0000\">apt-get install variety<\/span><\/p>\n<p>32. \u4e0d\u63d0\u793a\u66f4\u65b0<br \/>\/# <span style=\"color: #ff0000\">sed -i &#8216;\/Package-Lists\/s\/1\/0\/&#8217; \/etc\/apt\/apt.conf.d\/10periodic<\/span><br \/>\/# <span style=\"color: #ff0000\">sed -i &#8216;s\/Prompt=lts\/Prompt=never\/&#8217; \/etc\/update-manager\/release-upgrades<\/span><\/p>\n<p>33. \u5584\u5f8c\u5de5\u4f5c<br \/>\/# <span style=\"color: #ff0000\">apt-get autoremove<\/span><br \/>\/# <span style=\"color: #ff0000\">apt-get autoclean<\/span><br \/>\/# <span style=\"color: #ff0000\">apt-get clean all<\/span><\/p>\n<p>34 . \u53d6\u6d88\u639b\u8f09\u76ee\u9304<br \/>\/# <span style=\"color: #ff0000\">umount -l \/proc \/sys \/dev\/pts<\/span><\/p>\n<p>35. \u9000\u51fa chroot<br \/>\/# <span style=\"color: #ff0000\">exit<\/span><\/p>\n<p>36. \u9032\u884c\u6253\u5305<br \/># <span style=\"color: #ff0000\">rm -rf iso.myPrecise\/casper\/filesystem.squashfs<\/span><br \/># <span style=\"color: #ff0000\">mksquashfs os.myPrecise iso.myPrecise\/casper\/filesystem.squashfs<\/span><\/p>\n<p>37. \u5207\u63db\u76ee\u9304<br \/># <span style=\"color: #ff0000\">cd iso.myPrecise<\/span><\/p>\n<p>38. \u7522\u751f iso \u5149\u789f<br \/># <span style=\"color: #ff0000\">mkisofs -r -V &#8220;myPrecise&#8221; -J -l -b isolinux\/isolinux.bin -c isolinux\/boot.cat -no-emul -boot-load-size 4 -boot-info-table -o ..\/myPrecise2015_0511.iso .<\/span><\/p>\n<p>39. \u9032\u884c\u9a57\u8b49<br \/><a id=\"res_3037457\" href=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/25793-3037457.png\"><img decoding=\"async\" src=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/previews-med\/25793-3037457.png\" border=\"0\" alt=\"\" \/><\/a><\/p>\n<p><a id=\"res_3037456\" href=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/25793-3037456.png\"><img decoding=\"async\" src=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/previews-med\/25793-3037456.png\" border=\"0\" alt=\"\" \/><\/a><\/p>\n<p><a id=\"res_3037455\" href=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/25793-3037455.png\"><img decoding=\"async\" src=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/previews-med\/25793-3037455.png\" border=\"0\" alt=\"\" \/><\/a><\/p>\n<p><a id=\"res_3037454\" href=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/25793-3037454.png\"><img decoding=\"async\" src=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/previews-med\/25793-3037454.png\" border=\"0\" alt=\"\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u53c3\u8003\u6587\u4ef6\uff1aFranklin ezgo \u6253\u5305\u6280\u8853\u521d\u7aba\u63a21. \u5207\u63db\u6210 root$ sudo su &#8211; &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/2blog.ilc.edu.tw\/25793\/2015\/05\/11\/%e5%ae%a2%e8%a3%bd%e5%8c%96-ubuntu-mac-style-myprecise2015_0420-%e5%85%89%e7%a2%9f\/\" class=\"more-link\">\u95b1\u8b80\u5168\u6587<span class=\"screen-reader-text\">\u3008\u5ba2\u88fd\u5316 Ubuntu Mac Style myPrecise2015_0420 \u5149\u789f\u3009<\/span><\/a><\/p>\n","protected":false},"author":55,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[123,119],"tags":[],"class_list":["post-18885","post","type-post","status-publish","format-standard","hentry","category-c-78468","category-c-78464"],"meta_key":{"_pingme":["1"],"_encloseme":["1"],"lt_post_id":["569362"]},"_links":{"self":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/18885"}],"collection":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/users\/55"}],"replies":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/comments?post=18885"}],"version-history":[{"count":1,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/18885\/revisions"}],"predecessor-version":[{"id":20473,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/18885\/revisions\/20473"}],"wp:attachment":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/media?parent=18885"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/categories?post=18885"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/tags?post=18885"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}