[19. April 2013] A-400 Advanced Network Setup now available | [11 Jan. 2013] Customize your A-400 Home Screen

Firmware: A-400 [13 May 2013] | C-300 [30 Nov. 2012] | A-300 [30 Nov. 2012] | C-200 [21 Jan. 2013] | A-200/A-210 [10 Aug. 2012]

Just got your NMT | WIKI has the answers | Search the forum | Forum Rules/Policy | Firmware & Official NMT News | Popcornhour manuals



User(s) browsing this thread: 1 Guest(s)
Thread Closed 
Enable telnetd
04-17-2008, 07:57 AM
Post: #1
Enable telnetd
I'd love to eventually get ssh, unrar and an ftp client running on my PCH. I like the idea of being able to start downloads while at work, unrar them and watch them when I get home. To be able to get an ssh daemon on there, I assumed going in by telnet should be the easiest way.

I don't have any way to plug the IDE hard-drive into my macbook, so I'm trying to do it by executing shellscripts on the samba-share via the webserver and PHP (as on Lundman's wiki).

At first I noticed that busyboxy is not compiled with telnetd in my version of the firmware. Never mind, I got hold of busybox26 with telnetd, compiled for the PCH (again, lundman's wiki), and it's entirely possible to start it with the webserver user, though I have to chose a >1024 port. Awesome! Now all I have to do is telnet in, right?

As it turns out when I try to telnet in, I'm connected to the port, as opposed to when the telnetd was not running. But I'm imediately disconnected after the "Escape character is" message.

I figured the solution might be in editing the /etc/hosts.allow file. But it seems the Webserver user doesn't have write access to this file, because I haven't been able to change it via the webserver.

I also tried to edit the ftpserver.sh startup script to start the telnetd as root with no luck. Seems like the webserver user doesn't have write access to the startup scripts either.

Any suggestions?
Find all posts by this user
04-17-2008, 09:17 AM
Post: #2
 
Use the php hack to launch telnetd, sets it up to survive reboots too. There is a usb stick/hdd image you just browse too.

unrar comes with llink, which you can do stand alone, or browse to llink on pch if you want to play without unraring.
Visit this user's website Find all posts by this user
04-19-2008, 11:00 PM
Post: #3
 
lundman Wrote:Use the php hack to launch telnetd, sets it up to survive reboots too. There is a usb stick/hdd image you just browse too.

unrar comes with llink, which you can do stand alone, or browse to llink on pch if you want to play without unraring.

Which PHP hack? Do you have a link?

OT: I don't know if I've misunderstood this, but I thought you ran llink on your computer, and then connected to it with your PCH? I would prefer to not have to keep my computer running all the time to host llink. I would like the PCH to work as stand-alone, which is why I'm going to try and get an ftp client and unrar to run on it. Or can I run llink on the PCH itself, without involving a hosting computer for llink?
Find all posts by this user
04-19-2008, 11:34 PM
Post: #4
 
Search this forum for the PHP hack. I think it's "hidden" in a thread in this section called "Custom fonts".

Once you've got telnet up settled you can download the toolchain from lundmans site and compile llink for the PH itself, although I don't think it's optimized to run locally - you might have to look into the config with open eyes.

Audio, video, disco - I hear, I see, I learn.
Wiki. Wiki? Wiki!
Find all posts by this user
04-19-2008, 11:56 PM
Post: #5
 
You can indeed run llink on pch itself if you want. but either way, the pch version has unrar with it already, so you don't need to compile it yourself.

PCH userland comes with vanilla ftp client, but its terrible. There is wget there too, usually.
Visit this user's website Find all posts by this user
05-31-2008, 05:54 AM
Post: #6
 
@lundman

I used your wiki instructions to install telnetd. First off, thank you very much for document it. It's awesome! REF: http://www.lundman.net/wiki/index.php/NMT:telnetd

A couple of notes for Windows users. The EXT2 driver defaults the permissions to RW. As some may know, Unix has a special permission eXecute, so busybox26 (telnetd) won't execute. I couldn't figure out how to set this via the EXT2 driver, so I had to fall back to a PartedMagic boot disc. REF: http://partedmagic.com/wiki/PartedMagic.....Downloads

It's designed for partitioning, but it's has a mount manager (in unix drives are "mounted" under directories from root aka "/") and a command prompt that are very useful for non-unix types.

First, mount the 250MB ext2 (or ext3) partition.
Change to the /syb8634/bin directory and ...
To set the necessary permissions:
Code:
chmod 774 busybox26
My editor reset the ftpserver.sh file as well.
Find all posts by this user
05-31-2008, 06:15 AM
Post: #7
 
My way to take out the HDD is OTT now. The php page to run telnetd is very easy,and if you save it to your HDD, you have but to run it again after firmware upgrade.
Visit this user's website Find all posts by this user
06-17-2008, 04:50 PM
Post: #8
 
Hi All,

Sorry if these questions are a little dumb but have struggled to get Telnet working.

I followed the steps outlined in various posts and installed the PopcornDev folder onto the HDD. I then navigated on the PCH to the index.html file and clicked install for the Telnet option. This appeared to work and I got a green enabled next to Telnet. I then shutdown and restarted myihome as instructed.

My problem is although it says Telnet enabled, I can't login via Telnet using the Putty client. When I enter my PCH IP address and select Telnet it simply says unable to connect or connection refused.

Can anyone suggest what I've done wrong and how to check if Telnet is running? I assume when you try and login via telnet the username should be root and the password is blank? However at present I can't even get to the login!!

Thanks in advance for any help.
Find all posts by this user
06-18-2008, 01:07 AM
Post: #9
 
I just finished up a clean(ish) GUI installer for llink, and later, telnetd. It should work the same, and be a matter of pushing some buttons. Both to install on HDD, and to just run from USB.

I've asked a few people to try out the llink installer so we can make sure it works in most situations, after than I'll roll it out for telnetd.
Visit this user's website Find all posts by this user
06-18-2008, 12:19 PM
Post: #10
 
Thanks Lundman for all your hard work on this.

Is my problem something I've done wrong and if so, is it something I can fix easily? At present I can't login to my PCH with Telnet even though it says it's enabled.

Any help appreciated.
Find all posts by this user
06-18-2008, 12:57 PM
Post: #11
 
I've just downloaded the Telnetd package onto a USB stick and tried that method. I can run the telnet.html file and then select telnetd but am getting a screen saying "Request cannot be processed".

I updated the firmware this morning with no problems but have failed to get Telnet working.

Another thing I've noticed is I get another source listed at the top when I insert a USB stick. It says DATA-DISC but seems to have no content :roll: . When I unplug the USB stick, it disappears. I don't remember seeing this with the previous firmware but perhaps I just missed it.
Find all posts by this user
06-18-2008, 01:03 PM
Post: #12
 
I love the Lundman telnet package and it works like a charme.

@popcornhour
please integrate telnetd with upcoming firmware.
Visit this user's website Find all posts by this user
06-18-2008, 03:23 PM
Post: #13
 
AndyH Wrote:Another thing I've noticed is I get another source listed at the top when I insert a USB stick. It says DATA-DISC but seems to have no content :roll: . When I unplug the USB stick, it disappears. I don't remember seeing this with the previous firmware but perhaps I just missed it.

You should consider trying another brand/model of stick (hopefully you an old one laying around? llink is small so even a 32 MB stick will do), or re-format the current one. It may contain something odd. If you enter it on your pc you could browse it for hidden files and partitions.

Audio, video, disco - I hear, I see, I learn.
Wiki. Wiki? Wiki!
Find all posts by this user
06-18-2008, 04:39 PM
Post: #14
 
Finally worked out what was causing the problem! I had copied the entire Telnetd folder to the root of the USB stick. I decided to just copy the three files required instead of having them in a folder. Bingo it worked.

Own stupid fault, should have realised!

Thanks for the advice. Smile
Find all posts by this user
06-19-2008, 11:16 AM
Post: #15
 
lundman, I noticed this:
I have the llink-nmt already installed and tried the new telnetd package (telnet-installer.tar.gz).

In this case the Apps/llink/ && ./start_llink.sh was initialized, so the screen says:
Quote:Welcome to llink installer
We are currently running from:
HARD_DISK/telnet-installer.cgi

Install to HARD_DISK/Apps/llink ?
Run from HARD_DISK/llink (Removing USB would be bad)
Install to /tmp/llink (Removing USB is ok)
None of the options are appealing, as I assume it should be in bin/ or Apps/telnet or so?

I should probably wipe the llink-nmt install and start over, as the script should create a fresh start_app.sh, but I suspect that installing the telnet first and then llink will cause the llink install to end up in bin/ or Apps/telnet/llink?

Well, for now I'll try and see what happens.

Audio, video, disco - I hear, I see, I learn.
Wiki. Wiki? Wiki!
Find all posts by this user
Thread Closed 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Need help debugging a simple script to enable NTFS write on HDD user33 10 3,185 04-05-2011 06:05 PM
Last Post: nuke12
  [Telnetd] Unrar stops extracting too early bohlendach 8 2,536 05-15-2010 12:10 PM
Last Post: bohlendach
  Re-enable the network share from command line? glorifyday 0 1,840 03-04-2010 05:06 PM
Last Post: glorifyday
  (404 Not Found) when trying to install telnetd with CSI sinistar 6 8,256 09-25-2009 07:04 PM
Last Post: al3xdc
  [TELNETD/BUSYBOX] qqlapraline 5 4,678 09-18-2009 09:23 PM
Last Post: garp99
  Remove telnetd from Lundman Shaika-Dzari 4 2,027 08-06-2009 11:59 PM
Last Post: Shaika-Dzari
  enable password in telnet El_Kurgan 1 2,567 03-29-2009 10:09 PM
Last Post: Holyhead
  Request a telnetd For-Dummies AlramEast 2 1,539 03-14-2009 09:11 AM
Last Post: AlramEast
  syslogd enable spidertop 16 5,487 02-17-2009 10:55 PM
Last Post: spidertop
  How do i use Telnetd ?? Master-Willy 5 2,418 01-09-2009 10:51 PM
Last Post: Master-Willy

Forum Jump: