2021-05-21 22:01:06 +00:00
|
|
|
# Getting started
|
|
|
|
|
|
|
|
## Server side
|
|
|
|
|
2022-04-06 13:56:18 +00:00
|
|
|
Start by installing soju via your distribution's [package manager].
|
|
|
|
Alternatively, you can compile it from source (see the [README]).
|
|
|
|
|
2021-05-21 22:01:06 +00:00
|
|
|
To create an admin user and start soju, run these commands:
|
|
|
|
|
|
|
|
sojuctl create-user <soju username> -admin
|
|
|
|
soju -listen irc+insecure://127.0.0.1:6667
|
|
|
|
|
2022-03-26 17:42:34 +00:00
|
|
|
soju will listen for unencrypted IRC connections on the default port. This is
|
|
|
|
enough for local experiments, but for a proper setup you will need to configure
|
|
|
|
TLS (e.g. by setting up a reverse proxy, or by specifying the TLS certificates
|
|
|
|
in the soju configuration file). Setting up on-disk chat logs is recommended.
|
|
|
|
|
2021-05-21 22:01:06 +00:00
|
|
|
If you're migrating from ZNC, a tool is available to import users, networks and
|
|
|
|
channels from a ZNC config file:
|
|
|
|
|
2022-07-04 13:52:09 +00:00
|
|
|
go run ./contrib/znc-import <znc config file>
|
2021-05-21 22:01:06 +00:00
|
|
|
|
|
|
|
## Client side
|
|
|
|
|
2022-03-24 18:16:43 +00:00
|
|
|
### Client supporting `soju.im/bouncer-networks`
|
2021-05-21 22:01:06 +00:00
|
|
|
|
2022-05-05 16:51:41 +00:00
|
|
|
If you are using a client supporting the `soju.im/bouncer-networks` IRC
|
2022-03-24 18:16:43 +00:00
|
|
|
extension (see the [client list]), then you can just connect to soju with your
|
|
|
|
username and password.
|
2021-05-21 22:01:06 +00:00
|
|
|
|
2022-03-24 18:16:43 +00:00
|
|
|
If your client doesn't provide a UI to manage IRC networks, you can talk to
|
|
|
|
`BouncerServ`. See the [man page] or use `/msg BouncerServ help`.
|
2021-05-21 22:01:06 +00:00
|
|
|
|
2022-03-24 18:16:43 +00:00
|
|
|
### Other clients
|
|
|
|
|
|
|
|
You will need to setup one separate server in your client for each server you
|
|
|
|
want soju to connect to.
|
|
|
|
|
|
|
|
The easiest way to get started is to specify the IRC server address directly in
|
|
|
|
the username in the client configuration. For example to connect to Libera Chat,
|
|
|
|
your username will be: `<soju username>/irc.libera.chat`. Also set your soju
|
|
|
|
password in the password field of your client configuration.
|
2021-05-21 22:01:06 +00:00
|
|
|
|
|
|
|
This will autoconfigure soju by adding a network with the address
|
2021-05-26 06:38:33 +00:00
|
|
|
`irc.libera.chat` and then autoconnect to it. You will now be able to join
|
2021-05-21 22:01:06 +00:00
|
|
|
any channel like you would normally do.
|
|
|
|
|
2022-03-24 18:16:43 +00:00
|
|
|
For more advanced configuration options, you can talk to `BouncerServ`. See the
|
|
|
|
[man page] or use `/msg BouncerServ help`.
|
2021-05-21 22:01:06 +00:00
|
|
|
|
2022-03-26 17:22:33 +00:00
|
|
|
If you intend to connect to the bouncer from multiple clients, you will need to
|
|
|
|
append a client name in your username. For instance, to connect from a laptop
|
|
|
|
and a workstation, you can setup each client to use the respective usernames
|
|
|
|
`<soju username>/irc.libera.chat@laptop` and
|
|
|
|
`<soju username>/irc.libera.chat@workstation`.
|
|
|
|
|
2022-04-06 13:56:18 +00:00
|
|
|
[package manager]: https://repology.org/project/soju/versions
|
|
|
|
[README]: ../README.md
|
2022-03-24 18:16:43 +00:00
|
|
|
[man page]: https://soju.im/doc/soju.1.html#IRC_SERVICE
|
|
|
|
[client list]: ../contrib/clients.md
|