找回密码
 加入我们

QQ登录

只需一步,快速开始

搜索
查看: 4956|回复: 10

[软件及汉化] pre 本机上使用命令行

[复制链接]
发表于 2009-7-24 15:12 | 显示全部楼层 |阅读模式
应该是在下面这个网页上http://predev.wikidot.com/shell需要翻墙! X' P# |0 p' z% k3 m. m
就是把webshell移植过来,
3 |* r) q. {) v  w8 C1 P. I先安装optware packge,再安装python,
9 T/ v8 H% F3 \- Moptware安装参见
0 i# K* ^# T( P如何破解Pre:root权限.ssh登录....
7 x, l! d9 k4 H$ H2 V. u& K
% A8 s0 W0 k, Y" t: ^! B& D1. SSH into your Pre.通过ssh连接到pre上。- Z9 m8 N+ b  u4 g$ F
2. Download Webshell:下载
  1. wget http://web-shell.googlecode.com/files/WebShell-0.9.6.zip
复制代码
3. Install Python: 安装python
  1. sudo /opt/bin/ipkg-opt install python
复制代码
4. Extract the contents of WebShell-0.9.6.zip: 解压
  1. unzip WebShell-0.9.6.zip
复制代码
5. Generate a server certificate: 生成服务器证书
  1. cd WebShell-0.9.69 u0 W$ `$ x/ P: \2 R
  2. sh ./make_certificate.sh* \; C: d! v, b, U; u
复制代码
6. Move WebShell to /opt/share/webshell: 移动webshell
  1. cd ..: i( r) V/ ]0 n8 i
  2. sudo mv WebShell-0.9.6/ /opt/share/webshell
复制代码
7. Create an upstart script "/etc/event.d/webos-webshell" with the following contents: 创建一个etc/event.d/webos-webshell文件,内容如下
  1. start on stopped finish+ u. k1 W8 d- s! ^0 F7 Q% v+ q; D
  2. stop on runlevel [!2]6 i7 W# W8 e) U
  3. " z4 p0 g" Q, D# `% a/ U
  4. console none
    # w! {* P0 Z6 _6 R4 c" i
  5. + c; m" u3 i6 {$ i6 |
  6. respawn
    % V, |0 u: v  d; Q- Y: J
  7. 4 n+ m" L, z( a$ f+ B* v( \
  8. exec /opt/bin/python /opt/share/webshell/webshell.py -c "/opt/bin/ssh -p 222 -l $USER localhost" --ssl-disable2 w! y  W( Y- ]
  9. 7 F. A( t8 [3 x: M" @1 q
复制代码
where $USER is replaced by your user name. 其中$USER用你的用户名代替。0 @2 F9 F1 E; c4 T
8. Restart the Pre.重启4 @( `: A% L3 u3 h5 z* ^3 }( E

# T8 J% z  B( J; F1 B: ^3 x9. Open up your web browser and go to打开浏览器输入6 ~, d% D# Y4 y0 C7 ?/ H

( g( I7 c7 o3 jhttp://127.0.0.1:8022" n1 ^1 r$ g& M0 T
5 Y3 R& M$ m# T$ E: ]
10. Type in your password and you now have a shell. You can run any commands you want now directly on your phone.
( `. {4 D' s) Y/ T8 [9 y! V, _Note If it looks like you are seeing a bunch of text flash at the top of the screen, rotate your phone into Landscape mode, hit the enter key a bunch of times. You will either be able to see the error and can fix it through your version of SSH or you will get a disconnection message. If you do get a disconnected message, hit Refresh and try to login. It should start working then.! V  ]$ f% b+ P! J5 Y1 ?) C" e

" {" [  @+ N# ~' B/ WNote Eventually there will be a way to disable the auto-text functions (automatic caps especially).
# z) Q( N3 M# d0 _0 }6 W
6 ]2 n  t6 V' tVerified to work as typed by optik678 and hopspitfire.
: q# e' C1 T/ M( x5 `: X* c4 s* t
$ S* o0 S% w3 e- _[ 本帖最后由 felixw 于 2009-7-24 15:18 编辑 ]

评分

参与人数 3威望 +40 收起 理由
972 + 5 谢谢分享
bathy16 + 15 谢谢分享
CyberVsQ + 20 谢谢分享

查看全部评分

回复

使用道具 举报

发表于 2009-7-24 15:13 | 显示全部楼层
哈哈,这个东西好,梦寐以求的东西
回复 支持 反对

使用道具 举报

发表于 2009-7-24 15:15 | 显示全部楼层
不懂.....菜鸟,没办法,只管加分,哈哈
回复 支持 反对

使用道具 举报

发表于 2009-7-24 15:17 | 显示全部楼层
越来越方便了!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-7-24 15:29 | 显示全部楼层
另外这个软件还带个屏幕的软键盘,可以考虑做为屏幕触摸输入法的框架,0 {1 D6 K( z, Q; s+ l" K
关键还是目前无法做系统级的输入法集成。
, s$ L! m; `; |& p. K0 Whttp://www-personal.umich.edu/~mressl/webshell/
回复 支持 反对

使用道具 举报

发表于 2009-7-24 17:15 | 显示全部楼层
真的可以在本机上进行入命令行模式?不用在TELNET了?太好了。
回复 支持 反对

使用道具 举报

发表于 2009-7-24 17:25 | 显示全部楼层
很好很强大呀,早就在想这东西
回复 支持 反对

使用道具 举报

发表于 2009-7-25 09:53 | 显示全部楼层
哪个翻墙软件比较好?
回复 支持 反对

使用道具 举报

发表于 2009-10-7 17:30 | 显示全部楼层
看不懂啊!还是要努力学习啊!
回复 支持 反对

使用道具 举报

发表于 2009-10-7 22:07 | 显示全部楼层
还是有点搞不明白,有那位试了吗?. g* J  B% t# p& m. k7 q% b9 F

- P9 E! r% R" Q# f% A  \[ Edited by mzz_001 on 2009-10-7 22:08 ]
回复 支持 反对

使用道具 举报

发表于 2009-10-7 23:15 | 显示全部楼层
现在已经用不着这么复杂了。直接可以在window下安装了。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 加入我们

本版积分规则

QQ|Archiver|手机版|小黑屋|吹友吧 ( 京ICP备05078561号 )

GMT+8, 2025-4-2 16:22 , Processed in 0.509525 second(s), 20 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表