{"id":1496,"date":"2020-09-04T18:28:57","date_gmt":"2020-09-04T09:28:57","guid":{"rendered":"https:\/\/iphone-users.ddo.jp\/wordpress\/?p=1496"},"modified":"2020-09-04T19:16:37","modified_gmt":"2020-09-04T10:16:37","slug":"ubuntu20-04lts-server%e3%81%ae%e5%b0%8e%e5%85%a5","status":"publish","type":"post","link":"https:\/\/iphone-users.ddo.jp\/wordpress\/?p=1496","title":{"rendered":"ubuntu20.04LTS Server\u306e\u5c0e\u5165"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">HP EliteDesk 800G2 DM\u3000M2.SSD\u3068HDD\u3000\uff18GB\u30e1\u30e2\u30ea\u69cb\u6210\u306e\u7269\u3092\u5165\u624b\u3057\u305f\u306e\u3067\u3001\u65b0\u305f\u306b\u30b5\u30fc\u30d0\u30fc\u69cb\u6210\u3059\u308b\u3053\u3068\u306b\u3057\u305f\u3002HDD\u306fexfat\u3068\u3057\u3001samba\u3067\u5171\u6709\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305f\u3002Linux\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3060\u3068\u3001\u30c7\u30fc\u30bf\u3092\u629c\u304d\u3060\u3059\u306e\u304c\u9762\u5012\u3060\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Server\u306f\u57fa\u672c\u7684\u306b\u306f\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089\u64cd\u4f5c\u3059\u308b\u3001USB\u30e1\u30e2\u30ea\u306e\u30de\u30a6\u30f3\u30c8\u306a\u3069\u7c21\u5358\u306b\u884c\u3048\u308b\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u306b\u3001ubuntu-mate-desktop\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3057\u305f\u3002\u307e\u305f\u30c0\u30a4\u30ca\u30df\u30c3\u30afDNS\u3092\u4f7f\u3044\u30b5\u30fc\u30d0\u30fc\u3092\u516c\u958b\u53ef\u80fd\u306b\u3057\u305f\u3002\u305d\u306e\u305f\u3081\u306bSoftEther VPN Server\u3092\u5c0e\u5165\u3059\u308b\u3053\u3068\u306b\u3057\u305f\u3002\u57fa\u672c\u7684\u306b\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067\u624b\u6253\u3061\u3059\u308b\u6c17\u306f\u306a\u3044\u306e\u3067\u3001Windows\u306e\u30bf\u30fc\u30df\u30ca\u30eb\u30bd\u30d5\u30c8\u3068WinSCP\u3092\u4f7f\u3063\u3066\u30b7\u30b9\u30c6\u30e0\u3092\u69cb\u6210\u3057\u3066\u3044\u3063\u305f\u3002\u4ee5\u4e0b\u306b\u624b\u9806\u3092\u793a\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u2460Ubuntu20.04LTS\u30b5\u30fc\u30d0\u30fc\u3092M.2SSD\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002ifconfig\u3001telnet\u3092\u4f7f\u3046\u305f\u3081\u306b\u3001apt install telnetd\u3001apt install net-tools\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3002ssh\u306fsshd_config\u306ePermitRootLogin without-password\u3092\u3000PermitRootLogin yes\u306b\u5909\u66f4\u3057\u4fdd\u5b58\u3057\u3066WinSCP\u3067root\u3067\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305f\u3002\u79fb\u884c\u306f\u4e0b\u8a18\u30e1\u30e2\u3092\u5143\u306bWindows\u304b\u3089\u30b3\u30d4\u30fc\uff06\u30da\u30fc\u30b9\u30c8\u3067\u4f5c\u696d\u3092\u9032\u3081\u3066\u3044\u3063\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\uff11\uff0e\u30d3\u30eb\u30c9\u74b0\u5883\u3092\u6574\u3048\u308b\u3002\n\u3000apt-get install build-essential\n\uff12\uff0ephp\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u8a2d\u5b9a\n\u2460php\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\n\u3000\u3000apt-get install php\uff08php7.4\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u308b\u3002)\n\u2461\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u8a2d\u5b9a\n\u3000\u3000# MySQL\u9023\u643a\u306e\u305f\u3081\u306b\u5fc5\u8981\n\u3000\u3000apt-get install php-mysql\n\u3000\u3000apt-get install php-curl\n\u3000\u3000apt-get install mcrypt\n\u3000\u3000apt-get install php-intl\n<code>phpmyadmin\u3067\u6271\u3048\u308b\u30c7\u30fc\u30bf\u30b5\u30a4\u30ba\u3092\u62e1\u5927\u3059\u308b\u305f\u3081\u306b\/etc\/php5\/apache2\/php.ini\u306e\u4ee5\u4e0b\u306e\u5024\u3092\u5909\u66f4\u3059\u308b\u3002<\/code>\n\u3000<code>memory_limit = 600M <\/code>\n\u3000<code>post_max_size = 500M <\/code>\n\u3000<code>upload_max_filesize = 500M <\/code>\n\u3000<code>max_input_time = 60<\/code>\n\uff13\uff0eMySQL\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\napt install -y mariadb-server\n\u3000\u3000mysql -u root\n\u3000\u3000SQL\u306e\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u5165\u308c\u308b\u304c\u30b5\u30fc\u30d0\u30fc\u304c\u8d77\u52d5\u3057\u3066\u3044\u306a\u3044\u306e\u3067\u5225\u306e\u30bf\u30fc\u30df\u30ca\u30eb\u3067SQL\u30b5\u30fc\u30d0\u30fc\u3092\u8d77\u52d5\u3057\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\n\u3000\u7279\u6a29\u30e6\u30fc\u30b6(\u30e6\u30fc\u30b6\u4f5c\u6210\u6a29\u9650\u306fDB\u306e\u7ba1\u7406\u6a29\u9650\u7b49\u3092\u6301\u3064\u30e6\u30fc\u30b6)\u3092\u8ffd\u52a0\u3059\u308b\u306b\u306f\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\n\u3000(root\u30e6\u30fc\u30b6\u306e\u307f\u3067\u3082\u5bfe\u5fdc\u53ef\u80fd\u3067\u3042\u308b\u305f\u3081\u3001\u8ffd\u52a0\u3057\u306a\u304f\u3066\u3082\u826f\u3044)\n\u3000GRANT ALL PRIVILEGES ON <em>.<\/em> TO user@localhost IDENTIFIED BY 'passwd' WITH GRANT OPTION;\n\n\u2462\u7ba1\u7406\u30c4\u30fc\u30eb\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30ebPHPMyAdmin\n    apt-get install phpmyadmin\n\u3000\u3000web\u30b5\u30fc\u30d0\u306e\u9078\u629e\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001apache2\u3092\u9078\u629e\u3057\u307e\u3059\u3002\n\u3000\u3000dbconfig-common\u306e\u8a2d\u5b9a\u3092\u3059\u308b\u304b\uff1f\u3068\u805e\u304b\u308c\u308b\u304c\u300c\u306f\u3044\u300d\u3092\u9078\u629e\u3057\u307e\u3059\u3002\n\u3000\n\u3000\u3000MySQL\u7ba1\u7406\u30c4\u30fc\u30eb\u306e\u8a2d\u5b9a\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u3001PHPMyAdmin\u3068Apache2\u3092\u9023\u643a\u3092\u3057\u307e\u3059\u3002\nln -s \/etc\/phpmyadmin\/apache.conf \/etc\/apache2\/conf-available\/phpmyadmin\n\/etc\/apache2\/sites-available\/000-default.conf\u306bInclude \/etc\/apache2\/conf-available\/phpmyadmin\u3092\u8ffd\u52a0\u3059\u308b\u3002\napache\u306e\u518d\u8d77\u52d5\nservice apache2 restart\n\uff13\uff0eapache2\u8ffd\u52a0\u30e2\u30b8\u30e5\u30fc\u30eb\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\n\u3000\u3000\u203bapache\u306e\u30d5\u30a9\u30eb\u30c0\u30fc\u306e\u30a2\u30af\u30bb\u30b9\u6a29\u3092www-data\u306b\u5909\u66f4\u3059\u308b\u3002\n\u3000\u3000\u3000\u203b\u5b9f\u884c\u30e6\u30fc\u30b6\u30fc\u30fb\u30b0\u30eb\u30fc\u30d7\u306f\/etc\/apache2\/envvars\u3067\u6307\u5b9a\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u30d5\u30a9\u30eb\u30c0\u30fc\u306e\u6240\u6709\u6a29\u3092\u3053\u306e\u30b0\u30eb\u30fc\u30d7\u306b\u8a2d\u5b9a\u3059\u308b\u3068\n0700\u306e\u30a2\u30af\u30bb\u30b9\u6a29\u3067\u554f\u984c\u7121\u304f\u52d5\u4f5c\u53ef\u80fd\u306b\u306a\u308b\nchown www-data \/var\/www\u3000\uff08\u6240\u6709\u8005\u3092\u5909\u66f4\uff09\nchown www-data:www-data \/var\/www\u3000\uff08\u30b0\u30eb\u30fc\u30d7\u3092\u5909\u66f4\n\u3000 \u3000CGI\u3092\u6709\u52b9\u306b\u3059\u308b\n\u3000\u3000sudo a2enmod cgi\n\u3000\u3000\u3000\u3000\u3000\u3000\/etc\/apache2\/mods-enabled\/mime.conf\u3000\u3067AddHandler cgi-script .cgi\u3092\u6709\u52b9\u306b\u3059\u308b\u3002\nmode_rewrite\u3092\u6709\u52b9\u5316(.htaccess)\na2enmod rewrite\n<code>\u2463SSL\u306e\u6709\u52b9\u5316 a2enmod ssl \u7121\u52b9\u306b\u3059\u308b\u306b\u306f\u3000a2dismod ssl<\/code>\n\uff14\uff0e\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u74b0\u5883\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3000apt install ubuntu-mate-desktop\n\uff15\uff0eSSL\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u306bLet's Encrypt \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u5c0e\u5165\u3059\u308b\u3002\n\u3000\u3000sudo apt-get install letsencrypt python-letsencrypt-apache\n\u3000\u3000softether vpn server\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u306b\u516c\u958b\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305f\u5f8c\u3001\u8a3c\u660e\u66f8\u3092\u53d6\u5f97\u3057SSL\u3092\u6709\u52b9\u5316\u3059\u308b\u3002<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>HP EliteDesk 800G2 DM\u3000M2.SSD\u3068HDD\u3000\uff18GB\u30e1\u30e2\u30ea\u69cb\u6210\u306e\u7269\u3092\u5165\u624b\u3057\u305f\u306e\u3067\u3001\u65b0\u305f\u306b\u30b5\u30fc\u30d0\u30fc\u69cb\u6210\u3059\u308b\u3053\u3068\u306b\u3057\u305f\u3002HDD\u306fexfat\u3068\u3057\u3001samba\u3067\u5171\u6709\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305f\u3002Linux\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3060\u3068 &#8230;<\/p>\n<p><a href=\"https:\/\/iphone-users.ddo.jp\/wordpress\/?p=1496\" class=\"more-link\">Continue reading &lsquo;ubuntu20.04LTS Server\u306e\u5c0e\u5165&rsquo; &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-1496","post","type-post","status-publish","format-standard","hentry","category-2"],"_links":{"self":[{"href":"https:\/\/iphone-users.ddo.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1496","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/iphone-users.ddo.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/iphone-users.ddo.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/iphone-users.ddo.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/iphone-users.ddo.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1496"}],"version-history":[{"count":1,"href":"https:\/\/iphone-users.ddo.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1496\/revisions"}],"predecessor-version":[{"id":1497,"href":"https:\/\/iphone-users.ddo.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1496\/revisions\/1497"}],"wp:attachment":[{"href":"https:\/\/iphone-users.ddo.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1496"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/iphone-users.ddo.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1496"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/iphone-users.ddo.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1496"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}