From 6858440e48dadc1c97e181b3705990afeb9f0ea0 Mon Sep 17 00:00:00 2001 From: light <1870499383@qq.com> Date: Wed, 24 Jan 2018 01:10:43 +0800 Subject: [PATCH] update --- .gitignore | 0 LICENSE | 0 README.md | 0 csdn_markdown.md | 0 esp/build_code_with_micropython.md | 0 esp/emqtt.md | 0 esp/http | 0 gfw/shadowsockes.md | 0 git/change_repo.md | 0 git/gitlab_nginx.md | 0 git/install_git.md | 0 git/install_gitlab.md | 0 git/ssh_key.md | 0 go/安装go1.4.md | 0 light.md | 0 markdown/add image.md | 0 markdown/csdn_markdown.md | 0 mongodb/auth.md | 0 mongodb/use.md | 0 ngrok/ngrok.md | 0 nodejs/install.md | 0 python/ReformFileName.py | 0 python/command | 0 python/pyqt.md | 0 python/uncompyle2.md | 0 python/virtualenv.md | 2 +- rabbitmq/install.md | 0 raspberry/main.md | 0 raspberry/router.md | 29 +++++++++++++++++- raspberry/sound.md | 0 raspberry/wifi.md | 0 redis/配置.md | 0 .../iptables_examples_network_topology.png | Bin static/img/iptables_frame.png | Bin static/img/ssh_key.png | Bin static/img/test.jpg | Bin ubuntu/aria2.md | 0 ubuntu/install_nginx.md | 0 ubuntu/iptables.md | 0 ubuntu/iptables设置端口转发.md | 0 ubuntu/minicom.md | 0 ubuntu/nmap.md | 0 ubuntu/scp.md | 0 ubuntu/screen.md | 0 ubuntu/ubuntu_install_pyqt4.md | 0 ubuntu/uget.md | 0 ubuntu/update-alternatives.md | 0 ubuntu/网络相关命令.md | 0 vue/start_project.md | 0 49 files changed, 29 insertions(+), 2 deletions(-) mode change 100644 => 100755 .gitignore mode change 100644 => 100755 LICENSE mode change 100644 => 100755 README.md mode change 100644 => 100755 csdn_markdown.md mode change 100644 => 100755 esp/build_code_with_micropython.md mode change 100644 => 100755 esp/emqtt.md mode change 100644 => 100755 esp/http mode change 100644 => 100755 gfw/shadowsockes.md mode change 100644 => 100755 git/change_repo.md mode change 100644 => 100755 git/gitlab_nginx.md mode change 100644 => 100755 git/install_git.md mode change 100644 => 100755 git/install_gitlab.md mode change 100644 => 100755 git/ssh_key.md mode change 100644 => 100755 go/安装go1.4.md mode change 100644 => 100755 light.md mode change 100644 => 100755 markdown/add image.md mode change 100644 => 100755 markdown/csdn_markdown.md mode change 100644 => 100755 mongodb/auth.md mode change 100644 => 100755 mongodb/use.md mode change 100644 => 100755 ngrok/ngrok.md mode change 100644 => 100755 nodejs/install.md mode change 100644 => 100755 python/ReformFileName.py mode change 100644 => 100755 python/command mode change 100644 => 100755 python/pyqt.md mode change 100644 => 100755 python/uncompyle2.md mode change 100644 => 100755 python/virtualenv.md mode change 100644 => 100755 rabbitmq/install.md mode change 100644 => 100755 raspberry/main.md mode change 100644 => 100755 raspberry/router.md mode change 100644 => 100755 raspberry/sound.md mode change 100644 => 100755 raspberry/wifi.md mode change 100644 => 100755 redis/配置.md mode change 100644 => 100755 static/img/iptables_examples_network_topology.png mode change 100644 => 100755 static/img/iptables_frame.png mode change 100644 => 100755 static/img/ssh_key.png mode change 100644 => 100755 static/img/test.jpg mode change 100644 => 100755 ubuntu/aria2.md mode change 100644 => 100755 ubuntu/install_nginx.md mode change 100644 => 100755 ubuntu/iptables.md mode change 100644 => 100755 ubuntu/iptables设置端口转发.md mode change 100644 => 100755 ubuntu/minicom.md mode change 100644 => 100755 ubuntu/nmap.md mode change 100644 => 100755 ubuntu/scp.md mode change 100644 => 100755 ubuntu/screen.md mode change 100644 => 100755 ubuntu/ubuntu_install_pyqt4.md mode change 100644 => 100755 ubuntu/uget.md mode change 100644 => 100755 ubuntu/update-alternatives.md mode change 100644 => 100755 ubuntu/网络相关命令.md mode change 100644 => 100755 vue/start_project.md 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