Hi guys,
I came from a jailbroken iPhone about a year ago (launch day EVO user) and I always used Veency and iTunnel to remote into my phone when at work so I don't look like a slacker that I am, playing on my phone and all. Well, I finally decided to take some time and find a Android solution to my problem. Since droid vnc server is the only vnc server available for the Android platform (correct me if I'm wrong guys and gals). So did some research, first trying iTunnel to forward my TCP port to the USB, connection established but it seems iTunnel was specifically built for iOS. So instead, researched some more and found ADB can provide the functionality of iTunnel. So using UltraVNC viewer, droid VNC server (found on the market), and ADB, here's how I got it to work:
Plug in phone to USB
In command prompt run: adb forward tcp:5801 tcp 5801
Also in command prompt run: adb forward tcp:5901 tcp:5901
Make sure Droid VNC Server is started on the phone
In UltraVNC viewer, browse to "localhost:5901"
After that, you should be all set. Use the help button in droid VNC server to help you with the input.
Going to try it out
Sent from my PC36100 using XDA Premium App
I had to edit my original post. In UltraVNc, its "localhost:5901" not "5801". Sorry!!
Got it running. But what are you using this for?
Sent from my PC36100 using XDA Premium App
While I'm at work, using a phone is frowned on. So I can keep my phone out of sight and charging on my USB port while shooting off texts and IMs discreetly
Gotcha
Sent from my PC36100 using XDA Premium App
Okay, so i typed in the first command
adb forward tcp:5801 tcp 5801
Click to expand...
Click to collapse
and the prompt spit out a list of ADB commands. so i moved on to the next step and ran the next command
adb forward tcp:5901 tcp:5901
Click to expand...
Click to collapse
and i get: "error: device not found"
what am i doing wrong?
Edit: The phone is connected by USB btw.
Edit 2: I am able to connect to my phone via the internet VNC connection, just not through the local host.
akiradavis said:
I had to edit my original post. In UltraVNc, its "localhost:5901" not "5801". Sorry!!
Click to expand...
Click to collapse
Worked for me, was wondering how to do this. Thanks.
I use TightVNC though, and it needed two colons. (ie localhost::5901)
Hmm, I was hoping this would be smoother than over WiFi, but actually the refresh is about the same. Any tips on improving that?
For iphone?
Thank you so much sir,
can you plese help me how to do the same thing on iphone...please...i will really appreciate you....plz...plz..plz...
akiradavis said:
Hi guys,
I came from a jailbroken iPhone about a year ago (launch day EVO user) and I always used Veency and iTunnel to remote into my phone when at work so I don't look like a slacker that I am, playing on my phone and all. Well, I finally decided to take some time and find a Android solution to my problem. Since droid vnc server is the only vnc server available for the Android platform (correct me if I'm wrong guys and gals). So did some research, first trying iTunnel to forward my TCP port to the USB, connection established but it seems iTunnel was specifically built for iOS. So instead, researched some more and found ADB can provide the functionality of iTunnel. So using UltraVNC viewer, droid VNC server (found on the market), and ADB, here's how I got it to work:
Plug in phone to USB
In command prompt run: adb forward tcp:5801 tcp 5801
Also in command prompt run: adb forward tcp:5901 tcp:5901
Make sure Droid VNC Server is started on the phone
In UltraVNC viewer, browse to "localhost:5901"
After that, you should be all set. Use the help button in droid VNC server to help you with the input.
Click to expand...
Click to collapse
wondering is it normal the connection is laggy through the local network ?
Related
Hey Gang,
I currently do not have a data plan and won't get one until I switch from Sprint to Verizon. (accounts expire soon)
This is what I want to do with my Vogue:
Setup SD card with EXT2 partitions [CHECK]
Correctly install/run a SenseUI/Hero build [CHECK]
Convert my WM contacts to Android contacts offline [CHECK]
Install APK's offline [CHECK]
Use the internet connection through my PC via USB cable (while running android) [PENDING]
Install a "camera software" APK so i can use the camera [PENDING]
Enjoy the hell out of Android and all the possibilities for the Vogue! [CHECK]
Any and all help checking off my list is much appreciated!
~Syn
The camera already works out of the box. and Talk to enatefox about internet via USB connection.
Install a "camera software" APK so i can use the camera [PENDING]
I am currently using "Pro Paint Camera that came with this Hero/SenseUI build.
I can take pictures but not video. Also, none of the lighting effects work so every picture is very yellowish.
True.... the camera does work, but it is not really usable without adjustment.
I'm in the same situation right now. I want to use android but I'm afraid I wont be able to use internet to access the market (unlike WM/ActiveSync).
The camera issue is something that I can deal with, but I think that it would be nice if someone could make an activesync-like program that can share internet.
Only difference is that I'm on verizon right now, and might consider switching to sprint!
synaptyc said:
Install a "camera software" APK so i can use the camera [PENDING]
I am currently using "Pro Paint Camera that came with this Hero/SenseUI build.
I can take pictures but not video. Also, none of the lighting effects work so every picture is very yellowish.
True.... the camera does work, but it is not really usable without adjustment.
Click to expand...
Click to collapse
I forget exactly when that build came out, but I can assure you that the build I'm using now has a camcorder and camera app outside of Paint Pro Camera.
FWIW, I'm using the Droid donut ion build by Zenulator.
Also, from what I know, internet through USB only allows you to browse the web, and the marketplace doesn't work. There might be some changes in the future, however.
Yes. with Cupcake / Donut the camera/camcorder seem to work with the default applications. They still don't have filters or effects to correct lighting.
... still looking for that app.
Link9228 said:
I forget exactly when that build came out, but I can assure you that the build I'm using now has a camcorder and camera app outside of Paint Pro Camera.
FWIW, I'm using the Droid donut ion build by Zenulator.
Also, from what I know, internet through USB only allows you to browse the web, and the marketplace doesn't work. There might be some changes in the future, however.
Click to expand...
Click to collapse
How would one go about getting Internet via USB? I have searched endlessly (or so I thought). Thanks.
gascan555 said:
How would one go about getting Internet via USB? I have searched endlessly (or so I thought). Thanks.
Click to expand...
Click to collapse
I've been trying to do this too!
gascan555 said:
How would one go about getting Internet via USB? I have searched endlessly (or so I thought). Thanks.
Click to expand...
Click to collapse
I have also been trying to figure this out... but getting Internet via bluetooth rather than USB. So kind of like the bluetooth tethering that is possible right now with Android, but in REVERSE! So Internet-> PC-> Bluetooth-> Android.
USB Internet (at this point) can be very problematic. It can cause your phone to hard freeze out of the blue. I haven't spent a lot of time troubleshooting it since it's hard to figure out what went wrong when I'm forced to reset.
Credit to DimaFern for getting me anywhere near having this working. I just messed with it a little. This is reverse tethering because you are not getting the connection from the phone. So the USB Tethering option is not related in this situation.
Here's my howto
I have not tried this without a Linux host. I believe you can forward traffic with ICS but I don't know what is involved there.
My gateway is .37, my laptop is .107 and the phone gets it's IP from the laptop:
On laptop:
echo "1" | sudo tee /proc/sys/net/ipv4/ip_forward
On Android:
ip addr add 192.168.37.100/24 dev usb0
ifconfig usb0 up
## This is the IP for my laptop:
route add default gw 192.168.37.107
setprop net.dns1 192.168.37.107
cat /proc/net/route
Click to expand...
Click to collapse
The last line is not needed-- it's to show you that it's routing traffic. You won't be able to ping IPs from the command line and somehow Market doesn't think you're online but SAM Market, Browser, etc. do work. It's nice because you are not taxing the RAM of the phone for connectivity so it runs much quicker... unless it hard freezes on you.
i use tetherbot to tether my phone now that it's running android full time. basically install tetherbot and start the socks proxy server on port 1080 then.
Code:
adb forward tcp:1080 tcp:1080
from your computer and set up firefox to connect manually to the proxy.
http://www.google.com/url?sa=t&sour...tLoX-20q2czcpvdhw&sig2=YLuIUO1a9NqdzdKn2NhO5Q
http://www.google.com/url?sa=t&sour...D0n7yQtvLGRfy1GXg&sig2=OMS2j6DiIEHenOugM9VbSg
zenulator said:
http://www.google.com/url?sa=t&sour...D0n7yQtvLGRfy1GXg&sig2=OMS2j6DiIEHenOugM9VbSg
Click to expand...
Click to collapse
WOW..... this second link leads to a beautiful website.
10 levels of gay for poor "kevin" of 'kevinā„Amanda' but still a nice looking site
Geez.... he didn't even get his name capitalized in the header picture
/on_topic: I'll try Tetherbot.
(is there a way to use Tetherbot with Google Chrome? I haven't used Firefox in ages)
zenulator said:
i use tetherbot to tether my phone now that it's running android full time. basically install tetherbot and start the socks proxy server on port 1080 then.
Code:
adb forward tcp:1080 tcp:1080
from your computer and set up firefox to connect manually to the proxy.
http://www.google.com/url?sa=t&sour...tLoX-20q2czcpvdhw&sig2=YLuIUO1a9NqdzdKn2NhO5Q
http://www.google.com/url?sa=t&sour...D0n7yQtvLGRfy1GXg&sig2=OMS2j6DiIEHenOugM9VbSg
Click to expand...
Click to collapse
I'm sorry, but isn't Tetherbot used to share your phone's internet connection with your computer?
I think we are trying to be able to "reverse tether" and not tether.
enatefox (and others)...
I would love to see how this reverse-tethering can work. I know its very complicated and buggy right now, but if you do any more work on it you should create a thread showing how in layman's terms. I have dual-boots on both my computers into Ubuntu 9.10, I know what the terminal is and sudo and some basic commands, but when you type your commands with little explanation I get lost. They could use some clarification [ such as 1) open terminal 2) type these commands. ] And please explain terminal in Android. What apk do I need? I probably have it already but just need to install it. Thanks for any help. I don't have data since my line costs $10 a month (family plan) and data would be $26 a month. I just started reverse-tethering with WM6.5.1 and its really cool.
There aren't any other steps you just run what I posted and change "192.168.37.107" to what your desktop's IP is and "192.168.37.100" to "192.168.xxx.100" where "xxx" is the subnet of your LAN-- matching the 3rd set of numbers of your desktop's IP.
You can run these commands over ADB, which is required to do this. Here's a guide on how to set it up.
Here is what I came up with trying to do the same thing with bluetooth instead :
http://forum.xda-developers.com/showpost.php?p=4404512&postcount=9
I was missing your "ip addr..." command to add the forwarding network, this should help, I will give it a try.
I also came to the conclusion that I needed a way to fake that either the wifi or the data connection was up. Maybe this can be done by issuing a "setprop" command forcing the status to being "up"?
enatefox said:
There aren't any other steps you just run what I posted and change "192.168.37.107" to what your desktop's IP is and "192.168.37.100" to "192.168.xxx.100" where "xxx" is the subnet of your LAN-- matching the 3rd set of numbers of your desktop's IP.
You can run these commands over ADB, which is required to do this. Here's a guide on how to set it up.
Click to expand...
Click to collapse
UGH I'm stuck right now. I'm using Ubuntu 9.10, and when I type in terminal "sudo /etc/init.d/udev restart" I get some error message telling me to do it a different way. So even after restarting the computer, it does not recognize any command for adb. I already did the export PATH to the androidsdk/tools folder and adb is in there, but I cannot get it to open. Any ideas?
Got it to see adb. I forgot to put /home/drkow19 in front of the path...
edit: Has anyone successfully used ADB with zen's 2.0.1? I'm trying right now but it shows no devices connected. In the 50-android.rules file I have 0bb4 instead of 18d1 like enatefox said to. Also, on the Dream forums the file they use is 51-android.rules, whats the diff?
0bb4 and 18d1 are determined in the source code. Different versions can change so whichever is shown, use. The 50 and 51 are indicators for timing. Maybe I have this backwards but 51 should start later than 50 and can address issues with it not being recognized or more precisely, overrode with another operation. I set mine to 51.
Okay I deleted 50 and used 51-android.rules. What is the line about "define vendor id" does that need to be in the 51 file?
I can say adb start-server but no devices... They say you need to sudo adb start-server but when I try that I get "sudo: adb: command not found" How do you add the adb PATH so it works under sudo as well?
Hello.
Does anyone know how to get access to their cellphone using the IP address from the wireless carrier?
I've already got SSH set up from the home wifi network. But I'm hoping to be able to do this over cellular. Any ides how to make that work?
Sent from my HTC Glacier using XDA App
If you meant having your phone run an sshd daemon, so you can use a shell with it .... Market has this: https://market.android.com/search?q=sshd
close...
that is what i'm looking to do. but for some reason i'm unable to connect to the device's ip address... any ideas?
Your phone's ip is a private ip address. TMO NATs it to a set of public ip addresses to go out to the internet. That's why you can't connect using your phone's ip.
Sent from my HTC Glacier using XDA App
Darn. I was really hoping to be able to get through. Oh well. Thanks.
Sent from my HTC Glacier using XDA App
One option to get around this is to use remote port forwarding via SSH. You can run an SSH server on your phone and then use ConnectBot on your phone to SSH into an SSH server on your home network. At that point, you can use remote port forwarding with ConnectBot to allow other computers on your home network to access the SSH server on your phone.
That's a very good idea. I'm going to try it in the morning. Very excited.
Sent from my HTC Glacier using XDA App
Hey ran across this sometime ago but didn't know an answer till today... but it's complicated...
1st~ it seems to depend on your service provider...
~ On Sprint I have been able to ssh into my device from a PC connected to a completely different wifi network using Putty on Vista home basic.
~ On Sprint I (with some great help from Almazick here at XDA) have also been able to run a LNMP server and connect to the sample web page and dbmin with the above mentioned network set up but with Chrome and Firefox instead of Putty (yeah that might be a duh statement for some but I don't want to lose ya reader, this stuff is cool ) you can find all the steps that that took by following the link in my sig that points to the XDA Guide I maintain and jump to pages (ruffly) 11-13+ and check the easiest ways to host websites off your device. And I'll eventually have a script and section in the main guide made so you all don't have to scroll through pages of our mutterings
~ Almazick, the person that I credit for getting me to do all this extensive testing, is not on Sprint and because of this has run into errors when trying to connect over 3G and or 4G. This leads me to believe that the issue is the network that your device is connected to.
~ Currently there are almost no other variables left that could be at fault. Both Almazick and I are using the same software and apps to test on.... but for those that have to know what the last variables to test is; hardware, we've got different devices and different service providers, and different PC's. All others have been eliminated or made identical or have been adjusted for.
2nd~ Root is required and if you want to ssh like us then getting Linux duel booted up will make life way easier for helping in the future.
~ Almazick uses Lil Debi and I'm a fan of Debian Kit, both can be found on the Android market place for free, and there are other options like QEMU and more but for this definitely start with Lil Debi and a 2Gb img file or larger (still working on figuring it out on Debian Kit) and follow the direction on page 11 or 12 for now.
~ or you could try downloading an app for ssh server (not client alone) and muddle your way through other guides on the web... I'll be testing/checking the possibilities for this but am not holding my breath on when that'll be ready
3rd~ accessing things...
~ running 'cd sdcard' and 'ls' was peppy and responsive
~ running programs or apps that use lots of data or memory can be ruff.
~~ Force closures happen when out of memory. So freeze or force close or uninstall apps that aren't needed if things like that start happening.
~~ things that use lots of data and or memory also cause much drain on the battery and if excessive wile plugged in can cause heat issues. So use a heatsink from an old computer and a fan and maybe pull the battery too and you can run a bit longer on the edge of what your device can do
4th~ all this is very "use at your own risk"
~ I haven't fried or bricked a device yet but things have gotten toasty so use some for thought and be careful.
Final notes;
I realize that this is a thread resurrection and not 100% directly related to your specific device. However, I offer a work around that should work for all devices* running root and Linux so we should celebrate and revel in the wonders of Open source and helpful people
*running on Sprint or WiFi if on another network then please try it and report the bugs to me on the main guide thread and I'll work with you and try to resolve it
Sent from either my SPH-D700 or myTouch3Gs
Debian Kit/QEMU Linux Install guide for all android devices that I'm writing:
http://forum.xda-developers.com/showthread.php?t=2240397
Now have working Installers for ARM Java 7 JDK + Maptools + jMonkey
nixxofugi said:
Hello.
Does anyone know how to get access to their cellphone using the IP address from the wireless carrier?
I've already got SSH set up from the home wifi network. But I'm hoping to be able to do this over cellular. Any ides how to make that work?
Sent from my HTC Glacier using XDA App
Click to expand...
Click to collapse
SSH server requires a PC which must be always on but you can use a router since it's already running 24/7. If you have a router with SSH/VPN/Proxy capability then you can use router as a server. For example you can use a 3rd party firmware for your router if it is compatible with DD-WRT, Tomato or OpenWRT to run Proxy server, SSH or VPN. They are very easy to setup for this task.
Update: Just noticed it's 2011 thread. Oh well
Almazick said:
SSH server requires a PC which must be always on but you can use a router since it's already running 24/7. If you have a router with SSH/VPN/Proxy capability then you can use router as a server. For example you can use a 3rd party firmware for your router if it is compatible with DD-WRT, Tomato or OpenWRT to run Proxy server, SSH or VPN. They are very easy to setup for this task.
Update: Just noticed it's 2011 thread. Oh well
Click to expand...
Click to collapse
Yeah I do that, been haunting the web for sometime now... I keep a personal log of questions I want answers to and when I find one that is solvable I go back to where I first ran across the question in the first place. Should have seen what the maptools teem thought of this kind of behavior; really motivational
Sent from either my SPH-D700 or myTouch3Gs
Debian Kit/QEMU Linux Install guide for all android devices that I'm writing:
http://forum.xda-developers.com/showthread.php?t=2240397
Now have working Installers for ARM Java 7 JDK + Maptools + jMonkey
S0AndS0 said:
Yeah I do that, been haunting the web for sometime now... I keep a personal log of questions I want answers to and when I find one that is solvable I go back to where I first ran across the question in the first place. Should have seen what the maptools teem thought of this kind of behavior; really motivational
Sent from either my SPH-D700 or myTouch3Gs
Debian Kit/QEMU Linux Install guide for all android devices that I'm writing:
http://forum.xda-developers.com/showthread.php?t=2240397
Now have working Installers for ARM Java 7 JDK + Maptools + jMonkey
Click to expand...
Click to collapse
so what maptool got to do with android over 3G/4G?
Almazick said:
so what maptool got to do with android over 3G/4G?
Click to expand...
Click to collapse
It's yet again a server client based networking set up but instead of accessing files and folders (like with putty here on this thread) or accessing web content (like with LNMP on the other thread) maptools serves up a virtual table top gaming experience to those that connect in. One person sets-up* a game and then shares out the guest login info to their fiends, the guests log in and after a few seconds every one connected can see the changes that any other player takes. Kinda like virtual desktop but for roll playing games.
*set-up of the game is rather labor intense for the individual. Because they make an entire dungeon or world map, tokens to populate it, and libraries of macros so things are more point and click. When compared to running a normal tabletop gaming experience the labor is almost as intense, it's just not easy to share in real time over them internets.
Update 08312013- to help continue answering this question here I found this guide
https://grepular.com/Punching_through_The_Great_Firewall_of_TMobile
That may help with T mobile subscribers in making a good connection over 3G or 4G
Sent from either my SPH-D700 or myTouch3Gs
Debian Kit/QEMU Linux Install guide for all android devices that I'm writing:
http://forum.xda-developers.com/showthread.php?t=2240397
Now have working Installers for ARM Java 7 JDK + Maptools + jMonkey
my carrier is: vodafone
im using SetDNS with openDNS server
also using Dynamic DNS with a no-ip.biz hostname
installed ssh/sftp server i run it... used a ssh client to test it locally, and it works, so the sshd is working
but i cant connect to my no-ip hostname from my PC
here i have some doubts:
SetDNS says it doesnt detect a web-proxy, yet Dynamic DNS has a note: 'you are connected to the internet through a proxy'
what to do next to be able to connect remotely from my PC on ssh through 3g on my phone?
please help!
ripnix said:
my carrier is: vodafone
im using SetDNS with openDNS server
also using Dynamic DNS with a no-ip.biz hostname
installed ssh/sftp server i run it... used a ssh client to test it locally, and it works, so the sshd is working
but i cant connect to my no-ip hostname from my PC
here i have some doubts:
SetDNS says it doesnt detect a web-proxy, yet Dynamic DNS has a note: 'you are connected to the internet through a proxy'
what to do next to be able to connect remotely from my PC on ssh through 3g on my phone?
please help!
Click to expand...
Click to collapse
Well first double check the IP you're using or tracking with no-ip.biz ~ I would suggest using
canyouseeme.org
or an app like Network Info II
https://play.google.com/store/apps/details?id=aws.apps.networkInfoIi
And ensure that the IP didn't change when setting up the first time around, this can happen at the worst times.
And if you're truly behind a firewall or NAT, such as with tmoblie, then I did run across this guide for getting round that last troublesome bit which likely will work for other service providers as well.
https://grepular.com/Punching_through_The_Great_Firewall_of_TMobile
Sent from either my SPH-D700 or myTouch3Gs
Debian Kit/QEMU Linux Install guide for all android devices that I'm writing:
http://forum.xda-developers.com/showthread.php?t=2240397
Now have working Installers for ARM Java 7 JDK + Maptools + jMonkey
I recently got a .lxterminal from my Atrix to my computer's X11/Xorg server. From there it was a matter of time.
/system/xbin/adduser whatever
/system/xbin/telnetd
on local machine...
telnet <atrix IP>
So we don't have ssh, but hell old school telnet works. Not sure what help this is or if anyone else has found this yet. So just throwing it out there. Makes it a hell of a lot easier to muck around ;-)
I guess the adduser / telnetd could be done from a terminal app as well...
Well.. I was able to add my user to the sudoers file using w! in vi, and create my .bashrc (sudo works). Also managed to "start" the webtop to my laptops's x11. By start I mean I get the webtop-wallpaper show up in my laptop's X11. My goal would be to get the webtop to be able to be viewable remotely. Why?... Why not? Pretty useless I guess, but whatever.
so i logged in using telnet as well, but how did you go about starting the x session to your laptops x11?
Moved to generas as not android dev.
aaaaaaaaaaaaaaaaagda
kriffer said:
so i logged in using telnet as well, but how did you go about starting the x session to your laptops x11?
Click to expand...
Click to collapse
It only showed the wallpaper, but here's what i did:
on computer, verify you have x11 forwarding set up. Depending you need to edit your hosts.allow, and maybe an X config to allow connections.
on computer
1. xhost <atrix IP>
on atrix connection
2. export DISPLAY=<computer IP>:0
3. sudo /osh/etc/alternatives/x-session-manager
or
sudo /osh/usr/bin/x-session-manager
that pops open the wallpaper, like i said. Doesn't seem to open the webtop completely
Any progress on this?
nope... I kinda left it for another time when I'm bored.
Moved to Beta
Stepping Closer to Perfection
Ello,
Been messing with this for a bit now and think I have a decent set of instructions organized for getting a vnc server (with resumable sessions) of your webtop in a pinch for those times you say "where the hell is a hdmi/dock/etc when I need one" its a little repetitive but simple as hell hopefully someone who knows more can set up the x server config to include this set up as a just in case.
Pre-recs
Of course Root!!
Full Native Ubuntu Webtop (Sogarths webtop2sd here)
Terminal Emulator (I recommend this one)
And vnc viewer something like really shouldn't matter.
And you'll need to fix your dependencies using this regardless of which mod so you wont have to worry about not being able to use apt to install things.
Any form of a custom dock not stock version e.g. xfce-panel, debain panel or genome otherwise you'll have no dock at all (I am working on getting a way around this for DebainMOD/stock dock users)
More Pre-recs DO THIS BEFORE ANYTHING!! WHY? because I rather that than I told you so XP
BACK YOUR SH%^T UP I recommend using the more expanded CWM Due to its backing up sd-ext and osh
Fun stuff:
Open Terminal Emulator
and enter the following minus (anything in)
su
(get root for term)
/usr/bin/sudo - u adas bash
(get into the webtop enviornment, can be used alot XD)
sudo bash
(gotta love root)
({or just} /usr/bin/sudo -u root bash {for easy way to root shell})
apt-get install tightvncserver
apt-get install lxde
or just
apt-get install tightvncserver lxde
(install a vnc server and a desk environment)
tightvncserver
(run before the config worked best for me it'll ask you to set up a password then ask if you would like to set up a view only password which I liked with this I used getvncstate for that one jic I wanted to see if it was running up to you really)
(now config the vnc display, this way was the least fubar'ed x display I managed to get working and repeated)
export USER=adas
vncserver -geometry 1024X800
(if you ran this before the previous set thats fine after you might see a localhost:2(ect) don't worry if you did this before first use you'll be asked to enter a password. once set enter the next line by line)
cat > /root/.vnc/xstartup
#!/bin/sh
xrdb $HOME/.Xresources
xsetroot -solid grey
icewm &
lxsession
(then hit ctrl-d twice then enter should get you out, that is pretty much where you select what you want to have started in your root environment in vnc if you don't want stock dock or the webtop panel remove them lxsession starts xfce if you used that you can also add gnome -session or panel which ever)
(now to fix known keyboard mapping issue for 9.04 from root terminal in webtop run)
apt-get install nano
nano /root/.vnc/xstartup
(add the line {export XKL_XMODMAP_DISABLE=1} before /etc/X11/Xsession or gnome-session or if you have another way of adding this that'll do)
(use gedit to do this on one of my atrix's webtops was sooo much easier XO)
(now hit the home key and open up your vnc viewer on your phone)
The drop down should be newconnection
Nickname: adas (or whatever I use root)
Password: (the password you set up if you dont remember then...try below steps for reconnect)
Address:localhost
port: 5901 (5902 worked too x.x idkw)
(the press the connect button XD Always exit your vnc connection before leaving it!!!!)
(This should not fubar your x display for hdmi/dock/etc but did notice that on the first run re plugging the hdmi loaded the moto screen with a black screen though rebooted it went fine though the vnc server needed to be reset so...
Get to webtop root through the terminal emulator and run...)
tightvncserver
(you'll be promoted to set up another password, once done you can go back and use the vnc view settings you had before and get back in do what you need and exit and you will beable to plug in too hdmi/doc/etc without loading up a completely grey screen with the nice useless x courser XP)
Now the really fun part kicking myself that I didnt realize this shortly after setting this up, but you got this vnc server running on your webtop but you really arn't big on messing with the tiny screen while your on a wifi and you have access to a computer or even your pluged into a computer and have moto phone portal open on it.... well haha just download a vnc viewer get your IP address (from network or the phone portal ip) on the network and plug
(the x's are your IP numbers being that every network might be different you get the diffrent)
XXX.XXX.XXX.XXX:5901
as the target address and you be asked to enter a password that you set up and note that the 01 in the port suffix is indeed the display number.
And bamn easy access to your webtop on your Atrix while your chilling and using your TV for what every you watch XP
Any suggestions changes or better how to's post your stuff and Ill add it with quotes this will not work in any of the Debian mods Images/Including Blacktrack 5 (v.v) due to not being able to load the linux app from the command line Tho will work on the DebainMOD/ w apt sources fixed. I'm looking into getting into chroot after I finish up my tweaks from a fresh test run.
Known Half Way Marks: Use Seamonkey Browser to replace firefox while using vnc sessions. The sessions are in root user which is fine for the pinch use, but if you wanna resume what you were using on the webtop from vnc veiwer in hdmi and vica versa I need some one to look at the commands and see where it is I marked up above where I think it is the grey part x.x will update this part think I'm closing in on a solution to this, and it would reflect what you see on the hdmi and be shared XD
Known pita: Screen time out..... kills the tightvncserver display as well >,>
For now the most recommended use guide can be found here you don't necessarily have to plug into the HDMI of the initial launch if you follow the steps above, although not the intended direction mostly the safest if you follow these steps being that currently without X or Xvnc being configured you may very well mess with your HDMI at display at DISPLAY=:1 being that the vnc method at this point exports the root environment only the method below is safe and would do XP
See this for the direction of vnc without use of a dual boot within chroot still needs messing with as mentioned above back your Sh%^t up X3
fernandoavc said:
I've finally made it work the way I wanted but it probably not the best or easiest way to do it...
1-)First I plugged in my HDMI cable over my phone and my tv and got Webtop V1 running.
2-)From lxterm I issued the command 'sudo bash backtop' (this is very well explainned over this thread)
3-)Once I got the terminal from BT running then I issued the 'ui' command that is a vncserver built-in into backtrack5 ARM distro and with the default password of 123456789 (you can change it by issuing 'vncpasswd' command if you want..)
4-) Now you can unplug the HDMI cable if you want.
5-) And you are ready to connect at the gnome version of Backtrack from your cell phone using any of the vnc clients available on the Market with no need of the HDMI anymore...
Concerns:
1-)How about battery life after that? will it be drained since bt is running "in the background" ?
I didn't tested yet... and have no idea atm... will let it running here to see if it get warmer than normal or the battery last shorter (of course it will not last longer...)
2-) Is there a way to run this commands without the HDMI cable plugged-in?
If anyone interested (or even you Djazin) want to see some directions/hints there is a thread written by an X10 owner that have some scripts to be used at the phone terminal, the X10 doesnt have the webtop (duh)... not sure how useful it is for us but maybe the scripts he wrote can be used....
As we were discussing before in this thread if I try to run the command " sudo bash backtop" it gives a lot of errors from mount points unreacheable to DISPLAY problems... I will post the errors here just in case any one reading have some good ideas to contribute:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
See the screenshot of my phone running smootly the BT5 distro:
And here is the script from the thread mentioned on the step 2 - I just renamed it to .txt but it's a bash script:
backtop.txt
Click to expand...
Click to collapse
Click to expand...
Click to collapse
This looks really interesting. I'm not able to test right now, but I wonder how come this one didn't get more views/replies until now.
Anyway, thanks OP for sharing, I'll test it ASAP.
Thanks for the guide!
Just wondering something... what if we have a way to run the webtop without a dock/lapdock then put some kind of vnc server and through the phone itself (with a vnc client for android) to access it as a remote computer..... Am I tripping?
fernandoavc said:
Just wondering something... what if we have a way to run the webtop without a dock/lapdock then put some kind of vnc server and through the phone itself (with a vnc client for android) to access it as a remote computer..... Am I tripping?
Click to expand...
Click to collapse
The Webtop runs alongside the phone as it is you can get to its shell through a terminal emulator (I installed all of this through terminal emulator on the android side) and run tightvncserver after setting this up and access webtop through a vnc client on the phone screen.... now if you mean to access the webtop's vnc server from a local remote computer work/home over the network then... heh that would take alot of config within tightvncserver probably with a parallel program like xauthority configured to run the vnc server with a lan address 192.168.x.x and so forth how to do that Im not sure I thought about it earlier this morning but atm Im trying to get backtop working x.x
as for tightvncserver options run
toghtvncserver -h
Though atm there is no vnc server working on the atrix android side
Djazin said:
The Webtop runs alongside the phone as it is you can get to its shell through a terminal emulator (I installed all of this through terminal emulator on the android side) and run tightvncserver after setting this up and access webtop through a vnc client on the phone screen.... now if you mean to access the webtop's vnc server from a local remote computer work/home over the network then... heh that would take alot of config within tightvncserver probably with a parallel program like xauthority configured to run the vnc server with a lan address 192.168.x.x and so forth how to do that Im not sure I thought about it earlier this morning but atm Im trying to get backtop working x.x
as for tightvncserver options run
toghtvncserver -h
Though atm there is no vnc server working on the atrix android side
Click to expand...
Click to collapse
Oh I will try that... but I am not sure how to run webtob without plug anything on it (such HDMI over tv or lapdock) ... may I just issue the startx command over a terminal? do the xterm works if I issue it through a connectbot or something? Do you suggest something else?
I actually want it because of the Backtop (my backtop is working fine but I need to run it with sudo bash backtop command thats why I want to vncview it ...) may I help you somehow?
can you clarify what does this actually do...does this mean i can vnc from my actual phone to the webtop on my phone screen?
or can i use this to access webtop from my vnc client say on a laptop on the same wifi network...
humzat said:
can you clarify what does this actually do...does this mean i can vnc from my actual phone to the webtop on my phone screen?
or can i use this to access webtop from my vnc client say on a laptop on the same wifi network...
Click to expand...
Click to collapse
first one, yes you can!!! using this guide XD
Second needs tweaking but in theory I don't see why it wouldn't I'm working on getting backtop without any form of the Debian mod then Ill get back to that.
fernandoavc said:
Oh I will try that... but I am not sure how to run webtob without plug anything on it (such HDMI over tv or lapdock) ... may I just issue the startx command over a terminal? do the xterm works if I issue it through a connectbot or something? Do you suggest something else?
I actually want it because of the Backtop (my backtop is working fine but I need to run it with sudo bash backtop command thats why I want to vncview it ...) may I help you somehow?
Click to expand...
Click to collapse
its easy from terminal emulator run the following without (anything in)
su
(get root)
(then run)
/usr/bin/sudo -u adas bash
(or just)
/usr/bin/sudo -u root bash
(Thats all)
and your in webtop with no hdmi/gui from here you can infact install vncserver using the steps above or just run commands without accessing the gui now xterm needs a gui exported display of "any" kind because it is mostly like a vm there was a way once you got up up and running you can access from command line only but I'ma have to dig for that within the Debain Mod posts I used to get it done when I was using them, but I cant for the life of me recall.
If you can post how you were able to get Backtop to work in that thread for it it might help I got the same output that one user posted in page 3 of that thread.
Djazin said:
first one, yes you can!!! using this guide XD
Second needs tweaking but in theory I don't see why it wouldn't I'm working on getting backtop without any form of the Debian mod then Ill get back to that.
Click to expand...
Click to collapse
How? I can see through 'ps' command that xinit is running .... but how to issue a vncserver command or something?
My backtop runs through that webtopmod from Joe version one and the bt img on the /sdcard/bt folder including the scripts backtop and stopbacktop .... Are you planning something different from that?
Sorry all the dumb questions I did... just read the OP and saw everything I need.. now I am researching about to change the 10.77.32.150 address from sources.list that I actually have on my /osh/etc/apt folder... to be able to install the tightvncserver... Will post my results .. ty for the post Djazin
fernandoavc said:
How? I can see through 'ps' command that xinit is running .... but how to issue a vncserver command or something?
My backtop runs through that webtopmod from Joe version one and the bt img on the /sdcard/bt folder including the scripts backtop and stopbacktop .... Are you planning something different from that?
Sorry all the dumb questions I did... just read the OP and saw everything I need.. now I am researching about to change the 10.77.32.150 address from sources.list that I actually have on my /osh/etc/apt folder... to be able to install the tightvncserver... Will post my results .. ty for the post Djazin
Click to expand...
Click to collapse
The webtopscripts run well with most webtop mods they are here should allow you to install tightvncserver without problems
Adding to OP as a pre-rec
Djazin said:
The webtopscripts run well with most webtop mods they are here should allow you to install tightvncserver without problems
Adding to OP as a pre-rec
Click to expand...
Click to collapse
Nice hint man I finally did the apt-get to work and installed the tightvncserver! Now I just need to make it works openning a valid xwindow ( actually it is openning the xwindow with nothing but the crosshair)
But so far thank you for all your help!!!
Sent from my MB860 using XDA App
fernandoavc said:
Nice hint man I finally did the apt-get to work and installed the tightvncserver! Now I just need to make it works openning a valid xwindow ( actually it is openning the xwindow with nothing but the crosshair)
But so far thank you for all your help!!!
Sent from my MB860 using XDA App
Click to expand...
Click to collapse
is the x window grey or is it showing a the webtop background with no dock, if its the first you need to run the cat > /root/.vnc/xstartup command and add the text below it from the op or you will cause the vncserver to export the x server settings bare which at this point is a pita to set up for the adas user environment though root exports fine atm I updated the code group under the cat command try them from root in which ever webtop terminal you prefer to use, I'm actually doing this from a stock webtop again to check it out that and I wanted my Debian mods back so I can try to set up vncserver for them as well.
Last night I was messing with the webtop's x server and found a more native vnc server built into the very x server that supports hdmi we possibly might be able to get vnc server to export the hdmi display as soon as I figure out where to put the shar display commands for vnc access but for now this seems to work fine in the root environment and its safer than what I was trying last night hehe I switched the hdmi cable display with the root environment that was accessed through vnc but no key pad so it was interesting to see, thought it didn't survive my tinkering.
fernandoavc said:
Nice hint man I finally did the apt-get to work and installed the tightvncserver! Now I just need to make it works openning a valid xwindow ( actually it is openning the xwindow with nothing but the crosshair)
But so far thank you for all your help!!!
Sent from my MB860 using XDA App
Click to expand...
Click to collapse
Recreated that problem you were having go to /root/.vnc and delete your current xstartup file then from terminal run
tightvncserver -kill :1
tightvncserver
and you should be set
Sent from my MB860 using XDA Premium App
Djazin said:
Recreated that problem you were having go to /root/.vnc and delete your current xstartup file then from terminal run
tightvncserver -kill :1
tightvncserver
and you should be set
Sent from my MB860 using XDA Premium App
Click to expand...
Click to collapse
Hey sorry the delay in response but I did the cat step and also the kill but still getting the grey screen with no xterm just the crosshair ...
Sent from my MB860 using XDA App
fernandoavc said:
Hey sorry the delay in response but I did the cat step and also the kill but still getting the grey screen with no xterm just the crosshair ...
Sent from my MB860 using XDA App
Click to expand...
Click to collapse
run the kill command then in root explorer kill xstartup in /root/.vncserver then run tightvncserver and it should load the mouse and a grey screen and then it'll load the root desktop just after that (give it a few seconds). if not reboot and try it all again.
UPDATED OP check out the bottom section
Djazin said:
run the kill command then in root explorer kill xstartup in /root/.vncserver then run tightvncserver and it should load the mouse and a grey screen and then it'll load the root desktop just after that (give it a few seconds). if not reboot and try it all again.
UPDATED OP check out the bottom section
Click to expand...
Click to collapse
Even doing the commands
cat > /root/.vnc/xstartup
#!/bin/sh
xrdb $HOME/.Xresources
xsetroot -solid grey
icewm &
lxsession
I am still getting the grey screen with nothing but a crosshair mouse pointer.... instead of lxsession can I use something else?
Edit: figured it out
fernandoavc said:
Even doing the commands
cat > /root/.vnc/xstartup
#!/bin/sh
xrdb $HOME/.Xresources
xsetroot -solid grey
icewm &
lxsession
I am still getting the grey screen with nothing but a crosshair mouse pointer.... instead of lxsession can I use something else?
Click to expand...
Click to collapse
Post your config your version of webtopmods's active what your osh-wrt-1 and 2 sh files are set with and What dock are you using as well as the settings your using in the vnc viewer, I'ma try to recreate your set up on another Atrix I have and see if I can crack what your problem with the root environment is.
Note if your just using the AWN dock try something else, though even with no dock it should at least load the stock wallpaper with the mouse cruiser. And you did delete the xstartup file found in /root/.vnc and not try to recreate one?
Djazin said:
Post your config your version of webtopmods's active what your osh-wrt-1 and 2 sh files are set with and What dock are you using as well as the settings your using in the vnc viewer, I'ma try to recreate your set up on another Atrix I have and see if I can crack what your problem with the root environment is.
Note if your just using the AWN dock try something else, though even with no dock it should at least load the stock wallpaper with the mouse cruiser. And you did delete the xstartup file found in /root/.vnc and not try to recreate one?
Click to expand...
Click to collapse
Well my webtopmod is Joe Ferreira v1 and I've installed the webtop2sd from Sorgarth... about the wrt-osh 1 and 2 I'm gonna need to know how to get them to you... I 've some linux knowledge so just tell me where they are... My vnc I am connecting at the port the server is telling me (i.e: localhost:1 - 5901).
I'm not using Any dock at all... nothing connected through the hdmi port....
I'd deleted the xstartup and when I run the tightvncserver it was recreated with different values from what u suggested ... it recreate the following content:
#!/bin/sh
xrdb $HOME/.Xresources
xsetroot -solid grey
#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#x-window-manager &
/etc/X11/Xsession
By my knowledge in linux and vnc I am suspecting that it's not being able to load the icewm xwindow...
Sent from my MB860 using XDA App
Not sure if any are using it here but version 2 of my ADB GUI app is available (Flakie ADB GUI)
But a quick update:
Version 2 or my ADB GUI app is now available.
My ADB GUI App - Flakies Blog
A Windows GUI wrapper for ADB that allows APK install, update uninstall and pull/download to desktop. Supports rebooting ADB devices, custom ADB Shell commands, remote control of an Android device with scrcpy and video recording of the remote session. Integration with ngrok Internet cloud relay...
flakie.co.uk
Direct download:
https://flakie.co.uk/downloads/FlakieADBGUI.zip
There is a GUI for the common ADB commands and an integration with scrcpy (as in version 1)
It now has an experimental option to use ADB and ADB Shell commands by typing/pasting them in.
Works quite well (mostly).
It also has an integration with ngrok.
This allows you to securely control a Firestick through the Internet (or other ADB device) without any port forwarding on a router.
A full guide for ngrok use, with screenshots is here:
Using ngrok (to access a remote Firestick 4K) - Flakies Blog
We can manage a Firestick 4K (and other android devices) using ADB. This is an app/service that is run from the command prompt, by manually typing in the ADB commands.This can be done on the local network (LAN) or on a remote network (WAN) via the Internet.I am going to show two methods to...
flakie.co.uk
A simplified text version of the instructions is here:
https://flakie.co.uk/downloads/configure-termux-and-ngrok.txt
Once you have become familiar with the process it can be completed in about 4 minutes.
Cheers
Nice. Thank you!
Hi Flakie
Awesome app . . . There should be more marketing of this app, and I will be one to recommend it to everyone
Question:
What port is used to connect to your mobile phone . . i have used 5555 & 8080 with no luck . . plz can u give instructions to connect the mobile phone . . . 5555 works perfectly to the TV Box
Now . . . I'm excited and cant wait for your version 3 to be launched . . I'm checking your blog daily
Thanks again for this awesome app
Nivan0611 said:
Awesome app
Click to expand...
Click to collapse
Glad you like the app. New version is a bit away as I have been working on a couple of Android apps. Hopefully it will be in June. I am toying with adding a tabbed interface and putting in a file browser/manager for the attached devices. Though that may likely be coming in the version 4.
To attach the phone you will need to attach it to a USB cable first and showing as such in the app. Then enter the IP address of the phone (you can get this in the phones settings) and the port 5555. Then tick the box Enable TCP/IP mode and click on the Connect ADB Device button. Don't close the pop-up windows that appears. After 30 seconds or so it will show the phone as being connected by both USB and the WiFi. You can unplug the USB cable at this point and use the devices IP address to manage it. The phone can then be used in TCP/IP mode until it is rebooted. This also includes accessing it from a remote location with either port forwarding (if this is setup on the local router) or ngrok etc.
The next version it will not be necessary to specify the IP address as this will be acquired automatically by the app. TBH this is another reason for the delay in the next version, as it is still not reliable enough getting the IP address on all phones. Soon though
Marketing, not been too worried about that but grateful for any recommendations. Tech Doctor UK did a nice YouTube review (of version1) which generated more interest. There have been over 11,000 downloads in total (including the 2.3K from the tech doctor site), over the last year or so. Far more interest than I expected when I released it publicly. Thanks again for the comments.
Flakie said:
Not sure if any are using it here but version 2 of my ADB GUI app is available (Flakie ADB GUI)
But a quick update:
...
Click to expand...
Click to collapse
Jusr received my second Firestick 4k to put in bedroom, i'll play with it in order to root it and customize it to my needs, your blog seems pretty interesting, i'll probably read a lot out there before i dig in !
Thanks for the shares !
This is cool
my wishlist:
1. be able to save multiple adb ip addresses
2. be able to launch cmd window with shell instead of being forced to use shell in the app
Flakie said:
Not sure if any are using it here but version 2 of my ADB GUI app is available (Flakie ADB GUI)
But a quick update:
Version 2 or my ADB GUI app is now available.
My ADB GUI App - Flakies Blog
A Windows GUI wrapper for ADB that allows APK install, update uninstall and pull/download to desktop. Supports rebooting ADB devices, custom ADB Shell commands, remote control of an Android device with scrcpy and video recording of the remote session. Integration with ngrok Internet cloud relay...
flakie.co.uk
Direct download:
https://flakie.co.uk/downloads/FlakieADBGUI.zip
There is a GUI for the common ADB commands and an integration with scrcpy (as in version 1)
It now has an experimental option to use ADB and ADB Shell commands by typing/pasting them in.
Works quite well (mostly).
It also has an integration with ngrok.
This allows you to securely control a Firestick through the Internet (or other ADB device) without any port forwarding on a router.
A full guide for ngrok use, with screenshots is here:
Using ngrok (to access a remote Firestick 4K) - Flakies Blog
We can manage a Firestick 4K (and other android devices) using ADB. This is an app/service that is run from the command prompt, by manually typing in the ADB commands.This can be done on the local network (LAN) or on a remote network (WAN) via the Internet.I am going to show two methods to...
flakie.co.uk
A simplified text version of the instructions is here:
https://flakie.co.uk/downloads/configure-termux-and-ngrok.txt
Once you have become familiar with the process it can be completed in about 4 minutes.
Cheers
Click to expand...
Click to collapse
Why disabled ADB shell in your GUI and disabled backup of apps also?
just by streaming some thing remotely (scrcpy) and not able to use remote ADB Shell is useless !
Troubleshooting won't work without shell commands,
Port forwarding works great without your ngrock app ! Tunnel is of no use,
Why pay ngrock to use shell in your App, when ADB shell is available freely over USB , Wifi and port forwarding with fire stick 4k.
Thanks and regards
Subhash India
subhash_india said:
Why disabled ADB shell in your GUI and disabled backup of apps also?
just by streaming some thing remotely (scrcpy) and not able to use remote ADB Shell is useless !
Troubleshooting won't work without shell commands,
Port forwarding works great without your ngrock app ! Tunnel is of no use,
Why pay ngrock to use shell in your App, when ADB shell is available freely over USB , Wifi and port forwarding with fire stick 4k.
Thanks and regards
Subhash India
Click to expand...
Click to collapse
ngrok free works well (and the app is setup to use the free version) and of course you can use port forwarding if you want to. Nice to have the choice and nice not to have to have to use port forwarding which is less secure.
No-one forces you to use the app or ngrok
Or you could write your own.
Cheers.
fragtion said:
This is cool
my wishlist:
1. be able to save multiple adb ip addresses
2. be able to launch cmd window with shell instead of being forced to use shell in the app
Click to expand...
Click to collapse
1. You can save as many adb profiles as you wish
2. Was thinking of this be then you could just open a cmd window in any case. Might consider it further
The next version has a few more features but I am a bit too busy atm to finalise it. Still hope for it to be released at some point in the summer.
This is such a great tool! Thank you.
May I ask can I use it to clone a Firestick? I have a 4k Firestick and have just bought a 4k MAX. The key application I'm wanting to migrate is Kodi 19.3 and all my addons and settings. Most other apps are standalone or near enough to standalone.
If anyone has any pointers or even a procedure document it would be fantastically appreciated.
Thank you.
Dands said:
This is such a great tool! Thank you.
May I ask can I use it to clone a Firestick? I have a 4k Firestick and have just bought a 4k MAX. The key application I'm wanting to migrate is Kodi 19.3 and all my addons and settings. Most other apps are standalone or near enough to standalone.
If anyone has any pointers or even a procedure document it would be fantastically appreciated.
Thank you.
Click to expand...
Click to collapse
I wouldn't mind the ability to use adb backup and restore too for app data.
Flakie said:
A simplified text version of the instructions is here:
https://flakie.co.uk/downloads/configure-termux-and-ngrok.txt
Click to expand...
Click to collapse
Is there an updated link for this please?
brentonv said:
Is there an updated link for this please?
Click to expand...
Click to collapse
Sorry file had been deleted in error. Should be back up now.
Flakie said:
Sorry file had been deleted in error. Should be back up now.
Click to expand...
Click to collapse
Thanks so much mate
Off topic I'm also looking for the 4k mantis & extra files. Could you please fix that too?
Much appreciated
brentonv said:
Thanks so much mate
Off topic I'm also looking for the 4k mantis & extra files. Could you please fix that too?
Much appreciated
Click to expand...
Click to collapse
Should be back too now.
amazing app, wanted to say thank you and I'm puzzled why more ppl in the forum arent talking about this
I was so happy someone made a GUI version but the most I was looking for was ease of file transfer. Can you please add sharing files using your GUI?
God i would love to see v3 out of beta and give a fire tablet toolbox toolset