Browse Source

IRC daemon

Bob Mottram 11 years ago
parent
commit
6988467234
1 changed files with 25 additions and 5 deletions
  1. 25
    5
      beaglebone.txt

+ 25
- 5
beaglebone.txt View File

@@ -2145,11 +2145,9 @@ If you're not using a self-signed certificate (self-signed is the default) then
2145 2145
 TODO
2146 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 2152
 #+BEGIN_SRC: bash
2155 2153
 apt-get install irssi screen
@@ -2335,12 +2333,34 @@ update-rc.d irssid defaults
2335 2333
 service irssid start
2336 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 2344
 #+BEGIN_SRC: bash
2345
+#!/bin/bash
2341 2346
 screen -r irssi
2342 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 2364
 ** Install a Jabber/XMPP server
2345 2365
 
2346 2366
 #+BEGIN_VERSE