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
debian_common [2019/04/23 00:29]
Júne Park [Basic commands 101]
debian_common [2020/03/22 03:55] (current)
Júne Park
Line 1: Line 1:
 <​nav> ​ <​nav> ​
   * {{fa>​server?​color=#​8B0000}} Linux   * {{fa>​server?​color=#​8B0000}} Linux
-    * [[:​rpi_common|General Things on Raspbian]]+    * [[:​rpi_common|■ General Things on Raspbian]]
     * [[:​rpi_autism|Media Ditorium ─ AUTiSM Rainbow]]     * [[:​rpi_autism|Media Ditorium ─ AUTiSM Rainbow]]
     * [[:​rpi_epigen|Private Cellarium ─ EPiGEN Crystal]]     * [[:​rpi_epigen|Private Cellarium ─ EPiGEN Crystal]]
     * [[:​rpi_nimbus|Webius Officium ─ NiMBUS deBlanc]]     * [[:​rpi_nimbus|Webius Officium ─ NiMBUS deBlanc]]
-    * [[:​debian_common|General info on Debian Linux]]+    * [[:​debian_common|■ General info on Debian Linux]]
     * [[:​deb_mutism|Opus Imperium ─ MUTiSM Magnum]]     * [[:​deb_mutism|Opus Imperium ─ MUTiSM Magnum]]
 +    * [[:​deb_gilead|Actu Periculum ─ GiLEAD Argenta]]
 +    * [[:​deb_debris|Finca LaDichium ─ DEBRiS Chrome]]
   * {{fa>​windows?​color=#​0000A0}} Windows   * {{fa>​windows?​color=#​0000A0}} Windows
-    * [[:​pc_common|Common Works on Windows]]+    * [[:​pc_common|■ Common Works on Windows]]
     * [[:​pc_mesonism|Primus Workstation ─ MESONiSM]]     * [[:​pc_mesonism|Primus Workstation ─ MESONiSM]]
     * [[:​pc_mesonium|Manibus Tablet ─ MESONiUM]]     * [[:​pc_mesonium|Manibus Tablet ─ MESONiUM]]
Line 14: Line 16:
     * [[:​pc_mesonity|Praevus Station ─ MESONiTY]]     * [[:​pc_mesonity|Praevus Station ─ MESONiTY]]
   * {{fa>​android?​color=#​006400}} Android   * {{fa>​android?​color=#​006400}} Android
-    * [[:​cell_common|Common Stuffs on Androids]]+    * [[:​cell_common|■ Common Stuffs on Androids]]
     * [[:​cell_epiaux|Júne'​s Primus ─ EPiAUX 5X]]     * [[:​cell_epiaux|Júne'​s Primus ─ EPiAUX 5X]]
     * [[:​cell_epihex|Júne'​s Extentus ─ EPiHEX 6]]     * [[:​cell_epihex|Júne'​s Extentus ─ EPiHEX 6]]
Line 330: Line 332:
 ---- ----
  
-==== 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> ​
  
Line 388: Line 394:
  
 ----  ---- 
 +===== Upgrade php 7.x ===== 
  
 +Append additional source for php7.x latest,
 + 
 +<code bash> ​
 +wget -q https://​packages.sury.org/​php/​apt.gpg -O- | sudo apt-key add -
 +echo "deb https://​packages.sury.org/​php/​ stretch main" | sudo tee /​etc/​apt/​sources.list.d/​php.list
 +</​code>​
 +
 +<code bash> ​
 +sudo apt-get update
 +</​code> ​
 +
 +<code text> ​
 +Reading package lists... Done
 +E: The method driver /​usr/​lib/​apt/​methods/​https could not be found.
 +N: Is the package apt-transport-https installed?
 +E: Failed to fetch https://​packages.sury.org/​php/​dists/​stretch/​InRelease
 +E: Some index files failed to download. They have been ignored, or old ones used instead.
 +</​code> ​
 +
 +When it comes to this errors, install additional packages for update, ​
 +
 +<code bash> ​
 +sudo apt-get install ca-certificates apt-transport-https
 +</​code> ​
 +
 +Install php with latest version ​
 +
 +<code bash> ​
 +sudo apt-get install php7.2 php7.2-cli php7.2-common php7.2-opcache php7.2-curl php7.2-mbstring php7.2-mysql php7.2-zip php7.2-xml
 +</​code> ​
 +
 +To verify the installation is completed run the following command:
 +
 +<code bash> ​
 +php -v
 +</​code> ​
 + 
 +
 +----
 +===== Nginx repository ===== 
 +
 +Install the prerequisites:​
 +
 +<code bash>
 +sudo apt install curl gnupg2 ca-certificates lsb-release
 +</​code> ​
 +
 +To set up the apt repository for stable nginx packages, run the following command:
 +<code bash> ​
 +echo "deb http://​nginx.org/​packages/​ubuntu `lsb_release -cs` nginx" \
 +    | sudo tee /​etc/​apt/​sources.list.d/​nginx.list
 +</​code> ​
 +
 +If you would like to use mainline nginx packages, run the following command instead:
 +
 +<code bash> ​
 +echo "deb http://​nginx.org/​packages/​mainline/​ubuntu `lsb_release -cs` nginx" \
 +    | sudo tee /​etc/​apt/​sources.list.d/​nginx.list
 +</​code> ​
 +
 +Next, import an official nginx signing key so apt could verify the packages authenticity:​
 +
 +<code bash> ​
 +curl -fsSL https://​nginx.org/​keys/​nginx_signing.key | sudo apt-key add -
 +</​code> ​
 +
 +Verify that you now have the proper key:
 +
 +<code bash> ​
 +sudo apt-key fingerprint ABF5BD827BD9BF62
 +</​code>​
 +
 +The output should contain the full fingerprint ''​573B FD6B 3D8F BC64 1079 A6AB ABF5 BD82 7BD9 BF62''​ as follows:
 +
 +<code txt> ​
 +pub   ​rsa2048 2011-08-19 [SC] [expires: 2024-06-14]
 +      573B FD6B 3D8F BC64 1079  A6AB ABF5 BD82 7BD9 BF62
 +uid   [ unknown] nginx signing key <​signing-key@nginx.com>​
 +</​code> ​
 +
 +To install nginx, run the following commands:
 +
 +<code bash> ​
 +sudo apt update
 +sudo apt install nginx
 +</​code> ​
 +
 +----
 ==== Basic commands 101 ====  ==== Basic commands 101 ==== 
  
  • debian_common.1555946949
  • Last modified: 2019/04/23 00:29
  • by Júne Park