{"id":7201,"date":"2022-12-27T06:42:47","date_gmt":"2022-12-26T21:42:47","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=7201"},"modified":"2023-09-03T08:49:40","modified_gmt":"2023-09-02T23:49:40","slug":"ubuntu-desktop%e3%81%a7%e3%83%9b%e3%83%bc%e3%83%a0%e3%83%87%e3%82%a3%e3%83%ac%e3%82%af%e3%83%88%e3%83%aa%e3%81%abbin%e3%83%87%e3%82%a3%e3%83%ac%e3%82%af%e3%83%88%e3%83%aa%e3%82%92%e4%bd%9c%e6%88%90","status":"publish","type":"post","link":"https:\/\/lab4ict.com\/system\/archives\/7201","title":{"rendered":"Ubuntu\u3067\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306bbin\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3059\u308b\uff01"},"content":{"rendered":"<p>Ubuntu\u306e\u30e6\u30fc\u30b6\u306e\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306bbin\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002bin\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3001\u5b9f\u884c\u5f62\u5f0f\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u914d\u7f6e\u3059\u308b\u3068\u30d1\u30b9\u3092\u6307\u5b9a\u3057\u306a\u304f\u3066\u3082\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<h2>\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306bbin\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3059\u308b\uff01<\/h2>\n<p>\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3001bin\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ mkdir ~\/bin\r\n<\/pre>\n<h2>\u30b7\u30a7\u30eb\u3092\u914d\u7f6e\u3059\u308b\uff01<\/h2>\n<p>bin\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30b7\u30a7\u30eb\u3092\u914d\u7f6e\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n ls -l ~\/bin\r\ntotal 4\r\n-rwxr-xr-x 1 usradmin usradmin 44 Dec  7 22:32 wol_enable.sh\r\n<\/pre>\n<h2>bash\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u88dc\u5b8c\u304c\u53ef\u80fd\u3067\u3042\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\uff01<\/h2>\n<p>wol\u306e\u307f\u3092\u5165\u529b\u3057\u3066\u3001Tab\u30ad\u30fc\u3092\u62bc\u3057\u3001\u300cwol_enable.sh\u300d\u304c\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ wol_enable.sh\r\n<\/pre>\n<h2>PATH\u8ffd\u52a0\u306e\u8a2d\u5b9a\u3092\u78ba\u8a8d\u3059\u308b\uff01<\/h2>\n<p>PATH\u74b0\u5883\u3078\u306ebin\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u8ffd\u52a0\u306f\u3001\u300c.bash_profile\u300d\u3067\u3042\u3089\u304b\u3058\u3081\u884c\u308f\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [22]; title: ; notranslate\" title=\"\">\r\n$ cat .profile\r\n# ~\/.profile: executed by the command interpreter for login shells.\r\n# This file is not read by bash(1), if ~\/.bash_profile or ~\/.bash_login\r\n# exists.\r\n# see \/usr\/share\/doc\/bash\/examples\/startup-files for examples.\r\n# the files are located in the bash-doc package.\r\n\r\n# the default umask is set in \/etc\/profile; for setting the umask\r\n# for ssh logins, install and configure the libpam-umask package.\r\n#umask 022\r\n\r\n# if running bash\r\nif &#x5B; -n &quot;$BASH_VERSION&quot; ]; then\r\n    # include .bashrc if it exists\r\n    if &#x5B; -f &quot;$HOME\/.bashrc&quot; ]; then\r\n\t. &quot;$HOME\/.bashrc&quot;\r\n    fi\r\nfi\r\n\r\n# set PATH so it includes user's private bin if it exists\r\nif &#x5B; -d &quot;$HOME\/bin&quot; ] ; then\r\n    PATH=&quot;$HOME\/bin:$PATH&quot;\r\nfi\r\n\r\n# set PATH so it includes user's private bin if it exists\r\nif &#x5B; -d &quot;$HOME\/.local\/bin&quot; ] ; then\r\n    PATH=&quot;$HOME\/.local\/bin:$PATH&quot;\r\nfi\r\n<\/pre>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306bbin\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u8ffd\u52a0\u3059\u308b\u3068\u3001PATH\u74b0\u5883\u5909\u6570\u306e\u8a2d\u5b9a\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u306a\u304f\u30b7\u30a7\u30eb\u3092\u8d77\u52d5\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u95a2\u9023\u8a18\u4e8b<\/h2>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/11447\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Ubuntu\u306b\u5171\u901a\u3059\u308b\u6a5f\u80fd\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2022\/04\/fi_ubuntu_01-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Ubuntu\u306b\u5171\u901a\u3059\u308b\u6a5f\u80fd\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01<\/div><div class=\"substr\">Ubuntu\u306b\u5171\u901a\u3059\u308b\u6a5f\u80fd\u3092\u4f7f\u3044\u3053\u306a\u3059\u305f\u3081\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u63b2\u8f09\u307e\u3059\u3002...<\/div><\/a><\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ubuntu\u306e\u30e6\u30fc\u30b6\u306e\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306bbin\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002bin\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3001\u5b9f\u884c\u5f62\u5f0f\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u914d\u7f6e\u3059\u308b\u3068\u30d1\u30b9\u3092\u6307\u5b9a\u3057\u306a\u304f\u3066\u3082\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":5284,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[236],"tags":[1023,51,1024],"class_list":["post-7201","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu-topics","tag-bin","tag-ubuntu","tag-1024"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/7201","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/comments?post=7201"}],"version-history":[{"count":3,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/7201\/revisions"}],"predecessor-version":[{"id":14807,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/7201\/revisions\/14807"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media\/5284"}],"wp:attachment":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media?parent=7201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=7201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=7201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}