{"id":27,"date":"2022-03-22T23:15:49","date_gmt":"2022-03-22T14:15:49","guid":{"rendered":"http:\/\/52.196.21.54.nip.io\/techblog\/?p=27"},"modified":"2022-05-04T02:15:42","modified_gmt":"2022-05-03T17:15:42","slug":"%e8%87%aa%e5%ae%85%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%82%92%e4%bd%9c%e3%82%8b","status":"publish","type":"post","link":"https:\/\/shugomatsuzawa.com\/techblog\/2022\/03\/22\/27\/","title":{"rendered":"Ubuntu Server\u3067\u81ea\u5b85\u30b5\u30fc\u30d0\u30fc\u3092\u4f5c\u308b"},"content":{"rendered":"\n<p>\u81ea\u5b85\u30b5\u30fc\u30d0\u30fc\u3092\u4f5c\u3063\u305f\u306e\u3067\u5099\u5fd8\u9332\u3002<br>\u6700\u7d42\u7684\u306b\u306f\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u30fc\u3084HomeBridge\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u3059\u308b\u3053\u3068\u3092\u76ee\u6307\u3059\u3002<br>\u7b2c\uff11\u56de\u76ee\u306a\u306e\u3067\u3001Linux\u3092\u5165\u308c\u305f\u3089\u6700\u521d\u306b\u3084\u308a\u305f\u3044\u57fa\u672c\u7684\u306a\u8a2d\u5b9a\u304b\u3089\u3002<\/p>\n\n\n\n<p>\u307e\u305a\u4eca\u56de\u4f7f\u3046\u30de\u30b7\u30f3\u306f\u3001\u4f1a\u793e\u3067\u4e0d\u8981\u306b\u306a\u3063\u305fWindows 7 PC\u306eDell Vostro 2520\u3002<br>\u30b9\u30c8\u30ec\u30fc\u30b8\u3060\u3051\u4f59\u308a\u7269\u306eSSD\u306b\u4ea4\u63db\u6e08\u307f\u3002\uff08\u5206\u89e3\u3059\u308b\u6642\u30ad\u30fc\u30dc\u30fc\u30c9\u3092\u7834\u58ca\u3057\u305f\uff09<br>OS\u306f<a rel=\"noreferrer noopener\" href=\"https:\/\/www.dell.com\/support\/kbdoc\/ja-jp\/000131655\/dell-pc-\u306b-ubuntu-linux-\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\" data-type=\"URL\" data-id=\"https:\/\/www.dell.com\/support\/kbdoc\/ja-jp\/000131655\/dell-pc-\u306b-ubuntu-linux-\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\" target=\"_blank\">Dell\u304cUbuntu\u63a8\u3057<\/a>\u3063\u307d\u304b\u3063\u305f\u306e\u3067\u3001\u305d\u308c\u306b\u5f93\u3063\u3066Ubuntu Server\u3092\u30c1\u30e7\u30a4\u30b9\u3002<br>OS\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30a6\u30a3\u30b6\u30fc\u30c9\u4e2d\u306bOpenSSH\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5730\u57df\u3068\u8a00\u8a9e<\/h2>\n\n\n\n<p>\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u306e\u8a2d\u5b9a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>timedatectl set-timezone Asia\/Tokyo # \u6771\u4eac\u306b\u8a2d\u5b9a\ntimedatectl # \u8a2d\u5b9a\u3092\u78ba\u8a8d<\/code><\/pre>\n\n\n\n<p>\u65e5\u672c\u8a9e\u5316\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install language-pack-ja-base language-pack-ja<\/code><\/pre>\n\n\n\n<p>\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u74b0\u5883\u304c\u306a\u3044\u5834\u5408\u3001\u30b5\u30fc\u30d0\u30fc\u5185\u8535\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u306e\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u306f\u65e5\u672c\u8a9e\u8868\u793a\u304c\u3067\u304d\u306a\u3044\u306e\u3067\u3001SSH\u306e\u307f\u65e5\u672c\u8a9e\u306b\u3059\u308b\u3002<br>.bashrc \u7de8\u96c6<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>case $TERM in\n    linux) LANG=C ;;\n    *)     LANG=ja_JP.UTF-8;;\nesac<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u30fc<\/h2>\n\n\n\n<p>\u3082\u3046\u3059\u3067\u306b\u4f7f\u3063\u3066\u3057\u307e\u3063\u3066\u3044\u308b\u304c\u3001apt \u306e\u4f7f\u3044\u65b9\u3092\u304a\u3055\u3089\u3044\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update # \u5b9a\u7fa9\u30c7\u30fc\u30bf\u66f4\u65b0\napt --installed list | grep -v \u81ea\u52d5 # \u81ea\u5206\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3082\u306e\u3092\u78ba\u8a8d\nsudo apt full-upgrade # \u30d1\u30c3\u30b1\u30fc\u30b8\u66f4\u65b0\nsudo apt autoremove # \u4e0d\u8981\u30d1\u30c3\u30b1\u30fc\u30b8\u524a\u9664<\/code><\/pre>\n\n\n\n<p>Node.js\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u3001<a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/nodesource\/distributions\/blob\/master\/README.md\" data-type=\"URL\" data-id=\"https:\/\/github.com\/nodesource\/distributions\/blob\/master\/README.md\" target=\"_blank\">NodeSource<\/a>\u3092\u4f7f\u3063\u3066\u3044\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Node.js v15.x\ncurl -fsSL https:\/\/deb.nodesource.com\/setup_15.x | sudo -E bash -\nsudo apt-get install -y nodejs<\/code><\/pre>\n\n\n\n<p>NPM\u3082\u540c\u6642\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u308b\u3002<\/p>\n\n\n\n<p>\u6b21\u56de\u306b\u7d9a\u304f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u81ea\u5b85\u30b5\u30fc\u30d0\u30fc\u3092\u4f5c\u3063\u305f\u306e\u3067\u5099\u5fd8\u9332\u3002\u6700\u7d42\u7684\u306b\u306f\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u30fc\u3084HomeBridge\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u3059\u308b\u3053\u3068\u3092\u76ee\u6307\u3059\u3002\u7b2c\uff11\u56de\u76ee\u306a\u306e\u3067\u3001Linux\u3092\u5165\u308c\u305f\u3089\u6700\u521d\u306b\u3084\u308a\u305f\u3044\u57fa\u672c\u7684\u306a\u8a2d\u5b9a\u304b\u3089\u3002 \u307e\u305a\u4eca\u56de\u4f7f\u3046\u30de\u30b7\u30f3\u306f\u3001\u4f1a\u793e\u3067\u4e0d\u8981\u306b\u306a\u3063\u305f [&hellip;]","protected":false},"author":1,"featured_media":37,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":3,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[8],"tags":[12,9,13,14,11,10],"class_list":["post-27","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-system-management","tag-apt","tag-linux","tag-node-js","tag-npm","tag-ubuntu","tag-memo"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/shugomatsuzawa.com\/techblog\/wp-content\/uploads\/sites\/3\/2022\/03\/laptop-g916f552c2_1920.jpg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/posts\/27","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/comments?post=27"}],"version-history":[{"count":5,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/posts\/27\/revisions"}],"predecessor-version":[{"id":49,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/posts\/27\/revisions\/49"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/media\/37"}],"wp:attachment":[{"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/media?parent=27"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/categories?post=27"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/tags?post=27"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}