Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: [gentoo-user] Why can't I emerge telnet?

175 views
Skip to first unread message

Jeremy McSpadden

unread,
Apr 7, 2011, 12:10:01 PM4/7/11
to
[I] net-misc/netkit-telnetd
Available versions: 0.17-r6 0.17-r8 ~0.17-r9 ~0.17-r10
Installed versions: 0.17-r8(04:51:44 11/19/09)
Homepage: ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/
Description: Standard Linux telnet client and server

learn to search portage. either "eix" or "emerge -s"

Jeremy

On Apr 7, 2011, at 11:19 AM, Alan Mackenzie wrote:

> Hi, Gentoo!
>
> I would like a telnet client installed on my gentoo amd64 system. When I
> try
> emerge telnet
> , I get told that telnet doesn't exist.
>
> What am I doing wrong? Is there a telnet client on gentoo?
>
> --
> Alan Mackenzie (Nuremberg, Germany).
>
>
>

Alan Mackenzie

unread,
Apr 7, 2011, 12:10:01 PM4/7/11
to
Message has been deleted

Mark Knecht

unread,
Apr 7, 2011, 12:20:03 PM4/7/11
to

telnet-bsd has a telnet client. (I think...)

- Mark

Paul Hartman

unread,
Apr 7, 2011, 12:30:02 PM4/7/11
to

there is also netkit-telnetd (and net-misc/putty if you're so
inclined)... or net-misc/tn5250 if you're dealing with AS/400's

And probably more :)

Mick

unread,
Apr 7, 2011, 3:20:02 PM4/7/11
to
On Thursday 07 April 2011 17:19:24 Alan Mackenzie wrote:
> Hi, Gentoo!
>
> I would like a telnet client installed on my gentoo amd64 system. When I
> try
> emerge telnet
> , I get told that telnet doesn't exist.
>
> What am I doing wrong? Is there a telnet client on gentoo?

As others said there's more than one option, not forgetting netcat:

nc -t address <port>

However, you don't need to install anything if you don't want to, because
busybox contains a telnet client and daemon.

Just create a symlink from your /usr/local/bin/telnet to /bin/busybox:

# ln -s /bin/busybox /usr/local/bin/telnet

$ ls -la /usr/local/bin/telnet
lrwxrwxrwx 1 root root 12 Jan 30 12:24 /usr/local/bin/telnet -> /bin/busybox

$ telnet
BusyBox v1.17.4 (2010-12-26 22:07:56 GMT) multi-call binary.

Usage: telnet [-a] [-l USER] HOST [PORT]

Connect to telnet server

Options:
-a Automatic login with $USER variable
-l USER Automatic login as USER

Or just run:

$ busybox telnet
--
Regards,
Mick

signature.asc

Alan Mackenzie

unread,
Apr 7, 2011, 4:00:01 PM4/7/11
to
Hi, Jeremy.

On Thu, Apr 07, 2011 at 11:05:41AM -0500, Jeremy McSpadden wrote:
> [I] net-misc/netkit-telnetd
> Available versions: 0.17-r6 0.17-r8 ~0.17-r9 ~0.17-r10
> Installed versions: 0.17-r8(04:51:44 11/19/09)
> Homepage: ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/
> Description: Standard Linux telnet client and server

Thanks, I've installed this and it seems to work.

> learn to search portage. either "eix" or "emerge -s"

That I'll have to do. I'm not fully comfortable with emerge yet.

> Jeremy

Mark Knecht

unread,
Apr 7, 2011, 4:20:02 PM4/7/11
to

OK, then teaching a man to fish, you'd try


mark@c2stable ~ $ eix -c telnet
[N] dev-java/telnetd (2.0): A telnet daemon for use in java applications
[N] dev-perl/Net-Telnet (3.03-r1): A Telnet Perl Module
[N] dev-perl/Net-Telnet-Cisco (1.10): Automate telnet sessions w/
routers&switches
[N] net-misc/netkit-telnetd (0.17-r6): Standard Linux telnet client and server
[I] net-misc/telnet-bsd (1.2-r1@01/21/11): Telnet and telnetd ported
from OpenBSD with IPv6 support
[N] net-misc/utelnetd (~0.1.9-r1): A small Telnet daemon, derived from
the Axis tools
[N] sec-policy/selinux-telnet (--): SELinux policy for general applications
Found 7 matches.
mark@c2stable ~ $

