version=pmwiki-2.2.130 ordered=1 urlencoded=1 agent=w3m/0.5.3+git20210102 author=jrmu charset=UTF-8 csum= ctime=1597743831 host=38.87.162.154 name=Openbsd.Hopm rev=4 targets=Openbsd.Doas text=(:redirect hopm/install:)%0a!! Pre-requisites%0a# It is assumed you have ''[[Openbsd/Doas|doas]]'' configured properly. If you do not have this configured properly and are interfacing with your server as root, you are asking for trouble!%0a# It is assumed you have ran ''adduser'' before. If not, you can run it and the majority of the defaults are fine.%0a# It is **also** assumed you have your own favourite text editor. If you **do not have** a favourite text editor, I recommend installing ''nano'' via ''doas pkg_add nano''. You must know how to use your favourite text editor as I won't cover you on how to use it.%0a%0a!! Installation%0aCreate hopm as its own user.%0a%0a[@%0a$ doas adduser%0aUse option ``-silent'' if you don't want to see all warnings and questions.%0a%0aReading /etc/shells%0aCheck /etc/master.passwd%0aCheck /etc/group%0a%0aOk, let's go.%0aDon't worry about mistakes. There will be a chance later to correct any input.%0aEnter username []: hopm%0aEnter full name []: hopm%0aEnter shell bash csh jk_chrootsh ksh nologin sh [ksh]: nologin%0aUid [1002]: 65532%0aLogin group hopm [hopm]: %0aLogin group is ``hopm''. Invite hopm into other groups: guest no %0a[no]: %0aLogin class authpf bgpd daemon default pbuild staff unbound znc %0a[default]: daemon%0aEnter password []: %0aDisable password logins for the user? (y/n) [n]: y%0a%0aName: hopm%0aPassword: ****%0aFullname: hopm%0aUid: 65532%0aGid: 65532 (hopm)%0aGroups: hopm %0aLogin Class: daemon%0aHOME: /home/hopm%0aShell: /sbin/nologin%0aOK? (y/n) [y]: %0aAdded user ``hopm''%0aCopy files from /etc/skel to /home/hopm%0aAdd another user? (y/n) [y]: n%0aGoodbye!%0a@]%0a%0aInstall the necessary ''wget'' package which is required for pulling files. ''gmake'' is required for compiling and installing.%0a[@%0a$ doas pkg_add wget gmake%0a@]%0a%0aGrab the latest [[https://github.com/ircd-hybrid/hopm/releases|hopm]]. As of writing, 1.1.6 is the latest.%0a[@%0a$ doas -u hopm wget "https://github.com/ircd-hybrid/hopm/archive/1.1.6.tar.gz" -O "/home/hopm/hopm-1.1.6.tar.gz"%0a@]%0a%0aDecompress the downloaded tarball, after you navigate into its own home directory.%0a[@%0a$ cd /home/hopm%0a$ doas -u hopm tar zxf hopm-1.1.6.tar.gz%0a@]%0a%0aNavigate into the extracted path and run configure within it.%0a[@%0a$ cd hopm-1.1.6%0a$ doas -u hopm ./configure%0a@]%0a%0aRun ''gmake'' as per instructed. Then ''gmake install'' which will install into its ''$HOME/hopm'' by default.%0a[@%0a$ doas -u hopm gmake%0a$ doas -u hopm gmake install%0a@]%0a%0aCopy ''hopm/etc/reference.conf'' as ''hopm/etc/hopm.conf'' and edit with **your own favourite text editor**. In my case I use ''vim''.%0a[@%0a$ cd ../hopm/etc%0a$ doas -u hopm cp reference.conf hopm.conf%0a$ doas -u hopm vim hopm.conf%0a@]%0a%0aMake necessary adjustments within the ''hopm.conf'' to suit your server/network configuration. Save and exit out of **your own favourite text editor**. In the first few running instances, I would enable debug mode to see if there were any issues with the configuration.%0a[@%0a$ cd ../bin%0a$ doas -u hopm hopm -dd%0a@]%0a%0a!! Troubleshooting%0aGetting hopm configured right can be tricky. So, here are some few hints and tips.%0a%0a# Ideally, for the initial testing/trialling phase, you do not want hopm to be running in the background. This is especially true if you aren't familiar with UNIX. To workaround this, you can run hopm with -d, e.g.%0a[@%0a$ ./hopm -d%0a@]%0aYou can specify the -d however many times needed but its usefulness typically stops after the second "d",%0a[@%0a$ ./hopm -dd%0a@]%0aAlso see [[https://github.com/ircd-hybrid/hopm/blob/master/README|here]]%0a%0aIf you see this error:%0a%0a[@%0a[2021-01-23T09:59:14-0600] IRC -> connect(): error connecting to username.coconut.ircnow.org: Connection refused %0a[2021-01-23T09:59:14-0600] IRC -> Connection to (username.coconut.ircnow.org) failed, reconnecting. %0a[2021-01-23T09:59:14-0600] IRC -> connect(): error connecting to username.coconut.ircnow.org: Connection refused%0a@]%0a%0aThis may be due to a configuration issue with ngircd. In particular, if the hostname has an AAAA record, hopm may be trying to connect via IPv6 but ngircd does not listen to IPv6 connections.%0a%0a!! Run Hopm as System Daemon%0aFor this refer to this page https://ircnow.org/kb/doku.php?id=openbsd:rc.d%0a%0a# Syntax errors when hopm is running in foreground. This is either the result of missing brackets where needed in config file, or that the file has DOS encodings. See [[https://github.com/ircd-hybrid/hopm/issues/22#issuecomment-301276082]] here. The missing brackets where it was needed may come from the previous section, compared to the line/s where it is indicated by hopm when executed.%0a time=1649138949 author:1649138949=jrmu diff:1649138949:1611418362:=1d0%0a%3c (:redirect hopm/install:)%0a115c114%0a%3c # Syntax errors when hopm is running in foreground. This is either the result of missing brackets where needed in config file, or that the file has DOS encodings. See [[https://github.com/ircd-hybrid/hopm/issues/22#issuecomment-301276082]] here. The missing brackets where it was needed may come from the previous section, compared to the line/s where it is indicated by hopm when executed.%0a---%0a> # Syntax errors when hopm is running in foreground. This is either the result of missing brackets where needed in config file, or that the file has DOS encodings. See [[https://github.com/ircd-hybrid/hopm/issues/22#issuecomment-301276082]] here. The missing brackets where it was needed may come from the previous section, compared to the line/s where it is indicated by hopm when executed.%0a\ No newline at end of file%0a host:1649138949=38.87.162.154 author:1611418362=jrmu diff:1611418362:1610543985:=100,109d99%0a%3c %0a%3c If you see this error:%0a%3c %0a%3c [@%0a%3c [2021-01-23T09:59:14-0600] IRC -> connect(): error connecting to username.coconut.ircnow.org: Connection refused %0a%3c [2021-01-23T09:59:14-0600] IRC -> Connection to (username.coconut.ircnow.org) failed, reconnecting. %0a%3c [2021-01-23T09:59:14-0600] IRC -> connect(): error connecting to username.coconut.ircnow.org: Connection refused%0a%3c @]%0a%3c %0a%3c This may be due to a configuration issue with ngircd. In particular, if the hostname has an AAAA record, hopm may be trying to connect via IPv6 but ngircd does not listen to IPv6 connections.%0a host:1611418362=125.231.20.163 author:1610543985=miniontoby csum:1610543985=doas url fix diff:1610543985:1597743831:=2c2%0a%3c # It is assumed you have ''[[Openbsd/Doas|doas]]'' configured properly. If you do not have this configured properly and are interfacing with your server as root, you are asking for trouble!%0a---%0a> # It is assumed you have ''[[openbsd:doas|doas]]'' configured properly. If you do not have this configured properly and are interfacing with your server as root, you are asking for trouble!%0a host:1610543985=145.132.146.30 author:1597743831=jrmu diff:1597743831:1597743831:=1,104d0%0a%3c !! Pre-requisites%0a%3c # It is assumed you have ''[[openbsd:doas|doas]]'' configured properly. If you do not have this configured properly and are interfacing with your server as root, you are asking for trouble!%0a%3c # It is assumed you have ran ''adduser'' before. If not, you can run it and the majority of the defaults are fine.%0a%3c # It is **also** assumed you have your own favourite text editor. If you **do not have** a favourite text editor, I recommend installing ''nano'' via ''doas pkg_add nano''. You must know how to use your favourite text editor as I won't cover you on how to use it.%0a%3c %0a%3c !! Installation%0a%3c Create hopm as its own user.%0a%3c %0a%3c [@%0a%3c $ doas adduser%0a%3c Use option ``-silent'' if you don't want to see all warnings and questions.%0a%3c %0a%3c Reading /etc/shells%0a%3c Check /etc/master.passwd%0a%3c Check /etc/group%0a%3c %0a%3c Ok, let's go.%0a%3c Don't worry about mistakes. There will be a chance later to correct any input.%0a%3c Enter username []: hopm%0a%3c Enter full name []: hopm%0a%3c Enter shell bash csh jk_chrootsh ksh nologin sh [ksh]: nologin%0a%3c Uid [1002]: 65532%0a%3c Login group hopm [hopm]: %0a%3c Login group is ``hopm''. Invite hopm into other groups: guest no %0a%3c [no]: %0a%3c Login class authpf bgpd daemon default pbuild staff unbound znc %0a%3c [default]: daemon%0a%3c Enter password []: %0a%3c Disable password logins for the user? (y/n) [n]: y%0a%3c %0a%3c Name: hopm%0a%3c Password: ****%0a%3c Fullname: hopm%0a%3c Uid: 65532%0a%3c Gid: 65532 (hopm)%0a%3c Groups: hopm %0a%3c Login Class: daemon%0a%3c HOME: /home/hopm%0a%3c Shell: /sbin/nologin%0a%3c OK? (y/n) [y]: %0a%3c Added user ``hopm''%0a%3c Copy files from /etc/skel to /home/hopm%0a%3c Add another user? (y/n) [y]: n%0a%3c Goodbye!%0a%3c @]%0a%3c %0a%3c Install the necessary ''wget'' package which is required for pulling files. ''gmake'' is required for compiling and installing.%0a%3c [@%0a%3c $ doas pkg_add wget gmake%0a%3c @]%0a%3c %0a%3c Grab the latest [[https://github.com/ircd-hybrid/hopm/releases|hopm]]. As of writing, 1.1.6 is the latest.%0a%3c [@%0a%3c $ doas -u hopm wget "https://github.com/ircd-hybrid/hopm/archive/1.1.6.tar.gz" -O "/home/hopm/hopm-1.1.6.tar.gz"%0a%3c @]%0a%3c %0a%3c Decompress the downloaded tarball, after you navigate into its own home directory.%0a%3c [@%0a%3c $ cd /home/hopm%0a%3c $ doas -u hopm tar zxf hopm-1.1.6.tar.gz%0a%3c @]%0a%3c %0a%3c Navigate into the extracted path and run configure within it.%0a%3c [@%0a%3c $ cd hopm-1.1.6%0a%3c $ doas -u hopm ./configure%0a%3c @]%0a%3c %0a%3c Run ''gmake'' as per instructed. Then ''gmake install'' which will install into its ''$HOME/hopm'' by default.%0a%3c [@%0a%3c $ doas -u hopm gmake%0a%3c $ doas -u hopm gmake install%0a%3c @]%0a%3c %0a%3c Copy ''hopm/etc/reference.conf'' as ''hopm/etc/hopm.conf'' and edit with **your own favourite text editor**. In my case I use ''vim''.%0a%3c [@%0a%3c $ cd ../hopm/etc%0a%3c $ doas -u hopm cp reference.conf hopm.conf%0a%3c $ doas -u hopm vim hopm.conf%0a%3c @]%0a%3c %0a%3c Make necessary adjustments within the ''hopm.conf'' to suit your server/network configuration. Save and exit out of **your own favourite text editor**. In the first few running instances, I would enable debug mode to see if there were any issues with the configuration.%0a%3c [@%0a%3c $ cd ../bin%0a%3c $ doas -u hopm hopm -dd%0a%3c @]%0a%3c %0a%3c !! Troubleshooting%0a%3c Getting hopm configured right can be tricky. So, here are some few hints and tips.%0a%3c %0a%3c # Ideally, for the initial testing/trialling phase, you do not want hopm to be running in the background. This is especially true if you aren't familiar with UNIX. To workaround this, you can run hopm with -d, e.g.%0a%3c [@%0a%3c $ ./hopm -d%0a%3c @]%0a%3c You can specify the -d however many times needed but its usefulness typically stops after the second "d",%0a%3c [@%0a%3c $ ./hopm -dd%0a%3c @]%0a%3c Also see [[https://github.com/ircd-hybrid/hopm/blob/master/README|here]]%0a%3c %0a%3c !! Run Hopm as System Daemon%0a%3c For this refer to this page https://ircnow.org/kb/doku.php?id=openbsd:rc.d%0a%3c %0a%3c # Syntax errors when hopm is running in foreground. This is either the result of missing brackets where needed in config file, or that the file has DOS encodings. See [[https://github.com/ircd-hybrid/hopm/issues/22#issuecomment-301276082]] here. The missing brackets where it was needed may come from the previous section, compared to the line/s where it is indicated by hopm when executed.%0a\ No newline at end of file%0a host:1597743831=38.81.163.143