Talkd と talk コマンド

提供: ArchWiki
2022年8月25日 (木) 11:43時点におけるKusanaginoturugi (トーク | 投稿記録)による版 (空行を削除)
ナビゲーションに移動 検索に移動

"talk" コマンドは、同じシステム上の他のユーザーと会話することができます。例えば、複数のユーザが同じシステムに SSH でログインしている場合などに便利です。使い方はとても簡単で、誰かと話すためのコマンドは次の通りです。

$ talk username tty

もちろん、別のシステムのユーザーと話すことも可能です:

$ talk username@hostname tty

いずれの場合も、ttyはオプションです。これは、複数回ログインしているローカルユーザーと会話したい場合に、適切な端末名を示すために使用されます。"tty" は 'ttyXX'、または 'pts/X' という形式である。

セットアップ

xinetd を使用する

  1. インストール inetutils, which contains talk and talkd. These also rely on xinetd. Optionally install 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 開始 xinetd.service.
  5. If you are 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 will not work.
  6. Allow write access in your terminal if needed:
    $ mesg y

systemd を直接使用する

talk.sockettalk.service開始します