使用者授權
android API 23 之後的,都需要在程式裡詢問使用者,以取得相關授權,以下文章,說明的方式是我目前覺得最簡單的方式。https://altbeacon.github.io/android-beacon-library/requesting_permission.html
=========================================
Apache2=========================================
PHP 7.1/usr/local/etc/php/7.1/php.ini
=========================================
SMB
ref: https://gist.github.com/natritmeyer/6621231
#Mount the share:
mount_smbfs //username:password@server.name/share_name share_name/
#Unmount the share:
umount share_name
=========================================
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
docker rmi $(docker ps -a -q)
$ sudo apt-get remove docker docker-engine docker.io
Add repositories$ sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
Since, Linux Mint 18.2 (sonya) is based on Ubuntu 16.04
(xenial), we've to use the release codename of Ubuntu 16.04 i.e. xenial.
Also, we'll use the latest stable version$ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable"
If you are using Linux Mint 16 (petra), you've to use the release codename "trusty"lsb_release -rc
You'll see the release and codename printed in the terminal asRelease: 18.2
Codename: sonya
Now, update the pc$ sudo apt update
$ sudo apt install docker-ce
Check if the docker is properly installed by typing$ docker version
You'll get the output like this:Client:
Version: 17.06.2-ce
API version: 1.30
Go version: go1.8.3
Git commit: cec0b72
Built: Tue Sep 5 20:00:17 2017
OS/Arch: linux/amd64
Server:
Version: 17.06.2-ce
API version: 1.30 (minimum version 1.12)
Go version: go1.8.3
Git commit: cec0b72
Built: Tue Sep 5 19:59:11 2017
OS/Arch: linux/amd64
Experimental: false
Running hello world in docker is easy, Just run$ sudo docker run hello-world
You must be root user to use docker$ sudo groupadd docker #this is most likely already created while installing docker
$ sudo gpasswd -a $USER docker
$ newgrp docker # you might need to logout if the changes are not working
$ docker run hello-world # check if docker is working without sudo
我想告訴你,天下沒有突然掉下來的機會,機會是自己找出來的。而在你找到自己的機會前,我願意跟你分享一些事情。
第1:不要抱怨
第2:認分,會更快樂
第3:不要看輕自己