I-Appliance BBS
The Official Source for Internet Appliance Upgrades and Mods

Click Here!
BBS Main List | Sign In | Sign Up | Search | Help | Linux-Hacker.netReply to Thread | Printer |

Home / Other I-Appliances / 3Com Audrey
inetd/telnetd/ftpd (again)
what's new?

New Messageinetd/telnetd/ftpd (again) (modified 0 times) mindbum
Profile | Email
ok...

inetd is running (at least it shows up in ps/psin)...

login works...

when i "telnetd -debug -Q" i can connect via telnet
from both the audrey (telnet 127.0.0.1) and from my
win2k box (telnet 192.168.0.100), but when i exit,
telnetd stops and i have to "telnetd -debug -Q" again
to reconnect...

ftpd doesn't work at all...

anyone got inetd to spawn telnetd and ftpd like it's
'sposed to do?

here's my "inetd.conf":
-----------------------
# Internet services syntax:
# <service_name> <socket_type> <proto> <flags> <user> <server_pathname> <args>
ftp stream tcp nowait root nto/bin/ftpd in.ftpd
telnet stream tcp nowait root nto/bin/telnetd in.telnetd -Q
=======================

and here's "services":
----------------------
ftp 21/tcp
telnet 23/tcp
http 80/tcp
======================

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

and here's "passwd":
---------------------
root::0:0:Superuser:/:/bin/ksh
ftp:x:14:80:FTP User:/:
mindbum::100:100:mindbum:/:/bin/ksh
=====================

any help would be appreciated!


mindbum
09-30-2001 00:35:49

New MessageRE:inetd/telnetd/ftpd (again) (modified 0 times) jayklm
Profile
If you got telnet to work using

telnetd -debug -Q

You are in good shape. I got ftp working after I got inetd working. So you need to put inetd in to /nto/bin and you need a inetd.conf in /etc. here is mine:
# more inetd.conf
# @(#)inetd.conf 1.23 90/01/03 SMI
#
#time stream tcp nowait root internal
#time dgram udp wait root internal
ftp stream tcp nowait root /mount/bin/ftpd in.ftpd -l
telnet stream tcp nowait root /mount/bin/telnetd in.telnetd -Q

then to start inetd at boot up, place inetd in to your boot.sh script.

Also I found it useful to have the ftp user in the root group. here is my passwd file:
root::0:0:Superuser:/:/bin/ksh
nobody:x:500:500:Nobody:/:/bin/ksh
ftp:x:501:0:FTP User:/:


give that a try :)

jay

09-30-2001 06:23:03

New MessageRE:inetd/telnetd/ftpd (again) (modified 0 times) Hex1
Profile
Once you guys get this thing running for sure would you mind summarizing the files and maybe creating a tar or zip for us not so qnx savy users?

Also, I assume that inetd is a webserver, and if so what is that advantage of using that over the sligner webserver that is built in?

I would appriciate it

*Hex

09-30-2001 09:16:59

New MessageRE:inetd/telnetd/ftpd (again) (modified 0 times) jayklm
Profile
inetd is not a web server. it keeps telnetd and ftpd running. here is my inetd/telnet files:
http://167.206.153.222/audrey/inetd.tar
to extract:

cd /
tar xfv inetd.tar

jay

09-30-2001 09:46:06

New MessageRE:inetd/telnetd/ftpd (again) (modified 0 times) mindbum
Profile | Email
jayklm:

thanks again for your feedback!

here's my boot.sh:

# MODIFIED boot.sh
ln -sPf /nto/lib/libc.so.1 /usr/lib/ldqnx.so.1
/nto/bin/inetd
sleep 3
/nto/bin/fs-cifs -a //server:192.168.0.2:/shared /share username password

the only (significant?) differences i can see between what you've done (which
works, aparently) and what i've done (which doesn't) are that you have "Nobody"
in your "passwd" file, your FTP User has a different UID and GID than mine, and
that "-l" after the "in.ftpd" (it IS a lower-case L, right?) in "inetd.conf".

what's the "-l" do?

as i mentioned in a previous post, i'm trying to stick with 6.0 libs and bins,
and i know that you are using 6.1 stuff. Veteran claims to have gotten inetd
running using 6.0 libs/bins... i wonder what he has done differently?

(any feedback, Veteran?)

Hex1 (and ALL):

i "backed up" my audrey right after the FINAL+SHELL update, and i have been using
that as a baseline for all my mods. i have been "replicating" the directory tree
on my /share for all the files i have altered or added, and i am writing a shell
script to actually make the modifications. in other words, i flash audrey back to
FINAL+SHELL ("virgin") status, copy the shell script to her, and run the script.

