-
Notifications
You must be signed in to change notification settings - Fork 6
Installation
Installation is relatively simple. For now I will only write instructions for installing on Ubuntu OS, but it should be easy enough to extrapolate to your preferred system.
- Install PHP, SQL and necessary packages.
$ sudo apt install php php-mbstring php-cli php-mysql
- Install security transport layer
$ sudo apt install openssl libssl-dev
- Install screen
$ sudo apt install screen
- Install Git
$ sudo apt install git
Or, if you want to achieve all of the above in one swift command, you can do:
$ sudo apt install php php-mbstring php-mysql php-cli openssl libssl-dev screen git
We download from GitHub directly, so:
$ cd ~ && git clone https://github.com/DalekIRC/Dalek-Services
Next, we move into the Dalek-Services
directory (cd Dalek-Services
) and copy the example configuration to dalek.conf
(cp example.dalek.conf dalek.conf
).
Once you've created and tweaked your configuration file, you can generate an unrealircd-style link block for your unrealircd.conf by using the following in your terminal:
./dalek genconf
which will give you something which looks similar to this:
*************** Dalek IRC Services link block for UnrealIRCd ***************
Just copy and paste this into your unrealircd.conf:
##################################################################################
link services.chat.lol
{
incoming {
mask *@127.0.0.1;
}
password "SuperSecretPasswordLmao123";
class servers;
}
ulines {
services.chat.lol;
}
##################################################################################
Dalek needs to use a port 1024. This is for the RPC server. If your ports are not open, you should open 1024 available for localhost only.
Once you've got a link block set up you can start the services by running:
./dalek start
You can stop them in a similar manner:
./dalek stop
Dalek IRC allows loading and unloading code on the go.
You should put your modules in the src/modules/third
folder.
You can load and unload modules as well as list which ones you have currently loaded.
./dalek module list // lists 3rd party modules
./dalek module list all // lists all modules loaded
./dalek module load third/os_raw // loads the module from the `third` folder
./dalek module unload os_raw // unloads the module, note we don't need to specify "third" here