Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. <nav> * {{fa>server?color=#8B0000}} Linux * [[rpi_common|โ General Things on Raspbian]] * [[rpi_nimbus|๐๐ข๐๐๐๐ ๐๐๐น๐๐๐๐]] * [[debian_common|โ General info on Debian Linux]] * [[deb_cicada|๐๐ข๐๐๐๐ ๐๐๐ฉ๐ ๐ฅ๐ฆ๐]] * [[deb_gilead|๐๐ข๐๐๐๐ ๐ธ๐ฃ๐๐๐๐ฅ๐]] * [[deb_symbio|๐๐๐๐๐ข๐ โ๐ ๐๐๐ฅ๐ฆ๐ค]] * [[deb_tardis|๐๐๐๐๐ข๐ ๐๐ก๐๐ฅ๐๐ฆ๐]] * [[deb_debris|๐๐๐๐๐ข๐ โ๐๐ฃ๐ ๐๐]] * {{fa>windows?color=#0000A0}} Windows * [[:pc_common|โ Common Works on Windows]] * [[PC_MESONiSM|๐๐๐๐๐๐ข๐๐]] * [[PC_MESONiST|๐๐๐๐๐๐ข๐๐]] * {{fa>android?color=#006400}} Android * [[:cell_common|โ Common Stuffs on Androids]] * [[CELL_EPiCON|๐๐๐ข๐๐๐ ๐ฝ๐]] * [[CELL_EPiMER|๐๐๐ข๐๐๐ ๐ก]] * [[CELL_EPiLUX|๐๐๐ข๐๐๐ ๐]] * [[CELL_EPiTAP|๐๐๐ข๐๐๐ ๐๐]] * [[CELL_EPiETA|๐๐๐ข๐๐๐ ๐]] </nav> ===== Opus Imperium โ MUTiSM Magnum ===== {{:ubuntu-18.04-lts-features.png?nolink&300|}} Name: {{mdi>cards?28&color=#dd4814}} ''**MUTiSM** Magnum'' (official) | {{mdi>creation?28&color=#dd4814}} ''๋ผ์ด๋ชฝ'' (korean) ---- ==== Specification ==== {{mdi>cpu-64-bit?28&color=#dd4814}} CPU: ''Intelยฎ Coreโข i5-3337U CPU @ 1.80GHz (2 cores)'' --- [[https://meson.in/31n12gL|Product info]] {{mdi>memory?28&color=#dd4814}} Memory: ''**8G**'' {{mdi>database-plus?28&color=#dd4814}} Storages: * ''**128G**'' (m.2 type SSD) --- ''**/**'' partition * ''**500G**'' (SATA HDD) --- ''**~/storage**'' partition === Live status of storages === <code ini> Mounted on Type Size Used Avail Use% / ext4 117G 15G 97G 13% /home/www-data ext4 458G 49G 386G 12% /home/web-data ext4 916G 266G 605G 31% </code> {{mdi>wifi?28&color=#dd4814}} Wireless: * Intel<sup>ยฎ</sup> Dual Band Wireless-AC 3160 (802.11ac) * Realtek<sup>ยฎ</sup> WLAN USB Adapter (802.11ac) --- {{mdi>wifi-strength-off?14}} not working after ''focal fossa'' ---- ==== Hosting Services ==== <button type="primary" size="sm" icon="fa fa-lock">[[secured:web_admin#june_s_muon_gateway|admin]]</button> **''[[https://mu.meson.one/|Jรบne's MuON Gateway]]''** --- MU Gateway <button type="primary" size="sm" icon="fa fa-lock">[[secured:web_admin#june_s_xchange_repository|admin]]</button> **''[[https://x.meson.ml|Jรบne's Xchange Repository]]''** --- Xchange Service <button type="primary" size="sm" icon="fa fa-lock">[[secured:web_admin#june_s_one_wiki_lab|admin]]</button> **''[[https://wiki.meson.one|Jรบne's Wiki OWL]]''** --- One Wiki LAB <button type="danger" size="sm" icon="fa fa-sliders">[[https://wiki.meson.one/doku.php?id=secured:nginx_config#mutism_magnum|Nginx Configuration]]</button> Showing lively on OWL {{fa>opera?14&color=#cc0f16}} for ''**MUTiSM** Magnum'' {{fa>lock?color=#808080}} ---- ==== ๏ผWork logs ==== * System Upgrade ''**Ubuntu 24.04 noble numbat**'' <sub> --- Updated on //2025/02/27 03:04// </sub> * Attach Ubuntu Pro subscription <sub> --- Updated on //2024/05/21 17:41// </sub> * Upgrade ''php 8.2'' and purge ''php 7.4'', ''php 8.0'' <sub> --- Updated on //2023/06/04 02:51// </sub> * Upgrade ''php 8.0'' <sub> --- Updated on //2021/01/26 17:24// </sub> * Upgrade ''mariadb 10.5'' <sub> --- Updated on //2020/08/31 13:25// </sub> * ''adjust & optimize'' value of ''php-fpm'' -- ''/etc/php/7.x/fpm/pool.d/www.conf'' <sub> --- Updated on //2020/07/25 21:42// </sub> * ''Upgrade'' Ubuntu **''20.04''** - ''focal fossa'' <sub> --- Updated on //2020/07/24 01:23// </sub> * Change ''backup rsync'' to another partition <sub> --- Updated on //2020/06/27 04:01// </sub> * Migrate ''mariadb 10.3.22'' from ''mysql'' <sub> --- Updated on //2020/03/30 01:42// </sub> * {{fa>certificate}} ''Renew SSL certificates'' (Let's Encrypt) done <sub> --- Updated on //2019/08/01 21:17// </sub> * **Nextcloud** ''install'' <sub> --- Updated on //2019/05/17 01:02// </sub> * {{fa>wordpress?color=#21759b}} Wordpress(tm) ''installed'' <sub> --- Updated on //2018/09/10 00:44//</sub> * {{fa>user?color=#da1884}} Added first ''new user'' for ''x.meson.ml'' <sub> --- Updated on //2018/09/10 00:43//</sub> | {{mdi>account-multiple-plus-outline}} [[::private:june_todo#xmesonml|Registered Users]] {{fa>lock}} * **Docker Client/Server** installed <sub> --- Updated on //2018/07/18 01:20//</sub> * ''wiki.meson.one'' & ''x.meson.ml'' certificates are issued <sub> --- Updated on //2018/07/17 11:17//</sub> * ''mu.meson.one'' page is created and need to attention to edit <sub> --- Updated on //2018/07/13 02:00//</sub> * ''Let's Encrypted'' issued and installed <sub> --- Updated on //2018/07/10 23:48//</sub> <hidden> * {{fa>certificate}} ''Renew SSL certificates'' (Let's Encrypt) done <sub> --- Updated on //2019/05/23 02:16// </sub> </hidden> === ๏ผQue to do === * [[http://blog.filerun.com/how-to-install-filerun-on-ubuntu-16/|Install FileRun]], [[http://docs.filerun.com/filerun_install_guide|Installation Guide]] --- Online file management * Front page for ''mu.meson.one'' ---- ==== Sudo Group ==== In ''Ubuntu'', Login with ''root'' <code bash> ssh root@your_server_ip </code> Add ''user'', usually first user is required to input during installation steps. <code bash> adduser firstuser </code> Add ''user'' in ''sudo'' group <code bash> usermod -aG sudo firstuser </code> ---- ==== sudo without typing password ==== <code bash> sudo visudo </code> Add following line. <code ini> #includedir /etc/sudoers.d username ALL=(ALL) NOPASSWD: ALL </code> ---- ==== Network configuration ==== Install ''wpasupplicant'' for wireless connection. <code bash> sudo apt install wpasupplicant </code> check network adapters with ''ifconfig'' and ''iwconfig'' -- need to install ''wireless-tools''. Edit ''/etc/netplan/01-something.yaml'' for ''networkd'' or ''Network-Manager'' <code yaml> network: ethernets: enp3s0: addresses: [] dhcp4: true optional: true nameservers: search: [search.domain.ltd] addresses: [8.8.8.8,8.8.4.4] wifis: wlp2s0: addresses: [] dhcp4: true optional: true nameservers: search: [search.domain.ltd] addresses: [1.1.1.1,1.0.0.1] access-points: ? "your ssid" : password: passphrase --- renderer: networkd version: 2 </code> {{fa>link}} [[http://manpages.ubuntu.com/manpages/bionic/man5/netplan.5.html|Manual / Reference Guide for netplan]] {{fa>sliders?color=#d20962&2x}} Live [[:secured:server_config##netplan_configuration|Netplan Configuration]] for ''**MUTiSM**'' {{fa>lock?color=#808080}} ---- ==== Manage connected WiFi SSID ==== in ''Network-Manager'' ''path'': ''**/etc/Network-Manager/system-connections**'' ''edit'' or ''delete'' ''**SSID**'' named file(s). ---- ==== Compiling RTL8811AU wireless driver ==== ''purge'' installed driver, which is not working correctly and ''compile'' new driver. <code bash> sudo apt purge rtl8812au-dkms sudo apt install git git clone https://github.com/abperiasamy/rtl8812AU_8821AU_linux.git cd rtl8812AU_8821AU_linux sudo make -f Makefile.dkms install sudo modprobe rtl8812au </code> ''check'' driver is installed and recognized by system. <code bash> modinfo rtl8812au | grep A811 // Linux kernel module ifconfig // network adapters iwconfig // wireless configuration </code> ---- ==== Disable sleep/suspend/hibernate ==== When a system goes to sleep, suspend or hibernate mode, response from machine is extremely slow or timed out. Soon after waking up, system responses quickly. To prevent this, <code bash> sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target </code> Action to do next is [[deb_gilead#suspendtarget_is_masked|Suspend.target is masked]] ---- ==== Let's Encrypted ==== {{fa>certificate?color=#BBAA00}} [[:rpi_nimbus#let_s_encrypt|Let's Encrypt]] --- SSL/TLS certificates ---- ==== Install Nginx ==== <code bash> sudo apt-get install nginx-extras \\ heavier than other packages, full </code> ---- ==== Install MySQL ==== <code bash> sudo apt-get install mysql-server sudo mysql_secure_installation \\ to secure MySQL weakness </code> {{fa>exclamation-triangle?color=#BBAA00}} without sudo, root authentication identified by temporary password is required. Never pass it. Do with ''sudo'' ---- ==== Install PHP ==== <code bash> sudo apt-get install php-fpm php-mysql </code> Configure the PHP Processor <code bash> sudo vi /etc/php/7.x/fpm/php.ini </code> Comment out ''cgi.fix_pathinfo'' parameter and set value to ''0'' <code ini> cgi.fix_pathinfo=0 </code> And restart service. <code bash> sudo systemctl restart php7.x-fpm </code> ---- ==== Nginx with PHP Processor ==== <accordion> <panel title="Default config of Nginx with PHP Processor"> <code nginx> server { listen 80 default_server; listen [::]:80 default_server; root /var/www/html; index index.php index.html index.htm index.nginx-debian.html; server_name server_domain_or_IP; location / { try_files $uri $uri/ =404; } location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/php7.0-fpm.sock; } location ~ /\.ht { deny all; } } </code> </panel> </accordion> To use ''php-fpm'', need to edit ''/etc/php/7.x/fpm/pool.d/www.conf'' <code php> ;listen = 127.0.0.1:9000 listen = /run/php/php7.0-fpm.sock; # which creates socket for php-fpm pm = dynamic pm.max_children = ?? pm.start_servers = 8 pm.min_spare_servers = 4 pm.max_spare_servers = 8 pm.max_requests = 500 </code> ''pm.'' values could be changed according to resources such as physical memory and an average usage of each php processor. Guide for adjusting values are ^ Setting Name ^ Suggested value ^ | ''max_children'' | (Total RAM - Memory used for Linux, DB, etc.) / process size | | ''start_servers'' | Number of CPU cores x 4 | | ''min_spare_servers'' | Number of CPU cores x 2 | | ''max_spare_servers'' | Same as start_servers | | | | Available memory size can be guessed by commanding ''free -hl'' and process size used by ''php7.x-fpm'' is calculated by scripts [[https://raw.githubusercontent.com/pixelb/ps_mem/master/ps_mem.py|ps_mem.py]] and ''sudo python ps_mem.py | grep php-fpm'' 12.9 MiB + 18.7 MiB = 31.6 MiB php-fpm7.3 (4) memory consumed by each php-fpm is assumed as ''31.6 Mbyte''. ---- ==== Install Wordpressโข ===== === Install required services === <text type="info">**Prerequisite**</text>: Nginx, MySQL (MariaDB) and related PHP modules <code bash> sudo apt install nginx </code> <code bash> sudo apt-get install mariadb-server mariadb-client </code> Install related PHP modules. if one or two modules are not listed on Ubuntu default repository, ''add'' additional repository. <code bash> sudo apt install php7.1-fpm php7.1-common php7.1-mbstring php7.1-xmlrpc php7.1-soap php7.1-gd php7.1-xml php7.1-intl php7.1-mysql php7.1-cli php7.1-mcrypt php7.1-zip php7.1-curl </code> Add third-party repository for ''PHP'' <code bash> sudo apt-get install software-properties-common sudo add-apt-repository ppa:ondrej/php </code> === Secure Database === <code bash> sudo mysql_secure_installation </code> When prompted, answer the questions below by following the guide. * Enter current password for root (enter for none): <text type="danger">Just press the Enter</text> * Set root password? [Y/n]: <text type="danger">Y</text> * New password: <text type="danger">Enter password</text> * Re-enter new password: <text type="danger">Repeat password</text> * Remove anonymous users? [Y/n]: <text type="danger">Y</text> * Disallow root login remotely? [Y/n]: <text type="danger">Y</text> * Remove test database and access to it? [Y/n]: <text type="danger">Y</text> * Reload privilege tables now? [Y/n]: <text type="danger">Y</text> Restart MySQL (MariaDB) service <code bash> sudo systemctl restart mysql.service </code> === Configure PHP-FPM === <code bash> sudo nano /etc/php/7.x/fpm/php.ini </code> version 7.x is different depending on update. August 2018, version is ''7.2'' ''Edit'' following lines with suggested values <code ini> file_uploads = On allow_url_fopen = On memory_limit = 256M upload_max_filesize = 100M cgi.fix_pathinfo=0 max_execution_time = 360 date.timezone = America/Chicago </code> === Create Wordpress database === <code bash> sudo mysql -u root -p </code> Database name is ''wordpress'' here. <code mysql> CREATE DATABASE wordpress; </code> Create database user named ''wordpressuser'' here. <code mysql> CREATE USER 'wordpressuser'@'localhost' IDENTIFIED BY 'new_password_here'; </code> ''new_password_here'' is **''your own password''**. <code mysql> GRANT ALL ON wordpress.* TO 'wordpressuser'@'localhost' IDENTIFIED BY 'user_password_here' WITH GRANT OPTION; </code> If you see the error message, omit the password. <code mysql> GRANT ALL ON wordpress.* TO 'wordpressuser'@'localhost' WITH GRANT OPTION; </code> ''Save changes'' and exit. <code mysql> FLUSH PRIVILEGES; EXIT; </code> === Download Wordpress === <code bash> cd /tmp && wget https://wordpress.org/latest.tar.gz tar -zxvf latest.tar.gz sudo mv wordpress /var/www/html/wordpress </code> === Configure web service with Nginx === ''Create'' Nginx virtual sites and apply SSL [[:rpi_nimbus#let_s_encrypt|Configure SSL with Let's Encrypt]] Run through web browser to set up initially. --- ''index.php'' and follow instruction step by step. ---- ==== Install Nextcloud ==== === Setting for uploading large size files === ''edit'' php_value in ''/etc/php/7.x/fpm/php.ini'' <code php> upload_max_filesize 16G post_max_size 16G max_input_time 3600 max_execution_time 3600 upload_tmp_dir = /var/big_temp_file/ output_buffering = 0 </code> {{mdi>lightbulb-on?28&color=#003666}} ''max_execution_time'' could be ''**21600**'' if showing error during assembling file(s). ''edit'' ''/etc/php/7.x/fpm/pool.d/www.conf'' <code php> request_terminate_timeout = 300 </code> ''edit'' ''fastcgi_read_timeout'' value in Nginx virtual host configuration <code nginx> location ~ .php$ { root /var/www/sites/nginxtips.com; try_files $uri =404; fastcgi_pass unix:/tmp/php5-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; fastcgi_read_timeout 300; } </code> {{mdi>lightbulb-on?32&color=#003666}} ''fastcgi_read_timeout'' could be ''**21600**'' if showing error during assembling file(s). * <text type="info">{{fa>lightbulb-o?24}}</text> <button type="link" icon="mdi mdi-book-search">[[https://meson.in/31Fqa2k|Uploading big files > 512MB]]</button> --- on Nextcloud Administration Manual * <text type="info">{{fa>lightbulb-o?24}}</text> <button type="link" icon="mdi mdi-bookmark-multiple">[[https://meson.in/3bcdXVJ|How to Fix 504 Gateway Timeout using Nginx]]</button> --- Fix 504 timeout problem ---- ==== Reset MySQL password ==== Stop the MySQL service <code bash> sudo /etc/init.d/mysql stop </code> Start MySQL without a password <code bash> sudo mysqld_safe --skip-grant-tables & </code> Connect to MySQL <code mysql> mysql -uroot </code> Set a new MySQL root password <code mysql> use mysql; update user set authentication_string=PASSWORD("mynewpassword") where User='root'; flush privileges; quit </code> Stop and start the MySQL service <code bash> sudo /etc/init.d/mysql stop ... sudo /etc/init.d/mysql start </code> Log in to the database <code bash> mysql -u root -p </code> ---- ===== Solved problems ====== ==== Stuck during update in Nextcloudโข ==== <text type="danger">{{fa>bug}} **Symptom**</text>: Stuck in page showing ''Step 4 is currently in process. Please reload this page later'' during Nextcloud (tm) update using updater. <text type="info">{{fa>lightbulb-o}} **Solution**</text>: ''Delete'' ''.step'' file in ''nextcloud-data/updater-randomstring/**.step**''. ---- ==== Has sum mismatch ==== <text type="danger">{{fa>bug}} **Symptom**</text>: Error showing ''**Has sum mismatch**'' during update procedures. <text type="info">{{fa>lightbulb-o}} **Solution**</text>: ''Delete'' saved repositories. <code bash> sudo rm /var/lib/apt/lists/* or sudo rm -r /var/lib/apt/lists/* -vf </code> and ''update'' again <code bash> sudo apt update </code> ---- ==== No apps found for your version ==== <text type="danger">{{fa>bug}} **Symptom**</text>: Error showing **No apps found for your version** in Nextcloud (tm) Apps. <text type="info">{{fa>lightbulb-o}} **Solution**</text>: ''Edit'' Fetching time in script, located in ''../nextcloud_root/lib/private/App/AppStore/Fetcher/Fetcher.php''. <code php> } $options = [ - 'timeout' => 10, + 'timeout' => 300, ]; </code> ---- ==== the 'ssl' directive is deprecated ==== <text type="danger">{{fa>bug}} **Symptom**</text>: Error shows ''2020/07/28 18:13:52 [warn] 42175#42175: the "ssl" directive is deprecated, use the "listen ... ssl ..." directive instead in /etc/nginx'' <text type="info">{{fa>lightbulb-o}} **Solution**</text> Edit ''/etc/nginx/sites-available/site.conf'' <code nginx> server { # Add ssl in listen listen 443 ssl http2 default_server; listen [::]:443 ssl http2 default_server; # ... comment out ssl on; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; port_in_redirect off; #ssl on; </code> Check related error and warning <code bash> sudo nginx -t </code> ---- deb_mutism Last modified: 2025/03/18 02:13by Jรบne Park