FreeBSD and BitchX
Author: jason
Date: 2003-11-23
Category: Technical

All righty then... So you want to IRC from work... But your work monitors/blocks access to IRC (6667), or whatever. You've got BSD/Linux running at home, don't you? Well, don't you??!!

Use BitchX across SSH!

Go to: http://www.bitchx.org and download the following file: ircii-pana-1.0c19.tar.gz, or the latest version. Here's another tut, if you like: http://www.linuxhelp.net/guides/bitchx/

But you're also going to need to download ncurses, if you are using Linux. I happen to prefer: ncurses-4.2.tar.gz. Because for some reason the later versions tend to error out on install on RedHat... ncurses is a library for controlling a screen's display... Quick little guide to ncurses here: http://wls.wwco.com/lqh/ncurses.php. Download ncurses here: http://ftp.gnu.org/gnu/ncurses.

All righty then. Ya gottem? Throw those files in a tmp dir on your box. You can skip the ncurses steps if your on BSD.

>mv ncurses-4.2.tar.gz /tmp
>mv ircii-pana-1.0c19.tar.gz /tmp
>cd /tmp
>tar -zxvf ncurses-4.2.tar.gz
>tar -zxvf ircii-pana-1.0c19.tar.gz
>cd ncurses-4.2
>./configure
>make
>make install
>cd ../ircii-pana-1.0c19
>./configure
>make
>make install

It installs into: /usr/local/bin/ If you get errors on the ./configure then you're missing some libraries. Go to google and search for the library... Then install it, and try again...

>/usr/local/bin/BitchX irc.zerofuzion.net jtf-rules

So it's Program + IRC Network + Nickname. After that BitchX should write a really cool graphic to the screen, connect to the irc network... Now... You don't want to type that out everytime, do you??? Why not make a script that does it for you?!

>cd /home/yourhomedirectory
>vi bitchx.sh

Hit the Insert key and type:
/usr/local/bin/BitchX irc.zerofuzion.net jtf-rules

Then hit the Escape key.
Type :wq!
Now you have to set execute on the script file...

>chmod bitchx.sh 755

Then type bitchx.sh
And away you go!

Now all you have to do is SSH in from work (using putty) and run bitchx.sh from your home directory.

Here are some cool tips

To connect to an iroffer bot and issue commands:
/msg BOT admin PASS chatme
/m =BOT PASS
/m =BOT MORE COMMANDS

To use the shell while Bitchx'ing type: screen BitchX irc.zerofuzion.net jtf-rules
To leave BitchX and go to shell type: Ctrl + A + D
To get back into BitchX from shell type: screen -r

To chat in multiple windows in BitchX type: /window new double on hide
To change to the new window type: Alt + 2
To connect to a network in that window type: /window server NETWORK
To disconnect that window's network type: /window discon
To go back to first window type: Alt + 1

Now you're a BitchX geek!

*********
written by jasonthomasfrance
date 23 Nov 2003
systems RedHat 9.0, FreeBSD 4.8
*********



jason @ jasonthomasfrance.com - www.masterstationlog.com - copyright 2009