From 2d054edbac046868af7797a8e5f4ba31a3621335 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Thu, 1 Jul 2021 16:26:44 -0400 Subject: irc tweaks --- irc.html | 53 ++++++++++++++++++++++++++--------------------------- 1 file changed, 26 insertions(+), 27 deletions(-) diff --git a/irc.html b/irc.html index dfc9e9c..57c8c8f 100644 --- a/irc.html +++ b/irc.html @@ -34,8 +34,7 @@ This is good practice for installing software/servers manually, as it give you more fine-grained control over which permissions the application has.

-
useradd -m ergo
-chsh ergo --shell /bin/bash
+
useradd -m ergo -s /bin/bash

Next, we want to switch to our newly created ergo user and create the server directory. @@ -50,10 +49,10 @@ mkdir server Once you have selected the correct package, copy its URL and replace <release url> with the package URL (still as the ergo user):

-
wget "<release url>"
-tar -xf ergo-*-*.tar.gz
-mv ergo-*-*/* .
-rm -r ergo-*-*
+
wget https://github.com/ergochat/ergo/releases/download/v2.7.0/ergo-2.7.0-linux-x86_64.tar.gz
+tar -xf ergo-2.7.0-linux-x86_64.tar.gz
+mv ergo-2.7.0-linux-x86_64/*
+rm -r ergo-2.7.0-linux-x86_64*

Executing ls -l should now yield something like this:

@@ -82,7 +81,7 @@ drwxr-xr-x 2 ergo ergo 12288 Jul 1 09:01 languages

sudo -i -u ergo
-cd server
+cd ~/server

Next, generate certificate files for TLS: @@ -128,7 +127,7 @@ cp ergo.motd ircd.motd network: # name of the network name: "Land-Chat" - +

Change the server name to your server's domain name.

# server configuration
@@ -290,23 +289,23 @@ channels:
     # +n is no-external-messages and +t is op-only-topic
     # see  /QUOTE HELP cmodes  for more channel modes
     default-modes: +nt
-  
+
     # how many channels can a client be in at once?
     max-channels-per-client: 100
-  
+
     # if this is true, new channels can only be created by operators with the
     # `chanreg` operator capability
     operator-only-creation: false
-  
+
     # channel registration - requires an account
     registration:
         # can users register new channels?
         enabled: true
-  
+
         # restrict new channel registrations to operators only?
         # (operators can then transfer channels to regular users using /CS TRANSFER)
         operator-only: false
-  
+
         # how many channels can each account register?
         max-channels-per-account: 15
@@ -324,7 +323,7 @@ oper-classes: "chat-moderator": # title shown in WHOIS title: Chat Moderator - + # capability names capabilities: - "kill" @@ -336,16 +335,16 @@ oper-classes: - "sajoin" - "samode" - "snomasks" - + # server admin: has full control of the ircd, including nickname and # channel registrations "server-admin": # title shown in WHOIS title: Server Admin - + # oper class this extends from extends: "chat-moderator" - + # capability names capabilities: - "rehash" @@ -366,23 +365,23 @@ opers: "gigachad": # which capabilities this oper has access to class: "server-admin" - + # custom whois line whois-line: is the server administrator - + # custom hostname vhost: "gigachad" - + # normally, operator status is visible to unprivileged users in WHO and WHOIS # responses. this can be disabled with 'hidden'. ('hidden' also causes the # 'vhost' line above to be ignored.) hidden: false - + # modes are modes to auto-set upon opering-up. uncomment this to automatically # enable snomasks ("server notification masks" that alert you to server events; # see `/quote help snomasks` while opered-up for more information): #modes: +is acjknoqtuxv - + # operators can be authenticated either by password (with the /OPER command), # or by certificate fingerprint, or both. if a password hash is set, then a # password is required to oper up (e.g., /OPER dan mypassword). to generate @@ -497,17 +496,17 @@ retention: fakelag: # whether to enforce fakelag enabled: true - + # time unit for counting command rates window: 1s - + # clients can send this many commands without fakelag being imposed burst-limit: 5 - + # once clients have exceeded their burst allowance, they can send only # this many commands per `window`: messages-per-window: 2 - + # client status resets to the default state if they go this long without # sending any commands: cooldown: 2s @@ -516,7 +515,7 @@ fakelag:

Now that Ergo is both installed and configured, you can actually start using it!

- +

Starting the server

First thing, make sure you're still using the ergo user, and are in the ~/server directory.
-- cgit v1.2.3