Related
Hi,
I've rooted my phone and using jv1.5 adp firmware, during the rooting telnet was working fine without problems, but yesterday i flashed the boot images using information from these forums, and also installed a theme.
but later my phone showed telnet had just been installed, and now won't connect to phone, but standard terminal works, but had to tell it to allow me to use SU.
has anyone else had issues using telnet in the last 2 days on the phone...
thanks
Why are you using telnet? and how are you starting telnet?
I think you are a bit confused on what telnet is and why you needed it originally.
under the original instructions it tells you to use telnet to access the device
- Copy recovery_testkeys.img onto the Micro SD Card.
- Turn the phone on (if not already)
- Type enter telnetd enter to start telnet
- Telnet into the phone with telnet (telnet ipaddress) OR use the telnet application from the market and connect to localhost
- Run the following as root (in telnet)
Click to expand...
Click to collapse
but noticed today that telnet even though previously installed, states it just been installed after applying a theme and different boot up image
also not confused as to what telnet is, as you it on a daily basis at work under windows
If your phone is already rooted (I assume it is since you are applying themes) you do not need telnet anymore.
As long as you are using a custom firmware it should have root enabled in the shell so using the terminal will work just fine, no need for telnet.
yeh, using the terminal emulator, but couldn't work out why during the rooting process the telnet application worked and could connect to localhost, but now the connection is always refused
It is because you haven't started the telnet server.
Again I think you are a bit confused on what telnet is, how it works, and why you needed it to root in the first place. (and just because you "you it on a daily basis at work under windows" doesn't mean you aren't confused on what it is)
neoobs said:
It is because you haven't started the telnet server.
Again I think you are a bit confused on what telnet is, how it works, and why you needed it to root in the first place. (and just because you "you it on a daily basis at work under windows" doesn't mean you aren't confused on what it is)
Click to expand...
Click to collapse
no I am not confused as to what telnet is
i should still be able to use telnet on the phone and enter instructions (similar to how you would with most routers)
if doing enter, telnetd, enter and running telnet still refuses connection, and this has only happened since it advertised it has installed itself a day after already installing to firmware the phone
telnetd shouldn't advertise it has been installed.
Telnet is a protocol, technically it isn't a program, however telnetd is the server program (the kind that probably runs on your routers at boot) but you have to start it from a terminal in linux environments (like the G1)
The program you are trying to install would be a terminal prompt (the client side) this would allow you to connect to any terminal server you have network access to.
As said above you don't know what telnet is, you just think you do. The problem is you are trying to use the security hole (typing commands on the phone to run them as root) that has already been fixed. If you read a little more on how we have root you will find out that you can't just type telnetd anywhere you want. It has to be in a command prompt now because the security hole has been fixed.
this thread has gone off topic, and nothing to do with the original query
on my phone I have Superuser Permissions, Terminal Emulator and Telnet application
I use TE to access the phone to enter the commands via a prompt, but what I was saying was the telnet application you download to phone when doing the process of rooting allowed me to connect to localhost on port 23, which allowed me to enter commands as though I was using TE.
But after rooting, installing JV1.5 ADP, modifying bootimage and installing a theme, the phone reported it had downloaded and installed Telnet again, which I hadn't told it too, and if you then attempt to use it to connect to localhost it always refuses it.
So my question about anyone else having similar issues with telnet application still stands, ie has it reported it downloaded and installed itself again? after completing the rooting would it then prevent the telnet application from telneting to phone on port 23, meaning you can now only use terminal emulator? and can I easily remove the application without affecting terminal emulator?
thanks
It shouldn't download and install it self again without you helping or the rom you using having it built in.
I told you above and again you have to start the telnet server before you can use the telnet client. It isn't that hard to understand and if you really can't understand it then maybe you need to start looking into something else.
Telnet is not needed for terminal emulator.
Again I said it above you don't know what telnet really is. You don't understand server/client or protocols. Please google telnet and look for the wikipedia page and read about the protocol, the servers, and the clients.
neoobs said:
It shouldn't download and install it self again without you helping or the rom you using having it built in.
I told you above and again you have to start the telnet server before you can use the telnet client. It isn't that hard to understand and if you really can't understand it then maybe you need to start looking into something else.
Telnet is not needed for terminal emulator.
Again I said it above you don't know what telnet really is. You don't understand server/client or protocols. Please google telnet and look for the wikipedia page and read about the protocol, the servers, and the clients.
Click to expand...
Click to collapse
I know it shouldn't download and install again, this is my point for some reason it did and i'm not sure why and this is why I asked the question.
There is no need for you to constantly go on and flaming me by stating that I know nothing about telnet, this, that or the other. You don't know me from adam and I don't know you.
I do know what telnet is, it allows communication between 2 devices via CLI, and allows remote configuration of systems.
All I wanted to know was if this had happened to others, a simple answer of yes or know would have sufficed...
Wow, this got off topic quickly. I don't see why you'd need to assume he doesn't know what telnet is, neoobs. Just sounded like he had a problem and asked if anyone else is experiencing the same occurance. Personally, I prefer using telnet over the TE, for the simple fact, that I don't like looking at the bright blue screen.
In response to the original question, I haven't had anything download and install itself again. I have had the connection refused after starting the telnet daemon on several occasions, but that was due to either the Google servers syncing in the bg, or the browser or Market doing something.
Why don't you just uninstall and reinstall telnet?
Hi folks,
can i change the device name of my HTC Hero anyhow, so that in my router's overview it shows the name of it, like it does with laptops / PCs?
I know its possible with bluetooth, but i havent found any option for doing that concerning WLAN.
I didnt root my device, otherwise i would have probably tried the commands which i would use for my Ubuntu laptop:
sudo echo "newname" > /etc/hostname
sudo hostname -F /etc/hostname
and edit /etc/hosts accordingly.
Anyone knows a solution for me?
Best regards,
kapen
Please, anyone?
Or could anyone, who has a rooted Hero, go and take a look whether the files /etc/hostname, /etc/hosts and the command "hostname" exist? Or perhaps even write something in these files, i mean it wont do any harm as you are just writing sth to an ordinary text file.
If i'd have root, i'd do it myself, but for now there are no benefits for me which would push me to root and i don't want to lose my warranty for nothing.
Help is very much appreciated!
most routers let you do this on the router....
I know when i hook up to my thompson router and set a static IP address, it lets me name the device... Hardly worth hacking the device for really.
Bump
I'd like to be able to do this as well, without having to use a static IP. This can be done with symbian, winmobile, java and other types of phone not to mention internet tablets, laptops etc. Why not an Android phone?
rhedgehog said:
most routers let you do this on the router....
Click to expand...
Click to collapse
True. But most routers isnt my router, its not able to do that. And neither do i want to set a static IP on my Hero, because i'm using it with several other WLANs.
fair enough.
I just thought as there is no way that anyone seems to know of on the device, that it may be an alternative.
Ya your right.
I just thought anyone knew a solution for me. I mean its a system running on linux and i ought to be able change that kind of stuff... just don't know how :\
Heureka! It worked just the way i suggested
If you have a rooted device with busybox!, get that handy adb file and do:
Code:
1. adb root
2. adb remount
3. adb shell
3.1 cd /etc
3.2 echo "Hero" >> hostname
3.3 echo "127.0.0.1 Hero localhost.localdomain localhost" > hosts
3.4 echo "127.0.1.1 Hero" >> hosts
3.5 hostname -F /etc/hostname
Voila. Though, you'll get an error when you do "hostname" now, because something in busybox is wrongly linked against a library which doesnt allow resolving hostname by IP, but other devices (such as my router) will now display "Hero" as device name.
Side note: my only intend for doing this was, that my router WAG54G2 (Linksys by Cisco) didnt work correctly with my Hero, meaning i got a lot of connection aborts in WLAN and often could not reconnect afterwards. That seems to be solved now!
Edit:
With the method above, you''ll lose your Wlan name after reboot. You need to add a line to the init startup scripts to perform a "hostname -F /etc/hostname" on every boot. This can be done in the file /init.rc or, if you have the MoDaCo Rom, in /data/init.sh
EDIT: I can't post to XDA due to the fact that i just signed up for an account, but look at fards' copy of my post to see how to install Ubuntu on your Dell Streak
Here's Pats Post on modaco;
although it would be nicer to keep development discussion to just one thread, the more constructive input the better
Hello All,
I'm attempting to natively port Ubuntu and/or Debian to the Streak. With it being such a powerful device there really is no reason it SHOULDN'T be running a “desktop” operating system. However, implementing his is quite a difficult task, so if any and everyone's help would be very much appreciated.
In the mean time, this is my first guide on how to get ubuntu running piggyback on the Dell Streak. After quite a while (and numerous different trials), I have found that this is the easiest way to get Ubuntu Mobile up and running fast. All commands can be done through either ADB shell or the terminal emulator on the phone.
This was *NOT* done entirely by me, but is a culmination of the effort of lots of people in the android community. I just modified it so that it would work on the Streak.
**This Installation DOES NOT install Linux natively, and as such is should not be destructive to your Android system, however i take absolutely no responsibility for anything that happens and you do this COMPLETELY at your own risk**
Here is how to do it:
1) Root your phone. There are plenty of guides on how to do it, so find one and get root access on your phone.
**YOUR PHONE MUST BE ROOTED. THIS WILL NOT WORK WITHOUT IT.**
2) Download Ubuntu Mobile Bundle: http://uploading.com/files/bbm6b311/ubuntu.zip/
This contains an image of the filesystem as well as other necessary scripts to get it working.
2) Busybox - Install Titanium Backup from Android Market - if you press the "Problems" button it will install Busybox on your phone for you (Feel free to uninstall Titanium after this is done). This is the fastest and most pain free way to install busybox on the streak that i know of for now (the other ways of doing this ARE NOT fun...)
3) On your SD card's root directory, create a folder called ubuntu and extract all files in the ubuntu mobile bundle there.
4) Replace the bootubuntu executeable file in the ubuntu directory with mine, found here http://www.mediafire.com/?fi011w4fbmymw3y
5) Unmount phone from computer. ADB and Android Terminal will not work if the phone is mounted.
5) Download a terminal from the Android Market - I used Jack Palevich's Android Terminal Emulator (android market search: terminal) but anything similar should work the same
CODE
Code:
su
cd /sdcard/ubuntu
sh ubuntu.sh
6) Ignore any errors thrown up by ubuntu.sh. From this point, all that is needed to boot ubuntu is just to enter this:
CODE
Code:
bootubuntu
To start ubuntu from now on, this is all you need to do.
You should now have ubuntu working on your laptop, and while it DOES connect to your phone's internet sources, it DOES NOT yet have a graphical interface.
Here is how to add one:
1) Update the system with the following commands in ubuntu:
CODE
Code:
apt-get update
apt-get upgrade
The first one updates the package lists, the second one downloads updates to the system itself.
2) Install TightVNC in ubuntu:
CODE
Code:
apt-get install tightvncserver
3) Configure TightVNC:
CODE
Code:
export USER=root
vncserver -geometry 800x480
For security purposes, it is recommended that you assign a password to your VNC server when asked.
4) Download Android VNC Viewer from the market
5) Configure Android VNC Viewer:
Change the port to 5901 and type in your password that you entered before.
Other Problems
There appears to be a bug with the X window server sometimes refusing to connect to VNC. DO NOT change any settings on Android VNC Viewer, instead open a terminal and run the folloring command:
CODE
Code:
rm -R /tmp/.X11-unix
What Does Not Work – Will Try To Fix
Keyboard from Android VNC Viewer
Shutdown – Does Nothing
Reboot
Log Out
Native Install
I hope you guys enjoy this, and I can't wait to get your feedback.
- Pat
Click to expand...
Click to collapse
there was a thread about this but it wasnt work on me. now i am downloading and i will inform you again
what is the address for vnc ?
OMG! Could that be any slower on the download?
EDIT:
That sounded totally ungrateful - sorry!
Thank you very much for this
yeah works fine without problems.
it is better from g1 but not as well as a netbook. so only experimental use i think
I connected to the loopback 127.0.0.1 on 5901 and it worked - haven't seen how to connect to it remotely though
Edit:
Reading is fundamental - I can connect to it form another machine
now to fix the keyboard issue
in terminal emulator there is a note : localhost:1 vnc could work properly so i connect with only port and password.
is it possible to install jolicloud since its an ubuntu based system?
Newbie questions, sorry....
Before to try this port, just some maybe stupid questions for you:
- Still working the phone function?
- Is it easy to go back to standard or Steve Streaks Roms?
- Are there lack of drivers for bluetooth, gps, audio, wifi, etc?
Thanks.
No your missing the point here, this isn't an OS separate to android. Think of this as an app it runs on top of the android system. Also this is very experimental most features would be limited and no ubuntu can't be used as an smartphone os -No phone...
beginner said:
Before to try this port, just some maybe stupid questions for you:
- Still working the phone function?
- Is it easy to go back to standard or Steve Streaks Roms?
- Are there lack of drivers for bluetooth, gps, audio, wifi, etc?
Thanks.
Click to expand...
Click to collapse
1) Ubuntu does not replace android, and the UI only runs in a VNC server, so you can switch back and forth between ubuntu and the phone app (or angry birds?)
2) I installed mine on top of DJ Steve's 1.8.1 rom... It's not native, so it only runs on top of android instead of replacing it
3) Haven't tried audio yet, but it should work (let me know how it goes)... internet connectivity works and provided you have an internet connection enabled in android you can use tools like APT or Firefox in ubuntu... only problem is keyboard is a bit wonky...
For those who had trouble figuring out how to set up the VNC, here is a picture of my VNC configuration on my phone. If you find out the phone's IP address you should even be able to VNC into it from your computer (if your on the same wifi network)
Also, openoffice.org
- pat
Is anyone actively attempting to get Ubuntu running native?
audio not working
keyboard not working
also lots of lags.
ear0wax said:
Is anyone actively attempting to get Ubuntu running native?
Click to expand...
Click to collapse
Yes, i'm looking into it, but it's quite an uphill battle in order to get it working. I'll let everyone know when we make some progress.
www.cepdukkani.net said:
audio not working
keyboard not working
also lots of lags.
Click to expand...
Click to collapse
cause you are running 2 operating systems at the same time
But seriously, if ubuntu can run native (no android in the background) then the lag would be gone, and (if set up right) audio and keyboard would work.
- pat
could i recieve phone and uses sms?
Getting error
Hi all after passing command for booting ubuntu I get a error chroot can't find /bin/bash folder or directory missing
Sent from my Dell Streak using XDA Premium App
www.cepdukkani.net said:
audio not working
Click to expand...
Click to collapse
Im wondering if I install a rdp server instead of vnc if I can get remote audio working.
Ill post with whatever results i get once I'm done waiting 2 hours for the ubuntu image to download.
As for lag. I had a n900 running @600mhz and was doing a chroot into ubuntu and it ran fine, but it used xpyher not vnc. Is there any embedded X servers for android yet? (I highly doubt it)
data requirement for updating GUI pkg of Ubuntu
Can any body tell me size of the data required to update to gui ......as i m not using wi -fi i hv to stick on gsm data usage which is limited in my plan
Very cool!
I had lots of trouble rooting my 2.2.2, but finally got it done by running Gingerbreak twice in a row on a cleanly re-started Streak.
Thanks for a fun gig!
This thread is informative with a question at the end.
Just to let you know there's plenty of useful binaries in the CM7 distro you can pull from system/xbin
including:
Code:
add-property-tag bash check-lost+found dbus-send hciconfig irssi lmptest opcontrol procmem rsync showmap su
agent bdaddr cpueater dexdump hcidump l2ping nano openvpn procrank scotest showslab tcpdump
attest btool crasher directiotest hcitool l2test nc openvpn-up.sh rawbu scp sqlite3 timeinfo
avinfo bttest daemonize dropbear hstest latencytop netperf oprofiled rctest sdptest ssh vfp-crasher
avtest busybox dbus-monitor dropbearkey htop librank netserver powertop rfcomm sftp-server strace vim
Unfortunately it seems dropbear doesn't include X11 or -D dynamic socks port forwarding(-D option), it's just not in the source ( http://talk.maemo.org/showthread.php?t=2991&page=2 ). And I haven't managed to get any other ssh client to work. Have you had any other luck with any ssh clients? I've tried:
- BTEP ssh (can't connect to update server)
- sshTunnel (gets confused with a password prompt that isn't standard for one time passwords)
The idea is to get OperaMobile to connect to 127.0.0.1:8080 via Opera:config. (OperaMini doesn't support this), then you have a secure connection when on openwifi.
Hi, I'm using SSH Tunnel, but with a local port, when I'm in the university, I only use it to connect to irc (localhost:1234)
Don't know about dynamic ports, hope you can solve it
*Standard Disclaimer*
I didn’t tell you to do it, I don’t even own a gun, your forced into nothing other than the simple pleasure of low cost connectivity.
If your phone blows up, burns, sparks, smokes, calls you names, flings poo or otherwise packs up and runs away from home, it’s on you.
But the waters nice in the tapchat pool. The electric bill stays low. And the largest cause of concern for venturing on this escapade -
Why the hell not
Mind you - the purpose of this walkthrough is not to be installed on your everyday phone. My phone is a GSM Razr XT910 Maxx on ATT,
This walkthrough I performed with a RazrXT912 Verizon motherboard.
This is the server side of things, something that sits on a shelf and stays connected and powered up. Ultimately doing what a computer would at less power consumption than required to keep the time on a unused microwave.
how many KiloWatts/hour does a cellphone charger use? According to http://wiki.answers.com/Q/How_many_kWH_does_a_cell_phone_charger_use
Barely anything. most cell phone chargers draw less than 1.5 Watt.(per hour) Electricity is measured in kilowatt hours, and 1000 watts (per hour) is equal to 1 kilowatt hour (kwh). This means that your cell phone charger draws less than 0.0015 kwh. This means that even if you left your phone charger plugged in all the time, the cell phone charger would be accountable for less then 1 kwh on your monthly electricity bill. If you are looking to save energy, your cell phone charger is not the place to look.
So I just so happened to have a Razr XT912 Motherboard with a broken SIM slot and bad ESN that I had nothing to do with
(aside from intermittent hacky-sack bouts between meals)
Problem was it doesn’t have a battery, LCD, or even a shell for that matter. But Motorola’s have native HDMI-out, I have a bluetooth keyboard, and thanks to Team Black Hat and their introduction of the Factory Cable Adapter, I don’t even need a battery for this puppy to fire up and go.
Link to the Factory Cable Adapter - http://shop.teamblackhat.info/
Works on MANY devices
The initial concept behind the workings of this project came from a man by the name of Ross Stone who incorporated TapChat into a Raspberry Pi
Links to his well written concise walkthrough found here - http://www.rossstone.net/2013/01/29/tapchat-on-raspberry-pi/
Compiled Nodejs credit goes to Russianator, Link to thread
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=34&t=24130
I tried to recreate this using a plethora of Linux installers, chroot images and scripts, blood, swear, and eventually cheers.
I was finally able to get all of the dependencies and packages to install and run correctly using Linux Installer Standard
Then I opted to purchase Advanced for the run at boot and remove ads option, and to contribute to their hard work. $2, really? I drink that in coffee per hour.
Linux Installer Info here - http://android.galoula.com/en/LinuxInstall/
Enough chitty chatter, on to the Meat and Potatoes
Must Be Rooted
Update SuperUser and / or Binaries
Get Connected to home WiFi
Menu> Advanced> “Keep Wifi on During Sleep” Always
I recommend a static IP on your phone for the purposes of port forwarding (which we’ll get into later) and for long term stability
Go to Menu> System Settings> Wifi> Long press your connected network
Select “Modify Network”
Take note of your phones IP address, you’ll need this later
Scroll down and check “Show Advanced Options”
Scroll down to “IP Settings”
Select “Static”
Then “Save”
*Port Forwarding*
From a computer connected to the Internet Modem dial the Default Gateway IP
i.e. 192.168.1.1
It will prompt you for a username and password
If it’s never been changed you can use the default
U/N: [blank] P/W: admin (for most routers, look online for your specific model)
*added note - I found that our Cisco E2500 sets the password to the same as the WiFi password when enabled*
Go Into “Application and Gaming” > “Port Forwarding”
Ignore the entries that don’t have a “Enable” checkbox and select the first one that does
Choose a Port Number and place it in both fields, For direction Select option “both” and put your phones Static IP in the IP field
It will look something like this
[8067] [8067] [both] [192.168.1.113] [x] Enable
Take note of the port you selected
You can put whatever is easy for you or tapchats default 8067
But you’ll need to remember it
Save and exit
If you dont already have ADB you can download it from the link below
http://urbanassaultcellular.com/adb.rar
extract to root of C: drive
Go into the Play store
Install Linux Installer Standard (or my preference “Advanced”, to enable “run on boot”)
*If you don’t wish to use ADB Shell to set up the phone*
Install Android Terminal Emulator
Open > “su” > Grant SuperUser > Close
Make these changes in phones Menu> System Settings
Development > +USB Debugging > +Stay Awake (screen stays active when charging)
*You can turn off stay awake after the install, I don’t sleep, my phone shouldn’t either during this sort of thing*
Security and Screen Lock> check Unknown Sources
Open Linux Installer Standard/Advanced
[These are the settings that worked for the RAZR and D4, may need to adjust for your device]
Menu>Setup
Install in a Block device
Use Loop File
Preferred Distribution > Raspbian
Version > Wheezy 7
CPU Architecture > armhf
hostname > suicid3
Chroot point > /data/local/mnt/Linux
Name of chroot script > linuxchroot
IP Version > Auto
Loop File > /data/local/tmp/Linux.loop
File Size > 1024
Ext version > 2
Bind Android
Allow write to /system
Allow reMount with dev/exec
Remove Ads
[back arrow]
Complete the following steps
1) create target loop
2) Format Target Loop
3) Mount Loop
4) Install in Loop (will take a while)
5) Install linuxchroot script
Menu > Change App > Dist MGT (if you want/need to change settings)
Open Android Terminal Emulator / or on PC connect to ADB shell
cd C:/adb
adb shell
type “linuxchroot”
Grant SuperUser Permission (will prompt on phone, not in ADB Shell)
—————————————————————————————————————
*update raspbian*
apt-get update
*get node install dependencies*
apt-get install python-software-properties g++ make
to prompt
*get and install node (bundled with npm)
wget http://urbanassaultcellular.com/node/node-v0.8.16.tar.gz
tar xvzf node-v0.8.16.tar.gz
cd node-v0.8.16
make install (takes a while)
*set permissions*
chmod 755 /usr/local/bin/node
chmod 755 /usr/local/bin/npm
*additional dependencies*
apt-get install libsqlite3-dev
apt-get install build-essential
to Prompt
npm install -g node-gyp
npm install tapchat -g
tapchat start
Set Desired Port# (Take note of this, We’ll be using it for port-forwarding)
Set desired password (type it carefully, you get one shot as far as I know)
———————————————————————————————————————-
*On Phone Client*
Open TapChat App
Tap on “Connect to TapChat”
IP Address - Your True IP and the Port you selected earlier
True IP can be found at http://www.whatismyip.com/
Example 00.111.2.33:1212
Enter password
configure the rest like any other IRC server
———————————————————————————————————————-
Next on project
Create auto boot up instance to -
Restart Tapchat ans it gets [EconnRefused] after power failure and reboot.
running linuxchroot from shell returns:
I: Mounting device for Rasbian Wheezy...
F: It was not possible to attach the device to a loop device file
I: Entering chroot...
I: To run command when entering Linux create executable file at /etc/etc/init.android/rc_enter.sh
chroot: can't execute '/bin/bash': no such file or directory
127 TODO change for noexec tests !
I: To run command when leaving Linux create executable file at /etc/init.android/rc_leave.sh
Q: Do you want to unmount the raspbian wheezy environment, or leave it as is ? Y will kill all processes as required; any other ket will leave the services running
But attempting to connect to tapchat returns
java.net.ConnectException: failed to connect to /69.###.#.## (port ####): connect failed:
ECONNREFUSED (Connection refused)
The only workaround I found is to kill services, update the linuxchroot script, enter chroot environment (adb linuxchroot)
tapchat stop
tapchat start
Suggestions??????????????????
If you have any questions or suggestions join me in irc on freenode at ##uac [yes ##]
T(a)T(a)F(or)N(ow) - SU!C!D3 \,,/.(*_*).\,,/