the script mounts my shared drive, removes unwanted files (so far only "/kojak/intro.swf"
and "/kojak/intro.html"), copies new files and modifications from the /share, sets
up links, compresses the added binaries (using duster's cmp script - thanks, duster!),
defrags memory and reboots audrey into...

"Audrey-II"! (remember Little Shop of Horrors? )

actually, what i'm trying to do here is come up with an easily reproducable process
for getting my audrey from the "baseline" ("FINAL+SHELL" or "virgin" image) to one
of (hopefully, eventually) a few configurations, each "tweaked" for a particular
function.

right now i'm working on Audrey-II... trying to pack as much functionality as i can
into her little RAM frame. once that's done (or her memory is full) i'll start
altering the original script, to create custom configurations.

of course, one configuration is just a tweaked version of what she was built for...
with all her OEM functionality intact.

another version is "network analyzer". i'm a one-man business (think "freelance
computer geek" ) and i've been doing a lot of networking stuff lately.
a "turn-key" network analyzer runs in the $thousands... i'm hoping i can
configure audrey to help for a few hundred.

i'd also like to try and strip out Datebook and AddressBook and Email, as well as
the built-in Browser, and supplant it with "standard" Photon apps, and maybe get
some development tools on her as well... sort of a mini-QNX workstation.

unfortunately for many of you, i have no interest in home automation or streaming
media or mpegs... so i'm not likely to build a custom script that will take your
audrey where YOU want her to be, but you can maybe "roll yer own" using my stuff
as a guide.

i'll post a copy of this configuration script below (as it looks right now).
it's LONG... sorry... i know this board loads a little slow, but hopefully
someone will benefit from this.

again, my thanks to jayklm and the other "gurus" who have contributed insights,
discoveries, suggestions, and offered specific assistance via this board, as
well as the webmasters and contributors of the other audrey hacking web sites...

you guys KNOW that your just "feeding my addiction", dontcha?

okay... here's that config script (work-in-progress):

# ================================================================================================
# SCRIPT FILE TO AUTOMATE AUDREY UPGRADING FROM VIRGINAUDREY IMAGE
# >>> STEP 1 of x <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
# ------------------------------------------------------------------------------------------------
# >>> FILES COPIED OR MODIFIED <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
# /config: BROWSER_AllowNewWindow, BROWSER_BackgroundColor,
# BROWSER_Use256Colors, rm-apps, startup-main,
# Timeserver0, Timeserver1, Timeserver2
# /data/XML: index.shtml, mindbum.gif
# /data/XML/Channels/.countertop/Template: background.gif, index.shtml
# /etc: group, hosts, inetd.conf, passwd, profile, services
# /kojak: boot.sh, go, SystemPanel.init (delete intro.html, intro.swf)
# /kojak/img/eng/ActionPalette: actionsmenu.gif, background.gif
# /kojak/img/eng/common: common_background.gif
# /kojak/img/eng/config: background_config.gif, pfm_button.gif, pfm_button_activated.gif,
# shutdown_button.gif, shutdown_button_activated.gif
# /nto/bin/: chown, cmp, find, ftpd, grep, inetd, login, logout, mv, passwd, su, telnetd,
# traceroute, use, vnc
# /nto/lib: libc.so.1 (for telnetd/ftpd/inetd compatibility)
# /nto/photon/bin: keyboard, ped, pfm, phcalc, psin
# /nto/photon/keyboard: en_US_101.kbd
# /nto/photon/lib: libph.so.1 (for pfm compatibility)
# ================================================================================================
# >>> BEGIN FROM ROOT <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
cd /
# >>> MOUNT WINDOWS SHARE <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
# ------------------------------------------------------------------------------------------------
# >>> *NOTE: FILES COPIED FROM THE WINDOWS SHARE RESULT IN FULL <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
# >>> (-rwxrwxrwx-) PERMISSIONS SO CHMOD IS UNNECESSARY TO MAKE <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
# >>> BINARIES AND SCRIPTS EXECUTABLE <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
# ------------------------------------------------------------------------------------------------
echo
echo "MOUNTING SHARE..."
echo
fs-cifs -a //phred:192.168.0.2:/qnx /share username password
sleep 3
# >>> COPY mv AND cmp <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
echo
echo "COPYING mv AND cmp..."
echo
cp /share/nto/bin/mv /nto/bin/mv
cp /share/nto/bin/cmp /nto/bin/cmp
# >>> MAKE cmp EXECUTABLE <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
chmod 777 /nto/bin/cmp
# >>> COMPRESS mv AND cmp<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
echo
echo "COMPRESSING mv AND cmp..."
echo
cd /.cmp/nto/bin
cmp mv
cmp cmp
# >>> COMPRESS fs-cifs (ADDED BEFORE VIRGINAUDREY FLASHED) <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
echo
echo "COMPRESSING fs-cifs..."
echo
cmp fs-cifs
# >>> RETURN TO ROOT <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
cd /
# >>> COPY FILES TO /config <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
echo
echo "COPYING FILES TO /config..."
echo
cp /share/config/BROWSER_AllowNewWindow /config/BROWSER_AllowNewWindow
cp /share/config/BROWSER_BackgroundColor /config/BROWSER_BackgroundColor
cp /share/config/BROWSER_Use256Colors /config/BROWSER_Use256Colors
cp /share/config/rm-apps /config/rm-apps
cp /share/config/startup-main /config/startup-main
cp /share/config/Timeserver0 /config/Timeserver0
cp /share/config/Timeserver1 /config/Timeserver1
cp /share/config/Timeserver2 /config/Timeserver2
# >>> COPY FILES TO /data/XML <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
echo
echo "COPYING FILES TO /data/XML..."
echo
cp /share/data/XML/index.shtml /data/XML/index.shtml
cp /share/data/XML/mindbum.gif /data/XML/mindbum.gif
# >>> COPY FILES TO /data/XML/Channels/.countertop/Template <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
echo
echo "COPYING FILES TO /data/XML/Channels/.countertop/Template..."
echo
cp /share/data/XML/Channels/.countertop/Template/index.shtml /data/XML/Channels/.countertop/Template/index.shtml
cp /share/data/XML/Channels/.countertop/Template/background.gif /data/XML/Channels/.countertop/Template/background.gif
# >>> COPY FILES TO /etc <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
echo
echo "COPYING FILES TO /etc..."
echo
cp /share/etc/group /etc/group
cp /share/etc/hosts /etc/hosts
cp /share/etc/inedt.conf /etc/inetd.conf
cp /share/etc/passwd /etc/passwd
cp /share/etc/profile /etc/profile
cp /share/etc/services /etc/services
# >>> REMOVE intro.html AND intro.swf <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
echo
echo "REMOVING intro.html AND intro.swf"
echo
rm /kojak/intro.html
rm /kojak/intro.swf
# >>> COPY FILES TO /kojak <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
echo
echo "COPYING FILES TO /kojak..."
echo
cp /share/kojak/boot.sh /kojak/boot.sh
cp /share/kojak/go /kojak/go
cp /share/kojak/SystemPanel.init /kojak/SystemPanel.init
# >>> COPY FILES TO /kojak/img/eng/ActionPalette <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
echo
echo "COPYING FILES TO /kojak/img/eng/ActionPalette..."
echo
cp /share/kojak/img/eng/ActionPalette/actionsmenu.gif /kojak/img/eng/ActionPalette/actionsmenu.gif
cp /share/kojak/img/eng/ActionPalette/background.gif /kojak/img/eng/ActionPalette/background.gif
# >>> COPY FILES TO /kojak/img/eng/common <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
echo
echo "COPYING FILES TO /kojak/img/eng/common..."
echo
cp /share/kojak/img/eng/common/common_background.gif /kojak/img/eng/common/common_background.gif
# >>> COPY FILES TO /kojak/img/eng/config <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
echo
echo "COPYING FILES TO /kojak/img/eng/config..."
echo
cp /share/kojak/img/eng/config/background_config.gif /kojak/img/eng/config/background_config.gif
cp /share/kojak/img/eng/config/background_config.gif /kojak/img/eng/config/background_config.gif
cp /share/kojak/img/eng/config/pfm_button.gif /kojak/img/eng/config/pfm_button.gif
cp /share/kojak/img/eng/config/pfm_button_activated.gif /kojak/img/eng/config/pfm_button_activated.gif
cp /share/kojak/img/eng/config/shutdown_button.gif /kojak/img/eng/config/shutdown_button.gif
cp /share/kojak/img/eng/config/shutdown_button_activated.gif /kojak/img/eng/config/shutdown_button_activated.gif
# >>> COPY FILES TO /nto/bin <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
echo
echo "COPYING FILES TO /nto/bin..."
echo
cp /share/nto/bin/chown /nto/bin/chown
cp /share/nto/bin/find /nto/bin/find
cp /share/nto/bin/ftpd /nto/bin/ftpd
cp /share/nto/bin/grep /nto/bin/grep
cp /share/nto/bin/inetd /nto/bin/inetd
cp /share/nto/bin/login /nto/bin/login
cp /share/nto/bin/logout /nto/bin/logout
cp /share/nto/bin/passwd /nto/bin/passwd
cp /share/nto/bin/su /nto/bin/su
cp /share/nto/bin/telnetd /nto/bin/telnetd
cp /share/nto/bin/traceroute /nto/bin/traceroute
cp /share/nto/bin/use /nto/bin/use
cp /share/nto/bin/vnc /nto/bin/vnc
# >>> COMPRESS FILES COPIED TO /nto/bin <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
echo
echo "COMPRESSING COPIED FILES..."
echo
cd /.cmp/nto/bin
cmp chown
cmp find
cmp ftpd
cmp grep
cmp inetd
cmp login
cmp logout
cmp passwd
cmp su
cmp telnetd
cmp traceroute
cmp use
cmp vnc
# >>> RETURN TO ROOT <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
cd /
# >>> COPY FILES TO /nto/photon/bin <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
echo
echo "COPYING FILES TO /nto/photon/bin..."
echo
cp /share/nto/photon/bin/keyboard /nto/photon/bin/keyboard
cp /share/nto/photon/bin/ped /nto/photon/bin/ped
cp /share/nto/photon/bin/pfm /nto/photon/bin/pfm
cp /share/nto/photon/bin/phcalc /nto/photon/bin/phcalc
cp /share/nto/photon/bin/psin /nto/photon/bin/psin
# >>> COMPRESS FILES COPIED TO /nto/bin <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
echo
echo "COMPRESSING COPIED FILES..."
echo
cd /.cmp/nto/photon/bin
cmp keyboard
cmp ped
cmp pfm
cmp phcalc
cmp psin
# >>> RETURN TO ROOT <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
cd /
# >>> COPY FILES TO /nto/photon/keyboard <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
echo
echo "COPYING FILES TO /nto/photon/keyboard..."
echo
cp /share/nto/photon/keyboard/en_US_101.kbd /nto/photon/keyboard/en_US_101.kbd
# >>> COPY libc.so.1 TO /nto/lib <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
echo
echo "COPYING libc.so.1 TO /nto/lib..."
echo
cp /share/nto/lib/libc.so.1 /nto/lib/libc.so.1
# >>> COMPRESS libc.so.1 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
echo
echo "COMPRESSING libc.so.1..."
echo
cd /.cmp/nto/lib
cmp libc.so.1
# >>> RETURN TO ROOT <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
cd /
# >>> REPLACE AND COMPRESS libph.so.1 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
echo
echo "REPLACING libph.so.1..."
echo
cp /share/nto/photon/lib/libph.so.1 /nto/photon/lib/libph.so.6
mv /nto/photon/lib/libph.so.6 /nto/photon/lib/libph.so.1
cd /.cmp/nto/photon/lib
echo
echo "COMPRESSING libph.so.1..."
echo
cmp libph.so.1
# >>> RETURN TO ROOT <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
cd /
# >>> DEFRAGMENT FLASH MEMORY <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
echo
echo "DEFRAGMENTING MEMORY..."
echo
MemDefrag
# >>> REBOOT (END STEP 1 of x) <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
echo
echo "REBOOTING IN 3 SECONDS..."
echo
sleep 3
shutdown
# ================================================================================================
# END OF SCRIPT FILE >>> STEP 1 of x <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
# ================================================================================================


mindbum
09-30-2001 10:38:59

New MessageRE:inetd/telnetd/ftpd (again) (modified 0 times) jayklm
Profile
I dont remeber what the -l does. I looked up ftpd on the qnx site.

As for sticking with 6.0 binaries, I dont know what the big deal in using 6.1 libs/binaries. :) I tried to get telnet to work with 6.0 bins with not too much luck. so I tried the 6.1 and got it working in 10 minutes. so I went the easy route. as for saving space, my audrey has about 63% used. that is less than what a virgin audry has. so copying a few binaries/librarys over to the audrey will not take up too much space. I am trying to get the audrey to use as much 6.1 libs and bins as possable. I know I cant make the audre 100% 6.1 but i want to get near to that :)

