ZNC (IRC bouncer) Install following ports guide problem

paradoxiom

Patron
Joined
Jun 16, 2015
Messages
239
Following the thread here trying to setup a ZNC on my server again. Ran into this problem;

"
3. Now to update the ports you have. We will compile portmaster and use that to update the ports installed applications you already have.

# /usr/ports/ports-mgmt/portmaster "

root@ZNC:/ # /usr/ports/ports-mgmt/portmaster
/usr/ports/ports-mgmt/portmaster: Permission denied.
root@ZNC:/ #

Followed everything directly but can't get past this. Everything fine up until this point. Made a new user, gave it sudo and made it owner of the jail etc and tried logging in with that and still no dice. Tried googling the error and none of the posted solutions worked etc.

Help please.
 

paradoxiom

Patron
Joined
Jun 16, 2015
Messages
239
New install on 13-beta
"don't know how to make install" with a beta-13 basejail
tried the previous release basejail (which I know it worked on):


Untitled.png
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
portmaster is old/deprecated, you should use svnlite or git to update ports now:

svnlite co https://svn.freebsd.org/ports/head /usr/ports
or
svnlite co https://svn.freebsd.org/ports/branches/2021Q1 /usr/ports
followed by
cd /usr/ports; svnlite update for subsequent updates.

Credit:
 

paradoxiom

Patron
Joined
Jun 16, 2015
Messages
239
Thanks for that
 

paradoxiom

Patron
Joined
Jun 16, 2015
Messages
239
1645802306335.png
Fails near the end of make install clean :(
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Is there a reason you can't use the pkg? (pkg install znc)

You're using an 8 year old post there to install from.
 

paradoxiom

Patron
Joined
Jun 16, 2015
Messages
239
I don't know why I ended up following that guide, but I remember having a lot of trouble trying to get it installed manually (don't like using plugins). I probably came across it on google and just followed it. Thanks
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
I take it the pkg install worked?
 

paradoxiom

Patron
Joined
Jun 16, 2015
Messages
239
I've just installed the pkg and following the old guide, did adduser, created the znc-admin user, the next step would be "
cd /usr/ports/irc/znc
znc --makeconf" to create the config file, but since it's not a port I'm gonna try and find the right place.

Edit: Figured that out.
1645806829030.png
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
You can entirely replace the ports/make instructions with pkg install znc (yes, that's all).

At the end of the install, it is supposed to display for you the message on how to launch the config maker:

su -m znc -c 'znc -d /usr/local/etc/znc --makeconf'
 

paradoxiom

Patron
Joined
Jun 16, 2015
Messages
239
I've got it running and connected to irc, but the web-ui won't load, the config-result said go to jail ip:<listen port,5555>,
"This site can’t be reached
192.168.1.49 refused to connect."

Any ideas? I think this is a problem I had a few times trying to install it and the ports version just ended up working for me.

while you're here, I created a user to create the config in the jail but I used a random password, I wanted to stop and restart the server but I had to su into that user to be able to do so, but I do not know the password - I've searched like how to modify iocage users but I can only find the adduser command.

Edit: I restarted the jail and tried again and it didn't prompt for a password, now this;
1645808171730.png


Edit 2:
1645808232333.png

hmm..
 
Last edited:

paradoxiom

Patron
Joined
Jun 16, 2015
Messages
239
Yeah I'm still not getting the webgui for some reason.

Latest attempt I tried restarting the service, "does not exist in or blabla" even with : ${znc_enable:="YES"}
Not really sure why it works and connects with the user I create when I make the config, but no webui, and can't stop/restart it :|

Start with new basejauil, change packages from quarterly to latest, allow raw sockets / mlock (tried both on and off since some things seem to require this to work)

Code:
svnlite co https://svn.freebsd.org/ports/branches/2021Q1 /usr/ports

cd /usr/ports; svnlite update

pkg install znc

su -m znc -c 'znc -d /usr/local/etc/znc --makeconf'



1646258356855.png

(I realize I did the server host wrong in this install.)

Edit: I was going through again and writing down exactly what I did, and now this time it works. Hooray.
 
Last edited:

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Since you're installing the pkg and not making anything, the svnlite steps are useless and just waste time and disk space.
 
Top