View previous topic :: View next topic |
Author |
Message |
amps n00b
Joined: 06 Aug 2004 Posts: 49
|
Posted: Fri Sep 10, 2004 2:13 am Post subject: command line talk |
|
|
hello,
i tried to get the command line talk working but to no avail.
i have it installed, enabled it in /etc/xinet.d/talk, and you can type 'talk username' at the command line, but it does not prompt the other user that someone is trying to talk.
i noticed that talkd isn't running so i tried to start it by running /usr/sbin/talkd and i get
Socket operation on non-socket
help please.
thanks.
amps |
|
Back to top |
|
|
tragek Tux's lil' helper
Joined: 30 Sep 2003 Posts: 84
|
Posted: Fri Sep 10, 2004 3:33 am Post subject: |
|
|
Is there a talk init script? (Check in /etc/init.d/)? _________________ I have gmail invites. Should you want one, please PM me with a story and your email. |
|
Back to top |
|
|
amps n00b
Joined: 06 Aug 2004 Posts: 49
|
Posted: Fri Sep 10, 2004 3:50 am Post subject: |
|
|
no, no /etc/iniit.d/talk. should there be?
amps |
|
Back to top |
|
|
tragek Tux's lil' helper
Joined: 30 Sep 2003 Posts: 84
|
Posted: Sat Sep 18, 2004 4:08 pm Post subject: |
|
|
I'll prefix this by saying I know nothing of talk.
The thing is that I would assume you have to specify certain paramaters. Such as socket etc. Does talkd --help give anything useful? _________________ I have gmail invites. Should you want one, please PM me with a story and your email. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54317 Location: 56N 3W
|
Posted: Sat Sep 18, 2004 4:20 pm Post subject: |
|
|
amps,
I have it running.
In /etc/xinetd.d/talk I have
Code: | # default: off
# description: The talk server accepts talk requests for chatting with users \
# on other systems.
service ntalk
{
flags = IPv4
disable = no
socket_type = dgram
wait = yes
user = nobody
group = tty
server = /usr/sbin/in.talkd
# only from = 192.168.0.0/16 127.0.0.0/8
} |
and /etc/xind.conf is
Code: | # Sample configuration file for xinetd
defaults
{
only_from = 127.0.0.1
instances = 60
log_type = SYSLOG authpriv info
log_on_success = HOST PID
log_on_failure = HOST
cps = 25 30
}
includedir /etc/xinetd.d
|
remember to do Code: | rc-update add xinetd default | to start xinetd at boot. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
zpet731 Tux's lil' helper
Joined: 24 Mar 2004 Posts: 133 Location: Sydney Australia / Belgrade Serbia
|
Posted: Mon Apr 04, 2005 1:14 pm Post subject: |
|
|
Hi NeddySeagoon,
I hope you are keeping track of this post even though you made it a while back. I still have problems with ytalk and talk. I have all the same settings as you but I still get:
Quote: | No talk demon on... |
I'm really confused... _________________ " Invention is the most important product of man's creative brain. The ultimate purpose is the complete mastery of mind over the material world, the harnessing of human nature to human needs."
Nikola Tesla |
|
Back to top |
|
|
zpet731 Tux's lil' helper
Joined: 24 Mar 2004 Posts: 133 Location: Sydney Australia / Belgrade Serbia
|
Posted: Mon Apr 04, 2005 2:18 pm Post subject: |
|
|
Ok I found the solution it looks like I had to add in:
file: /etc/xinetd.d/talk
Code: | only_from += host.dnsdomainname |
where the appropriate values were substituted for host and dnsdomainname. _________________ " Invention is the most important product of man's creative brain. The ultimate purpose is the complete mastery of mind over the material world, the harnessing of human nature to human needs."
Nikola Tesla |
|
Back to top |
|
|
szolek Guru
Joined: 30 Mar 2005 Posts: 570 Location: Brzóza Królewska
|
Posted: Wed May 18, 2005 6:52 pm Post subject: |
|
|
I was wrote in my xinetd.conf this:
Code: | service ntalk
{
flags = NAMEINARGS
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/talkd
server_args = talkd
}
|
And this worked.
Pozdrawiam!!! |
|
Back to top |
|
|
bradbase1 n00b
Joined: 11 Jan 2006 Posts: 6
|
Posted: Wed Jan 11, 2006 3:54 am Post subject: talkd resolved for me |
|
|
Hello,
I know this is poking a sleeping bear, but I have followed (many) forum threads (both Gentoo and otherwise) which did not resolve my problem. Also, sorry for the long post. I thought I'd put as much info in as I could because I'm likely to need it again one day.
While on the verge of annoying my friends by phone, I had a moment of "oh, DER!" which assisted me in seeing how thick I actually am and led to me resolving my problem.
To begin: Finding which package(s) to install. Ytalk is obvious as it has it's own entry in the portage tree. The talk daemon (talkd, in.talkd, ntalkd) is found in netkit-talk. [retrospectively, you do need xinetd as well.]
Where this forum thread came in handy: I found that I did not have xinet.d installed. Fixed that, started the service (being /etc/init.d/xinetd restart) and it looked like it was running, as below.
shows the (from what I can tell) important udp 0.0.0.0:518 Code: | Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN
tcp 0 0 192.168.1.7:22 192.168.1.2:35177 ESTABLISHED
tcp 0 0 192.168.1.7:22 192.168.1.2:35178 ESTABLISHED
udp 0 0 127.0.0.1:1024 127.0.0.1:1024 ESTABLISHED
udp 0 0 0.0.0.0:518 0.0.0.0:*
udp 0 0 0.0.0.0:68 0.0.0.0:*
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ ACC ] STREAM LISTENING 7056 /tmp/.s.PGSQL.5432
unix 5 [ ] DGRAM 6837 /dev/log
unix 2 [ ] DGRAM 7971
unix 3 [ ] STREAM CONNECTED 7351
unix 3 [ ] STREAM CONNECTED 7350
unix 2 [ ] DGRAM 7155
unix 2 [ ] DGRAM 6845 |
I then started to get this output. I mean to say when my patience allowed me to leave ytalk to do its thing long enough (30 seconds to a minute) I got this output:
Code: | #########################################################
# Ytalk Error #
# #
# No talk daemon on shortcircuit.homeshoppingnetwork #
# #
# #
# bradbase@192.168.1.7 not logged in #
# #
######################################################### |
Some background: shortcircuit has IP 192.168.1.7 and the hosts file put shortcircuit on the homeshoppingnetwork.
After a few seconds it occurred to me that my /etc/hosts file was not up to date. On closer inspection the /etc/hosts file said shortcircuit had an IP of 192.168.0.7. I altered the /etc/hosts file and added some entries to the /etc/xinetd.conf directives as below.
Current (updated) /etc/hosts
Code: | # /etc/hosts: This file describes a number of hostname-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time, when no name servers are running.
# On small systems, this file can be used instead of a
# "named" name server. Just add the names, addresses
# and any aliases to this file...
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/hosts,v 1.8 2003/08/04 20:12:25 azarah Exp $
#
127.0.0.1 localhost
#192.168.1.1 shortcircuit.homeshoppingnetwork shortcircuit
192.168.1.2 theterminator.homeshoppingnetwork theterminator
#192.168.1.3 nedkelly.homeshoppingnetwork nedkelly
#192.168.1.4
#192.168.1.5
#192.168.1.6
192.168.1.7 shortcircuit.homeshoppingnetwork shortcircuit
# IPV6 versions of localhost and co
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
|
Updated /etc/xinetd.conf
Code: | # Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/xinetd/files/xinetd.conf,v 1.6 2004/07/15 00:53:48 agriffis Exp $
# Sample configuration file for xinetd
defaults
{
only_from = localhost 192.168.1.7 shortcircuit
instances = 60
log_type = SYSLOG authpriv info
log_on_success = HOST PID
log_on_failure = HOST
cps = 25 30
}
includedir /etc/xinetd.d
|
After saving those changes I restarted xinetd and viola! Ytalk success.
Code: | --------------------------------------------------= YTalk version 3.1.1 =--------------------------------------------------
hello root
-------------------------------------------------= bradbase@192.168.1.7 =--------------------------------------------------
hello bradbase.
Yay for me.
bradbase1 for when you forget the password to bradbase
|
As for another
It delivers
Code: | Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:1035 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN
tcp 0 0 192.168.1.7:1037 192.168.1.7:1036 ESTABLISHED
tcp 0 0 192.168.1.7:1036 192.168.1.7:1037 ESTABLISHED
tcp 0 0 192.168.1.7:22 192.168.1.2:35177 ESTABLISHED
tcp 0 0 192.168.1.7:22 192.168.1.2:35178 ESTABLISHED
udp 0 0 127.0.0.1:1024 127.0.0.1:1024 ESTABLISHED
udp 0 0 0.0.0.0:518 0.0.0.0:*
udp 0 0 0.0.0.0:1050 0.0.0.0:*
udp 0 0 0.0.0.0:1051 0.0.0.0:*
udp 0 0 127.0.0.1:1052 127.0.0.1:518 ESTABLISHED
udp 0 0 192.168.1.7:1053 192.168.1.7:518 ESTABLISHED
udp 0 0 0.0.0.0:68 0.0.0.0:*
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ ACC ] STREAM LISTENING 7056 /tmp/.s.PGSQL.5432
unix 5 [ ] DGRAM 6837 /dev/log
unix 2 [ ] DGRAM 7971
unix 3 [ ] STREAM CONNECTED 7351
unix 3 [ ] STREAM CONNECTED 7350
unix 2 [ ] DGRAM 7155
unix 2 [ ] DGRAM 6845 |
So even netstat says there is a connection.
While I'm here... Thanks to the administrators and all who have put forward assistance in these Gentoo forums. I appreciate it greatly. It has allowed me to do amazing things with my computer. |
|
Back to top |
|
|
npt n00b
Joined: 02 Aug 2005 Posts: 8 Location: mpls,mn
|
Posted: Sun May 21, 2006 6:46 pm Post subject: fixed "No talk daemon on machinename" error(for me |
|
|
Anyway, first off, what Bradbase said about running netstat -an, do that. It really gives you an idea if there is traffic on udp 518, and if your machine is accepting traffic on udp 518 before you actually get the talk session going.
Also, check your /etc/hosts
adding
127.0.0.1 localhost tower
to what had been
127.0.0.1 localhost
fixed it for me.
I wanted to post this because I have seen SO MANY people with this problem, and when i went into it I was all thinking I'd get it in two mins, here I am 3 hrs later, balder, but hey, it'll be archived for when i need to fix it again in the future too right? ;p
nick (npt on freenode) |
|
Back to top |
|
|
doublehp Guru
Joined: 11 Apr 2005 Posts: 473 Location: FRANCE
|
Posted: Wed Aug 16, 2006 10:56 am Post subject: |
|
|
after installing ytalk and xinetd, and starting daemon, things did not work; trick by szolek (Joined: 30 Mar 2005) PostPosted: Wed May 18, 2005 1:52 pm , did it for me; I did not substitude xinetd.conf, but added his section at bottom, then restarted server, and things were great for local chat.
Remember that remote chat is possible, but higly dangerous on public networks; either use SSH from host to host (then use talk locally), or check that all computers connecting to the server are on a secured LAN. I think default conf does not accept non local chats.
Ytalk allows multi users chats. _________________ DEMAINE Benoît-Pierre (aka DoubleHP ) http://www.demaine.info/
>o_/ Coin coin coin \_o<
to contact me (MSN,ICQ, JABBER, Skype ... ) http://benoit.demaine.info/contact.png |
|
Back to top |
|
|
|