PsyBNC Installation on Ubuntu Hardy
I used these steps for my new vps about a month ago. These are the exact steps to install and to run a psyBNC on your Ubuntu Hardy machine. They also can be used for Debian machine.
Okay, these are the steps:
Download the latest version of psybnc:
$ wget http://www.psybnc.at/download/beta/psyBNC-2.3.2-7.tar.gz
$ tar -zxvf psyBNC-2.3.2-7.tar.gz
After the extraction process, you’ll see a new folder called ‘psybnc’. Get into it:
$ cd psybnc
Now let’s move into the big step… 🙂
$ make menuconfig
The result is:
[*] Running Conversion Tool for older psyBNC Data.
[*] Running Autoconfig.
Socket Libs: Internal.
Time-Headers: in time.h and sys/time.h
Byte order: Low Endian.
Random Seed created.
[*] Creating Menu, please wait.
This needs the ncurses library. If it is not available, menuconf wont work. If you are using curses, use make menuconfig-curses instead.
make: *** [menuconfig] Error 1
What the hell is this? Hehehe… It says that the ‘make menuconfig’ needs ncurses library to be installed on the machine. On my case (new Ubuntu Hardy server), this library was not installed by default.
We need to install the ncurses library. Remember, you must use root access for this.
$ sudo aptitude install libncurses5-dev
After it’s done, run the make menuconfig again:
$ make menuconfig
Here you can set the encryption mode, scripting, listening ports, hosts allowed, and other psybnc configuration before you compile it.
You can change it or leave it by default. Select Exit and press Enter. The result is:
Now compile psyBNC using make, if not yet compiled, or if Options were changed.
Okay, let’s compile the psybnc:
After about 30 seconds you will be prompted to make certificate key:
*** GENERATING SSL-KEYS FROM CERTIFICATE **
* You will be prompted for Cert-Contents *
* This Infos will be used only for SSL *
* Alter the informations to your values *
* for the sake of correct Cert-Checking *
Generating certificate request ..
Generating a 2048 bit RSA private key
writing new private key to 'key/psybnc.key.pem'
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
Country Name [DE]:
Fill the required field with whatever you like. You can see this example:
Country Name [DE]:US
Locality Name (eg, city) :Arcadia
Organization Name (eg, company) [tCl]:tCl
Organizational Unit Name (eg, section) [psyBNC]:psyBNC
Common Name (Full domain of your server) :malau.net
Ok, it’s done. 🙂
Now run the psyBNC:
You can connect to your psybnc using this command on irc:
/server your.psybnc.domain.or.ip port
Please remember that the port is what you set when running the ‘make menuconfig’ command. By default, the value is 31337.
That’s it! Enjoy! 🙂