一 下載源代碼,代碼鏈接 http://shellinabox.googlecode.com/files/shellinabox-2.14.tar.gz
或者
https://download.csdn.net/download/shenlongqing/12302389
二 編譯鏈接
(1)解壓縮:
tar –zxvf shellinabox-2.14.tar.gz
(2)配置生成Makefile:
cd shellinabox-2.14
./configure CC=arm-linux-gnueabihf-gcc –host=arm-linux
其中:
CC=arm-linux-gnueabihf-gcc爲交叉編譯gcc程序
–host=arm-linux爲交叉編譯主機
(3)編譯生成shellinaboxd
make
(4)將編譯好的應用shellinaboxd部署到ARM開發板上,運行命令如下:
chmod 777 shellinaboxd
./shellinaboxd -t -v -p 4444
其中:
-t 表示禁用ssl,即禁用https
-v 打印log到命令行界面
-p 4444 端口號爲4444
(5)啓動這個駐留程序後,即可用瀏覽器訪問:http://192.168.5.1:4444 【注】IP地址是開發板IP地址
效果如圖所示: