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).
>
>
>
telnet-bsd has a telnet client. (I think...)
- Mark
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 :)
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
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
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
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
:-) :-)
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
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
> mark@c2stable ~ $ equery files telnet-bsd | grep bin
Which of course he can't do until after he's installed the package.
--
Rgds
Peter
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
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
:-) :-)
> >
> > 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".
> 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
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
:-) :-)
> 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
> 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
Very nice.
BTW, you do not need to escape newlines after "&&".
echo Try &&
echo This &&
echo At &&
echo Home ||
echo Or Not
> 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