Difference between revisions of "Talkd and the talk command"

From ArchWiki
Jump to: navigation, search
m (Using systemd directly: right, remove unfitting comment, but html comments are even worse, please use Template:Poor writing when unsure what to do)
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
[[Category:System administration]]
 
[[Category:System administration]]
 
[[ar:Talkd and the talk command]]
 
[[ar:Talkd and the talk command]]
 +
{{Out of date|Should mention ytalk, too.}}
 
The "talk" command allows you to talk to other users on the same system, which is useful if you're both SSH'd in from somewhere. Using it is very simple; to talk to someone the command is just
 
The "talk" command allows you to talk to other users on the same system, which is useful if you're both SSH'd in from somewhere. Using it is very simple; to talk to someone the command is just
  
<pre>talk <username> <tty></pre>
+
{{bc|$ talk <username> <tty>}}
  
However, getting it working requires some setup.
+
Of course, you can talk to users on another system as well:
  
1. First, install the inetutils package, which contains talk and talkd. These also rely on xinetd, so install that as well. You might also need the screen command; it's in the screen package.
+
{{bc|$ talk <username>@<hostname> <tty>}}
  
<pre>pacman -S inetutils xinetd screen</pre>
+
In either case, the tty is optional. It is used if you wish to talk to a local user who is logged in more than once to indicate the appropriate terminal name. "tty" is of the form 'ttyXX', or 'pts/X'.
  
2. Configure the xinetd service entry by setting "disable = no" in /etc/xinetd.d/talk.
+
== Setup ==
  
3. If you are using tcp_wrappers or something similar, Add an allow entry like this:
+
=== Using xinetd ===
  
<pre>talkd: 127.0.0.1</pre>
+
# First, install the inetutils package, which contains talk and talkd. These also rely on xinetd, so install that as well. You might also need the screen command; it's in the screen package. {{bc|1=
 +
# pacman -S inetutils xinetd screen
 +
}}
 +
# Configure the xinetd service entry by editing {{ic|/etc/xinetd.d/talk}} and setting "disable = no".
 +
# If you are using tcp_wrappers or something similar, add an entry to {{ic|/etc/hosts.allow}}: {{bc|1=
 +
talkd: 127.0.0.1
 +
}}
 +
# Now start xinetd: {{bc|1=
 +
# systemctl start xinetd.service
 +
}}
 +
# If you're on the local system, you might need to start a screen session to make yourself show up on the "w" and "who" commands -- you need to show up there or talk won't work.
 +
# Allow write access in your terminal if needed: {{bc|1=
 +
$ mesg y
 +
}}
  
4. Now start xinetd:
+
Talk should work now.
  
<pre>systemctl start xinetd.service</pre>
+
=== Using systemd directly ===
  
5. If you're on the local system, you might need to start a screen session to make yourself show up on the "w" and "who" commands -- you need to show up there or talk won't work.
 
  
6. Allow write access in your terminal:
+
Starting from inetutils 1.9.1.341-2, talk.service and talk.socket files are provided. Just upgrade and then activate the talk daemon:
  
<pre>mesg y</pre>
+
{{bc|# systemctl start talk}}
 
+
Talk should work now.
+

Latest revision as of 14:19, 22 July 2014

Tango-view-refresh-red.pngThis article or section is out of date.Tango-view-refresh-red.png

Reason: Should mention ytalk, too. (Discuss in Talk:Talkd and the talk command#)

The "talk" command allows you to talk to other users on the same system, which is useful if you're both SSH'd in from somewhere. Using it is very simple; to talk to someone the command is just

$ talk <username> <tty>

Of course, you can talk to users on another system as well:

$ talk <username>@<hostname> <tty>

In either case, the tty is optional. It is used if you wish to talk to a local user who is logged in more than once to indicate the appropriate terminal name. "tty" is of the form 'ttyXX', or 'pts/X'.

Setup

Using xinetd

  1. First, install the inetutils package, which contains talk and talkd. These also rely on xinetd, so install that as well. You might also need the screen command; it's in the screen package.
    # pacman -S inetutils xinetd screen
  2. Configure the xinetd service entry by editing /etc/xinetd.d/talk and setting "disable = no".
  3. If you are using tcp_wrappers or something similar, add an entry to /etc/hosts.allow:
    talkd: 127.0.0.1
  4. Now start xinetd:
    # systemctl start xinetd.service
  5. If you're on the local system, you might need to start a screen session to make yourself show up on the "w" and "who" commands -- you need to show up there or talk won't work.
  6. Allow write access in your terminal if needed:
    $ mesg y

Talk should work now.

Using systemd directly

Starting from inetutils 1.9.1.341-2, talk.service and talk.socket files are provided. Just upgrade and then activate the talk daemon:

# systemctl start talk