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/03/30 12:29] – [+Work logs] Júne Parkdeb_mutism [2019/04/11 10:59] – [Compiling RTL8821AU wireless driver] Júne Park
Line 238: Line 238:
  
 ---- ----
-==== 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 ==== ==== Disable sleep/suspend/hibernate ====
  
Line 395: Line 374:
  
 ----  ---- 
 +
 +==== Install ownCloud ==== 
 +
 +=== Memory caching configuration === 
 +
 +{{material>info?size=24&color=#be0027}} [[https://doc.owncloud.org/server/10.1/admin_manual/configuration/server/caching_configuration.html|Referral manuals]] --- by ownCloud Documentation 
 +
 +== Install Redis == 
 +
 +<code bash> 
 +sudo apt install redis-server php-redis
 +</code> 
 +
 +== Check running service == 
 +
 +<code bash> 
 +sudo ps ax | grep redis
 +sudo netstat -tlnp | grep redis
 +</code> 
 +
 +== Clearing the Redis Cache == 
 +
 +<code bash> 
 +sudo redis-cli
 +  SELECT <dbIndex>
 +  FLUSHDB
 +</code> 
 +
 +== Add configuration in ownCloud == 
 +
 +Edit ''/var/www/owncloud/config/config.php'' if ownCloud root is ''/var/www/owncloud'' and add the followings, 
 +
 +<code php> 
 +<?php
 +$CONFIG = array (
 +... ... ... 
 +...
 +),
 +'memcache.local' => '\\OC\\Memcache\\Redis',
 +'filelocking.enabled' => 'true',
 +'memcache.distributed' => '\\OC\\Memcache\\Redis',
 +'memcache.locking' => '\\OC\\Memcache\\Redis',
 +'redis' =>
 +array (
 +'host' => 'localhost',
 +'port' => 6379,
 +'timeout' => 0,
 +'dbindex' => 0,
 +),
 +); 
 +</code> 
 +
 +----
 +=== Run background jobs === 
 +
 +Add ''crontab'' with web user such as ''www-data'' 
 +
 +<code bash> 
 +# crontab -u www-data -e
 +</code> 
 +
 +Add job 
 +
 +<code bash> 
 +*  *  *  *  * /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> 
 +
 +----
 ==== Solved Problems ===== ==== Solved Problems =====
  
  • deb_mutism
  • Last modified: 2024/05/21 17:51
  • by Júne Park