09-30-2001 10:53:13

New MessageRE:inetd/telnetd/ftpd (again) (modified 0 times) mindbum
Profile | Email
hmmmm...

now i notice, looking at jayklm's "inetd.tar", that i am
missing the "protocols" file... THAT'S prolly what's wrong!

i will report back after i get a chance to check it out.

thanks, again, jayklm!

as far as 6.0 vs 6.1... ain't no big deal either way, as
long as you can get audrey to do what you want. the 6.0
binaries were hard to find initially, so i understand why
you went the 6.1 route. i need audrey to work on networks
other than my own, so i "can't" rely on having libs and bins
referenced to a share. because of her rather severe memory
limitations, i chose early on to stick as much as possible
with 6.0 stuff, because i felt it would be wasteful of my
memory to have "duplicate" (so.1 and so.2) libs loaded,
and because i didn't want to have to worry about keeping
track of which app uses which lib, and where it was gonna
be looking to find it.

which brings up another point: i altered the path lines
in "profile" to move /kojak to the back, and /nto/lib
before /proc/boot... since i'd rather an app find/use the
libc.so.1 file in /nto/lib rather than the one in /proc/boot.

THAT shouldn't cause trouble... should it?

anyway, maybe my concerns about wasting memory and keeping
track of lib/app versions were for nothing, but, just as you
now have a significant amount of time invested in the 6.1 stuff,
and so aren't likely to go back to trying to use just 6.0, so do
i have a lot of time invested in trying to stick with 6.0, and
i'm not (yet?) ready to give up and start using 6.1 stuff.

