Linux
Android Studio Installation
1.install android-studio-ide-162.4069837-linux.zip
2.unzip it
3.set ANDROID_HOME,PATH,JAVA_HOME
4. $ <install path>/android-studio/bin/studio.sh
5. $ avdmanager create avd --force --name testAVD --abi google_apis/x86_64 --package 'system-images;android-25;google_apis;x86_64'
6. $ LD_PRELOAD='/usr/lib/x86_64-linux-gnu/libstdc++.so.6' ~/Android/Sdk/tools/emulator -avd testAVD
LD_PRELOAD='/usr/lib/x86_64-linux-gnu/libstdc++.so.6' ~/Android/Sdk/tools/emulator -avd testAVD
NodeJS Installation
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
Linux skill
set environment variabl:export PATH=:"~/SDK/Android/Sdk/emulator:$PATH"
source ~/.bashrc (source /etc/environment)
//----------------------------------------------------------------------------------------------------
Install JDK:
1.sudo apt-get update
2.sudo apt-get install default-jdk
3.set JAVA_HOME=".../jdk_1.8.X_XX"
//----------------------------------------------------------------------------------------------------
java check:
update-alternatives --query java(javac)
update-alternatives --config java
//----------------------------------------------------------------------------------------------------
Install Spotify:
# 1. Add the Spotify repository signing keys to be able to verify downloaded packages sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys BBEBDCB318AD50EC6865090613B00F1FD2C19886 0DF731E45CE24F27EEEB1450EFDC8610341D9410 # 2. Add the Spotify repository echo deb http://repository.spotify.com stable non-free | sudo tee /etc/apt/sources.list.d/spotify.list # 3. Update list of available packages sudo apt-get update # 4. Install Spotify sudo apt-get install spotify-client
5.$ spotify(/usr/share/spotify/spotify
//----------------------------------------------------------------------------------------------------
常用熱鍵:
長按 Super -> 熱鍵資訊
Ctrl + Super + D -> 最小化所有視窗
Ctrl + Q -> 關閉目前視窗
//----------------------------------------------------------------------------------------------------
設定開機執行 script
Linux RAM monitor
1.$
watch -n 5 free -m
2. sudo aot-get isntall htop
Visual Studio Code
$code
Google Chrome Install
http://softcans.blogspot.tw/2014/12/ubuntu-install-google-chrome.html
Linux 指令
package related:$apt search [package] (或$apt-cache search [package])
$sudo apt-get install [package] (或 $sudo apt install [package] )
檔案相關:
1.mv [srcFile] [destPath] -> mv ./led_test /root/
2.rm -r [dest] -> 把系統上所有連結到 [dest]的資料刪除(包含原先/複製過來的)
3.locate [file]
4.ls -al -> 查看檔案+rwe權限
*mkdir -p /.../.../../
網路
sudo iwlist wlan0 scan (掃描wlan0的無線網路
sudo iwconfig wlan0 essid network-essid
磁碟相關:
查看
sudo fdisk -l
進程:
ps -h
ps -ejH => print a process tree
ps aux | grep [process] (?
查看載入的.so檔
lspf -p [pid]
系統:
*dmesg : 顯示系統(硬體)資訊
EX dmesg |more
dmesg |grep "tty"
uname -a -> 查看Kernel version
lsb_release -a -> Check Distrubution Version
//-------------------------------------------
sudo passwd [root] -> 輸入新密碼
//------------------------
shutdown [option] TIME [Message]
在選項(
OPTION
)的部分,可用的選項有:-r
:讓系統重新開機(reboot)。-h
:讓系統停止運作(halt)或關閉電源(power off),至於會選擇哪一種則取決於系統(有時候可以在 BIOS 中更改)。-H
:讓系統停止運作。-P
:讓系統關閉電源。-c
:取消之前所下達的關機指令。-k
:模擬關機,只有對使用者發出警告,並禁止新使用者登入,但不關機。
sudo shutdown -h +1 -> 1分後關機
sudo shutdown 18:30 "you will be shutdown "
留言
張貼留言