User(s) browsing this thread: 1 Guest(s)
|
Enable telnetd
|
|
04-17-2008, 07:57 AM
|
|||
|
|||
|
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? |
|||
|
04-17-2008, 09:17 AM
|
|||
|
|||
|
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. |
|||
|
04-19-2008, 11:00 PM
|
|||
|
|||
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. 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? |
|||
|
04-19-2008, 11:34 PM
|
|||
|
|||
|
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! |
|||
|
04-19-2008, 11:56 PM
|
|||
|
|||
|
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. |
|||
|
05-31-2008, 05:54 AM
|
|||
|
|||
|
@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 |
|||
|
05-31-2008, 06:15 AM
|
|||
|
|||
|
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.
|
|||
|
06-17-2008, 04:50 PM
|
|||
|
|||
|
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. |
|||
|
06-18-2008, 01:07 AM
|
|||
|
|||
|
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. |
|||
|
06-18-2008, 12:19 PM
|
|||
|
|||
|
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. |
|||
|
06-18-2008, 12:57 PM
|
|||
|
|||
|
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. |
|||
|
06-18-2008, 01:03 PM
|
|||
|
|||
|
I love the Lundman telnet package and it works like a charme.
@popcornhour please integrate telnetd with upcoming firmware. |
|||
|
06-18-2008, 03:23 PM
|
|||
|
|||
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! |
|||
|
06-18-2008, 04:39 PM
|
|||
|
|||
|
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.
|
|||
|
06-19-2008, 11:16 AM
|
|||
|
|||
|
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 installerNone 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! |
|||
|
« Next Oldest | Next Newest »
|

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





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