your posts on your progress and findings and insights have been
invaluable to me... even if we are taking "different approaches"
towards similar ends.

i'll let you know if it works with a "protocols" file installed...

(DUH! :-P)

~ciao for now~


mindbum
09-30-2001 11:27:29

New MessageRE:inetd/telnetd/ftpd (again) (modified 0 times) mindbum
Profile | Email
BIG DUH! :-P

examine this line (from my handy-dandy configuration script) CAREFULLY:

cp /share/etc/inedt.conf /etc/inetd.conf

think inetd will run better with an /etc/inetd.conf installed?

still think protocols would be a good idea, too, huh?

hopefully we're close here....

bbiaf


mindbum
09-30-2001 12:11:28

New MessageRE:inetd/telnetd/ftpd (again) (modified 0 times) mindbum
Profile | Email
BINGO!

yep... inetd works MUCH better with "inetd.conf" and "protocols" installed!

hehe... thanks again for the assist, jayklm!


mindbum
09-30-2001 12:21:05

New MessageRE:inetd/telnetd/ftpd (again) (modified 0 times) davec
Profile
Instead of running a script, how about saving an entire ROM state to Hard disk? See:
http://www.AudreyHacking.com/modules.php?op=modload&name=Content&file=index&menu=1316&page_id=5

Also, what is the cmp command? Is it like flashlzo? I have been trying to use flashlzo to compress libraries and binaries but it seems to break them. Where do I get a copy of cmp?

