2018年9月17日 星期一

which pip

$(head -1 `which pip` | tail -c +3) --version
$(head -1 `which pip3` | tail -c +3) --version

`which pip`  return the location of the app "pip"
ahd head means to show the first line of the app pip

the output will put into the last argument and -c +3



https://stackoverflow.com/questions/42662104/how-to-install-pip-for-python-3-6-on-ubuntu-16-10

2018年8月8日 星期三

bash tp create a file

filename=$dir/file.txt
test -f $filename || touch $filename
Or if you prefer,

filename=file.txt
if [ ! -f $filename ]
then
    touch $filename
fi

2018年6月30日 星期六

pm install

adb shell



pm install "specific apk"



 or


adb -s "my_devices"  install "path to point the apk "

adb select devices

adb devices
AAAAA

adb -s AAAAA shell



shell @ AAAAA

2018年6月25日 星期一

Android blueStack


參考文章列表
https://blog.csdn.net/shellching/article/details/8691172






這篇說明 模擬器 是 把 host 設定為  10.0.2.2 以及要如何設定 可以讓HOST 看到 GUEST


https://blog.csdn.net/u013290890/article/details/19776877



這一篇 也是再說類似的事情  如何 在 BLIESTACK 聯會去HOST 裡面的 XAMPP

https://stackoverflow.com/questions/21513935/access-to-xampp-from-bluestacks



這篇在說明如何修改 wifi MAC

http://www.iku8.com/wiki/25886286.html

2018年6月23日 星期六

android system command

1.some useful
https://github.com/jackpal/Android-Terminal-Emulator/wiki/Android-Shell-Command-Reference

2018年5月10日 星期四

Bridge , NAT and Host only

Information is from 
https://superuser.com/questions/227505/what-is-the-difference-between-nat-bridged-host-only-networking


  • Host-Only: The VM will be assigned one IP, but it's only accessible by the box VM is running on. No other computers can access it.
  • NAT: Just like your home network with a wireless router, the VM will be assigned in a separate subnet, like 192.168.6.1 is your host computer, and VM is 192.168.6.3, then your VM can access outside network like your host, but no outside access to your VM directly, it's protected.
  • Bridged: Your VM will be in the same network as your host, if your host IP is 172.16.120.45then your VM will be like 172.16.120.50. It can be accessed by all computers in your host network.


VMware to edit the network options :

is described as the following: 
http://blog.xuite.net/skhung/digilife/51897040-VMWare+Workstation+網路設定二三事+-+Bridge+篇

2018年4月29日 星期日

How to fix “Package is in a very bad inconsistent state” error?

https://askubuntu.com/questions/148715/how-to-fix-package-is-in-a-very-bad-inconsistent-state-error




that is


I had a situation worse than this. I had to remove the half-installed packages by forcing dependencies.
sudo dpkg --remove --force-remove-reinstreq --force-depends <package-name>
Then I had to reinstall them
sudo apt-get -f install
That should solve any issue. But please make sure you have network connectivity when you try to do this. Otherwise, you will have to go through even more trouble.

2018年4月22日 星期日

how to use setting the VPN server for in-built windows 10

https://channel9.msdn.com/Series/Windows-Server-2012-Entry-Level/Windows-Server-2012-Entry-Level-11

https://www.youtube.com/watch?v=5GWIHv94KPM


http://www.thewindowsclub.com/configure-vpn-connection-windows



for ubuntu client setting

https://torguard.net/knowledgebase.php?action=displayarticle&id=54

notice

if your router or computer did not have the DHCP  pleas set the IP address to the incoming connection



2018年4月18日 星期三

架設 fileZilla 之 我愛 linux

這篇寫得不錯

讚讚

http://blog.xuite.net/ferret/blog/33845586-FileZilla+Ftp+程式安裝與設定心得