Browse Source

Improving IRC instructions

Bob Mottram 11 years ago
parent
commit
9eadcedd73
1 changed files with 40 additions and 6 deletions
  1. 40
    6
      beaglebone.txt

+ 40
- 6
beaglebone.txt View File

@@ -1756,7 +1756,7 @@ emacs /etc/ircd-hybrid/ircd.conf
1756 1756
 
1757 1757
 Set *name* to the name of your server, and set a description.
1758 1758
 
1759
-Set a *network_name* and *network_desc*.
1759
+Set a *network_name* and *network_desc*.  The network name should not contain any spaces.
1760 1760
 
1761 1761
 Set max_clients to 20, or however many you expect that you'll typically need.
1762 1762
 
@@ -1767,7 +1767,17 @@ sections it was 192.168.1.60).
1767 1767
 
1768 1768
 Within the *auth* section set user = "*@192.168.1.60" - or whatever the fixed IP address of the BBB is on your network.
1769 1769
 
1770
-Save and exit, then restart the IRC server.  Open ports 6666-6670 on your internet router and forward them to the BBB.
1770
+Uncomment the first *connect* section and set the *name* to your domain name, the *host* to 192.168.1.60 and the send/accept passwords to a password which you use to log into the IRC server.  Also set the *port* to 6670.
1771
+
1772
+Save and exit, then restart the IRC server.  Open port 6670 on your internet router and forward it to the BBB.
1773
+
1774
+Ensure that the configuration is only readable by the root user.
1775
+
1776
+#+BEGIN_SRC: bash
1777
+chmod 600 /etc/ircd-hybrid/ircd.conf
1778
+#+END_SRC
1779
+
1780
+To to install channel management tools.
1771 1781
 
1772 1782
 #+BEGIN_SRC: bash
1773 1783
 cd /tmp
@@ -1794,7 +1804,7 @@ Edit the configuration.
1794 1804
 Make a md5 version of the password for the IRC server operator.
1795 1805
 
1796 1806
 #+BEGIN_SRC: bash
1797
-mkpasswd -Hmd5 <operatorpassword>
1807
+/usr/bin/mkpasswd <myoperatorpassword>
1798 1808
 #+END_SRC
1799 1809
 
1800 1810
 Edit the ircd-hybrid configuration.
@@ -2007,11 +2017,20 @@ service ircd-hybrid restart
2007 2017
 service hybserv restart
2008 2018
 #+END_SRC
2009 2019
 
2010
-Try to connect to the IRC and identify yourself as an operator.
2020
+*** Usage
2021
+
2022
+On another computer (not the BBB).
2023
+
2024
+#+BEGIN_SRC: bash
2025
+sudo apt-get install irssi
2026
+irssi
2027
+#+END_SRC
2011 2028
 
2012
-In irssi:
2029
+Connect to the IRC and identify yourself as an operator.  Here /mynetwork/ should be the same as *network_name* specified earlier within /ircd.conf/.
2013 2030
 
2014 2031
 #+BEGIN_SRC: bash
2032
+/server add -auto -network mynetwork -ssl mydonainname.com 6670
2033
+
2015 2034
 /connect mydomainname.com
2016 2035
 
2017 2036
 /join #mychannel
@@ -2021,6 +2040,22 @@ In irssi:
2021 2040
 /msg -servername chanserv set #mychannel mlock +k channelpassword
2022 2041
 #+END_SRC
2023 2042
 
2043
+If you edit the irssi config file you should find your server configuration looks like this:
2044
+
2045
+#+BEGIN_SRC: bash
2046
+  {
2047
+    address = "mydomainname.com";
2048
+    chatnet = "mynetwork";
2049
+    port = "6670";
2050
+    password = "mysendacceptpassword";
2051
+    use_ssl = "yes";
2052
+    ssl_verify = "no";
2053
+    autoconnect = "yes";
2054
+  },
2055
+#+END_SRC
2056
+
2057
+If you're not using a self-signed certificate (which is the default) then you can set *ssl_verify* to "yes".
2058
+
2024 2059
 ** Install Gopher
2025 2060
 Gopher is an old internet protocol which originated a few years before the web and is purely text based.  It can be quite fun to build a gopher site and browse the gopherverse.  One thing to keep in mind is that there is no security with gopher, so any text transmitted is trivially interceptable by systems such as [[https://en.wikipedia.org/wiki/XKeyscore][Xkeyscore]] or deep packet inspection.
2026 2061
 
@@ -2544,7 +2579,6 @@ The following ports on your internet router/firewall should be forwarded to the
2544 2579
 | HTTP     |         80 |
2545 2580
 | HTTPS    |        443 |
2546 2581
 | IMAP     |        143 |
2547
-| IRC      | 6665..6669 |
2548 2582
 | IRC SSL  |       6670 |
2549 2583
 | SIP      | 5060..5061 |
2550 2584
 | SMTP     |         25 |