This commit is contained in:
light 2018-05-07 16:03:08 +08:00
parent 7f9f12c509
commit a60abbf4eb
3 changed files with 35 additions and 1 deletions

View File

@ -95,4 +95,4 @@ make
make install
make install-config
```
```

View File

@ -38,6 +38,26 @@ server_addr: "ngrok.hellolight.me:4443"
trust_host_root_certs: false
```
nano ~/.ngrok
``` bash
server_addr: ngrok.hellolight.me:4443
trust_host_root_certs: false
tunnels:
web:
#auth: "AuthUser:AuthPassWord"
proto:
http: 5000
ssh:
remote_port: 12222
proto:
tcp: 22
```
./ngrok -subdomain pub -proto=http -config=ngrok.cfg 8000
./ngrok -subdomain pub -proto=http -config=ngrok.cfg 22

14
ubuntu/sudo.md Normal file
View File

@ -0,0 +1,14 @@
# sudo
> sudo visudo
``` bash
light ALL=(ALL) NOPASSWD: ALL
%admin ALL=(ALL) NOPASSWD: ALL
%sudo ALL=(ALL) NOPASSWD: ALL
```