mark@c2stable ~ $ equery files telnet-bsd | grep bin
/usr/bin
/usr/bin/telnet
/usr/sbin
/usr/sbin/in.telnetd
mark@c2stable ~ $

and you have an answer.

In this case telnet, the binary executable, can be provided by
multiple packages, but this gets you much closer than you were.

Good luck, learn the distro and ask questions.

Cheers,
Mark

Dale

unread,
Apr 7, 2011, 4:20:03 PM4/7/11
to

Sounds like you are new. Interesting commands: The "q" family. Just
do a "man q" and check it out since there is a few of them. There is
also eix, genlop which sort of has some common tools as the "q" family.
You also need use eselect from time to time as well. There are also
times when revdep-rebuild will rear its head too.

That should be a start and I'm sure someone will point out one or two I
missed as well. ;-)

Dale

:-) :-)

Joost Roeleveld

unread,
Apr 7, 2011, 4:40:03 PM4/7/11
to

To search for specific packages, I think Dale and Mark did a good set.
As for the others, like "revdep-rebuild", there is also "python-updater" and
"etc-update".

The last "etc-update" is only really needed when doing upgrades. I would like
to recommend you try these commands before you are too dependent on the
installation.
Making mistakes while learning is a good method, but can also be extremely
frustrating when these same mistakes keep you from enjoying the use of the
computer. (Yes, I am speaking from personal experience ;) )

--
Joost

Mark Knecht

unread,
Apr 7, 2011, 5:30:03 PM4/7/11
to

Let's potentially add

module-rebuild -X rebuild

to the list of little gems that keep Gentoo systems happy when
installing a new kernel.

Cheers,
Mark

Peter Humphrey

unread,
Apr 7, 2011, 5:50:02 PM4/7/11
to
On Thursday 07 April 2011 21:10:32 Mark Knecht wrote:

> mark@c2stable ~ $ equery files telnet-bsd | grep bin

Which of course he can't do until after he's installed the package.

--
Rgds
Peter

Mark Knecht

unread,
Apr 7, 2011, 6:20:02 PM4/7/11
to

Damn. You're right. My bad.

Well, had he used eix (or emerge -s telnet) at least he would have
determined that he had the wrong package name.

- Mark

Dale

unread,
Apr 7, 2011, 7:00:01 PM4/7/11
to

I mistyped a package name the other day and portage actually made
suggestions as to what I meant to type. O_O I think the devs are
trying to program in some ESP code. lol

Dale

:-) :-)

Matthew Finkel

unread,
Apr 7, 2011, 7:00:02 PM4/7/11
to
> >
> > Thanks, I've installed this and it seems to work.
> >
> >> learn to search portage. either "eix" or "emerge -s"
> >
> > That I'll have to do.  I'm not fully comfortable with emerge yet.
> >
> >> Jeremy
>
> Sounds like you are new.  Interesting commands:  The "q" family.  Just
> do a "man q" and check it out since there is a few of them.  There is
> also eix, genlop which sort of has some common tools as the "q" family.
> You also need use eselect from time to time as well.  There are also
> times when revdep-rebuild will rear its head too.

To search for specific packages, I think Dale and Mark did a good set.
As for the others, like "revdep-rebuild", there is also "python-updater" and
"etc-update".
 
Huh, I've been using gentoo for years and never knew about the "q's", definitely learned something new today! But I just wanted to make a note that a few of these programs are part of the gentoolkit package. Querying portage for revdep, equery, etc won't give you the package it belongs to.

Peter Humphrey

unread,
Apr 7, 2011, 7:10:02 PM4/7/11
to
On Thursday 07 April 2011 23:47:22 Dale wrote:

