{"id":1016,"date":"2011-03-23T03:43:13","date_gmt":"2011-03-22T18:43:13","guid":{"rendered":"http:\/\/www.kazu.tv\/blog\/?p=1016"},"modified":"2011-03-23T03:43:13","modified_gmt":"2011-03-22T18:43:13","slug":"linuxer_freebsd_1","status":"publish","type":"post","link":"https:\/\/kazu.tv\/blog\/2011\/03\/23\/linuxer_freebsd_1\/","title":{"rendered":"Linuxer\u306e\u70ba\u306eFreeBSD\u5165\u9580\uff08\uff11\uff09"},"content":{"rendered":"<p>\u8a33\u3042\u3063\u3066\u3001\u751f\u307e\u308c\u3066\u521d\u3081\u3066FreeBSD\u3092\u3061\u3087\u3063\u3068\u89e6\u3063\u3066\u308b\u3002<\/p>\n<p>UNIX\u7cfbOS\u306fLinux\u3001Solaris\u3042\u305f\u308a\u306f\u307e\u3041\u307e\u3041\u5206\u304b\u308b\u3057\u305d\u308c\u4ee5\u5916\u306b\u3082\u3061\u3087\u3053\u3061\u3087\u3053\u89e6\u3063\u305f\u3053\u3068\u306f\u3042\u308b\u3051\u3069\u3001\u4e00\u756a\u7d4c\u9a13\u304c\u591a\u3044\u306e\u306fLinux\uff08\u7279\u306bRedHat\u7cfb\uff09\u306a\u306e\u3067\u3001\u4ed6\u306eOS\u306b\u79fb\u308b\u3068\u6238\u60d1\u3046\u3053\u3068\u304c\u591a\u3044\u3002<\/p>\n<p>\u3068\u8a00\u3046\u3053\u3068\u3067\u3001\u81ea\u5206\u306e\u3088\u3046\u306aLinux\u30e6\u30fc\u30b6\u30fc\u5411\u3051\u306bFreeBSD\u306e\u57fa\u790e\u7684\u306a\u3053\u3068\u3092\u66f8\u304f\u3002\u3068\u3044\u3046\u304b\u5358\u306a\u308b\u30e1\u30e2\u66f8\u304d\u3002<\/p>\n<h3>\u25a0\u74b0\u5883<\/h3>\n<ul>\n<li>\u3055\u304f\u3089\u306eVPS 512<\/li>\n<li>FreeBSD 8.1<\/li>\n<\/ul>\n<p><!--more--><\/p>\n<h3>\u25a0\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u7c21\u5358\u3002<a target=\"_blank\" href=\"http:\/\/www.freebsd.org\/doc\/ja_JP.eucJP\/books\/handbook\/index.html\">FreeBSD \u30cf\u30f3\u30c9\u30d6\u30c3\u30af\u306e\u65e5\u672c\u8a9e\u8a33<\/a>\u306b\u8a73\u3057\u304f\u8f09\u3063\u3066\u308b\u3057\u3001\u3055\u304f\u3089\u306eVPS\u56fa\u6709\u306e\u8a71\u306f\u3001\u3055\u304f\u3089\u306e\u30b5\u30a4\u30c8\u306b<a target=\"_blank\" href=\"http:\/\/support.sakura.ad.jp\/support\/vps\/menu_oscustom_freebsd.shtml\">\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u304c\u3042\u308b\u306e\u3067\u305d\u3061\u3089\u3092\u53c2\u7167\u3002<\/p>\n<h3>\u25a0sudo\u3001su<\/h3>\n<p>\u3053\u306e\u6642\u70b9\u3067\u3068\u308a\u3042\u3048\u305aroot\u4ee5\u5916\u306b\u4e00\u822c\u30e6\u30fc\u30b6\u30fc\u304c1\u4eba\u4f5c\u6210\u3055\u308c\u3066\u3044\u308b\u3082\u306e\u3068\u3059\u308b\u3002\u901a\u5e38\u306f\u4e00\u822c\u30e6\u30fc\u30b6\u30fc\u3067\u4f5c\u696d\u3057\u3066\u3001\u5fc5\u8981\u306a\u6642\u306bsudo\u3092\u4f7f\u3046\u3063\u3066\u306e\u304c\u901a\u5e38\u306eLinuxer\u3060\u3068\u601d\u3046\u3051\u3069\u3001FreeBSD\u3067\u306fsudo\u306f\u6700\u521d\u304b\u3089\u306f\u5165\u3063\u3066\u3044\u306a\u3044\u3002\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u307e\u305a\u306froot\u306b\u306a\u3063\u3066sudo\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n<pre class=\"brush: plain; code\">\n# pkg_add -r sudo<\/pre>\n<p>\u3088\u3057\u3002\u6b21\u306fvisudo\u3067\u3054\u306b\u3087\u3054\u306b\u3087\u3057\u3066\u3001\u3068\u601d\u3063\u305f\u3089\u3001<\/p>\n<pre class=\"brush: plain; code\">\n# visudo\nvisudo: Command not found.<\/pre>\n<p>\u30d1\u30b9\u3092\u78ba\u8a8d\u3057\u3066\u307f\u308b\u3068\u3001\u3061\u3083\u3093\u3068\u901a\u3063\u3066\u308b\u3063\u307d\u3044\u3002<\/p>\n<pre class=\"brush: plain; code\">\n# env | grep PATH\nPATH=\/sbin:\/bin:\/usr\/sbin:\/usr\/bin:\/usr\/games:\/usr\/local\/sbin:\/usr\/local\/bin:\/root\/bin<\/pre>\n<p>\u4e00\u56de\u30ed\u30b0\u30a2\u30a6\u30c8\u3057\u3066\u30ed\u30b0\u30a4\u30f3\u3057\u76f4\u3057\u305f\u3089\u5927\u4e08\u592b\u3060\u3063\u305f\u3002root\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u30b7\u30a7\u30eb\u306fcsh\u306a\u3093\u3060\u3051\u3069\u3001PATH\u306b\u3042\u308b\u30b3\u30de\u30f3\u30c9\u4e00\u89a7\u304c\u30ad\u30e3\u30c3\u30b7\u30e5\u3055\u308c\u3066\u308b\u306e\u304b\u306a\u3002&rarr; \u8abf\u3079\u305f\u6240\u30ad\u30e3\u30c3\u30b7\u30e5\u3055\u308c\u3066\u308b\u3089\u3057\u3044\u3002\u30ed\u30b0\u30a2\u30a6\u30c8\u305b\u305a\u3001rehash\u30b3\u30de\u30f3\u30c9\u3067\u3082\u5927\u4e08\u592b\u307f\u305f\u3044\u3002<\/p>\n<p>\u3061\u306a\u307f\u306bpkg_add\u30b3\u30de\u30f3\u30c9\u3067\u5165\u308c\u305f\u3082\u306e\u306f\/usr\/local\u4ee5\u4e0b\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u308b\u3088\u3046\u3060\u3002<\/p>\n<p>su\u306b\u95a2\u3057\u3066\u3060\u3051\u3069\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306fwheel\u30b0\u30eb\u30fc\u30d7\u306b\u5165\u3063\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u3057\u304b\u5b9f\u884c\u3067\u304d\u306a\u3044\u3002\u305d\u308c\u4ee5\u5916\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u5b9f\u884c\u3059\u308b\u3068Sorry\u3068\u304b\u8a00\u308f\u308c\u3066\u3057\u307e\u3046\u3002<\/p>\n<h3>\u25a0ports\u3068packages<\/h3>\n<p>\u6b21\u306b\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u8272\u3005\u3068\u5165\u308c\u3066\u304a\u3053\u3046\u3068\u601d\u3046\u3051\u3069\u3001\u305d\u306e\u524d\u306b\u4e00\u3064\u3002FreeBSD\u306b\u306fport\u3068package\u3068\u3044\u30462\u7a2e\u985e\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u3042\u308b\u3089\u3057\u3044\u3002\u7121\u7406\u77e2\u7406RedHat\u7cfb\u306b\u4f8b\u3048\u308b\u3068\u4ee5\u4e0b\u306e\u901a\u308a\u3002<\/p>\n<ul>\n<li>package &rarr; RPM\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/li>\n<li>port &rarr; SRPM\u3092\u30d3\u30eb\u30c9\u3057\u3001\u51fa\u6765\u4e0a\u304c\u3063\u305fRPM\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/li>\n<\/ul>\n<p>Gentoo Linux\u3092\u89e6\u3063\u305f\u3053\u3068\u3042\u308b\u4eba\u306a\u3089\u3001port\u306f\u591a\u5206portage\u307f\u305f\u3044\u306a\u3082\u306e\uff08\u3060\u3068\u601d\u3046\uff09\u3063\u3066\u66f8\u3044\u305f\u65b9\u304c\u5206\u304b\u308b\u304b\u3002<\/p>\n<p><strong>port\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong><\/p>\n<p>port\u306b\u95a2\u3057\u3066\u306fOS\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306bPorts Collection\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u304b\u3069\u3046\u304b\u5c0b\u306d\u3089\u308c\u305f\u3068\u601d\u3046\u3051\u3069\u3001<a target=\"_blank\" href=\"http:\/\/www.freebsd.org\/doc\/ja_JP.eucJP\/books\/handbook\/ports-using.html\">\u3053\u3061\u3089<\/a>\u306b\u3088\u308b\u3068\u305d\u308c\u3088\u308a\u306fCVSup\u304bPortsnap\u3092\u4f7f\u3046\u65b9\u304c\u3044\u3044\u3089\u3057\u3044\u3002<\/p>\n<p>\u3068\u8a00\u3046\u3053\u3068\u3067\u3001\u305d\u3061\u3089\u306b\u5f93\u3046\u3002\u3088\u304f\u5206\u304b\u3089\u306a\u3044\u306e\u3067CVSup\u3068\u3044\u3046\u306e\u306b\u3057\u3066\u307f\u308b\u3002<\/p>\n<pre class=\"brush: plain; code\">\ncsup -L 2 -h cvsup5.jp.FreeBSD.org \/usr\/share\/examples\/cvsup\/ports-supfile<\/pre>\n<p>\u3053\u308c\u3067\u6e96\u5099\u5b8c\u4e86\u3002<\/p>\n<p>\u5f8c\u306f\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3044\u3082\u306e\u306eport\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3057\u3066\u3001make install \uff08\u3042\u308b\u3044\u306fmake install clean\uff09\u3092\u5b9f\u884c\u3002<\/p>\n<pre class=\"brush: plain; code\">\n# cd \/usr\/ports\/shells\/zsh\n# make install clean<\/pre>\n<p><strong>package\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong><\/p>\n<p>\u524d\u8ff0\u306e\u901a\u308apkg_add\u3092\u4f7f\u3046\u3002<\/p>\n<h3>\u25a0\u307e\u3068\u3081<\/h3>\n<p>\u3068\u308a\u3042\u3048\u305a\u3001\u4f55\u3068\u304b\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002\u4eca\u56de\u306e\u307e\u3068\u3081\u306f\u3053\u3093\u306a\u3068\u3053\u308d\u304b\u3002<\/p>\n<ul>\n<li>Ports Collection\u306fOS\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306b\u5165\u308c\u308b\u5fc5\u8981\u306f\u7121\u3044\u3002<\/li>\n<li>\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306fport\u304bpackage\u3092\u4f7f\u3046\u3002port\u306e\u65b9\u304c\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u8272\u3005\u9078\u629e\u3067\u304d\u308b\u3002<\/li>\n<li>\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306fwheel\u30b0\u30eb\u30fc\u30d7\u306b\u5165\u3063\u3066\u3044\u306a\u3044\u3068su\u304c\u4f7f\u3048\u306a\u3044\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Linux\u30e6\u30fc\u30b6\u30fc\u304cFreeBSD\u3092\u4f7f\u3063\u3066\u307f\u305f\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[32],"tags":[886,465,248,887],"class_list":["post-1016","post","type-post","status-publish","format-standard","hentry","category-linux-unix","tag-freebsd","tag-linux","tag-packages","tag-ports"],"_links":{"self":[{"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/posts\/1016","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/comments?post=1016"}],"version-history":[{"count":0,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/posts\/1016\/revisions"}],"wp:attachment":[{"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/media?parent=1016"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/categories?post=1016"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/tags?post=1016"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}