maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2008 / Maemo 4 / Chinook - Diablo (https://talk.maemo.org/forumdisplay.php?f=29)
-   -   telnet on Diablo (https://talk.maemo.org/showthread.php?t=23139)

rvsjimbo 2008-08-25 00:05

telnet on Diablo
 
Hi,

Before I upgraded to Diablo I had managed to get a telnet client on my N800. Since upgrading I've not managed to get telnet working. I need it for logging on to a talker I use. SSH is, unfortunately, not an option. Has anyone got telnet working under Diablo, and if so, how?

Thanks!

Paul
~~~~

st5150 2008-08-25 03:27

Re: telnet on Diablo
 
apt-get install telnet from a shell.

rvsjimbo 2008-08-25 15:42

Re: telnet on Diablo
 
Quote:

Originally Posted by st5150 (Post 217166)
apt-get install telnet from a shell.

Unfortunately that got me the following message:

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package telnet

I think thats how I did it for OS2007, but it no longer works.

Thanks,

Paul
~~~~

free 2008-08-25 15:50

Re: telnet on Diablo
 
You could use netcat which understand telnet protocol and is much much more advanced.

Code:

netcat -h

connect to somewhere:  nc [-options] hostname port[s] [ports] ...
listen for inbound:    nc -l -p port [-options] [hostname] [port]
options:
        -c shell commands      as `-e'; use /bin/sh to exec [dangerous!!]
        -e filename            program to exec after connect [dangerous!!]
        -b                      allow broadcasts
        -g gateway              source-routing hop point[s], up to 8
        -G num                  source-routing pointer: 4, 8, 12, ...
        -h                      this cruft
        -i secs                delay interval for lines sent, ports scanned
        -k                      set keepalive option on socket
        -l                      listen mode, for inbound connects
        -n                      numeric-only IP addresses, no DNS
        -o file                hex dump of traffic
        -p port                local port number
        -r                      randomize local and remote ports
        -q secs                quit after EOF on stdin and delay of secs
        -s addr                local source address
        -T tos                  set Type Of Service
        -t                      answer TELNET negotiation
        -u                      UDP mode
        -v                      verbose [use twice to be more verbose]
        -w secs                timeout for connects and final net reads
        -z                      zero-I/O mode [used for scanning]


st5150 2008-08-25 19:33

Re: telnet on Diablo
 
Quote:

Originally Posted by rvsjimbo (Post 217269)
Unfortunately that got me the following message:

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package telnet

I think thats how I did it for OS2007, but it no longer works.

Thanks,

Paul
~~~~


You don't have the proper repository installed. Do a OS2008 search for telnet here http://gronmayer.com/it/index.php

rvsjimbo 2008-08-26 13:16

Re: telnet on Diablo
 
Hi Again,

Well, thanks for that... I can make it work on my Kubuntu system (netcat -t [host] [port]), but I cannot make it work on the N800 using the equivalent (netcat -T [host] [port]). It just comes back to the command line, after a short delay.

I'll see if I can work on the repository thing...

Paul
~~~~

free 2008-08-26 14:17

Re: telnet on Diablo
 
netcat:
add -vv to the options passed to netcat

Actually, I never tried the tablet version of netcat, but I don't see why it wouldn't work.
Isn't it -t rather than -T
?

By the way, there should also be somewhere "socat" which is a kind of netcat on steroids.

rvsjimbo 2008-08-26 19:12

Re: telnet on Diablo
 
Okay, got it sorted. Added the Dayless repository, and then it was easy.

Thanks people!

Paul
~~~~


All times are GMT. The time now is 00:14.

vBulletin® Version 3.8.8