From f2b536d6931659543e5ad031fd4c9ae43a13953c Mon Sep 17 00:00:00 2001 From: = Date: Thu, 1 Jul 2021 14:40:01 -0400 Subject: [PATCH] remove unnecessary uses of sudo --- irc.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/irc.html b/irc.html index debf10d..4b8e3a9 100644 --- a/irc.html +++ b/irc.html @@ -34,8 +34,8 @@ This is good practice for installing software/servers manually, as it give you more fine-grained control over which permissions the application has.

-
sudo useradd -m ergo
-sudo chsh ergo --shell /bin/sh
+
useradd -m ergo
+chsh ergo --shell /bin/sh

Next, we want to switch to our newly created ergo user and create the server directory. @@ -538,7 +538,7 @@ cd server

It will stay online until you close the terminal, or press CTRL+C. Don't worry, the next section goes over how to make it run like a normal server with a SystemD service.
If you have not already, make sure the port 6697 is not blocked on your server. If you are using UFW as your firewall, - you need to run sudo ufw enable 6697 (not as the ergo user, of course). + you need to run ufw enable 6697 (not as the ergo user, of course).

Connecting to the server

@@ -626,9 +626,9 @@ WantedBy=multi-user.target To install it, switch to your normal user, and execute the following lines to install, enable, and start the SystemD service:

-
sudo ln -s /home/ergo/server/ergo.service /etc/systemd/system/ergo.service
-sudo systemctl enable ergo
-sudo systemctl start ergo
+
ln -s /home/ergo/server/ergo.service /etc/systemd/system/ergo.service
+systemctl enable ergo
+systemctl start ergo

Ergo is now installed and running as a service, and will automatically start when the system boots.