User(s) browsing this thread: 1 Guest(s)
Trouble getting telnet up and running
|
|
10-04-2008, 07:54 AM
|
|||
|
|||
|
Trouble getting telnet up and running
Well, it's been a downhill ride today, with my PCH actually losing features.
I was trying to get telnet enabled to install dropbear and to upgrade the nzbget version to 0.5.0 and (since I was experiencing crashing) move it to a version that uses alternate libraries. I started with using Lundman's wiki article on telnetd on the PCH. Unfortunately this didn't run as smoothly as I hoped. I transferred the files to the root of my hard drive in the PCH via SMB, then via FTP. I changed the rights for the .cgi file to be executable, but when running it on the PCH it kept failing. I examined the .cgi file, and noticed several references to llink-installer.cgi. Well it turns out he uses this same method to install llink and was just sloppy about copy and paste in creating a .cgi for telnet-install.cgi. the start of his telnet-installer.cgi file looked like this Code: #!/bin/sh and I changed it to look like this (changes in bold) Quote:#!/bin/sh You'll notice that I changed the shell script from start_app.sh to .start.sh since I wanted this file to be hidden from my browsing on the PCH. Well, it still didn't work. Well, let me say that it did make it through the install, and it did tell me that telnet was started, and it did install a folder 'bin' in my share folder next to 'music' 'videos' and 'photo' (which I didn't like). But I could not telnet in. I restarted the PCH, but it didn't work. I could FTP in, but not telnet. So I deleted the bin folder on the shared partition (the one you see with your movie/photo/music folders), and thought I could manually configure this telnet myself. As I understood his method, he includes a single line in the /syb8634/etc/ftpserver.sh script (which exists in a partition you normally don't see) in the Start section so that it runs a "start" script in the shared partition. So I used USB slave to see the two partitions, and I put busybox26 in /syb8634/bin/ and manually edited the /syb8634/etc/ftpserver.sh file to include the line /mnt/syb8634/bin/busybox26 telnetd -l /bin/sh -p 23 & as he described in step 4 of his wiki tutorial, so it looks like this Code: start() {I also tried to include it the way his .cgi script had it written to run the start.sh script and that would start telnetd. Code: start() {By the way, my starter script looks like this Code: #!/bin/shMost of this code I have just copied and pasted from other FAQs/tutorials. The first part of the script is to copy any files and symlinks that I need (that get erased with each restart) to the /mnt/syb8634 directory. This is covered in the dropbear tutorial. You'll also notice that to start busybox it points to a file called busybox in /mnt/syb8634/bin. I wanted to keep all the binaries together, rather than some on one partition (share) and some on another (syb8634). So I put busybox26 there and made a sym link to it called busybox. So whenever something calls busybox, it will find it. It is also in my .apps/start tree so it should be copied over on every reboot. From there things have just gone down hill as I've tried to trouble shoot this telnet issue that still wont work. I've made some other tweaks with the following files /syb8634/etc/ftpserver.sh /syb8634/bin/busybox -> busybox26 (created a sym link) /share/.start.sh (I changed this to not be hidden) /share/start.sh Now when I start my PCH all the NMT applications are stopped by default. I can also only enable some of them, but that doesn't mean they work. When I click to start FTP, it will change from 'stopped' to 'running' and so will nfs server automatically. I can start UPnP AV server, and also MyiHome server. But when I try to start my samba server, the myihome server stops. If I go to re-enable the myihome server, the torrent server starts, but the myihome one does not. If I try to start the usenet client, the samba server stops and the usenet client does not start. I can try to start the samba server again at this point and it says running, but I can't get the myihome and usenet to start. After a minute or two, the "start" button will be grayed out for the torrent server, and it is stuck in the stopped position. Also, despite samba saying it is running, I cannot connect to the PCH via SMB. These are just some examples of the problems I am having. I've tried reinstalling the NMT apps via USB by the NMT setup wizard... that seemed to get me back to square one alright, but then I couldn't install the telnet client from the scripts. Also, while the usenet client would load, it wasn't connecting to the server, and wasn't downloading anything. Back to doing the configuration manually again via USB Slave, and again I'm at a same semi non-functioning point where nzbget doesn't work, samba doesn't work, telnet doesn't work. If you've made it this far through my post, congratulations. Hopefully you'll see something that I missed and can tell me why this isn't working for me. |
|||
|
10-04-2008, 08:03 AM
(This post was last modified: 10-04-2008 08:04 AM by mjmacky.)
|
|||
|
|||
|
RE: Trouble getting telnet up and running
You know I was trying to accomplish something on the PCH before and someone told me "just use telnet". I couldn't even manage to read this whole post before I was completely convinced it's still too troublesome to investigate it. Good luck, I have no useful input other than give up. I understand though, you're probably like me, a troubleshooter and now won't stop until you've got it right since you've already invested too much time and work into it. OK, well that's my useless input. Maybe I'll check back later to see if it was fixed, still looking for hope.
Popcorn Hour C-200 wired into Linksys WRT610N with 50 ft CAT-6 and displayed 720p 60 Hz via HDMI onto a 42" HP LCD. Anime series watcher, YAMJ user, PlayOn user, MSP user. Externally managed torrents, running FTP and Samba server. |
|||
|
10-04-2008, 03:26 PM
(This post was last modified: 10-04-2008 03:26 PM by muaddib7.)
|
|||
|
|||
|
RE: Trouble getting telnet up and running
hi mates
I have tried most of what has been posted on FAQs around the net, with similar results to yours. I have an egreat EG-M31B and telnet is not working. I have mounted the disk, through USB, to my linux machine and I was going through some things to experiment, when I noticed that when running the command (under linux): file busybox26 (<=== the downloaded binary) it tells me that the file is an ELF32 file for MIPS architecture but DYNAMICALLY linked. It could be possible that the binary is ok for A100 or M31A, but not for the newer firmware... a single library version change would break the binary. For these kind of tasks a statically linked binary would be much appreciated. I will try to get the toolchain and build one today. If I can get it to build, and run, I will post a link. If someone has a binary ready, please post |
|||
|
10-04-2008, 03:58 PM
|
|||
|
|||
|
RE: Trouble getting telnet up and running
You can try another method for telnet here I posted here
http://www.networkedmediatank.com/showth...p?tid=7156 Martin |
|||
|
10-04-2008, 04:14 PM
|
|||
|
|||
|
RE: Trouble getting telnet up and running
I have fixed it but I accidently posted the solution to another thread. Well here it is:
http://www.networkedmediatank.com/showth...5#pid77575 |
|||
|
10-04-2008, 04:51 PM
|
|||
|
|||
RE: Trouble getting telnet up and running
(10-04-2008 04:14 PM)muaddib7 Wrote: I have fixed it but I accidently posted the solution to another thread. Well here it is: THANK YOU! That was too easy. I think what I must have missed was either the file owner and/or permissions on busybox26. I also didn't have any way to stop the telnet server. |
|||
|
10-05-2008, 12:12 AM
|
|||
|
|||
|
RE: Trouble getting telnet up and running
I have added another snippet to the ftpserver.sh script (placed in the start function):
Code: cd /binwhat this basically does is to create links for all this busybox apps in the /bin. it does this only if the links have not been created earlier on. that way you get more things from your NMT
|
|||
|
« Next Oldest | Next Newest »
|

Twitter
Facebook
NMT Wiki
Search
Member List
Help
A-400 [13 May 2013]

Trouble getting telnet up and running



![[+]](images/collapse_collapsed.gif)


