Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Page 2 of 2 < 1 2
Topic Options
#78970 - 25/03/2002 16:26 Re: telnet server on empeg [Re: tonyc]
tman
carpal tunnel

Registered: 24/12/2001
Posts: 5528
Well. I was the person originally that said it was quite slow. This was to basially stop any people asking if they've broken it or not installed it properly

But I do agree with you, for a telnet daemon it's just not worth it

- Trevor

Top
#78971 - 26/03/2002 13:48 Re: telnet server on empeg [Re: tman]
leftyfb
enthusiast

Registered: 04/03/2002
Posts: 217
Loc: Lowell, MA
Does this daemon need to be run from a terminal login(serial) every time you want to be able to telnet in via ethernet?
_________________________
Mk2a 30GB Blue. Serial 030102999

Top
#78972 - 26/03/2002 13:55 Re: telnet server on empeg [Re: leftyfb]
tman
carpal tunnel

Registered: 24/12/2001
Posts: 5528
Nope. If you install Bitt Faulk's preinit utility then you can start up the telnet daemon every time the empeg reboots. That's what I'm using to do it anyway.

- Trevor

Top
#78973 - 26/03/2002 14:36 Re: telnet server on empeg [Re: tman]
leftyfb
enthusiast

Registered: 04/03/2002
Posts: 217
Loc: Lowell, MA
ok, sorry if i'm seeming like i'm needing a walkthrough, but I can't seem to find any docs on this preinit. I installed it (I think, per windows/DOS instructions). Now what?
_________________________
Mk2a 30GB Blue. Serial 030102999

Top
#78974 - 26/03/2002 15:00 Re: telnet server on empeg [Re: leftyfb]
leftyfb
enthusiast

Registered: 04/03/2002
Posts: 217
Loc: Lowell, MA
nevermind, I found the old post about VNCserver describing it's use

thanks
_________________________
Mk2a 30GB Blue. Serial 030102999

Top
#78975 - 11/04/2002 06:39 Re: telnet server on empeg [Re: tman]
jwtadmin
enthusiast

Registered: 05/09/2000
Posts: 210
Loc: Ipswich, MA
ok so I have installed telnetd into /empeg/bin
I installed preinit
and I created a script calle N10telnetd that looks like
#!/bin/sh
/empeg/bin/telnetd

I tried to run it at mount with M10telnetd

But no luck. if I run telnetd from the shell I can get it to work.

It just won't automatically start.

_________________________
___ John Turner "It's easier to ask for forgiveness than to ask for permission"

Top
#78976 - 11/04/2002 09:29 Re: telnet server on empeg [Re: jwtadmin]
charcoalgray99
enthusiast

Registered: 14/05/2001
Posts: 279
Make sure your script has exec privs.

chmod +x N10telnetd

Make sure your script doesn't have windows line feeds, use TextPad or something similar to create the file.

Tom

Top
#78977 - 11/04/2002 11:58 Re: telnet server on empeg [Re: charcoalgray99]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
Actually, it doesn't need to be set executable. Doesn't hurt if it is, though. The CR/LFs are probably the problem. To test, you could run ``/bin/sh /etc/preinit.d/N10telnetd'' and see if that works. If it doesn't, then the problem is with the script.
_________________________
Bitt Faulk

Top
#78978 - 12/04/2002 05:44 Re: telnet server on empeg [Re: wfaulk]
jwtadmin
enthusiast

Registered: 05/09/2000
Posts: 210
Loc: Ipswich, MA
It is set to executable, and running it via
``/bin/sh /etc/preinit.d/N10telnetd'' works

but it still does not run at boot time
_________________________
___ John Turner "It's easier to ask for forgiveness than to ask for permission"

Top
#78979 - 12/04/2002 14:13 Re: telnet server on empeg [Re: jwtadmin]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
Hmmm.

Do you have other startup scripts? Do they work? Can you see preinit starting on boot at the serial console? Try adding some echo lines in the N10telnetd startup script and see if they get printed out.
_________________________
Bitt Faulk

Top
#78980 - 12/04/2002 15:14 Re: telnet server on empeg [Re: wfaulk]
jwtadmin
enthusiast

Registered: 05/09/2000
Posts: 210
Loc: Ipswich, MA
Hmm Perhaps preinit didn't get installed correctly?

What should we see on the serial if preinit starts correctly?
_________________________
___ John Turner "It's easier to ask for forgiveness than to ask for permission"

Top
#78981 - 13/04/2002 11:21 Re: telnet server on empeg [Re: jwtadmin]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
empeg-preinit starting...

and

empeg-preinit complete

Along with some other things if errors occur.
_________________________
Bitt Faulk

Top
#78982 - 06/05/2002 21:06 Re: telnet server on empeg [Re: tman]
dcosta
enthusiast

Registered: 04/02/2002
Posts: 277
Loc: Massachussetts
Okay, I've compiled the busybox implementation of telnetd. Works quite well with the preinit utility.It is incredibly slow when the player is running though! Pause the player if you want to do anything.
To install:
Upload the attached file to the empeg
Untar it (tar zxvf emptelnetd.tar.gz)
Run the devs file
You can delete the devs file and the emptelnetd.tar.gz files from your empeg now.


