debian_common

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
debian_common [2019/06/08 03:11] โ€“ [Upgrade php 7.x] Jรบne Parkdebian_common [2020/01/27 12:04] โ€“ [Disable power wireless off] Jรบne Park
Line 330: Line 330:
 ---- ----
  
-==== Delete unnecessary files regularly ====  
-''sudo crontab -e'' Add command line to find & delete. e.g.) Delete all ''.nfo'' file in target directory and its sub-directories at 30 minutes past every 6 hours.  
  
-<code bash> 
-  30 */6 * * * /usr/bin/find /..((your path)).../ -name '*.nfo' -exec rm -f {} \; 
-</code> 
  
-Delete empty directory at 30 minutes past every 12 hours +==== Disable power wireless off ==== 
  
-<code bash>ย +<code bash> ย 
-  30 */12 * * * /usr/bin/find /..((your path)).../ -type d -empty -deleteย + sudo iwconfig wlan0 power off ย 
-</code>+</code> 
  
 ---- ----
  
-==== Delete all files except for desired file types ==== +==== Disable Bluetooth service ==== 
  
 <code bash>  <code bash> 
- find . -type f ! -name '*.mkv' -deleteย +vi /etc/bluetooth/main.confย 
-</code>  +</code> 
  
-----ย +Edit the line with ''AutoEnable'' with ''false'' ย 
-==== Disable power wireless off ==== +<code ini>ย 
 +AutoEnable falseย 
 +</code> 
  
 +A more radical way is to either stop the bluetooth service
 +
 +<code bash>
 +sudo systemctl stop bluetooth.service
 +</code>
 +
 +Or even more radical is to disable it permanently
 <code bash>  <code bash> 
- sudo iwconfig wlan0 power off +sudo systemctl disable bluetooth
 </code>  </code> 
  
  • debian_common
  • Last modified: 2024/04/18 08:58
  • by Jรบne Park