Dave

09-30-2001 12:30:06

New MessageRE:inetd/telnetd/ftpd (again) (modified 0 times) jayklm
Profile
I remember reading a post somewhere here that the so.2 libs could replace the so.1 libs. Just like windows updated dll files. In other words remove the so.1 lib replacing it with the so.2 lib (doing a ln –s new.so.2 old.so.1) I will give this a try. I understand completely where you want the Audrey to be a standalone device. If someone is linking their mp3 directory then why not link the libs also. Any witch way you look at it to have the Audrey to be as standalone as possible is a good thing.

Using 6.0 libs/bins (I do have a working 6.0 ISO). The login would hang when I used 6.0’s inetd. Telnet/ftp is not good if it can’t be re-spawned. So I tried it with 6.1 and after linking all the libs it worked magically.

If you do get the 6.0 telnetd/ftpd/inetd to work I am sure you will let us all know. :)

09-30-2001 12:46:50

New MessageRE:inetd/telnetd/ftpd (again) (modified 0 times) mindbum
Profile | Email
davec:

duster posted his "cmp" script in
http://www.linux-hacker.net/cgi-bin/UltraBoard/UltraBoard.pl?Action=ShowPost&Board=3Com_Audrey&Post=385

you need to run it from the /.cmp directory containing the file you want to compress...

for simplicity i'll reprint it here (thanks to duster!):
========================================================
## Here is my cmp script
## Put this into a file and "chmod +x" it
## It does the process in a "safe" way
## Already compressed executables will
## not compress again.
cp $1 /tmp
flashlzo /tmp/$1
ls -l $1 /tmp/$1
mv /tmp/$1 c-$1
mv c-$1 $1
############
# Note that the file will end up having
# the same permissions but the ownership
# will change to the user you are running
# as. You will most likely want to run as
# root in order to make this work well.
========================================================

also, stepper used a slightly different approach,
which he posted to the same thread: (thanks, stepper!)
========================================================
echo "Compressing $1..."
mv $1 /tmp
flashlzo /tmp/$1
mv /tmp/$1 /.cmp$PWD
========================================================

it DOES make a significant difference... i have decided not
to try and compress anything that came on audrey's system, but
i am compressing all the binaries and libs i copy to her.

so far, no problem.

both of these scripts require that you have the "mv" utility
installed from the RTP, since it didn't come installed on audrey.

you can email me (click the little email link above my post) if
you need a copy of it.

as for the inetd-thing, i have been able to log in via telnet
multiple times... but "logout" doesn't work... neither does "su",
but that doesn't much matter, since you can login as root and
it doesn't require a password.

i can connect via ftp, but there i have to use a password.

i don't think root on the audrey HAS a password, by default,
but i copied my "passwd" file from my RTP install, and audrey
accepts my root password from the RTP installation in ftp.
so that's cool, too.

