telnetd & other 3rd party software question

Posted by: SonicSnoop

telnetd & other 3rd party software question - 23/02/2004 22:42

Hi, I ran across a thread on here given me detailed instructions on how to install preinit, telnetd, and empacman. I followed them and telnet and empacman work as long as I get a shell prompt with a serial connection first and execute them. Could someone possibly point me to a thread that may show me how to use preinit to execute telnet on AC power and empacman on both AC and DC.. Thanks!
Posted by: mlord

Re: telnetd & other 3rd party software question - 23/02/2004 22:47

Use Hijack instead.

Eg. in config.ini, do something similar to this:

;@AC;@EXEC_ONCE /telnetd
;@EXEC_ONCE /empacman
Posted by: SonicSnoop

Re: telnetd & other 3rd party software question - 23/02/2004 22:53

Ok ill give that a shot, I already had hijack on im just really new to this and trying to take in all that this lil baby can do..

Ok, I added those lines in the config.ini from emplode under the [hijack] section, but doesnt seem to have started them, Did I put them in the wrong section? I even unpluged and pluged back in according to the FAQ about editing the config.ini. Thanks!
Posted by: mlord

Re: telnetd & other 3rd party software question - 23/02/2004 23:14

You'll also have to use FTP to install and chmod 0755 the telnetd and pacman executables, and change the commands I posted to include the correct FULL pathname for whereever you placed them.

Cheers
Posted by: SonicSnoop

Re: telnetd & other 3rd party software question - 23/02/2004 23:17

Ok, I know they are chmodded cause I can run them from a serial connection in hyper terminal and they run fine.. I know i have to change the empacmans path its in /programs0 but telnetd is able to be run anywhere so i got to track down where i copied it.. Thank you for taking the time to help me with this.
Posted by: mlord

Re: telnetd & other 3rd party software question - 23/02/2004 23:25

Mmm.. I wonder.. at the point when EXEC_ONCE is run, the ethernet port it not yet fully configured. Shouldn't matter much, but maybe it does?

You can test the EXACT same code that EXEC_ONCE uses by using the FTP server in Hijack: the SITE EXEC xxxxxx command. See if that works for you or not.

cheers
Posted by: SonicSnoop

Re: telnetd & other 3rd party software question - 23/02/2004 23:26

Ok great! I got empacman working fine on boot, however telnetd isnt, i found it in /bin so i changed the line to:

;@AC;@EXEC_ONCE /bin/telnetd

and according to the force ac/dc menu in hijack its booted into AC mode but i am unable to telnet in. I opened a serial connection before i unpluged and repluged it and i see the empeg being executed but nothing about telnetd no errors nothing..
Posted by: SonicSnoop

Re: telnetd & other 3rd party software question - 23/02/2004 23:50

Thanks for your help! I just removed ;@AC and left ;@EXEC_ONCE /bin/telnetd and rebooted and it works. I guess some reason it didnt like the AC part. Thank you for your help..
Posted by: mlord

Re: telnetd & other 3rd party software question - 24/02/2004 08:28

Ahh.. my fault. There needs to be exactly one blank space immediately after the ;@AC part.

Cheers
Posted by: mlord

Re: telnetd & other 3rd party software question - 24/02/2004 08:29

;@AC;@EXEC_ONCE /telnetd [/1]That line is wrong, missing a space. Use this instead:

;@AC ;@EXEC_ONCE /bin/telnetd
Posted by: SonicSnoop

Re: telnetd & other 3rd party software question - 24/02/2004 15:28

Ahh! Ok thank you!