Note Sử dụng Debian

Full screen cài đặt debian Virtual box

Install Nodejs

How to install Node.js via binary archive on Linux?

Unzip the binary archive to any directory you wanna install Node, I use /usr/local/lib/nodejs

VERSION=v10.15.0
DISTRO=linux-x64
sudo mkdir -p /usr/local/lib/nodejs
sudo tar -xJvf node-$VERSION-$DISTRO.tar.xz -C /usr/local/lib/nodejs

Set the environment variable ~/.profile, add below to the end

Nodejs

VERSION=v10.15.0
DISTRO=linux-x64
export PATH=/usr/local/lib/nodejs/node-$VERSION-$DISTRO/bin:$PATH

Refresh profile

. ~/.profile

Run Emulator without android studio

The way to run emulator from console (I assume that you installed it before, using Android Studio) is:

run cd ~/Android/Sdk/tools/bin && ./avdmanager list avd

You will get the list od your virtual installed devices. In my case it was:

Available Android Virtual Devices:

Name: Galaxy_Nexus_API_17

Device: Galaxy Nexus (Google)
Path: /home/piotr/.android/avd/Galaxy_Nexus_API_17.avd
Target: Google APIs (Google Inc.)
Based on: Android 4.2 (Jelly Bean) Tag/ABI: google_apis/x86
Skin: galaxy_nexus

Sdcard: /home/piotr/.android/avd/Galaxy_Nexus_API_17.avd/sdcard.img

Name: Nexus_5X_API_23

Device: Nexus 5X (Google)
Path: /home/piotr/.android/avd/Nexus_5X_API_23.avd
Target: Google APIs (Google Inc.)
Based on: Android 6.0 (Marshmallow) Tag/ABI: google_apis/x86
Skin: nexus_5x
Sdcard: /home/piotr/.android/avd/Nexus_5X_API_23.avd/sdcard.img

Copy name of device you want to run and then

cd ~/Android/Sdk/tools && ./emulator -avd NAME_OF_YOUR_DEVICE

in my case:

cd ~/Android/Sdk/tools && ./emulator -avd Nexus_5X_API_23

EDIT

For Android Studio 3.2 and later the path to emulator had changed, so don’t use …../Android/Sdk/tools/emulator but instead ……/Android/Sdk/emulator/emulator

Create launcher android-studio

Create /usr/share/applications/android-studio.dekstop with content

[Desktop Entry]
Name=Android Studio
Comment=Android Studio
Exec=/usr/local/lib/android-studio/android-studio/bin/studio.sh
Icon=/usr/local/lib/android-studio/android-studio/bin/studio.png
Terminal=false
Type=Application

Kiem tra dung luong ram

free -r

Cài đặt flameshot

sudo apt install flameshot

git store credential

git config credential.helper store