Friday, August 5, 2016

Fix IP address after kernel 3.10.0-327.28.2.el7.x86_64 upgrade on Centos 7 (KVM Guest)

symptom: after schedule restart due to kernel upgrade to 3.10.0-327.28.2.el7.x86_64, something wrong happen to our guest KVM. Some network devices were disappeared. No more ensX device anymore.
Solution:
Note: this solution tested via host server (using virsh console) and ssh
Install Network Manager Text User Interface (TUI) 
# yum install NetworkManager-tui
Check your device status using Network Manager Command Line Interface (nmcli)
# nmcli dev status
DEVICE  TYPE      STATE         CONNECTION
eth0    ethernet  connected     eth0
ens4    ethernet  disconnected  --
lo      loopback  unmanaged     --
Edit your available/connected network using Network Manager TUI
# nmtui edit eth0
make sure to check 
  1. Require IPv4 addressing for this connection
  2. Automatically connected
  3. Available to all users
References:
  1. http://ask.xmodulo.com/configure-static-ip-address-centos7.html 
  2. https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Networking_Guide/sec-Using_the_NetworkManager_Command_Line_Tool_nmcli.html 

Monday, August 1, 2016

Tuning Nox App Player 3.7 for low-end PC A4-4020 with 2GB RAM

I assume you already instal Nox App Player version 3.7. 
If you instal it on low-end PC (like mine), your PC may become unrespond during Nox App Player start. Here is my PC specifications:
  • Ram 2 GB
  • Processor A4-4020 Dual Core 
  • Windows 10 64bit SL build 10586
To make Nox App Player run smoothly and make my Windows responding, I make set CPU and memory allocation. Do these steps to custom your Nox App Player:
  1. Go to System Settings -> Advanced tab
  2. In Performance Settings, select Custom
  3. Fill CPU 1 and memory 512M (do not set more then or equal 1024M)
  4. In Startup Settings, choose tablet 800x600
  5. Restart your Nox App Player
References:

Saturday, July 30, 2016

Android Studio 2.1.2: Installing Genymotion plugin

THIS PAGE IS OUT OF DATE. Genymotion does not provide free anymore

Software:
  • Android Studio 2.1.2
  • Android SDK 25.1.7
  • Java 1.8.0_60
  • VirtualBox 5.1.2
  • Genymotion 2.7.2 
  • Windows 10 build 10586
We assume all softwares above already installed.
To install plugin into Android Studio 2.1.2 do these steps:
  1. From Android Studio go to File -> Settings... -> Plugins -> Browse repositories...
  2. In search box type genymotion and install
  3. Point your genymotion installation directory. File -> Settings... -> Other Settings -> Genymotion and fill Select the path to the Genymotion folder, for example C:\Program Files\Genymobile\Genymotion
  4. Your Genymotion icon will show on Toolbar. To show this, go to View and check on Toolbar.
Troubleshooting for Genymotion: Unable to start the Genymotion virtual device on VirtualBox Host-Only Network.
  1. Go to Network and Sharing Center -> Change adapter settings.
  2. Right click on VirtualBox Host-Only Network and select Properties
  3. Checked on VirtualBox NDIS6 Bridged Networking Driver
  4. Do this on all VirtualBox Host-Only Network for example VirtualBox Host-Only Network #2
References:

Friday, July 29, 2016

Connecting ADB to Android 4.2.2 devices

Enabling Developer mode on devices (phone):
  1. Go to Settings -> About phone
  2. Tap on Build number until message looks like "... you are already a developer ..."
Enabling Developer options on devices:
  1. Go to Settings -> Developer options
  2. Turn it on and let device to allow development settings
  3. Check on USB debugging to enable it and let device to allow debugging via USB
Connect your device to your PC. Notification USB debugging connected will appear.
Run adb devices to make sure the device connected to adb properly.
>adb devices
List of devices attached
J32V2ML17X026640        device
If you have multiple adb.exe on your pc, make adb from Android SDK as default by put reference to this file into path. In Windows:
  1. Go to Control Panel -> System -> Advanced system settings
  2. Go to Environment Variables -> System Variables, then select variable Path then click Edit
  3. Add your path to correct adb.exe location from Android SDK, for example C:\Java\android-sdk-windows\platform-tools
Tested on MITO A150 Android 4.2.2, PC Windows 10 SL, AMD Processor.
To turn off debugging, go to Settings -> Developer Options uncheck on USB debugging. Next time you want to test your application, just check on USB Debugging.
References:

Thursday, July 7, 2016

Install Android 4.4 x86 r5 in VirtualBox 5 Windows 10

I use NOX App Player to run Android on PC Windows base, to play Clash of Clan. BlueStack 2 has a problem, it almost stuck on every starting up, I remove/uninstall it. I try Android 4.4 x86 as alternative, hope Android 6 x86 stable become available soon. Have fun.... 
Prerequisite:
Install:
  1. Create VirtualBox 
    • Name: Android 4.4 x86
    • Type: Linux
    • Version: Other Linux (32-bit)
    • Memory size 1024MB
    • Virtual Harddisk
    • Type: VDI
    • Storage on Physical hard disk: dynamic allocated
    • File location and size
    • Location: D:\virtualboximages\Android 4.4 x86.vdi
    • Size: 8GB
  2. Mounting android 4.4 x86 installation images
    • Setting -> Storage
    • Controller IDE -> Optical Drive -> Location: D:\Master\android emulator\android-x86-4.4-r5.iso
  3. Install android 4.4 x86
    • Android 4.4 x86 -> Start
    • Select Installation Android-x86 to harddisk
    • Please seect a partition to install Adnroid-x86: sda unknow 
    • Please seect a filesystem to format sda: ext2 (Ext3 not support)
    • Do you want to install boot lader GRUB?: Skip
    • Do you want to install EFI GRUB2?: Skip
    • Do you want o install /system directory as read-write?: Yes
    • Wait until Installing Adnroid-x86 100%
References: