首先備份 /etc/localtime 為 /etc/localtime.bak
mv /etc/localtime /etc/localtime.bak
建立軟連結(以台灣時間為例):
ln -s /usr/share/zoneinfo/Asia/Taipei /etc/localtime
(要設定別的時區可以在
/usr/share/zoneinfo
下看有哪些檔案。)最後,重啟 crontab:
/etc/init.d/cron restart
「聽說自己寫過才不會忘。」 「會忘記的就寫起來,忘記了就看一下。」 「你知道2034的時候,今年就是10年前了嗎?」 「遇到的問題雖然有時候不值得一提,可是如果紀錄起來感覺也很有趣!」 「就是大家可以看到的筆記本而已。」
mv /etc/localtime /etc/localtime.bak
ln -s /usr/share/zoneinfo/Asia/Taipei /etc/localtime
/usr/share/zoneinfo
下看有哪些檔案。)/etc/init.d/cron restart
sudo add-apt-repository ppa:cordova-ubuntu/ppa
sudo apt-get update
sudo apt-get install cordova-cli
cordova create hello com.example.hello HelloWorld
cordova platform add android
cordova build
Android Studio project detected
」,可以檢查環境:cordova requirements
Android SDK: not installe
」,設置 Android Sdk 正確路徑:export ANDROID_HOME=/home/user/Android/Sdk
GRADLE_HOME: not installe
」:export GRADLE_HOME=/home/user/android-studio/android-studio/gradle/gradle-X.X/bin
#到 gradle 路徑
cd ~/android-studio/android-studio/gradle/gradle-X.X/bin/
#賦予執行權限
chmod +x gradle
cd ~/Android/Sdk/tools/emulator
./emulator -list-avds
./emulator @name-of-your-emulator
PANIC: Missing emulator engine program for 'x86' CPUS.
ln -s emulator64-x86 emulator-x86
adb start-server
adb devices -l
adb install ~/path/to/xxx.apk
adb kill-server
cannot bind 'tcp:5037'
ADB server didn't ACK
* failed to start daemon *
- waiting for device -
adb server is out of date. killing...
export ANDROID_ADB_SERVER_PORT=12345
https://twitter.com/yourusername
)sudo apt install dosbox
sudo yum install dosbox
mount d ~/debugdir
d:
debug.exe
sudo gpasswd -a $USER input
sudo pacman -S xdotool wmctrl
sudo apt-get install xdotool wmctrl libinput-tools
sudo dnf install xdotool wmctrl
git clone http://github.com/bulletmark/libinput-gestures
cd libinput-gestures
sudo ./libinput-gestures-setup install
libinput-gestures-setup start
libinput-gestures-setup autostart
/etc/libinput-gestures.conf
~/.config/libinput-gestures.conf
~/.config/libinput-gestures.conf
中加入:gesture swipe right xdotool key control+alt+Left
gesture swipe left xdotool key control+alt+Right