3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

システムモニタConkyでグローバルIPアドレスとホスト名を表示

Last updated at Posted at 2013-01-07

設定

~/.conkyrcに以下を追記する.

~/.conkyrc
[Global]
${texeci 3600 curl ifconfig.me}
${texeci 3600 curl ifconfig.me/host}

説明

$texeciにより, 指定した時間間隔でコマンドを実行して, その出力をConkyに表示できる.
texeciの後の数字は, 実行するコマンドの時間間隔 (秒) で, 適宜編集する.

なお,

  • グローバルIPアドレスcurl ifconfig.me,
  • ホスト名curl ifconfig.me/host,

により, 取得できる.

参考

Linux/conky - epian-wiki

3
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?