deb_mutism

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
deb_mutism [2019/04/06 17:58] – [Install ownCloud] Júne Parkdeb_mutism [2019/04/15 20:11] – [Nginx with PHP Processor] Júne Park
Line 160: Line 160:
  
 ---- ----
 +==== Compiling RTL8821AU 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> 
 +
 +---- 
  
 ==== Let's Encrypted ====  ==== Let's Encrypted ==== 
Line 237: Line 268:
 </panel> </accordion> </panel> </accordion>
  
----- +To use ''php-fpm'', need to edit ''/etc/php/7.x/fpm/pool.d/www.conf'' 
-==== Compiling RTL8821AU wireless driver ==== +
  
-''purge'' installed driver, which is not working correctly and ''compile'' new driver+<code php>  
 +;listen = 127.0.0.1:9000  
 +listen = /run/php/php7.0-fpm.sock;  # which create socket for php-fpm 
  
-<code bash>  +pm = dynamic 
-  sudo apt purge rtl8812au-dkms +pm.max_children = 50 
-  sudo apt install git +pm.start_servers = 4 
-  git clone https://github.com/abperiasamy/rtl8812AU_8821AU_linux.git +pm.min_spare_servers = 4 
-  cd rtl8812AU_8821AU_linux +pm.max_spare_servers = 32 
-  sudo make -f Makefile.dkms install  +pm.max_requests = 500 
-  sudo modprobe rtl8812au +</code>
-</code> +
  
-''check'' driver is installed and recognized by system +''pm.'' values could be changed according to resources such as physical memory and an average usage of each php processor
- +
-<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>  
- 
-----  
  
 ==== Install Wordpress™ =====  ==== Install Wordpress™ ===== 
Line 460: Line 477:
 <code bash>  <code bash> 
 *  *  *  *  * /usr/bin/php -f /path/to/your/owncloud/cron.php *  *  *  *  * /usr/bin/php -f /path/to/your/owncloud/cron.php
 +</code> 
 +
 +----
 +
 +==== 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>  </code> 
  
  • deb_mutism
  • Last modified: 2024/05/21 17:51
  • by Júne Park