I-Appliance BBS
The Official Source for Internet Appliance Upgrades and Mods
Amazon Honor System Click Here to Pay Learn More
BBS Main List | Sign In | Sign Up | Search | Help | Linux-Hacker.netReply to Thread | Printer |

Home / Other I-Appliances / 3Com Audrey
telnetd/inetd working!

New Messagetelnetd/inetd working! (modified 1 times) jayklm
Profile
I finally got telnetd/inetd to work! :). Much easier telneting to Audrey to change/hack configurations!

Since I leave my computer/server on all the time I am symbolically linking qnx 6.1 libraries and binaries when needed.

Has anyone got Audrey boot up with out starting photon? (just a shell). I am trying to figure out what is needed just to boot so I can get 90% of the files off Audrey and on to my server. It seems that at boot up Audrey reads /proc/boot/.script is this correct? That file is not a flat text file so editing it may be fun :). When my backup Audrey comes in I will try to strip everything down and get it to run most of it’s software off my PC and post everything needed.

09-04-2001 08:25:11

New MessageRE:telnetd/inetd working! (modified 0 times) Andrel
Profile
What I would really want to have is a working ftpd (or nfsd) on my Audrey ..

André

09-04-2001 09:25:58

New MessageRE:telnetd/inetd working! (modified 0 times) jayklm
Profile
heeh Telnetd and ftpd works on my Audry.. I will post by the weekend the steps and any file that may be needed.
09-04-2001 09:58:26

New MessageRE:telnetd/inetd working! (modified 0 times) Andrel
Profile
Thanks. I am waiting in front of my Audrey

André

09-04-2001 10:23:45

New MessageRE:telnetd/inetd working! (modified 0 times) scooter
Profile
Me too, my efforts so far have failed.
09-04-2001 12:49:18

New MessageRE:telnetd/inetd working! (modified 0 times) jayklm
Profile
Who OS are you guys runing? Linux? Win2k? win9x?
09-04-2001 12:57:16

New MessageRE:telnetd/inetd working! (modified 0 times) Andrel
Profile
Win2K. Why ?

André

p.s.: Win2k on my desktop, QNX on my Audrey

09-04-2001 15:02:38

New MessageRE:telnetd/inetd working! (modified 0 times) jayklm
Profile
André:

