Quick install
User:Pedxing has put together a quick install package to get telnetd, inetd, and ftp up and running quickly on the stock Audrey image. Follow these steps:
- Download the inetd.tar file to a shared drive on a pc
- Mount the shared drive. Assuming the file is in a share called "Audrey" on a PC called "PC" with the IP address "192.168.1.2", execute this command from Audrey's root shell:
fs-cifs -a //PC:192.168.2.1:/Audrey /mnt name password
- Change to the root directory with this command:
cd /
- Un-tar the file with this command:
tar -xvpf /mnt/inetd.tar
- Now reboot and you're up and running!
Detailed steps
Thanks go to jayklm This is a simple description of what you have to do to get telnetd/inetd to work with the audrey. You will have to know unix and have a good udnerstanding of telnetd/inetd architecture.
The operation
- (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
- try runing login first to make sure everything is good.
- if that works try running:
- telnetd -debug -Q
- then telnet to your audrey's ip.. if that works then reboot! :)
Warnings
- Change the root password!!! It's currently "root" and this is BAD. Use "passwd root" to create a new /etc/nshadow file, and then copy that to /etc/shadow with "cp /etc/nshadow /etc/shadow".
- This overwrites your existing /kojak/boot.sh file. This should be fine for plain Audreys, but if you have edited this file you should back it up first and merge your edits with these new lines:
ln -sPf /nto/lib/libc.so.1 /usr/lib/ldqnx.so.1 /bin/inetd
- Telnet and FTP daemons are not all that secure, and you should be careful using this on a system that is connected to the Internet. Definitely put this (and all systems) behind a firewall at the very least!