How exactly does one "Run the devs file"
I imagine it involves hyperterminal, which I can do,
I've uploaded emptelnetd.tar.gz
I've done the tar zxvf emptelnetd.tar.gz
This is where I get stuck...
I just can't seem to figure out how to "Run the devs file"
from there I think I can swing it,
I was able to get the viewer running at boot time last night.
_________________________
__________ davecosta Hijacked 60GB MKIIa 2.0b13

Top
#78983 - 06/05/2002 21:34 Re: telnet server on empeg [Re: dcosta]
mtempsch
pooh-bah

Registered: 02/06/2000
Posts: 1996
Loc: Gothenburg, Sweden
Not having played with the package in question, so I might be wrong, but:

from the comand prompt and in the directory where you placed the devs file:
#make it executable
chmod 755 devs
#run it
./devs

/Michael
_________________________
/Michael

Top
#78984 - 07/05/2002 07:29 Re: telnet server on empeg [Re: mtempsch]
tman
carpal tunnel

Registered: 24/12/2001
Posts: 5528
Yep. What you said

- Trevor

Top
#78985 - 29/01/2003 17:05 Re: telnet server on empeg [Re: tman]
mcomb
pooh-bah

Registered: 31/08/1999
Posts: 1649
Loc: San Carlos, CA
Okay, I've compiled the busybox implementation of telnetd.

Sorry to resurrect an old thread, but does anybody know if it is possible to get this to require authentication? I don't want to do the whole login/password file deal, but a single hardcoded password like hijack can use for kftpd would be nice for when my empeg is on the company network.

-Mike
_________________________
EmpMenuX - ext3 filesystem - Empeg iTunes integration

Top
#78986 - 29/01/2003 17:28 Re: telnet server on empeg [Re: mcomb]
genixia
Carpal Tunnel

Registered: 08/02/2002
Posts: 3411
Haven't looked to find out. But it'd be nice.

Actually, telnetd in kernel space would be nice
_________________________
Mk2a 60GB Blue. Serial 030102962 sig.mp3: File Format not Valid.

Top
#78987 - 29/01/2003 17:30 Re: telnet server on empeg [Re: mcomb]
tman
carpal tunnel

Registered: 24/12/2001
Posts: 5528
Sure. It shouldn't be hard to change it to do that. It's either revert it back to the original method where it executes /bin/login or I suppose I could hack it into the telnet daemon directly. I'll have to think about it. On one side it's easier to write but ont he other it means having to deal with more than one file.

- Trevor

Top
#78988 - 29/01/2003 17:41 Re: telnet server on empeg [Re: tman]
genixia
Carpal Tunnel

Registered: 08/02/2002
Posts: 3411
There is no /etc/passwd, and IIRC no /bin/login either on the empeg.
The ideal thing to do (from the users' perspective) would be to use a config.ini password, but you might have a problem trying to read config.ini at that time - hijack and the player app are already fighting over it.
_________________________
Mk2a 60GB Blue. Serial 030102962 sig.mp3: File Format not Valid.

Top
#78989 - 29/01/2003 17:50 Re: telnet server on empeg [Re: genixia]
tman
carpal tunnel

Registered: 24/12/2001
Posts: 5528
Yeah I know. I'm just saying that originally the busybox telnet daemon would run /bin/login to do the username and password checking then finally run the shell.

I would write a empeg specific login. Or I could change the telnet daemon to do the authentication itself. Not sure.

Okay, it's not optimal about disk access but if I just make it read config.ini each time it receives a connection then it shouldn't have to worry about problems with accessing config.ini. Or it could cache the password the first time it's needed. This last option could be confusing for users though.

- Trevor

Top
#78990 - 29/01/2003 18:46 Re: telnet server on empeg [Re: genixia]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14491
Loc: Canada
There are NO issues with lots of apps trying to read the same file at the same time, not even config.ini (in Hijack v309).

Cheers

Top
#78991 - 29/01/2003 20:23 Re: telnet server on empeg [Re: mlord]
genixia
Carpal Tunnel

Registered: 08/02/2002
Posts: 3411
Ok, I mis-read or mis-understood something somewhere. I'm glad that you've corrected me as I couldn't understand why there should be any issues.

_________________________
Mk2a 60GB Blue. Serial 030102962 sig.mp3: File Format not Valid.

Top
#78992 - 30/01/2003 07:44 Re: telnet server on empeg [Re: genixia]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14491
Loc: Canada
Well, there may (or not) have been a conflict in earlier Hijack versions with config.ini, buy not now.

Cheers

Top
#78993 - 18/02/2003 10:49 Re: telnet server on empeg [Re: jwtadmin]
errol
journeyman

Registered: 08/08/2002
Posts: 57
Did you ever get this working? I found that I needed to place telnetd into a directory that was seen at boot time. I was having problems when telnetd was in /drive0/var/..., but when I moved it to /bin it works no problem.

Top
Page 2 of 2 < 1 2