Just wondering how you are going to do a NFS mount? why? fs-cifs works well. just add the entries to your boot.sh script. (dont forget to use the -a option. here is a line from my boot.sh:

/nto/bin/fs-cifs -a //homer:192.168.0.11:/qnx /qnx userid password

from www.qnx.com:

Use -a to get rid of error messages from applications that attempt to set the mode or ownership of files and directories, such as cp.

jay

09-04-2001 19:05:35

New MessageRE:telnetd/inetd working! (modified 1 times) Andrel
Profile
Well ..

In fact, I don't really want to run an NFS server. A simple FTP server on my Audrey would be fine. I want to run an application on my PC that could automatically get/send some files to the Audrey.

And thanks for the "-a" paramater. I am mounting my drives, but had the error messages whithout knowing how to get rid of them.

André

09-04-2001 19:08:40

New MessageRE:telnetd/inetd working! (modified 0 times) jayklm
Profile
how much tweaking have you don to your audrey? are you using any of the qnx 6.1 binaries/libraries? if so then try this:(assuming you have qnx 6.1 mounted at /qnx)

ln -s /qnx/etc/passwd /etc/passwd
ln -s /qnx/etc/shadow /etc/shadow
ln -s /qnx/etc/services /etc/services
ln -s /qnx/etc/protocols /etc/protocols
ln -s /qnx/etc/inetd.conf /etc/inetd.conf

ln -s /qnx/bin/login /bin/login
ln -s /qnx/usr/x86/usr/bin/ftpd /bin/ftpd
ln -s /qnx/usr/x86/usr/bin/telnetd /bin/telnetd
ln -s /qnx/usr/x86/usr/bin/inetd /bin/inetd

add this to /kojak/boot.sh :

/bin/inetd


create /etc/profile as:

export ABLPATH_PATH=/nto/photon/translations
export CMD_INT=/bin/sh
export FLASHMEMORYLIMIT=1024
export FLASHSTREAMONLY=0
export LD_LIBRARY_PATH=/kojak:/proc/boot:/nto/lib:/nto/photon/lib:/nto/photon/dll:/real/plugins:/real/common:/kojak
export PATH=/proc/boot:/nto/bin:/nto/photon/bin:/kojak:/nto/voyager/x86/bin:/real/bin:/tmp:/kojak/CGI:/kojak/CGI
#TERM=qansi-m
export PATH TMPDIR=${TMPDIR:-/tmp} PROCESSOR HOSTNAME SYSNAME


As zooloo said in another post, try runing login first to make sure everything is good. if that works try runing:

telnetd -debug -Q

then telnet to your audrey's ip.. if that works then reboot! :)

This is not as detailed as I am going to post later but this should get you thinking. You may have to link some libraries.

jay

09-04-2001 19:34:55

New MessageRE:telnetd/inetd working! (modified 0 times) scooter
Profile
jayklm -

Is your PC running WINxx with a qnx directory on it or are you actually running QNX6.1??

By the way just got the nym, duh (JKLM)

09-05-2001 11:57:34

New MessageRE:telnetd/inetd working! (modified 2 times) jayklm
Profile
scooter:

My PC is WinXP with QNX6.1 installed (so I could copy all the files over to a windows fs).

jay

09-05-2001 12:14:08

New MessageRE:telnetd/inetd working! (modified 0 times) rseidl
Profile
Slightly off topic, hope you will forgive me.

If I understand correctly, I could mount a windows shared folder (called say "audreybackup"), mount it using fs-cifs a la
http://www.canoma.com/audrey/mp3.html#4
and then cp all my audrey files into that windows dir, effectively creating a complete backup of my Audrey ?

Cool !

Uhm...whats the correct cp command to recursively copy all of the audrey files from which device and how big is that all going to be (32 Mb for the flashcard ?)

Thank you
Robert
http://www.canoma.com/audrey


PS: jayklm, need your help with mp3 as plugins (doesnt work yet, see step 5 on page above)

09-05-2001 14:02:05

New MessageRE:telnetd/inetd working! (modified 0 times) BongHitCharlie
Profile
Say, do you think you could wrap up a tarball with the C library, login, and telnetd binaries and /etc files, ready to FTP to an Audrey and drop into place?

-Bong

09-08-2001 16:44:50

New MessageRE:telnetd/inetd working! (modified 0 times) nata2
Profile
I will post it to audreyhacking.com/files if someone emails them to me
harper at nata2.org

-harper


--
http://www.audreyhacking.com
09-08-2001 17:43:00

New MessageRE:telnetd/inetd working! (modified 0 times) BongHitCharlie
Profile
Couldn't wait, so I made a tarball of telnetd, ftpd, inetd, and passwd, along with the anciallary files and emailed it off to harper. I used QNX 6.1 binaries, which means my tarball includes libc.so.2. I'd much rather go with the 6.0 binaries and use the existing libc.so.1, but I don't have a source for 6.0 binaries.

-Bong

09-08-2001 19:59:06

New MessageRE:telnetd/inetd working! (modified 0 times) fperkins
Profile
Have these files been posted on audreyhacking?

Im actually unclear on how to get this hack to work. The files actually should reside on a share that is *not* on the Audrey? Thus, you just symbolic link to the files from the Audrey?

If someone has the files that I'll need, could you email to me [or tell me where they are on audreyhacking.com/files] My email is frank at fperkins.com

TIA

BTW, Finally got my USB Ethernet adapter from heloweb and upgraded to get a pterm shell. Cool!

09-12-2001 13:35:14

New MessageRE:telnetd/inetd working! (modified 0 times) dino
Profile
jay-

do you know where i could get a copy of the 6.0 iso? i have the 6.1 but from what keith721 has told me (and the consensus of what im hearing) 6.0 will be a better environment to develop in and get stuff other people are making.

09-12-2001 16:57:32

New MessageRE:telnetd/inetd working! (modified 0 times) friedchip
Profile
Is it possible to have telnetd and ftpd running on audrey without having to create symbolic links to another qnx box?
09-15-2001 16:13:44

New MessageRE:telnetd/inetd working! (modified 0 times) BongHitCharlie
Profile
Harper seems to have fallen off the planet, and never did post the tarball I mailed him to the audreyhacking site.

You can find my tarball here:

http://rick.8k.com

-Bong

09-15-2001 21:38:09

New MessageRE:telnetd/inetd working! (modified 0 times) Andrel
Profile
BongHitCharlie,

I installed your tar ball, and ftpd is working like a charm. But telnetd works just from the audrey itself, not from another machine ... Any idea ?

Thanks,

André

09-16-2001 00:35:44

New MessageRE:telnetd/inetd working! (modified 0 times) BongHitCharlie
Profile
I need a better "bug report" from you. Here is
what you should see when telneting to the Audrey:


linuxbox$ telnet 192.168.1.102
Trying 192.168.1.102...
Connected to lap (192.168.1.102).
Escape character is '^]'.
(sometimes a long delay here, no idea why)
login:

09-16-2001 04:27:38

New MessageRE:telnetd/inetd working! (modified 0 times) jayklm
Profile
just for fun, on your audrey add your linuxbox's ip to the hosts file.
09-16-2001 08:22:14

New MessageRE:telnetd/inetd working! (modified 0 times) Andrel
Profile
I agree,my "bug report" was a little bit thin

When I telnet from my windows box, I'm just getting a blank shell window, with the cursor on top, waiting ... On my Audrey, the last lines of a "ps" are:

in.telnetd -Q
login -h 192.168.0.1 -p

Il a add my windows box to my hosts file, it just replace "192.168.0.1" by "P-4", wich is the name of my window box.

This is a probably better "bug report"

André

09-16-2001 08:38:02

New MessageRE:telnetd/inetd working! (modified 0 times) jayklm
Profile
Ok this is what you need to do. download this file: http://167.206.153.222/audrey/termfix.zip unzip it. then un-tar the file at the root level on the audrey.
example:
# pwd
/
# tar xfv /mount/termfix.tar

This will create:
/usr/etc
/uer/etc/terminfo/a
/uer/etc/terminfo/q
/uer/etc/terminfo/t
/uer/etc/terminfo/terminfo.src
/uer/etc/terminfo/v
/uer/etc/terminfo/x
/etc/inetd.conf
/bin/termdef

I hacked termdef with a hex editor to change the path of /usr/lib/termin to /usr/etc/terminfo and i in the directory /usr/etc/terminfo/a i moved ansi to ansi.old and copyed vt100 in it's place. also removed ansi from /usr/etc/terminfo/terminfo.src and added ansi as a type of vt100. anyway the "login" prompt shows up quick now. have fun!

jay

09-16-2001 10:50:33

New MessageRE:telnetd/inetd working! (modified 0 times) Andrel
Profile
Well ..

it did not correct the situation ;-(

André

09-16-2001 11:10:25

New MessageRE:telnetd/inetd working! (modified 0 times) jayklm
Profile
what do you mean? what happends when you telnet to your audrey? the connection drops? or you get nothing? did you try hitting return a few times?
09-16-2001 11:17:47

New MessageRE:telnetd/inetd working! (modified 0 times) Andrel
Profile
I rebooted, tested ... and ftpd not telnetd were working, either from my windows box or the Audrey !!

I had to change the content of inetd.conf because it was trying to start telnetd and ftpd from /mount/bin instead of /bin

Theses corrections made, telnetd is still not working from my windows box ...

André


André

09-16-2001 11:37:59

New MessageRE:telnetd/inetd working! (modified 0 times) Veteran
Profile
It appears that this vi will work off of /etc/termcap.
Since I'm just editing through telnet, I copied the
vt100 entry from my freebsd box. Here's the complete
contents of my Audrey's /etc/termcap:

vt100|dec-vt100|vt100-am|vt100am|dec vt100:\
:do=2\E[B:co#80:li#24:cl=50\E[H\E[J:sf=2*\ED:\
:le=^H:bs:am:cm=5\E[%i%d;%dH:nd=2\E[C:up=2\E[A:\
:ce=3\E[K:cd=50\E[J:so=2\E[7m:se=2\E[m:us=2\E[4m:ue=2\E[m:\
:md=2\E[1m:mr=2\E[7m:mb=2\E[5m:me=2\E[m:\
:is=\E>\E[?1;3;4;5l\E[?7;8h\E[1;24r\E[24;1H:\
:if=/usr/share/tabset/vt100:nw=2\EE:ho=\E[H:\
:as=2\E(0:ae=2\E(B:ac=llmmkkjjuuttvvwwqqxxnnpprr``aa:\
:rs=\E>\E[?1;3;4;5l\E[?7;8h:ks=\E[?1h\E=:ke=\E[?1l\E>:\
:ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:kb=\177:\
:k0=\EOy:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:k5=\EOt:\
:k6=EOu:k7=\EOv:k8=\EOl:k9=\EOw:k;=\EOx:@8=\EOM:\
:K1=\EOq:K2=\EOr:K3=\EOs:K4=\EOp:K5=\EOn:pt:sr=2*\EM:vt#3:xn:\
:sc=2\E7:rc=2\E8:cs=5\E[%i%d;%dr:UP=2\E[%dA:DO=2\E[%dB:RI=2\E[%dC:\
:LE=2\E[%dD:ct=2\E[3g:st=2\EH:ta=^I:ms:bl=^G:cr=^M:eo:it#8:ut:\
:RA=\E[?7l:SA=\E[?7h:

09-16-2001 12:15:57

New MessageRE:telnetd/inetd working! (modified 0 times) jayklm
Profile
with your windows box try this:

telnet -t vt100 audreys_addr

09-16-2001 12:27:23

New MessageRE:telnetd/inetd working! (modified 0 times) Andrel
Profile
Mmm... We are talking about Windows 2000's telnet here ... Nothing fancy, no options .. It's still Microsoft you know

I tried another telnet client, and it works. So it seems it is the Windows telnet that Audrey does not like.

André

09-16-2001 15:57:44

New MessageRE:telnetd/inetd working! (modified 0 times) jayklm
Profile
was talking winXP. but I thought the -t vt100 will still send a termtype of vt100. what exactly is it doing for you?

ok you go to start-->run-->cmd
c:\winnt>telnet 192.168.0.100
screen clsears and a "_" cursor apears? hit enter a few times. do you get anything? or do you get:

Connecting To 192.168.0.100...Could not open connection to the host, on port 23.
No connection could be made because the target machine actively refused it.

what kinda message do you get?

09-16-2001 16:09:37

New MessageRE:telnetd/inetd working! (modified 0 times) Veteran
Profile
With some useful pointers, I've managed to do this with
the binaries from qnx6.0 (jayklm used qnx6.1). The biggest
trick is that the ldqnx.so.1 (aka libc.so.1) isn't the same
on the Audrey as it is on the release. Since this is the
core shared library for all binaries on the Audrey, replacing
it carries some risk. Now that I've done it, my machine still
seems to run fine, and others have said it is safe. If you
want to do it, make sure you have a good backup CF.

The other change I had to make was to make sure that inetd.conf
contained the correct paths to telnetd and ftpd. Also, see my
above note about termcap files. I'll keep an eye on the thread
if anyone has any questions.

09-16-2001 16:52:30

New MessageRE:telnetd/inetd working! (modified 0 times) friedchip
Profile
I,too, have the same problem when using a W2K workstation. I can telnet and ftp to the audrey from a W98 box as well as from another Qnx box without problems. But on W2K just a blank window, by using 'telnet -t VT100 audrey_ip' I see the "unable to connect..." message.
09-16-2001 17:47:34

New MessageRE:telnetd/inetd working! (modified 0 times) Andrel
Profile
I have a blank windows, a cursor, and even if I type enter nothing happens ..

André

09-16-2001 18:23:43

New MessageRE:telnetd/inetd working! (modified 0 times) BongHitCharlie
Profile
Aha, so its the Windows 2K client you are having trouble with.

My advice would be to use the other telnet client you have. The reason is twofold:
First, because why argue with success?

Second, the Windows telnet client (at least up thru W98) doesn't really emulate a VT100. A real VT100 will not advance to the next line until the 81st character is received. But the windows telnet client advances on the 80th character. This causes all kinds of trouble with "vi" if you try to use a stock "vt100" termcap entry. Third party telnet programs tend to get the VT100 emulation right.

-Bong

BTW, I reported this issue with telnet to Microsoft back when Windows 3.1 ruled the world. But, according to Gates, Windows doesn't have any bugs.

09-16-2001 18:24:08

New MessageRE:telnetd/inetd working! (modified 0 times) stephen18
Profile
i installed the telnetftp tar and the termfix tar.

telnetd -debug -Q
bind: Address already in use
what else to i need to config?
tghanks\

09-20-2001 13:13:58

New MessageRE:telnetd/inetd working! (modified 0 times) stepper
Profile | Email
Hey stephen18, it sounds like you are already running inetd. inetd will block on the telnet port, so you need to "slay inetd" and then try the telnetd command. Or maybe you are already running telnetd and don't know it. do a "slay telnetd" too to be safe, then try running telnetd -debug -Q again.
09-20-2001 15:55:13

New MessageRE:telnetd/inetd working! (modified 0 times) stephen18
Profile
everything seams to be installed in place. but i need a little more help.

with telnetd -debug -Q nothing happedns win2k cant telnet in.

what other settings do i need.

thanks again

09-21-2001 08:57:35

New MessageRE:telnetd/inetd working! (modified 0 times) jayklm
Profile
when you say "nothing happends" what do you see? does the shell give you a #? or just sits there? and when you telnet in to your audrey do you just get a cursor blinking? or does it disconnect? if it does not disconnect hit return a few times do you get a login prompt? disconnects?

are you using qnx 6.0 or 6.1

jay

09-21-2001 19:00:59

New MessageRE:telnetd/inetd working! (modified 0 times) stephen18
Profile
the win2k cant connect and the audry sits. i dont get the # back
09-21-2001 19:47:45

New MessageRE:telnetd/inetd working! (modified 0 times) Andrel
Profile
This is a bug with Win2k's telnet client that is not reporting properly what it emulates.

Get another telnet client (from download.com, per example), and it should work.

André

09-21-2001 20:19:44

New MessageRE:telnetd/inetd working! (modified 0 times) alinuxguru
Profile
BongHitCharlie,

I am unable to symbolically link /usr/lib/ldqnx.so.2 to the /nto/lib. My /usr/lib directory is read-only. So, how do i remount the directory read-write?

09-21-2001 21:16:41

New MessageRE:telnetd/inetd working! (modified 0 times) jayklm
Profile
you have to use -sP so do this in you boot.sh:

ln -sP /nto/lib/ldqnx.so.2 /usr/lib/ldqnx.so.2

09-22-2001 07:38:47

New MessageRE:telnetd/inetd working! (modified 0 times) drg012
Profile
I thought I'd add what I needed to do to be able to telnet into QNX...

When I first tried, it "hung" like described above, but eventually completed. I added entries for my other machines into the /etc/hosts and the problem went away. I think the telnet daemon was trying to do a reverse DNS lookup, and since my machines aren't publicly visible, telnetd was waiting for DNS timeouts...

09-24-2001 10:27:00

New MessageRE:telnetd/inetd working! (modified 0 times) adam714
Profile
i'm lost on this inetd thing. FTP works fine now. I don't understand the relation between ftp and inetd. I ftp'd and extracted inetd.tar as instructed by jayklm. i check profile under /etc but what do i do now? i tried running telnetd -debug -Q but it says q is not a parameter.

Please help me get this to work. i really want to be able to play from my desk. i am getting tired of running into the kitchen every 5 seconds.

12-26-2001 20:16:27

New MessageRE:telnetd/inetd working! (modified 0 times) hw_irq
Profile
Here are all the files and instructions that you need to make ftpd and telnetd work on Audrey using QNX 6.0 libraries without the need to map to other network drives:

Start a terminal window with root access (by starting shell from "Audrey options" - see Audrey Options button hack)

FTP the following files to /etc directory:
ls -l inetd.conf passwd profile group termcap services shadow protocols
-rw-r--r-- 1 root root 14 Oct 05 16:07 group
-rw-r--r-- 1 root root 245 Oct 05 16:07 inetd.conf
-rw-r--r-- 1 root root 32 Oct 05 16:07 passwd
-rw-r--r-- 1 root root 486 Oct 05 16:07 profile
-rw-r--r-- 1 root root 618 Oct 05 16:08 protocols
-rw-r--r-- 1 root root 29 Oct 05 16:08 services
-rw------- 1 root root 25 Oct 06 23:47 shadow
-rw-r--r-- 1 root root 6749 Oct 06 23:20 termcap

Change permissions on the files:
chmod go-w inetd.conf passwd profile group termcap services shadow protocols
chmod go-r shadow

FTP the following files to /bin directory:
-rwxrwxrwx 1 root root 41888 Oct 05 15:25 ftpd
-rwxr-xr-x 1 root root 15332 Oct 05 15:25 inetd
-rwxrwxrwx 1 root root 11912 Oct 05 15:29 login
-rwxrwxrwx 1 root root 2528 Oct 05 15:29 logout
-rwxrwxrwx 1 root root 16588 Oct 05 22:23 passwd
-rwxrwxrwx 1 root root 42876 Oct 05 15:25 telnetd

Change permissions on the files:
chmod +x ftpd inetd login logout passwd telnetd

FTP the following files to /nto/lib directory:
-rwxr-xr-x 1 root root 344044 Oct 06 14:17 libc.so.1
Change permission on the file:
chmod +x libc.so.1

Update the following file in the /kojak directory:
-rw-rw-rw- 1 500 500 2066 Jun 21 2000 boot.sh
by adding the following three lines and commenting out the "channel waiting for update lines"
IMPORTANT: please make sure that you do not make a mistake when adding those lines. Audrey may be unhappy after you reboot it if you incorrectly link the library. The libc.so.1 file must be saved in the /nto/lib directory as described above prior to execution of the lines below.


# Start inetd to allow FTP and Telnet
ln -sPf /nto/lib/libc.so.1 /usr/lib/ldqnx.so.1
/bin/inetd


Run "login" to see if everything works.

If it is ok, run:

telnetd -debug -Q

and then telnet to audrey's ip.

If that works then restart Audrey by typing shutdown

After Audrey reboots, you will be able to telnet and ftp tp Audrey. The default username is root and password is root. Don't forget to change the password.

All of the files required above can be downloaded from

http://www.duke.edu/~hep/audrey/Audrey_telnetd_and_ftpd.zip

12-26-2001 20:48:34

New MessageRE:telnetd/inetd working! (modified 0 times) maneesh
Profile
Ok... I got telnet working... Scraped the cmd version of telnet from W2k and decided to use hyperterminal - which works... Go figure.

However, after I login, I can't do anything other than "cd", "pwd", and "time". Can't even do an ls. Get the error message "sh: ls: not found" What gives? Do I need anything special other than the profile in etc?

Any help is greatly appreciated... I've come so far with this...

Thanks,
Maneesh

12-26-2001 23:27:20

New MessageRE:telnetd/inetd working! (modified 1 times) adam714
Profile
hw_irq,

Thank you for the details instructions. i followed them to the letter. unfortunately it still isn't working. when i try to telnet from my XP box, i get the following:


telnetd: /bin/login: No such file or directory
.

Connection to host lost
_

the only problems i encountered during the procedure were as follows:

unable to ftp login and termcap but the files are there and i was able to chmod them
when i run login, pterm just quits
when i run telnet -debug -Q, it says Q is an illegal function
after reboot i did a ps and inetd does't seem to be starting on boot. i started inetd manually

HHEEELLLLPPPPP!!!!!!!!!!!!!!!!!!!!!!!!

12-27-2001 19:08:53

New MessageRE:telnetd/inetd working! (modified 0 times) hw_irq
Profile
You will need to replace the login file with the one that is in "my zip" file. You can FTP it using a different name e.g. login1 and then in Audrey shell type:

cd /bin
mv login login.backup
mv login1 login
chmod +x login

ls -l login

Make sure it is the same as:
-rwxrwxrwx 1 root root 11912 Oct 05 15:29 login

Make sure that the library is linked (if you didn't add it to /kojak/boot.sh)
ln -sPf /nto/lib/libc.so.1 /usr/lib/ldqnx.so.1
Start inet deamon:
/bin/inetd &

and try telneting to Audrey...

Also, compare the file sizes of the files in the zip with the files that are on Audrey (make sure all of them were FTPed using "bin" mode).

12-27-2001 22:12:55

New MessageRE:telnetd/inetd working! (modified 0 times) adam714
Profile
ok. followed the instructions from hw_irq. now when i telnet in i get:

unknown symbol: login
Could not resolve all symbols

12-28-2001 17:38:49

New MessageRE:telnetd/inetd working! (modified 0 times) KJ_Jazz
Profile
I read all of this with interest - thinking that I had seen all the pitfalls, but not so lucky.

I can't create the symlink, I get a permission denied message.
If I attempt to start inetd, it runs.
"Login" kills my pterm shell.
Running telnetd -debug -Q gives me a "permission denied" message.

After a hard power cycle - the /usr/lib directory appears to have 2 symlinks named ldqnx.so.1 pointing in two different directions. (I assume one is the original, the second is the one created from boot.sh after the hard start, although I can't really tell a whole lot because pterm doesn't seem to wrap very well.) Anyway, I too was raised on MicroSlop, but after my Solaris, BSD and Linux playing around, I was pretty sure that having two symlinks in the same directory with the same name was, umm, bad - so I'm sure this isn't the case and I must be mistaken. Any thoughts??

12-31-2001 00:12:26

New MessageRE:telnetd/inetd working! (modified 0 times) KJ_Jazz
Profile
BTW I figured out the "permission denied", I apparently don't have execute permissions for LN or RM, Hmmm, maybe I should try actually getting root before I get too far, huh??

Thanks to everyone who has posted here. Very enlightening.

12-31-2001 00:57:30

New MessageRE:telnetd/inetd working! (modified 0 times) adam714
Profile
i had the same problem of the login killing pterm. the problem is that the line "ln -sPf /nto/lib/libc.so.1 /usr/lib/ldqnx.so.1" n the boot.sh is not running. i have posted a message but haven't found a resolution yet. if i run the line manually from pterm then run inetd. everything works great
12-31-2001 06:56:13

New MessageRE:telnetd/inetd working! (modified 0 times) KJ_Jazz
Profile
Well I hope someone replies soon. I think I know what your problem is - check the ownership of the boot.sh file - if like me you copied the file down before having actual root access (via the icon in the actions tray which runs pterm as root) instead of the pterm window via the browser, then I think the boot.sh file cannot execute the symlink the way it is supposed to. For you, I would suggest either changin ownership of the file (I didn't check to see if chown works on audrey or not) or simple re-ftp the file down as root and see if that works. I'm just guessing, which is why I wish someone would confirm that.

My problem is even worse I'm afraid. In trying to figure out the above, I think I have killed the original symlink that we are replacing in the boot.sh file - as such audrey is dead and won't boot at all. I get the boot splash and then nothing. Via the null modem - after the hardware is initiated, I get some unknown symbol errors and then a whole bunch of file not found ones. What I'm guessing is that I somehow managed to remove the original symlink to libc - and without it I'm not able to mount.

So, unless there is some way to get CLI via null modem, I may have to beg and see if anyone would be willing to swap CF cards with me. Unfortunately, I hadn't made a CF image yet - I wanted to do it via telnet, not on that little keyboard. So . . . I have a brand new 32Mb CF card sitting here that I would be happy to send to someone in exchange for one with a boot image - hint, hint, hint.

12-31-2001 13:47:06

New MessageRE:telnetd/inetd working! (modified 0 times) adam714
Profile
sounds like it may do the trick but how so i check and change ownership, i don't seem to have chown
12-31-2001 14:36:51

New MessageRE:telnetd/inetd working! (modified 0 times) hw_irq
Profile
Post the results for the following commands and we'll see if we can figure out your problem:

cd /etc
ls -l inetd.conf passwd profile group termcap services shadow protocols
cd /bin
ls -l ftpd inetd login logout passwd telnetd
ls -l /nto/lib/libc.so.1
ls -l /kojak/boot.sh
cat /kojak/boot.sh
cat /kojak/go


Also, where did you get your image? Did you update it via the Marimba update servers or install it via CF?

12-31-2001 16:51:07

New MessageRE:telnetd/inetd working! (modified 0 times) maneesh
Profile
All:

Are people experiencing problems after telneting into their Audrey? I can't execute any commands apart from "cd" and "pwd". When I do an "ls", I get "ksh: ls: not found".

Has anyone run into this before?

Please help.

Thanks.

01-01-2002 08:34:21

New MessageRE:telnetd/inetd working! (modified 0 times) hw_irq
Profile
I do not have any problems that you are describing.
01-01-2002 10:15:46

New MessageRE:telnetd/inetd working! (modified 0 times) jukebox
Profile
I have telnetd and ftpd setup with inetd and that works fine. How can I add nfsd? I have added the information in inetd.conf and services but no luck. I wonder about the wording in inetd.conf. I used stream too for nfs. Maybe this should be something else.
Any ideas?

Jukebox

01-02-2002 21:38:23

New MessageRE:telnetd/inetd working! (modified 0 times) maneesh
Profile
I finally got my telnetd to work properly. I modified my /etc/profile to remove the TMPDIR PATH and uncomment the TERM=qansi-m. I also modified /bin/sh to /bin/ksh - don't know if this made a difference or not. Here my profile:

# cd /etc
# more profile
export ABLPATH_PATH=/nto/photon/translations
export CMD_INT=/bin/ksh
export FLASHMEMORYLIMIT=1024
export FLASHSTREAMONLY=0
export LD_LIBRARY_PATH=/kojak:/proc/boot:/nto/lib:/nto/photon/lib:/nto/photon/dl
l:/real/plugins:/real/common:/kojak
export PATH=/proc/boot:/nto/bin:/nto/photon/bin:/nto/voyager/x86/bin:/real/bin:/
tmp:/kojak/CGI:/kojak/CGI
export TERM=qansi-m
#export TERM=VT100
#export PATH=TMPDIR=${TMPDIR:-/tmp} PROCESSOR HOSTNAME SYSNAME

#
------------------------------------------------------
I'll be posting the details here and at www.audreyhacking.com.

01-02-2002 21:45:03

New MessageRE:telnetd/inetd working! (?!) (modified 0 times) tel0p
Profile
OK, So I did everything according to instructions provided by hw_irq ... After the install/chmod'ing of all the files, including cp'ing a backup of my /kojak/boot.sh to boot.sh.bu and FTP'ing down his version I do this:

ln -sPf /nto/lib/libc.so.1 /usr/lib/ldqnx.so.1
/bin/inetd

Blam, I'm able to login. Here's the clincher: I'm not able to login after reboot... A look at my processes tells me that inetd isn't running. A deeper look into my /usr/lib directory shows TWO links for libc.so.1 after my reboot:

29 Mar 2001 ldqnx.so.1 -> /proc/boot/libc/so.1
&
21 Mar 2002 ldqnx.so.1 -> /nto/lib/libc.so.1

So I recopy back my boot.sh.bu becuase I am assuming that the first link is overiding the second (created by my modified boot.sh)... if I manually make the link from shell and run /etc/inetd then no prob, I can telnet in. it's just not working thru this boot.sh modification method... anyone else experiencing this? Workarounds? TIA! tel0p

03-21-2002 13:30:23

New MessageRE:telnetd/inetd working! (modified 0 times) hw_irq
Profile
There are two possible reasons for that:
1. Your boot.sh file does not start at the start up
This is the start up files order IPL --> /proc/boot/.script --> /kojak/go --> /kojak/boot.sh

2. You have an invalid character / line ...in the boot.sh file. I thought I saw a message about this very issue on this board. Try using boot.sh that is included in my zip file. That should eliminate this issue.

3. I just thought I'd add #3 for fun ;) and to cover other options....

Let us know what you find out.

03-21-2002 23:10:12

New MessageRE:telnetd/inetd working! (modified 0 times) tel0p
Profile
I know the boot.sh is loading (I used yours) because the new sym link is showing up.. So I am curious as to why it is getting overridden? Or not running the inetd? hmmmm still stumped
03-22-2002 14:36:59

New MessageRE:telnetd/inetd working! (modified 0 times) hw_irq
Profile
Did you check "/kojak/go: file to see if it includes the line that starts boot.sh?

Also, which image do you have loaded on Audrey? The original one upgraded via hacked Marimba or did you flash Audrey with one of the downloadable images?

03-23-2002 17:58:36

New MessageRE:telnetd/inetd working! (modified 0 times) tel0p
Profile
Yes, the /kojak/go file has:
sh boot.sh
at the third to the last line.

And yes, I did the Audrey upgrade via Marimba hack upgrade (DNS trick). Not CF. Anyideas? Thanks again.

03-23-2002 21:55:40

New MessageRE:telnetd/inetd working! (modified 0 times) hw_irq
Profile
Hmmm, I am not sure why boot.sh doesn't start "inetd and ln" line on your Audrey. Anyone else have any suggestions?
03-24-2002 01:03:19

New MessageRE:telnetd/inetd working! (modified 0 times) lars69
Profile | Email
I am using jukebox4-0 which has inetd/telnetd/ftpd working. However, I am unable to change my password.

I log into audrey using telnet
type 'passwd'
put in the new password twice
no error message, just a prompt...
The next time I try to log in, the new password does not work, but root does.

Is there something I am missing? Could this be a file permission issue?

04-20-2002 09:35:20

New MessageRE:telnetd/inetd working! (modified 0 times) jukebox
Profile
And I used hw_irq's excellent hack to implement inetd etc. in that image and cannot change the password either.

jukebox


http://www.prins.net/audrey/index.html
04-20-2002 10:08:18

Reply to Thread | Printer |
All times are PSTPowered by UltraBoard v1.62



Copyright © 2000, Netmake Inc. All Rights Reserved.
See Terms and Conditions for more information.




i-opener opener laptop notebook computer help drivers dll free windows dos repair fix linux mac macintosh 2000 95 98 nt pc configure hardware software sound video netscape explorer network networking lan wan software cmos fat bios printer card mouse modem ide scsi cd rom controllers scanner tape hard drive cgi scripts source code mp3