> I mistyped a package name the other day and portage actually made
> suggestions as to what I meant to type. O_O I think the devs are
> trying to program in some ESP code. lol

No mate, they've just finally cottoned-on to your and my bad typing!

--
Rgds
Peter

Dale

unread,
Apr 7, 2011, 7:50:02 PM4/7/11
to

At first, it freaked me out. I reproduced the "feature" here tho:

root@fireball / # emerge -1av nvidia-driver

These are the packages that would be merged, in order:

Calculating dependencies... done!

emerge: there are no ebuilds to satisfy "nvidia-driver".

emerge: searching for similar names...
emerge: Maybe you meant any of these: x11-drivers/nvidia-drivers,
dev-db/libdbi-drivers, dev-util/nvidia-cuda-profiler?
root@fireball / #

I thought dang, that is neato!! Now if they can just make it read my
mind and me not have to show off my bad typing or forgetting the name of
the package. ;-) So, you may be right. o_O

Dale

:-) :-)

Peter Humphrey

unread,
Apr 13, 2011, 8:20:02 PM4/13/11
to
On Wednesday 13 April 2011 23:45:01 Alex Schuster wrote:

> I don't know it stable portage already has this feature, but at least
> portage-2.2 has a set called module-rebuild. So I just do an emerge
> @modules-rebuild. Oh, and instead of emerge $( qlist -IC x11-drivers/ ) one
> can use emerge @x11-module-rebuild. This one is needed when xorg-server was
> upgraded.

I just have a little script:

$ cat /usr/local/sbin/up-x
#!/bin/bash
#
# /usr/local/sbin/up-x
#
# Recompile X drivers etc. after kernel upgrade:
#
emerge -1 --jobs=5 --keep-going `qlist -IC x11-drivers` &&\
echo &&\
sh /usr/local/src/VirtualBox*run &&\
echo

Makes life really simple, with hardly any typing.

--
Rgds
Peter

Alex Schuster

unread,
Apr 13, 2011, 8:20:09 PM4/13/11
to
Mark Knecht writes:

> On Thu, Apr 7, 2011 at 1:30 PM, Joost Roeleveld <jo...@antarean.org>
> wrote:

> > The last "etc-update" is only really needed when doing upgrades. I
> > would like to recommend you try these commands before you are too
> > dependent on the installation.

etc-update does the job, but looks a little dated to me. I prefer dispatch-
conf. My favorite at the moment is cfg-update, which is even better at
guessing which updates can be automated. It also supports three-way merges,
which probably means it not only takes the current and the new version of a
config file into account, but also old versions.


> Let's potentially add
>
> module-rebuild -X rebuild
>
> to the list of little gems that keep Gentoo systems happy when
> installing a new kernel.

I don't know it stable portage already has this feature, but at least

portage-2.2 has a set called module-rebuild. So I just do an emerge
@modules-rebuild. Oh, and instead of emerge $( qlist -IC x11-drivers/ ) one
can use emerge @x11-module-rebuild. This one is needed when xorg-server was
upgraded.

Wonko

Bill Longman

unread,
Apr 14, 2011, 8:00:02 AM4/14/11
to
> I just have a little script:
>
> $ cat /usr/local/sbin/up-x
> #!/bin/bash
> #
> # /usr/local/sbin/up-x
> #
> # Recompile X drivers etc. after kernel upgrade:
> #
> emerge  -1 --jobs=5 --keep-going `qlist -IC x11-drivers` &&\
>        echo &&\
>        sh /usr/local/src/VirtualBox*run &&\
>        echo
>
> Makes life really simple, with hardly any typing.

Very nice.

BTW, you do not need to escape newlines after "&&".

echo Try &&
echo This &&
echo At &&
echo Home ||
echo Or Not

Peter Humphrey

unread,
Apr 14, 2011, 10:10:01 AM4/14/11
to
On Thursday 14 April 2011 12:55:36 Bill Longman wrote:

> BTW, you do not need to escape newlines after "&&".

Just goes to show: you learn something new every day - if you're not careful.

--
Rgds
Peter

0 new messages