ZNC Bouncer
First install some dependencies:
1 2 3 |
sudo apt-get update && sudo apt-get install build-essential libssl-dev libperl-dev |
Then download the source code:
1 2 3 |
wget http://znc.in/releases/znc-latest.tar.gz |
Extract it:
1 2 3 |
sudo tar -xzvf znc-latest.tar.gz |
Move to the folder:
1 2 3 |
cd znc* |
Configure the source:
1 2 3 |
./configure |
Compile the source:
1 2 3 |
make |
This is going to take about 20mins or so, just be patient.
When its finished type:
1 2 3 |
sudo make install |
Now that its installed we want to set it up!
1 2 3 |
znc --makeconf |
You’ll be asked what port you want ZNC to listen on, I chose 4000.
1 2 3 4 5 6 7 8 |
What port would you like ZNC to listen on? (1025 to 65535): 4000 Choose yes for SSL and creating a pem file: Would you like ZNC to listen using SSL? (yes/no) [no]: yes Would you like to create a new pem file now? (yes/no) [yes]: yes |
It will then ask what IPs to listen on, just leave it blank to listen on all.
1 2 3 |
Listen Host (Blank for all ips): |
Then create a user and make them admin:
1 2 3 4 5 6 |
Username (AlphaNumeric): owen Enter Password: ********** Confirm Password: ********** Would you like this user to be an admin? (yes/no) [yes]: yes |
Setup your IRC nickname:
1 2 3 4 5 |
Nick [FirstUser]: Owen Alt Nick [IRCNickname_]: Owen_ Real Name [Got ZNC?]: Owen Mooney |
The next three settings you can leave at defaults (just hit return):
1 2 3 4 5 6 |
Bind Host (optional): Number of lines to buffer per channel [50]: Would you like to clear channel buffers after replay? (yes/no) [yes]: Default channel modes [+stn]: +stn |
Afterword you get to pick which modules you want to have, make sure to say yes to Webmin as it makes configuring ZNC much easier.
1 2 3 |
Load module ? (yes/no) [no]: yes |
Say no to adding a network, it’s easier via the web interface.
1 2 3 |
Would you like to set up a network? (yes/no) [no]: no |
Then start ZNC when it asks:
1 2 3 |
Launch ZNC now? (yes/no) [yes]: yes |
You can now change settings on the ZNC web interface at:
https://your_ip_address:4000
Auto Start on reboot:
1 2 3 |
crontab -e |
at the bottom, add:
1 2 3 |
@reboot /usr/local/bin/znc >/dev/null 2>&1 |