m949mm / mobileterminal

Automatically exported from code.google.com/p/mobileterminal
0 stars 0 forks source link

can't run it on background #274

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. my device is itouch4 and OS is 4.2.1, has been jail-breaked.
2. I use this tool for tunnel forwarding
3. When I ssh my host successfully, I press the home button to put terminal in 
background and use safari to access Internet, but I find terminal can't run in 
background, ssh connection will be disconnected.

What is the expected output? What do you see instead?
I hope I can run it in background

What version of the product are you using? On what operating system?
426 427 520

Please provide any additional information below.

Original issue reported on code.google.com by lizhese...@gmail.com on 29 Mar 2011 at 3:16

GoogleCodeExporter commented 8 years ago
This works:

date > myfile; sleep 20; date >> myfile
hit home button to exit MobileTerminal
restart MobileTerminal
cat myfile

Both dates have been written. 

Original comment by fredleason@gmail.com on 30 Mar 2011 at 3:55

GoogleCodeExporter commented 8 years ago
Hi, I use command dpkg -l "*terminal*", it shows 
dpkg -l "*terminal*"
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
pn  com.googlecode <none>         (no description available)
pn  com.weiphone.m <none>         (no description available)
pn  com.weiphone.m <none>         (no description available)
pn  mobileterminal <none>         (no description available)
ii  mobileterminal 520-1          iphone终端,4x版本,只能用在ios4▒
I also test it as comment 1 described, it works.But when I pressed home and 
then run mobileterminal again, it shows "loading..." and then login as user 
"mobile".I think it is restart again and is not run in background.
I use this tool to make a ssh proxy to over  GFW which is used to shield 
sensitive information in China. Here is my way, run mobileterminal and use 
command "ssh -D 1080 myname@myhost",then put mobileterminal run in background, 
set proxy of network and access Internet. I checked again and found it actually 
running in the background, ssh connections did not disconnect, but it can not 
go back original environment when I restart MobileTerminal.
Any solution to go back original environment? So I can disconnect ssh manually.

Original comment by lizhese...@gmail.com on 30 Mar 2011 at 11:43

GoogleCodeExporter commented 8 years ago
Maybe I should change this issue to "can't return original tty", if there are 
any inappropriate things, please turn off this bug, I can reopen a new one.

Original comment by lizhese...@gmail.com on 30 Mar 2011 at 12:51

GoogleCodeExporter commented 8 years ago
Try GNU Screen. On my device it is available in APT as simply screen. Install 
it and run ‘screen -R’ as the first thing in MobileTerminal, then do 
whatever work you want inside the virtual terminal it creates. This virtual 
terminal will persist across restarts of MobileTerminal and you can even enter 
it if you ssh to your device.

Original comment by chortos@inbox.lv on 30 Mar 2011 at 1:06

GoogleCodeExporter commented 8 years ago
Please search through existing issues before filing new ones on exactly the 
same topic, thanks.

Original comment by allen.po...@gmail.com on 2 Apr 2011 at 9:19

GoogleCodeExporter commented 8 years ago
Sorry about duplicate issues,  I found version 520 could run in background but 
couldn't return original tty, that is my point. One solution is use ‘GNU 
screen' as comment 4 mentioned, another workaround is use 'backgrounder'.

Original comment by lizhese...@gmail.com on 4 Apr 2011 at 4:03