Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
debian_common [2019/05/27 09:12] โ [Upgrade php 7.x] Jรบne Park | debian_common [2020/07/10 18:29] โ [General info on Debian Linux] Jรบne Park | ||
---|---|---|---|
Line 1: | Line 1: | ||
< | < | ||
* {{fa> | * {{fa> | ||
- | * [[: | + | * [[: |
* [[: | * [[: | ||
* [[: | * [[: | ||
* [[: | * [[: | ||
- | * [[: | + | * [[: |
* [[: | * [[: | ||
+ | * [[: | ||
+ | * [[: | ||
* {{fa> | * {{fa> | ||
- | * [[: | + | * [[: |
* [[: | * [[: | ||
* [[: | * [[: | ||
Line 14: | Line 16: | ||
* [[: | * [[: | ||
* {{fa> | * {{fa> | ||
- | * [[: | + | * [[: |
* [[: | * [[: | ||
* [[: | * [[: | ||
Line 22: | Line 24: | ||
</ | </ | ||
- | ===== General info on Debian | + | ====== General info on Debian |
{{: | {{: | ||
Line 330: | Line 332: | ||
---- | ---- | ||
- | ==== Delete unnecessary files regularly ==== | ||
- | '' | ||
- | <code bash> | ||
- | 30 */6 * * * / | ||
- | </ | ||
- | Delete empty directory at 30 minutes past every 12 hours | + | ==== Disable power wireless off ==== |
- | <code bash>ย | + | <code bash> ย |
- | 30 */12 * * * / | + | sudo iwconfig wlan0 power off ย |
- | </ | + | </ |
---- | ---- | ||
- | ==== Delete all files except for desired file types ==== | + | ==== Disable Bluetooth service |
<code bash> | <code bash> | ||
- | find . -type f ! -name '*.mkv' -deleteย | + | vi / |
- | </ | + | </ |
- | ----ย | + | Edit the line with '' |
- | ==== Disable power wireless off ==== | + | <code ini>ย |
+ | AutoEnable | ||
+ | </ | ||
+ | A more radical way is to either stop the bluetooth service | ||
+ | |||
+ | <code bash> | ||
+ | sudo systemctl stop bluetooth.service | ||
+ | </ | ||
+ | |||
+ | Or even more radical is to disable it permanently | ||
<code bash> | <code bash> | ||
- | sudo iwconfig wlan0 power off | + | sudo systemctl disable bluetooth |
</ | </ | ||
Line 427: | Line 433: | ||
</ | </ | ||
+ | |||
+ | ---- | ||
+ | ===== Nginx repository ===== | ||
+ | |||
+ | Install the prerequisites: | ||
+ | |||
+ | <code bash> | ||
+ | sudo apt install curl gnupg2 ca-certificates lsb-release | ||
+ | </ | ||
+ | |||
+ | To set up the apt repository for stable nginx packages, run the following command: | ||
+ | <code bash> | ||
+ | echo "deb http:// | ||
+ | | sudo tee / | ||
+ | </ | ||
+ | |||
+ | If you would like to use mainline nginx packages, run the following command instead: | ||
+ | |||
+ | <code bash> | ||
+ | echo "deb http:// | ||
+ | | sudo tee / | ||
+ | </ | ||
+ | |||
+ | Next, import an official nginx signing key so apt could verify the packages authenticity: | ||
+ | |||
+ | <code bash> | ||
+ | curl -fsSL https:// | ||
+ | </ | ||
+ | |||
+ | Verify that you now have the proper key: | ||
+ | |||
+ | <code bash> | ||
+ | sudo apt-key fingerprint ABF5BD827BD9BF62 | ||
+ | </ | ||
+ | |||
+ | The output should contain the full fingerprint '' | ||
+ | |||
+ | <code txt> | ||
+ | pub | ||
+ | 573B FD6B 3D8F BC64 1079 A6AB ABF5 BD82 7BD9 BF62 | ||
+ | uid [ unknown] nginx signing key < | ||
+ | </ | ||
+ | |||
+ | To install nginx, run the following commands: | ||
+ | |||
+ | <code bash> | ||
+ | sudo apt update | ||
+ | sudo apt install nginx | ||
+ | </ | ||
---- | ---- |