being a *nix newbie, i'm a little unclear about the relationship
between the "passwd" and "group" files... i copied "group" from
the RTP, but it only has one line in it, for root... and i'm not
even sure if copying it was necessary on the audrey.

as i said earlier, i'm trying to "load up" audrey first... get
as much functionality working as possible... THEN start pulling
stuff off and testing it to see what breaks what... what i NEED,
and what i can safely get rid of.

i almost have this inetd/telnetd/ftpd thing working, with (as
far as i can tell so far)only one glitch:

when i try to "vi" from a telnet session, i get a message about
"unrecognized TERM type"... which i understand because i have
the "#export TERM=qansi-m" line commented out in "profile".

"qansi-m" is in "/usr/lib/terminfo/q/" on the RTP... any idea
where i can put it, how i should reference it, what ancillary
files i need to make it functional... or even IF i should be
using that, or a different terminal type (and why)... and, if
so, how i should go about using the one i SHOULD be using (WHEW! )

once i get it all working, i will make it all available.

right now, all i have are the "virgin audrey" files posted at
my ftp site: ftp://ftp.mindbum.com/audrey/", but eventually
i will try to set up a small web site devoted to audrey, with
convenient links to stuff... or else i'll send it all to
nata2 or bazabba for inclusion at http://www.audreyhacking.com/
and/or cokeguy for The Unofficial Audrey Hack FAQ at
http://www.3rdmoon.com/crusso/audrey/

(and thanks to all you guys for supporting the active audrey
hacking community by maintaining these resources for us!)

and, jayklm, as for why i'm writing scripts to reconfigure
audrey, instead of just backing up specific configurations...
actually, i'm doing both, and eventually i'll have a few
CFs with flash image backups for each config. i'm using
the scripts to automate things, and to kind of document
what's been done and why. my initial script (the LONG one
posted earlier) will serve as a template for other configs,
and once i get each config "perfected" then i'll flash the
images to CF, and use the CFs to actally "change configurations".

you know, flash audrey into a network analyzer... take her to
setup or troubleshoot a network somewhere... then come home and
reflash her so i can do development work, or for general web
browsing and email, from the comfort of the living room.

my primary system has multiple personalities, too... will boot
up in win2k or win98... soon (i hope) QNX too. audrey doesn't
have a 20GB hard drive, so i can't have all her personalities
pre-loaded.

although... i'm still thinking about trying to get this old
2-1/2" 2.3GB laptop hard drive installed...

wish we could get the schematics/technical docs from 3Com,
but keith721 contacted them about it and... well, you know...
"yada yada proprietary technology yada yada"... so looks like
we're on our own.

you'd think if someone adopted your kid you'd want to give
them everything you could to help them take care of her, huh?


mindbum
09-30-2001 14:45:34

New MessageRE:inetd/telnetd/ftpd (again) (modified 0 times) jayklm
Profile
since i seen this script here i will post my version

# cmp script
for file in `ls -l | cut -c58- | grep -v ">"`
do
echo cmpressing $file
cp $file /tmp
flashlzo /tmp/$file
mv /tmp/$file c-$file
mv c-$file $file
done

to use it go to the directory where you want to compress all the files in the run it.

cd /.cmp/nto/bin
cmp

you do get errors when it comes to a directory but it does not copy/move it.. so no problem.

jay

09-30-2001 17:10:29

New MessageRE:inetd/telnetd/ftpd (again) (modified 0 times) mindbum
Profile | Email
figured out the TERM type issue...

(or at least got it to work! )

here's what i did:

from the QNX RTP i copied:
/usr/lib/terminfo/terminfo.src
/usr/lib/terminfo/a/ansi
/usr/lib/terminfo/v/vt100

i created a /nto/lib/terminfo/ directory on audrey, and put terminfo.src there

i created a /nto/lib/terminfo/a/ directory, and put ansi there

i created a /nto/lib/terminfo/v/ directory, and put vt100 there

i created a link from /usr/lib/terminfo to /nto/lib/terminfo
(ln -sPf /nto/lib/terminfo /usr/lib/terminfo)

