JShell07's Blog

  • Home

  • Tags48

  • Categories18

  • Archives76

  • Search

openwrt-ssh 跳过密码验证

Posted on 2017-09-04 | Edited on 2020-04-28 | In openwrt

openwrt 一般采用dropbear 作为ssh 客户端/服务端。 但一般都是使用password 的形式登录ssh. 我们使用public/private key 的形式来跳过需要password的验证。

1. 客户端

使用如下命令,生成public keys

1
dropbearkey  -y -f /etc/dropbear/dropbear_rsa_host_key


将图中pulibc key 复制到服务端。

Read more »

ssh_of_openwrt

Posted on 2017-09-04 | Edited on 2020-04-26 | In openwrt

openwrt 一般采用dropbear 作为ssh 客户端/服务端。

客户端

使用如下命令,生成public keys

1
dropbearkey  -y -f /etc/dropbear/dropbear_rsa_host_key

将图中pulibc key 复制到服务端。

Read more »

incr.zsh

Posted on 2017-08-14 | Edited on 2020-04-26 | In tools

incr.zsh

incr.zsh – zsh模式下自动补全指令或目录
本身zsh 模式下,在我们双击Table 按键时候,会出现依次轮休的效果。但是,习惯于bash 的table 显示,个人不是很喜欢这个设定。

Enable incr.zsh 的zsh 模式效果图如下:

Read more »

the Siege webserver performance test tool

Posted on 2017-06-22 | Edited on 2020-04-28 | In tools

1. Backgroud

Siege is an open source regression test and benchmark utility. It can stress test a single URL with a user defined number of simulated users, or it can read many URLs into memory and stress them simultaneously. The program reports the total number of hits recorded, bytes transferred, response time, concurrency, and return status. Siege supports HTTP/1.0 and 1.1 protocols, the GET and POST directives, cookies, transaction logging, and basic authentication. Its features are configurable on a per user basis.

Detail see https://github.com/JoeDog/siege

2. Compile

Decompressing Siege source code archive, and run

1
2
3
./utils/bootstrap
./configure
make && make install

Note: If we have ssl or zlib support, please point out when we make the configuration.

1
2
--with-ssl=$(SSL_include_dir) \
--with-zlib=$(ZLIB_include_dir)

Read more »

Lighttpd Support FastCGI (python) and LUCI(OpenWrt)

Posted on 2017-06-20 | Edited on 2020-04-26 | In openwrt

1.Backgroud

We need to use lighttpd as webserver to servive two web page:

  • FastCGI (python bottle web micro framework)
  • LUCI (openwrt’s cgi-bin/luci, which is CGI)

2. Support LUCI

After we study OpenWrt wiki docs, we know how to make lighttpd support luci.
Two key steps:

  • enable lighttpd’s “mod_cgi” module
  • tell lighttpd all requests to “cgi-bin/luci” will send to lua, lighttpd ignore them
1
2
3
4
5
6
7
8
9
# Ensure we have to enable mod_cgi, which is in conf.d
# server.modules += ( "mod_cgi" )
#
# detail see openwrt org doc: https://wiki.openwrt.org/doc/howto/luci.on.lighttpd
#
# wang.kai@sunmedia.com.cn

# tell lighttpd to process requests using lua
cgi.assign += ( "cgi-bin/luci" => "" )

Detail see OpenWrt Wiki about LuCI on lighttpd

Read more »

Hello World

Posted on 2017-06-14 | Edited on 2020-04-26

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment

1…78
JShell07

JShell07

76 posts
18 categories
48 tags
GitHub E-Mail
© 2017 — 2020 JShell07
Powered by Hexo v3.7.1
|
Theme — NexT.Gemini v6.3.0
0%