Start Android Terminal Emulator as Root

Android
Install Android Terminal Emulator. Open the above. Tap the options menu icon. Tap Preferences. Scroll down to Shell. Tap Command line. Enter /system/xbin/su -c "/system/xbin/bash -" Tap OK. Back out of Preferences. Close the terminal window. Restart the app. Approve the root permissions request that pops up.
Read More

Android ADB (Android Debug Bridge) Quick List

Android
The following commands take place within the ADB terminal; Basics Lists connected devices; adb devices Lists connected devices and kind; adb devices -l Restarts adbd with root permissions; adb root Starts the adb server; adb start-server Kills the adb server; adb kill-server Remounts file system with read/write access; adb remount Reboots the device; adb reboot…
Read More

MySQLTuner Installation and Execution

Installation Debian / Ubuntu: apt-get install mysqltuner Execution Run Application with Specific Username / Password; mysqltuner --host 127.0.0.1 --user (username) --pass ('password here') Note #1: Remove Parentheses Note #2: Remove '--host 127.0.0.1' if running 'skip-name-resolve' in my.cnf
Read More

MySQL Configuration and Optimization

Display Following Commands are Executed in MySQL View Running Engines; show engines; Find open_files_limit; SHOW GLOBAL VARIABLES LIKE 'open_files_limit'; Configuration Enable Query Cache; SET GLOBAL query_cache_type=1; Validate Query Cache is Enabled; show variables like 'query_cache_size'; Optimize Enable Query Cache Limits; (Add the following to my.cnf file) query_cache_type = 1 query_cache_size = 256M query_cache_limit = 2M…
Read More

Creating / Removing a Swap File

Create Swap File: sudo fallocate -l 2G /swapfile sudo chmod 600 /swapfile sudo mkswap /swapfile sudo swapon /swapfile Make Swap File Permanent: sudo nano /etc/fstab Add to the end: /swapfile none swap sw 0 0 Removing a Swap File: sudo vi /etc/fstab Remove from the end: /swapfile none swap sw 0 0 (line aforementioned may…
Read More
Menu