Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== 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 * {{istar:mvpmc.zip}} This will create a directory called **mvpmc** with a few files in it; **telnet.html**, **script.cgi** and **utelnetd** {{istar:usb-html-browse.jpg?300 }} * 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 <code> Telnetd started on port 23... </code> You're in ! <code> -bash-3.2# telnet 192.168.1.106 Trying 192.168.1.106... Connected to 192.168.1.106. Escape character is '^]'. # </code> ===== 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. <code bash> cp /opt/sybhttpd/localhost.drives/USB_DRIVE_A-1/mvpmc/utelnetd /mnt/syb8634/bin </code> 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. <code bash> 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 $? </code> 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: <code html> <a href="http://localhost.drives:8883/USB_DRIVE_A-1/mvpmc/script.cgi">Telnetd (USB)</a> </code> **script.cgi** tricks the iSTAR into running a telnet daemon <code bash> #!/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 </code> **utelnetd** - is a MIPS compiled telnet daemon. {{tag>nmt network}} istar/telnetaccess.txt Last modified: 2009/11/27 17:54by 127.0.0.1