Telnet Access to the iSTAR Mini HD
These instruction are adapted from notes here: http://gbpvr.com/pmwiki/pmwiki.php/Hardware/NMT
There are two sets of instructions. If you have an attached SATA drive you can make the telnetd automatically start by following the additional instructions.
FROM A USB DRIVE
Although I've taken a simpler approach and assumed that everybody has a memory stick. This means that it's probably going to work first time.
Extract the following to a USB memory stick
This will create a directory called mvpmc with a few files in it; telnet.html, script.cgi and utelnetd
- Insert this into the back of your iSTAR.
- From the MEDIA BROWSER - Select the USB drive (USB_DRIVE_A-1)
- Now select the HTML Browser main menu option (as seen on the left)
- Browse into the folder mvpmc
- Select the telnet.html file
If its successful you should see the following text
Telnetd started on port 23...
You're in !
-bash-3.2# telnet 192.168.1.106 Trying 192.168.1.106... Connected to 192.168.1.106. Escape character is '^]'. #
FROM A SATA DRIVE
If you have an SATA drive attached to your ISTAR then you can have the utelnetd automatically started whenever the FTP daemon starts.
To perform this step its assumed that you already have telnet access by following the instructions above.
First we put the utelnet daemon onto the HDD by copying the file from our USB drive.
cp /opt/sybhttpd/localhost.drives/USB_DRIVE_A-1/mvpmc/utelnetd /mnt/syb8634/bin
Now we modify the FTP startup script to automatically start utelnetd. As there is no editor available we will simply CAT from STDIN to the file we want. Press CTRL-D (^D) to terminate the input.
cd /mnt/syb8634/etc cat >ftpserver.sh #!/bin/sh # # Pure FTP Server # start() { echo -n "Starting FTP Server..." /mnt/syb8634/bin/nmt_services.cgi cmd=ftp_passwd opt=ftpuser > /dev/null 2> /dev/null /mnt/syb8634/bin/pure-ftpd -j -H -lpuredb:/mnt/syb8634/etc/pureftpd.pdb -U 133:022 -c 10 -k 100 -I 1440 -w & /mnt/syb8634/bin/utelnetd -l /bin/sh -p 23 & } stop() { echo -n "Stopping FTP Server..." kill `cat /tmp/pure-ftpd.pid` } restart() { stop start } case "$1" in start) start ;; stop) stop ;; restart|reload) restart ;; *) echo $"Usage: $0 {start|stop|restart}" exit 1 esac exit $?
That's it as long as FTP is enabled the utelnetd will start-up too !
ZIP file contents
telnet.html file contains a URL that runs a CGI script:
<a href="http://localhost.drives:8883/USB_DRIVE_A-1/mvpmc/script.cgi">Telnetd (USB)</a>
script.cgi tricks the iSTAR into running a telnet daemon
#!/bin/sh echo "Content-Length: 29" echo "Content-type: text/html" echo "" test -d /etc/mvpmc || mkdir /etc/mvpmc mount --bind /opt/sybhttpd/localhost.drives/USB_DRIVE_A-1/mvpmc /etc/mvpmc cp /etc/mvpmc/utelnetd /usr/bin chmod 755 /usr/bin/utelnetd utelnetd -l /bin/sh -p 23 & echo "Telnetd started on port 23............"; exit 0
utelnetd - is a MIPS compiled telnet daemon.