wifi鏈接到手機,可行嗎,回頭試試看

Using remote shell over WiFi
Updated Feb 4, 2010 by marcelobarrosalmeida

Instructions

For using the remote shell over WiFi, download and install remoteshell.sis. Do not forget to install the python interpreter before installing remote shell. python

After, type the following in any Linux console: shell

stty raw -echo ; nc -l -p 1025 ; stty sane

Run remote shell in your phone and use your Linux machine IP in the config dialog. Your phone will show the connect dialog. After connecting you should see the Python console running in your Linux console. socket

If your mobile phone does not have WiFi, try some bluetooth console. ide

If you like to build your own remote console or run it inside another script, use the following code excerpt (use your Linux box IP): ui

import btconsole from socket import *    sock = socket(AF_INET,SOCK_STREAM)  sock.connect(("10.0.0.10",1025))  btconsole.run_with_redirected_io(sock,btconsole.interact, None, None, locals())
相關文章
相關標籤/搜索