i edited /nto/lib/terminfo/terminfo.src as shown below:
(basically i just edited out everything except the term
definitions for "ansi" and "vt100")
==============================================================
ansi|generic ansi standard terminal,
am, xon,
cols#80, lines#24,
bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z,
clear=\E[H\E[J, cr=®, cub=\E[%p1%dD, cub1=\b,
cud=\E[%p1%dB, cud1= , cuf=\E[%p1%dC, cuf1=\E[C,
cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K,
home=\E[H, hpa=\E[%p1%{1}%+%dG, ht=\t, hts=\EH,
ich=E[%p1%d@, ich1=E[@, il=\E[%p1%dL, il1=\E[L,
ind= , invis=\E[8m, kbs=\b, kcub1=\E[D, kcud1=\E[B,
kcuf1=\E[C, kcuu1=\E[A, khome=\E[H,
rep=%p1%c\E[%p2%{1}%-%db, rev=\E[7m, rmso=\E[m,
rmul=\E[m,
sgr=\E[%?%p1%t7;%;%?%p2%t4;%;%?%p3%t7;%;%?%p4%t5;%;%?%p6%t1;%;m,
sgr0=\E[0m, smso=\E[7m, smul=\E[4m, tbc=\E[2g,
vpa=\E[%p1%{1}%+%dd,

vt100|vt100-am|dec vt100 (with advanced video),
am, mir, msgr, xenl, xon,
cols#80, it#8, lines#24, vt#3,
acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~O\141,
bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>,
clear=\E[H\E[J$<50>, cr=®, csr=\E[%i%p1%d;%p2%dr,
cub=\E[%p1%dD, cub1=\b, cud=\E[%p1%dB, cud1= ,
cuf=\E[%p1%dC, cuf1=\E[C$<2>,
cup=\E[%i%p1%d;%p2%dH$<5>, cuu=\E[%p1%dA,
cuu1=\E[A$<2>, ed=\E[J$<50>, el=\E[K$<3>,
el1=\E[1K$<3>, enacs=\E(B\E)0, home=\E[H, ht=\t,
hts=\EH, ind= , is1=\E=\E[?1h, rc=\E8,
rev=\E[7m$<2>, ri=\EM$<5>, rmacs=^O, rmkx=\E[?1l\E>,
rmam=\E[?7l, smam=\E[?7h,
rmso=\E[m$<2>, rmul=\E[m$<2>, rs1=^O\E[?7h\E[m$<2>\E>\E[?1h,
rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m,
sgr0=\E[m$<2>, smacs=^N, smkx=\E[?1h\E=,
smso=\E[1;7m$<2>, smul=\E[4m$<2>, tbc=\E[3g,
ka3=\EOs, kb2=\EOr, kbs=\b,
kc1=\EOp, kcub1=\EOD, kcud1=\EOB,
kcuf1=\EOC, kcuu1=\EOA, kf1=\EOP,
kf10=\EOx, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOt,
kf6=\EOu, kf7=\EOv, kf8=\EOl, kdch1=\EOn,
kich1=\EOp, kend=\EOq, knp=\EOs, kcmd=\EOu, khome=\EOw,
kpp=\EOy, kcan=\EOm, kslt=\EOM,


i edited /etc/profile as shown below:
==============================================================
export ABLPATH_PATH=/nto/photon/translations
export CMD_INT=/bin/sh
export FLASHMEMORYLIMIT=1024
export FLASHSTREAMONLY=0
export LD_LIBRARY_PATH=/nto/lib:/proc/boot:/nto/photon/lib:/nto/photon/dll:/real/plugins:/real/common:/kojak
export PATH=/nto/bin:/proc/boot:/nto/photon/bin:/kojak:/nto/voyager/x86/bin:/real/bin:/tmp:/kojak/CGI
export TERM=ansi
export PATH TMPDIR=${TMPDIR:-/tmp} PROCESSOR HOSTNAME SYSNAME
===============================================================

then i rebooted audrey, telnetted to her, logged in as root, and tried vi...

this time it worked!

YEA!

i copied the vt100 stuff over as a backup, in case i run into problems
with ansi later on, i can just change the "export TERM=ansi" line to
"export TERM=vt100" and try that one. eventually i'll prolly delete
one or the other.

just FYI...


mindbum
10-01-2001 13:36:28

New Message6.0 inetd/ftpd (modified 0 times) pkarp
Profile
Thanks for the help on this one. I have a 6.0 hacked audrey that I just got ftpd running.
I started with the inetd and ftpd from jayklm's audrey.zip file found on his web site. These
are 6.0 versions. Then using etc/inet.conf, etc/services and etc/passwd from his inetd.tar. Note that
the executables inetd and ftpd in inetd.tar are 6.1 versions.
10-08-2001 22:03:11

New MessageRE:inetd/telnetd/ftpd (again) (modified 0 times) Trackzero
Profile
Wait, I got lost there...Prolly because I'm not only 24-hours familiar with QNX, the Audrey, or telnetd/inetd/ftpd.

But I got the bugger flashed, upgraded, shelled, changed the channel configs, hacked the NetGear EA101, all that stuff...

PKARP, you got ftpd working with 6.0...I've got the proper files mentioned in your post, what do I do with 'em?

Thanks...

10-18-2001 20:59:57

New MessageRE:inetd/telnetd/ftpd (again) (modified 0 times) Trackzero
Profile
Alrighty-then...I somehow managed to get inetd running and ftpd answering (QNX6.0)...FTPD answers anonymous only, which is cool by me.

So I tried adding in telnetd from jayklm's audrey.zip, but telnet -debug -Q runs, doesn't answer. I get:
telnetd: /bin/login: no such file or directory

How do I fix that???

10-18-2001 23:17:20

New MessageRE:inetd/telnetd/ftpd (again) (modified 0 times) greatpotato
Profile
I also have a problem only with telnetd. ftpd and inetd both start and run perfectly. When I telnet in, it either the connection sits and does nothing until the client times out, or I get a "bind: *something or other* already in use" error (the error shows up on the client side and on the audrey). I also don't know if this is related, but I had to delete the services file to get anything to work. With services in place, the ftp command didn't work on the audrey and neither did ftpd. Any ideas?
10-19-2001 22:14:55

New MessageRE:inetd/telnetd/ftpd (again) (modified 0 times) Trackzero
Profile
Okay, I installed QNX6.0 on one of my systems, pulled /bin/login over to the audrey, and now I'm getting this when I telnet:

unknown symbol: login
Could not resolve all symbols

Hit enter, and it disconnects.

Anyone have any suggestions?

10-20-2001 23:43:51

New MessageRE:inetd/telnetd/ftpd (again) (modified 0 times) hw_irq
Profile
Trackzero, I think that downloading libc.so.1 should fix your problem.

Anyway, 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

10-21-2001 22:18:36

New MessageRE:inetd/telnetd/ftpd (again) (modified 0 times) runlikehell
Profile
hw_irq...no luck whatsoever... when I try login it simply closes my pterm window... the -debug telnet doesn't work either... i followed your indications exactly... are there any other asumptions that i am not aware of? what did go wrong?
thanks a lot!
03-07-2002 23:53:50

New MessageRE:inetd/telnetd/ftpd (again) (modified 0 times) hw_irq
Profile
All the files that you need are included in the zip. I recommend you check the following:

- check if all the file sizes on Audrey match with what I listed in this thread
- check that the permissions for all the files match with the ones listed in this thread
- I am sure you did this, but just in case… Sometimes people forget to use binary transfer option when FTPing
- Make sure that there is a symbolic link to ldqnx.so.1 in the /usr/lib dirtectory
- Make sure that “inetd” is running. You can check with:
ps | grep inetd
200721 200721 1 /bin/inetd
12202026 12202025 12189733 grep inetd

What happens when you telnet to Audrey from another box? Any other info you can provide?

03-08-2002 00:34:25

New MessageRE:inetd/telnetd/ftpd (again) (modified 1 times) runlikehell
Profile
hw_irq: all files are there, with the appropriate righs, transfered as bin. inetd is not running, and i don't know how to make sure that there is a symbolic link to ldqnx.so.1 in the /usr/lib dirtectory (i'm just starting to learn this! that's why it's so exciting!). i am sure i din't establish any simbolic links, so this might be the problem. what is the command for that?
thanks a lot!
03-08-2002 17:15:19

New MessageRE:inetd/telnetd/ftpd (again) (modified 0 times) Javamahn
Profile
Couple of things. do a vi on the file /kojak/boot.sh which you extracted from the tar file and make sure there are no ^M in the file. If so remove all of them. They will stop boot.sh from executing correctly. Execute a "sh boot.sh" in directory /kojak and watch the output. If you get back to the # prompt with no errors then you should be able to do a command ps -a and look for in.telnetd -Q. It should be running and you should be able to telnet and ftp in.

Hope this helps

03-08-2002 17:26:47

New MessageRE:inetd/telnetd/ftpd (again) (modified 0 times) hw_irq
Profile
Make sure that you have "libc.so.1" with execute permissions in the "/nto/lib" directory:
-rwxr-xr-x 1 root root 344044 Oct 06 14:17 libc.so.1

This line will create a symb. link to the new library:
ln -sPf /nto/lib/libc.so.1 /usr/lib/ldqnx.so.1

Start "inetd"
/bin/inetd &

Try telneting into the box to see if everything works.

If it works update your boot.sh file as described in the previous message.

03-09-2002 18:12:01

New MessageRE:inetd/telnetd/ftpd (again) (modified 0 times) runlikehell
Profile
cleaning boot.sh solved (partially) the problem. i can now ftp successfully to the audry, but the telnet still does not quite work: the connection sits and does nothing, and i have to go and kill in.telentd to get a command prompt back. telnetd -debug -Q does not give any errors. and i still can't change the root password (it doesn't save the new password?) thanks for all your help guys!
03-09-2002 20:57:28

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