diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/LICENSE b/LICENSE old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/csdn_markdown.md b/csdn_markdown.md old mode 100644 new mode 100755 diff --git a/esp/build_code_with_micropython.md b/esp/build_code_with_micropython.md old mode 100644 new mode 100755 diff --git a/esp/emqtt.md b/esp/emqtt.md old mode 100644 new mode 100755 diff --git a/esp/http b/esp/http old mode 100644 new mode 100755 diff --git a/gfw/shadowsockes.md b/gfw/shadowsockes.md old mode 100644 new mode 100755 diff --git a/git/change_repo.md b/git/change_repo.md old mode 100644 new mode 100755 diff --git a/git/gitlab_nginx.md b/git/gitlab_nginx.md old mode 100644 new mode 100755 diff --git a/git/install_git.md b/git/install_git.md old mode 100644 new mode 100755 diff --git a/git/install_gitlab.md b/git/install_gitlab.md old mode 100644 new mode 100755 diff --git a/git/ssh_key.md b/git/ssh_key.md old mode 100644 new mode 100755 diff --git a/go/安装go1.4.md b/go/安装go1.4.md old mode 100644 new mode 100755 diff --git a/light.md b/light.md old mode 100644 new mode 100755 diff --git a/markdown/add image.md b/markdown/add image.md old mode 100644 new mode 100755 diff --git a/markdown/csdn_markdown.md b/markdown/csdn_markdown.md old mode 100644 new mode 100755 diff --git a/mongodb/auth.md b/mongodb/auth.md old mode 100644 new mode 100755 diff --git a/mongodb/use.md b/mongodb/use.md old mode 100644 new mode 100755 diff --git a/ngrok/ngrok.md b/ngrok/ngrok.md old mode 100644 new mode 100755 diff --git a/nodejs/install.md b/nodejs/install.md old mode 100644 new mode 100755 diff --git a/python/ReformFileName.py b/python/ReformFileName.py old mode 100644 new mode 100755 diff --git a/python/command b/python/command old mode 100644 new mode 100755 diff --git a/python/pyqt.md b/python/pyqt.md old mode 100644 new mode 100755 diff --git a/python/uncompyle2.md b/python/uncompyle2.md old mode 100644 new mode 100755 diff --git a/python/virtualenv.md b/python/virtualenv.md old mode 100644 new mode 100755 index b2840d5..8a991e2 --- a/python/virtualenv.md +++ b/python/virtualenv.md @@ -3,4 +3,4 @@ > virtualenv -p /usr/bin/python3 --system-site-packages venv -> virtualenv -p /usr/bin/python2 --no-site-packages venv +> virtualenv -p /usr/bin/python2 --no-site-packages env diff --git a/rabbitmq/install.md b/rabbitmq/install.md old mode 100644 new mode 100755 diff --git a/raspberry/main.md b/raspberry/main.md old mode 100644 new mode 100755 diff --git a/raspberry/router.md b/raspberry/router.md old mode 100644 new mode 100755 index 9da1594..969c4cc --- a/raspberry/router.md +++ b/raspberry/router.md @@ -50,4 +50,31 @@ sudo nano /etc/sysctl.conf ``` bash net ipv4.ip_forward = 1 #去掉注释 -``` \ No newline at end of file +``` + +## create_ap + +``` bash +git clone https://github.com/oblique/create_ap.git +cd create_ap +sudo make install +sudo apt-get install util-linux procps hostapd iproute2 iw haveged dnsmasq +sudo create_ap wlan0 eth0 热点名 密码 + +``` + +rc.local +``` bash +screen -dmS wlanpa create_ap wlanpa wlansrc hellolight 1234567890 +wpa_cli -iwlansrc enable_network 0 +``` + +## wpa_cli 设置 + +wpa_cli -iwlan0 set_network 0 ssid '"wlan"' +wpa_cli -iwlan0 set_network 0 key_mgmt WPA-EAP +wpa_cli -iwlan0 set_network 0 pairwise TKIP(CCMP) +wpa_cli -iwlan0 set_network 0 group TKIP(CCMP) +wpa_cli -iwlan0 set_network 0 eap PEAP +wpa_cli -iwlan0 set_network 0 identity '"username"' +wpa_cli -iwlan0 set_network 0 password '"password"' \ No newline at end of file diff --git a/raspberry/sound.md b/raspberry/sound.md old mode 100644 new mode 100755 diff --git a/raspberry/wifi.md b/raspberry/wifi.md old mode 100644 new mode 100755 diff --git a/redis/配置.md b/redis/配置.md old mode 100644 new mode 100755 diff --git a/static/img/iptables_examples_network_topology.png b/static/img/iptables_examples_network_topology.png old mode 100644 new mode 100755 diff --git a/static/img/iptables_frame.png b/static/img/iptables_frame.png old mode 100644 new mode 100755 diff --git a/static/img/ssh_key.png b/static/img/ssh_key.png old mode 100644 new mode 100755 diff --git a/static/img/test.jpg b/static/img/test.jpg old mode 100644 new mode 100755 diff --git a/ubuntu/aria2.md b/ubuntu/aria2.md old mode 100644 new mode 100755 diff --git a/ubuntu/install_nginx.md b/ubuntu/install_nginx.md old mode 100644 new mode 100755 diff --git a/ubuntu/iptables.md b/ubuntu/iptables.md old mode 100644 new mode 100755 diff --git a/ubuntu/iptables设置端口转发.md b/ubuntu/iptables设置端口转发.md old mode 100644 new mode 100755 diff --git a/ubuntu/minicom.md b/ubuntu/minicom.md old mode 100644 new mode 100755 diff --git a/ubuntu/nmap.md b/ubuntu/nmap.md old mode 100644 new mode 100755 diff --git a/ubuntu/scp.md b/ubuntu/scp.md old mode 100644 new mode 100755 diff --git a/ubuntu/screen.md b/ubuntu/screen.md old mode 100644 new mode 100755 diff --git a/ubuntu/ubuntu_install_pyqt4.md b/ubuntu/ubuntu_install_pyqt4.md old mode 100644 new mode 100755 diff --git a/ubuntu/uget.md b/ubuntu/uget.md old mode 100644 new mode 100755 diff --git a/ubuntu/update-alternatives.md b/ubuntu/update-alternatives.md old mode 100644 new mode 100755 diff --git a/ubuntu/网络相关命令.md b/ubuntu/网络相关命令.md old mode 100644 new mode 100755 diff --git a/vue/start_project.md b/vue/start_project.md old mode 100644 new mode 100755