浏览代码

IRC daemon

Bob Mottram 11 年前
父节点
当前提交
6988467234
共有 1 个文件被更改,包括 25 次插入5 次删除
  1. 25
    5
      beaglebone.txt

+ 25
- 5
beaglebone.txt 查看文件

2145
 TODO
2145
 TODO
2146
 *** Install Irssi as a daemon
2146
 *** Install Irssi as a daemon
2147
 
2147
 
2148
-It may be useful to run a persistent Irssi session on
2148
+It may be useful to run a persistent Irssi session on the BBB.  This will enable you to log in and see any entries which occurred previously so that you don't find yourself in an argument without knowledge of what was said in the last few minutes or hours.  This feature only works for a single user on the BBB - typically the administrator.
2149
 
2149
 
2150
-If you wish to be able to log into the BBB via ssh and access IRC that way then you can create an Irssi deamon.  Note that this is only really appropriate for a single administrator user, not for a situation in which there are multiple users on the BBB.
2151
-
2152
-Install some prerequisites.
2150
+First install some prerequisites.
2153
 
2151
 
2154
 #+BEGIN_SRC: bash
2152
 #+BEGIN_SRC: bash
2155
 apt-get install irssi screen
2153
 apt-get install irssi screen
2335
 service irssid start
2333
 service irssid start
2336
 #+END_SRC
2334
 #+END_SRC
2337
 
2335
 
2338
-Then to subsequently access irssi log into the BBB using ssh and type:
2336
+Create a script to make running IRC on the server easier.
2337
+
2338
+#+BEGIN_SRC: bash
2339
+emacs /usr/bin/irc
2340
+#+END_SRC
2341
+
2342
+Add the following:
2339
 
2343
 
2340
 #+BEGIN_SRC: bash
2344
 #+BEGIN_SRC: bash
2345
+#!/bin/bash
2341
 screen -r irssi
2346
 screen -r irssi
2342
 #+END_SRC
2347
 #+END_SRC
2343
 
2348
 
2349
+Save and exit.
2350
+
2351
+#+BEGIN_SRC: bash
2352
+chmod +x /usr/bin/irc
2353
+chown myusername:myusername /usr/bin/irc
2354
+#+END_SRC
2355
+
2356
+Then to subsequently access irssi log into the BBB using ssh and type:
2357
+
2358
+#+BEGIN_SRC: bash
2359
+irc
2360
+#+END_SRC
2361
+
2362
+
2363
+
2344
 ** Install a Jabber/XMPP server
2364
 ** Install a Jabber/XMPP server
2345
 
2365
 
2346
 #+BEGIN_VERSE
2366
 #+BEGIN_VERSE