{"id":5559,"date":"2023-12-30T22:58:08","date_gmt":"2023-12-30T13:58:08","guid":{"rendered":"http:\/\/shinku.ddo.jp\/wordpress\/?page_id=5559"},"modified":"2024-09-02T11:37:07","modified_gmt":"2024-09-02T02:37:07","slug":"%e3%83%9e%e3%82%a4%e3%82%b3%e3%83%b3%ef%bc%9a%e3%83%a9%e3%82%ba%e3%83%91%e3%82%a4%e3%81%ablubuntu20-04%e3%82%92%e5%85%a5%e3%82%8c%e3%82%8bweb%e9%af%96","status":"publish","type":"page","link":"http:\/\/shinku.ddo.jp\/wordpress\/?page_id=5559","title":{"rendered":"\u30de\u30a4\u30b3\u30f3\uff1a\u30e9\u30ba\u30d1\u30a4\u306bLubuntu20.04\u3092\u5165\u308c\u308b(&#038;web\u9bd6)"},"content":{"rendered":"\n<h2>\u25cf\u30e9\u30ba\u30d1\u30a4\u306bLubuntu20.04\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3059\u308b\u3002<\/h2>\n\n\n\n<p>\u307e\u305a\u3001RasspiImager\u304b\u3089UbuntuServer20.04\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n\n\n\n<p>\u307e\u305a\u306f\u304a\u6c7a\u307e\u308a\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get update<br \/>sudo apt-get upgrade<br \/>sudo apt-get net-tools<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>\/\/&#8212;&#8212;&#8211;Lubuntu\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git clone https:\/\/github.com\/wimpysworld\/desktopify.git\ncd desktopify\/\nsudo .\/desktopify --de lubuntu<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;\u81ea\u52d5\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u3088\u3046\u306b\u3059\u308b<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-sddm\u306e\u4f7f\u3044\u65b9\u306e\u554f\u984c<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;https:\/\/ja.linux-console.net\/?p=8672<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo mkdir \/etc\/sddm.conf.d\/\nsudo nano \/etc\/sddm.conf.d\/autologin.conf<\/code><\/pre>\n\n\n\n<p>\u4e2d\u8eab\u3092\u4ee5\u4e0b\u8a18\u5165<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;Autologin]<br \/>Session=Lubuntu<br \/>User=hogehogesudo<\/code><\/pre>\n\n\n\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;cui gui\u5207\u308a\u66ff\u3048<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl set-default multi-user.target<\/code><\/pre>\n\n\n\n<p>\/\/&#8212;&#8212;&#8212;&#8212;&#8212;-\u30ea\u30e2\u30fc\u30c8\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u6709\u52b9\u5316<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get install -y xrdp xorgxrdp<\/code><\/pre>\n\n\n\n<p>\/\/================\u3053\u3053\u304b\u3089\u5148\u30ea\u30e2\u30fc\u30c8\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\uff08\u30af\u30ea\u30c3\u30d7\u30dc\u30fc\u30c9\u7d4c\u7531\u3067\u3044\u308d\u3044\u308d\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u306d<\/p>\n\n\n\n<p>\/\/&#8212;&#8212;&#8212;&#8212;&#8212;-\u30c4\u30fc\u30eb\u5404\u7a2e\u5c0e\u5165<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get install fcitx-mozc fdclone tightvncserver xrdp gddrescue parted gparted netcat cpufrequtils remmina chromium-browser chromium-browser-l10n terminator pcmanfm-qt libc6-dev build-essential i2c-tools git vlc remmina-plugin-rdp remmina-plugin-vnc blueman net-tools netcat<\/code><\/pre>\n\n\n\n<p>\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u306b\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u7f6e\u304f\u3068\u304d\u306f<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/usr\/share\/apprications<\/code><\/pre>\n\n\n\n<p>\u306e\u4e0b\u306b\u3042\u308b\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u3092\u30b3\u30d4\u30fc\u3059\u308b<\/p>\n\n\n\n<p>\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u5834\u5408\u306f\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u3092\u63a2\u3059<\/p>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>find -iname \"xxxxxxx\"<\/code><\/pre>\n\n\n\n<p>-iname\u30aa\u30d7\u30b7\u30e7\u30f3\uff1d\u5927\u6587\u5b57\u5c0f\u6587\u5b57\u533a\u5225\u306a\u3057\u306e\u610f\u5473\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<p class=\"has-text-align-center\">Lubuntu\u3092\u4e00\u901a\u308a\u8a2d\u5b9a\u3059\u308b\u306e\u306f\u3053\u3053\u307e\u3067<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<h2>\u25cf\u30b5\u30fc\u30d0\u306b\u3059\u308b\uff08Lubuntu\u5c0e\u5165\u3060\u3051\u306e\u5834\u5408\u306f\u3053\u3053\u307e\u3067\uff09<\/h2>\n\n\n\n<p><\/p>\n\n\n\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;WEB\u30b5\u30fc\u30d0\uff08Apache\uff09\u5c0e\u5165&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n\n\n\n<p>sudo apt install apache2 -y<\/p>\n\n\n\n<p>\u3053\u306e\u6642\u70b9\u3067\u3001\u5916\u90e8\u304b\u3089http:\/\/\uff08IP\u30a2\u30c9\u30ec\u30b9\uff09\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001Ubuntu\u306eApache\u30b5\u30fc\u30d0\u306e\u30c7\u30e2\u753b\u9762\u304c\u51fa\u308b\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"http:\/\/shinku.ddo.jp\/wordpress\/wp-content\/uploads\/2024\/04\/image-24.png\"><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/shinku.ddo.jp\/wordpress\/wp-content\/uploads\/2024\/04\/image-24.png\" alt=\"\" class=\"wp-image-5725\" width=\"482\" height=\"426\"\/><\/a><figcaption class=\"wp-element-caption\">\u3053\u3093\u306a\u611f\u3058<\/figcaption><\/figure>\n\n\n\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;PHP\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>sudo apt install php libapache2-mod-php -y<\/p>\n\n\n\n<p>\/\/\u78ba\u8a8d<br \/>sudo nano \/var\/www\/html\/test.php<\/p>\n\n\n\n<p>&lt;?php phpinfo(); ?&gt;<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u3053\u306e\u6642\u70b9\u3067\u3001\u5916\u90e8\u304b\u3089http:\/\/\uff08IP\u30a2\u30c9\u30ec\u30b9\uff09\/test.php\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001PHP\u306e\u30c7\u30e2\u753b\u9762\u304c\u51fa\u308b\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"http:\/\/shinku.ddo.jp\/wordpress\/wp-content\/uploads\/2024\/04\/image-25.png\"><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/shinku.ddo.jp\/wordpress\/wp-content\/uploads\/2024\/04\/image-25.png\" alt=\"\" class=\"wp-image-5727\" width=\"493\" height=\"373\"\/><\/a><figcaption class=\"wp-element-caption\">\u3053\u3093\u306a\u611f\u3058<\/figcaption><\/figure>\n\n\n\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\u30fc\u30fc\u30fc\u30fc\u30fc\u30fc\u30fchttps:\/\/www.ingenious.jp\/articles\/howto\/raspberry-pi-howto\/wordpress-server-setup\/#toc8<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get install mariadb-server\nsudo apt-get install php-mysql\nsudo systemctl enable mariadb\nsudo systemctl start mariadb<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>\u30fc\u30fc\u30fc\u30fc\u30fcapache2\u8a2d\u5b9a&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;https:\/\/www.ingenious.jp\/articles\/howto\/raspberry-pi-howto\/wordpress-server-setup\/#toc8<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo a2enmod rewrite\nsudo systemctl restart apache2\nsudo nano \/etc\/apache2\/apache2.conf<\/code><\/pre>\n\n\n\n<p>\u4ee5\u4e0b\u3001apace2.conf\u3092\u7de8\u96c6\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ServerName www.ingenious.jp &lt;-- \u300c# Global configuration\u300d\u306e\u30b3\u30e1\u30f3\u30c8\u306e\u4e0b\u306b\u8ffd\u8a18\n\u30fb\n\u30fb\n\u30fb\n&lt;Directory \/var\/www\/>\u3000\u3000\u3000\u3000\u3000\u3000&lt;----\u30b5\u30fc\u30d0\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u3092\u5909\u66f4\u3059\u308b\u5834\u5408\u306f\u5909\u66f4\n\u3000\u3000\u3000Options FollowSymLinks \u3000\u3000&lt;-- \u300cIndexes\u300d\u3092\u524a\u9664 \n\u3000\u3000\u3000AllowOverride All \u3000\u3000\u3000\u3000\u3000&lt;-- \u300cAll\u300d\u306b\u4fee\u6b63 \n\u3000\u3000\u3000Require all granted\n&lt;\/Directory>\n<\/code><\/pre>\n\n\n\n<p>\u203b\u3082\u3057\u3001\u4e0a\u8ff0\u3067\u30b5\u30fc\u30d0\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u3092\u5909\u66f4\u3059\u308b\u306e\u3067\u3042\u308c\u3070\u3001\u300c\/etc\/apache2\/sites-available\/000-default.conf\u300d\u3082\u7de8\u96c6\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>       DocumentRoot \/var\/www\/html\u3000\u3000\u2190\u3053\u3053\u3092\u5909\u66f4\u3002<\/code><\/pre>\n\n\n\n<p>\u5909\u66f4\u3092\u53cd\u6620\u3055\u305b\u308b\u305f\u3081\u306bApache\u3092\u518d\u8d77\u52d5<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl restart apache2<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>\u6b21\u306b<strong>Apache\u306b\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u4e0a\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u5909\u66f4\u3059\u308b\u6a29\u9650\u3092\u3064\u3051\u308b<\/strong>\u3002<\/p>\n\n\n\n<p>web\u30b5\u30fc\u30d0\u306e\u30eb\u30fc\u30c8\u4ee5\u4e0b\uff08\u901a\u5e38\u30c7\u30d5\u30a9\u30fc\u30eb\u30c8\u3060\u3068\/var\/www\/html\/\u4ee5\u4e0b\uff09\u3092apache\u304c\u64cd\u4f5c\u3059\u308b\u969b\u306e\u6a29\u9650\u8005\uff08\u300cwww-data\u300d\u30e6\u30fc\u30b6\u30fc\uff09\u3067\u64cd\u4f5c\u53ef\u80fd\u306b\u3059\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo chown -R www-data:www-data \/var\/www\/html<\/code><\/pre>\n\n\n\n<p><br \/>\u3053\u308c\u3067html\u4ee5\u4e0b\u306e\u30aa\u30fc\u30ca\u304c\u5168\u90e8www-data\u306b\u306a\u308b\u304b(=Apache\u304c\u5909\u66f4\u6a29\u9650\u3092\u6301\u3064\uff09\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3042\u3001ubuntu\u306f\u3044\u3064\u304b\u3089\u304b\u77e5\u308a\u307e\u305b\u3093\u304c\u3001apache\u306e\u4f7f\u7528\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u540d\u306f\u30c7\u30d5\u30a9\u30fc\u30eb\u30c8\u3067www-data\u3067\u3059\u304c\u3001\u307b\u304b\u306e\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u3084\u3001\u4ed6\u306eweb\u30b5\u30fc\u30d0\u3092\u4f7f\u3063\u3066\u3044\u308b\u3068\u9055\u3046\u3082\u306e\u3082\u3042\u308b\u3088\u3046\u306a\u306e\u3067\u305d\u3057\u305f\u3089\u8abf\u3079\u3066\u304f\u3060\u3055\u3044(\u300capache\u300d\u306e\u3082\u306e\u3082\u3042\u308b)<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u3064\u3044\u3067\u306e\u4e0a\u8ff0\u3060\u3068\u9006\u306bapache\u3068root(sudo)\u3057\u304bwww\u3092\u5909\u3048\u3089\u308c\u306a\u3044\u30fb\u30fb\u30fb\u3067\u306f\u4e0d\u4fbf\u3060\u3063\u3066\u3044\u3046\u5834\u5408<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>adduser USER GROUP<\/code><\/pre>\n\n\n\n<p>\u3067\u3001USER,GROUP\u3092\u5909\u66f4\u3057\u3066\u5fdc\u7528\u3059\u308c\u3070\u8ffd\u52a0\u53ef\u80fd\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u305d\u3053\u307e\u3067\u3084\u3063\u3066\u5fd8\u308c\u3066\u306f\u3044\u3051\u306a\u3044\u306e\u304c<strong>\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u78ba\u8a8d\u3002<\/strong><\/p>\n\n\n\n<p>\u305f\u3076\u3093\u3001\/var\/www\/html\/\u306f\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u306f755\u304b\u3068\u3002<\/p>\n\n\n\n<p>\u3064\u307e\u308a\u8868\u8a18\u3067\u306frwx r-x r-x\u3001<\/p>\n\n\n\n<p>\u6240\u6301\u8005\u306f\u30d5\u30eb\u30a2\u30af\u30bb\u30b9\u3060\u304c\u3001\u30b0\u30eb\u30fc\u30d7\u3068\u305d\u306e\u307b\u304b\u306f\u8aad\u307f\u53d6\u308a\u3068\u5b9f\u884c\u306e\u307f\u3002<\/p>\n\n\n\n<p>\u30b0\u30eb\u30fc\u30d7\u30a2\u30af\u30bb\u30b9\u6a29\u3067\u7ba1\u7406\u3059\u308b\u5834\u5408\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u5909\u66f4\u5fc5\u8981\u3002<\/p>\n\n\n\n<p>\u81ea\u5206\u306f\u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c\u306ffdclone\u3092\u300csudo fd\u300d\u3067\u8d77\u52d5\u3057\u3066DF\u4e0a\u304b\u3089\u3084\u3063\u3061\u3083\u3046\u306e\u3067\u3001\u30b3\u30de\u30f3\u30c9\u3067\u5909\u3048\u305f\u3053\u3068\u306f\u306a\u3044\u3002<\/p>\n\n\n\n<p>\u5fc5\u8981\u306a\u3089\u3070<a href=\"https:\/\/qiita.com\/takeshi81\/items\/48ea62eae2fc7f1cb2f0\">\u3053\u3061\u3089\u3092\u53c2\u7167<\/a>\u3057\u3066\u307b\u3057\u3044<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u30fc\u30fc\u30fc\u30fc\u30fcPHP\u306e\u8a2d\u5b9a\u30e1\u30e2&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n\n\n\n<p>\u4ee5\u4e0b\u3001\u6271\u3048\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u5927\u304d\u3055\u304c\u5909\u308f\u308b\u306e\u3067\u8a2d\u5b9a\u8981\u6ce8\u610f\u3002<\/p>\n\n\n\n<p>\u5927\u304d\u306a\u30d5\u30a1\u30a4\u30eb\u304c\u5fc5\u8981\u306a\u3089\u5909\u3048\u3088\u3046\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/etc\/php\/<em>.<\/em>\/apache2\/php.ini<br \/>memory_limit = 128M<br \/>post_max_size = 40M<br \/>upload_max_filesize = 30M<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;-maria-db\u8a2d\u5b9a<\/p>\n\n\n\n<p>\u6b63\u76f4\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u6271\u3044\u306f\u3088\u304f\u308f\u304b\u3063\u3066\u3044\u306a\u3044\u306e\u3067\u3053\u3046\u3044\u3046\u3082\u3093\u3060\u3068\u601d\u3063\u3066\u3084\u3063\u3066\u3044\u308b\u3002<\/p>\n\n\n\n<p>\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3068\u304b\u30ec\u30b9\u30c8\u30a2\u304f\u3089\u3044\u3057\u304b\u3084\u3089\u306a\u3044\u3057\u30fb\u30fb\u30fb<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo mysql_secure_installation<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<pre class=\"wp-block-code\"><code>Enter current password for root (enter for none): &lt;== &#91;Enter]\u3092\u62bc\u3057\u307e\u3059\u3002\nSet root password? &#91;Y\/n] Y &lt;== root\u30d1\u30b9\u30ef\u30fc\u30c9\u8a2d\u5b9a\u3059\u308b\u305f\u3081\u3001&#91;Y]\u3092\u5165\u529b\u3057\u307e\u3059\u3002\nNew password: &lt;== \u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057\u307e\u3059\u3002\nRe-enter new password: &lt;== \u518d\u5ea6\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057\u307e\u3059\u3002\nRemove anonymous users? &#91;Y\/n] Y &lt;== \u533f\u540d\u30e6\u30fc\u30b6\u30fc\u3092\u524a\u9664\u3059\u308b\u305f\u3081\u3001&#91;Y]\u3092\u5165\u529b\u3057\u307e\u3059\u3002\nDisallow root login remotely? &#91;Y\/n] Y &lt;== \u30ea\u30e2\u30fc\u30c8\u63a5\u7d9a\u3092\u62d2\u5426\u3059\u308b\u305f\u3081\u3001&#91;Y]\u3092\u5165\u529b\u3057\u307e\u3059\u3002\nRemove test database and access to it? &#91;Y\/n] Y &lt;== \u4e0d\u8981\u306a\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u524a\u9664\u3059\u308b\u305f\u3081 &#91;Y]\u3092\u5165\u529b\u3057\u307e\u3059\u3002\nReload privilege tables now? &#91;Y\/n] Y &lt;== \u3053\u308c\u307e\u3067\u306b\u8a2d\u5b9a\u3057\u305f\u5185\u5bb9\u3092\u53cd\u6620\u3059\u308b\u305f\u3081 \u2026 Success! &#91;Y]\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/code><\/pre>\n\n\n\n<p>sudo mysql -u root -p<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<pre class=\"wp-block-code\"><code>MariaDB &#91;(none)]&gt; grant all privileges on <em>.<\/em> to root@localhost identified by \u2018password\u2018 with grant option;\nMariaDB &#91;(none)]&gt; flush privileges;\nMariaDB &#91;(none)]&gt; CREATE DATABASE db_wordpress;\nMariaDB &#91;(none)]&gt; GRANT ALL PRIVILEGES ON db_wordpress.* TO \"wp_Newusername\"@\"localhost\" IDENTIFIED BY \"UserNewPassword\";\nMariaDB &#91;(none)]&gt; quit<\/code><\/pre>\n\n\n\n<p>\u8d64\u90e8\u5206\u306f\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u308c\u308b\u3002<\/p>\n\n\n\n<h2>\u25cfWordPress\u3092\u5c0e\u5165\u3059\u308b\uff08\u65b0\u898f\uff1a\u8a73\u3057\u304f\u8f09\u305b\u306a\u3044\uff09<\/h2>\n\n\n\n<p>\/\/&#8212;&#8211;\u521d\u3081\u3066\u306a\u3089\u3053\u306e\u3042\u3068\u3001<br \/>\u3000\u3000\u3000\u3000\u3000wordpress\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066<br \/>\u3000\u3000\u3000\u3000\u3000\/var\/www\/html\/\u306b\u914d\u7f6e\u3057\u3066<br \/>\u3000\u3000\u3000\u3000\u3000\u30a2\u30af\u30bb\u30b9\u6a29\u8a2d\u5b9a\u3057\u3066<br \/>\u3000\u3000\u3000\u3000\u3000\u521d\u30a2\u30af\u30bb\u30b9\u3057\u3066<br \/>\u3000\u3000\u3000\u3000\u3000\u74b0\u5883\u8a2d\u5b9a\u3092\u3059\u308b\u304c\u3002<br \/>\u3000\u3000\u3000\u3000\u3000\u3053\u3053\u306fwordpress\u306e\u30b5\u30fc\u30d0\u79fb\u884c\u306e\u30e1\u30e2\u306a\u306e\u3067\u8a73\u3057\u304f\u306f\u8f09\u305b\u306a\u3044\u3002<br \/>\u4e00\u5fdc\u4e57\u305b\u308b\u3068\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><br \/>wget https:\/\/ja.wordpress.org\/latest-ja.tar.gz<br \/>tar -xzvf latest-ja.tar.gz<br \/>sudo cp -R .\/wordpress\/* \/var\/www\/html\/<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>http:\/\/\/wp-admin\/install.php<br \/>\u2192WEB\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3057\u3066\u521d\u671f\u8a2d\u5b9a<\/p>\n\n\n\n<h2>\u25cfWeb\u30b5\u30fc\u30d0\u3092\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u304b\u3089\u79fb\u884c\u3059\u308b\u30e1\u30e2<\/h2>\n\n\n\n<p>DB\u306e\u79fb\u884c\uff08\u30ec\u30b9\u30c8\u30a2\uff09<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mysql -u\u30e6\u30fc\u30b6\u30fc\u540d -p \u5fa9\u65e7\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9 &lt; \/\u683c\u7d0d\u30d5\u30a9\u30eb\u30c0\/\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u30c0\u30f3\u30d7\u30d5\u30a1\u30a4\u30eb\u540d<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>\u30fbwordpress\u306e\u79fb\u884c\uff08\u30ec\u30b9\u30c8\u30a2\uff09<br \/>\u79fb\u884c\u524d\u306ewww\u30d5\u30a9\u30eb\u30c0\u3092\u5727\u7e2e\u3057\u3066\u30b3\u30d4\u30fc\u3057\u3066\u304d\u3066\u2192\u89e3\u51cd\u3057\u3066www\u306b\u914d\u7f6e<\/p>\n\n\n\n<p>\u3053\u3053\u3067\u5916\u90e8\u304b\u3089IP\u3067\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u3066wordpress\u753b\u9762\u304c\u3046\u3064\u308c\u3070\u4e07\u6b73\u3002<\/p>\n\n\n\n<p>\u305d\u306e\u3042\u3068\u5ff5\u306e\u305f\u3081\uff08\u30d5\u30a1\u30a4\u30eb\u306e\u30aa\u30fc\u30ca\u30fc\u3092Apache2\u306b\u5909\u66f4\u3002\u3002\u3002\uff09<br \/>sudo chown -R www-data:www-data \/var\/www\/html\/<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2>\u25cf\u672c\u756a\u74b0\u5883\u3067\u516c\u958b\u3059\u308b\u305f\u3081\u306e\u8a2d\u5b9a<\/h2>\n\n\n\n<p>\u3053\u3053\u306f\u516c\u958b\u3059\u308b\u305f\u3081\u306e\u624b\u7d9a\u304d\u304c\u5206\u304b\u3063\u3066\u3044\u306a\u3044\u3068\u4f55\u3084\u3063\u305f\u3089\u3044\u3044\u304b\u308f\u304b\u3089\u306a\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>&#8212;&#8212;&#8212;XRDP\u306e\u30dd\u30fc\u30c8\u8a2d\u5b9a<br \/>sudo nano \/etc\/xrdp\/xrdp.ini<\/p>\n\n\n\n<p>port=&#8221;****&#8221;<\/p>\n\n\n\n<p>\u306e\u5024\u3092\u5909\u66f4\u3059\u308b\u3002\u30dd\u30fc\u30c8\u306e\u6570\u5024\u304b\u3089\u305d\u308c\u3068\u5206\u304b\u308a\u306b\u304f\u3044\u5024\u306b\u3059\u308b\u3068\u3088\u3044\u3002<\/p>\n\n\n\n<p>&#8212;&#8212;&#8212;Firewall\u8a2d\u5b9a<br \/>sudo apt-get install firewalld firewall-config<\/p>\n\n\n\n<p>\u30fbGUI\u3067\u8a2d\u5b9a<br \/>firewall-config<\/p>\n\n\n\n<p>\u30fbcui\u3067\u8a2d\u5b9a<br \/>\u30ea\u30b9\u30c8\u3092\u898b\u308b\uff1asudo firewall-cmd &#8211;list-all<br \/>\u524a\u9664\uff1asudo firewall-cmd -\u2013permanent -\u2013zone=public -\u2013remove-port=3389\/tcp<br \/>\u8ffd\u52a0\uff1asudo firewall-cmd -\u2013permanent -\u2013zone=public -\u2013add-port=3389\/tcp<br \/>\u8a2d\u5b9a\u306e\u53cd\u6620\uff1asudo firewall-cmd -\u2013reload<\/p>\n\n\n\n<p>\u305f\u3068\u3048\u3070\u3001\u30ea\u30e2\u30fc\u30c8\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u3068WEB\u30b5\u30fc\u30d0\u3092\u6a19\u6e96\u30dd\u30fc\u30c8\u3067\u4f7f\u3046\u306a\u3089\u30703389\u306880\u3092\u30aa\u30fc\u30d7\u30f3\u3059\u308b\u3002<br \/>\u9006\u306bssh\u3068\u304b\u306f\u9589\u3058\u308b\u3002<\/p>\n\n\n\n<h2>\u25cf\u672c\u756a\u74b0\u5883\u3067\u516c\u958b\u3059\u308b\u305f\u3081\u306e\u8a2d\u5b9a\uff03\uff12<\/h2>\n\n\n\n<p>\u3053\u3053\u304b\u3089\u5148\u306f\u672c\u756a\u307e\u305f\u306f\u672c\u756a\u74b0\u5883\u3092\u6a21\u3057\u305f\u4ed5\u7d44\u307f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<p>&#8212;&#8212;&#8211;IP\u3092\u30b9\u30bf\u30c6\u30a3\u30c3\u30af\u306b\u8a2d\u5b9a&#8212;&#8212;&#8212;&#8212;-<br \/>\u307e\u305a\u3001IP\u3092\u56fa\u5b9a\u8a2d\u5b9a\u3057\u307e\u3059\u3002<br \/>\u65b9\u6cd5\u306f<br \/>\u30fb\u30eb\u30fc\u30bf\u5074\u3067\u300c\u56fa\u5b9aIP\u306e\u5272\u308a\u632f\u308a\u300d\u6a5f\u80fd\u3067\u56fa\u5b9a\u3059\u308b<br \/>\u30fb\u30b5\u30fc\u30d0\u30de\u30b7\u30f3\u5074\u3067\u56fa\u5b9a\u3059\u308b\u3002<\/p>\n\n\n\n<p>\u30b5\u30fc\u30d0\u30de\u30b7\u30f3\u5074\u3067\u3084\u308b\u306a\u3089\u3070\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u8d8a\u3057\u3067\u4f5c\u696d\u3057\u3066<br \/>\u30df\u30b9\u3063\u3066\u30de\u30b7\u30f3\u304c\uff08IP\u7684\u306b\uff09\u884c\u65b9\u4e0d\u660e\u3068\u304b\u306a\u3089\u307e\u3060\u3057\u3082<br \/>\u30cd\u30c3\u30c8\u306b\u3064\u306a\u304c\u3089\u306a\u304f\u306a\u3063\u305f\u3068\u304b\u3059\u308b\u3068\u7d50\u5c40\u3081\u3093\u3069\u3044\u306e\u3067\u3001<br \/>\u6700\u521d\u304b\u3089\u3082\u3046\u4e00\u56de\u753b\u9762\u3064\u3051\u3066\u30ed\u30fc\u30ab\u30eb\u3067\u8a2d\u5b9a\u3059\u308b\u307b\u3046\u304c\u3044\u3044\u3068\u601d\u3046\u3002<\/p>\n\n\n\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;Apache\u306b\u30b5\u30fc\u30d0\u540d\u8a2d\u5b9a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nano \/etc\/apache2\/apache2.conf<\/code><\/pre>\n\n\n\n<p>\u4e2d\u8eab\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u8ffd\u52a0\u3059\u308b\u3002gruobal configuation\u306e\u76f4\u4e0b\u306b\u4ee5\u4e0b\u3092\u8ffd\u52a0\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Global configuration\nServerName hogehoge.hoge.jp<\/code><\/pre>\n\n\n\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-DDNS\u306e\u5b9a\u6642\u767b\u9332<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nano \/etc\/crontab<\/code><\/pre>\n\n\n\n<p>\u4e2d\u8eab\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3002\u3053\u308c\u3092\u6709\u52b9\u5316\u3059\u308b\u3068ddns\u306bIP\u767b\u9332\u3092\u958b\u59cb\u3059\u308b\u306e\u3067\u3088\u304f\u8003\u3048\u3066\u884c\u3046\u3053\u3068\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>*\/10 * * * * root wget -q -O - \u2018http:\/\/free.ddo.jp\/dnsupdate.php?dn=XXXX&amp;pw=XXXX\u2019<\/code><\/pre>\n\n\n\n<p>\u57fa\u672c\u306f<br \/>\u300c\u5206\u3000\u6642\u3000\u65e5\u3000\u6708\u3000\u66dc\u65e5\u3000\u5b9f\u884c\u30e6\u30fc\u30b6\u3000\u5b9f\u884c\u30b3\u30de\u30f3\u30c9\u300d<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u25cf\u30e9\u30ba\u30d1\u30a4\u306bLubuntu20.04\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3059\u308b\u3002 \u307e\u305a\u3001RasspiImager\u304b\u3089UbuntuServer20.04\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002 \u307e\u305a\u306f\u304a\u6c7a\u307e\u308a\u3002 \/\/&#8212;&#8212;&#8211;Lubunt [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"http:\/\/shinku.ddo.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/pages\/5559"}],"collection":[{"href":"http:\/\/shinku.ddo.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/shinku.ddo.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/shinku.ddo.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/shinku.ddo.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5559"}],"version-history":[{"count":11,"href":"http:\/\/shinku.ddo.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/pages\/5559\/revisions"}],"predecessor-version":[{"id":5811,"href":"http:\/\/shinku.ddo.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/pages\/5559\/revisions\/5811"}],"wp:attachment":[{"href":"http:\/\/shinku.ddo.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5559"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}