{"id":19475,"date":"2017-03-23T06:55:13","date_gmt":"2017-03-22T22:55:13","guid":{"rendered":"https:\/\/2blog.ilc.edu.tw\/25793\/2017\/03\/23\/freebsd-%e8%a8%ad%e5%ae%9a\/"},"modified":"2021-03-18T17:24:58","modified_gmt":"2021-03-18T09:24:58","slug":"freebsd-%e8%a8%ad%e5%ae%9a","status":"publish","type":"post","link":"https:\/\/2blog.ilc.edu.tw\/25793\/2017\/03\/23\/freebsd-%e8%a8%ad%e5%ae%9a\/","title":{"rendered":"FreeBSD \u8a2d\u5b9a"},"content":{"rendered":"<p>1. \u8a2d\u5b9a\u7db2\u8def<br \/># <span style=\"color: #ff0000\">vi \/etc\/rc.conf<\/span><br \/><span style=\"color: #0000ff\">ifconfig_em0=&#8221;inet 192.168.1.14\u00a0 netmask 255.255.255.0&#8243;<\/span><br \/><span style=\"color: #0000ff\">defaultrouter=&#8221;192.168.1.254&#8243;<\/span><\/p>\n<p># <span style=\"color: #ff0000\">vi \/etc\/resolv.conf<\/span><br \/><span style=\"color: #0000ff\">nameserver 168.95.1.1<\/span><br \/><span style=\"color: #0000ff\">nameserver 140.111.66.1<\/span><\/p>\n<p>\u91cd\u65b0\u555f\u52d5\u96fb\u8166<br \/># <span style=\"color: #ff0000\">shutdown -r now<\/span>[@more@]2. \u66f4\u65b0 pkg \u8cc7\u6599\u5eab<br \/># <span style=\"color: #ff0000\">pkg update<\/span><\/p>\n<p>3. \u5b89\u88dd OpenSSH Server<br \/>#<span style=\"color: #ff0000\"> pkg install openssh-portable<\/span><br \/># <span style=\"color: #ff0000\">vi \/etc\/rc.conf<\/span><br \/>\u52a0\u5165\u4e0b\u9762\u4e00\u884c<br \/><span style=\"color: #0000ff\">openssh_enable=&#8221;YES&#8221;<\/span><br \/><a id=\"res_3772057\" href=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/25793-3772057.png\"><img decoding=\"async\" src=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/previews-med\/25793-3772057.png\" border=\"0\" alt=\"\" \/><\/a><\/p>\n<p>4. \u5b89\u88dd bash<br \/># <span style=\"color: #ff0000\">pkg install bash bash-completion<\/span><br \/># <span style=\"color: #ff0000\">chsh<\/span><br \/>\u4fee\u6539<br \/><span style=\"color: #0000ff\">Shell: \/usr\/local\/bin\/bash<\/span><br \/><a id=\"res_3772155\" href=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/25793-3772155.png\"><img decoding=\"async\" src=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/previews-med\/25793-3772155.png\" border=\"0\" alt=\"\" \/><\/a><\/p>\n<p><a id=\"res_3772154\" href=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/25793-3772154.png\"><img decoding=\"async\" src=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/previews-med\/25793-3772154.png\" border=\"0\" alt=\"\" \/><\/a><\/p>\n<p>5. \u5b89\u88dd\u5176\u5b83\u5957\u4ef6<br \/>#<span style=\"color: #ff0000\"> pkg install nano vim-lite tree p7zip most unzip zip wget colordiff bind-tools screen<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \u8a2d\u5b9a\u7db2\u8def# vi \/etc\/rc.confifconfig_em0=&#8221;inet 192.16 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/2blog.ilc.edu.tw\/25793\/2017\/03\/23\/freebsd-%e8%a8%ad%e5%ae%9a\/\" class=\"more-link\">\u95b1\u8b80\u5168\u6587<span class=\"screen-reader-text\">\u3008FreeBSD \u8a2d\u5b9a\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":[105],"tags":[],"class_list":["post-19475","post","type-post","status-publish","format-standard","hentry","category-c-98634"],"meta_key":{"_pingme":["1"],"_encloseme":["1"],"lt_post_id":["685358"]},"_links":{"self":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/19475"}],"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=19475"}],"version-history":[{"count":1,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/19475\/revisions"}],"predecessor-version":[{"id":21000,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/19475\/revisions\/21000"}],"wp:attachment":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/media?parent=19475"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/categories?post=19475"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/tags?post=19475"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}