📄 linux-irc-client-setup.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"><HTML><HEAD><TITLE>Josh's Linux Guide - Installing an IRC Client</TITLE> <META NAME="author" CONTENT="Joshua Go"> <META NAME="description" CONTENT="Documentation of how to obtain and compile a new Internet Relay Chat client for Linux."> <META NAME="keywords" CONTENT="Linux, josh, Joshua, Go, go, howto, url, tips, irc, ircii, client, chat"></HEAD><LINK REL="stylesheet" TYPE="text/css" HREF="default.css"><BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#7F007F"><H2><A NAME="0">Installing an IRC Client</A></H2><FONT SIZE="-1"><B>Author: <A HREF="mailto:jgo@local.net">Joshua Go</A></B></FONT><BR><FONT SIZE="-1"><B>Created on: March 28, 1998</B></FONT><BR><FONT SIZE="-1"><B>Last modified: February 6, 1999</B></FONT><BR><FONT SIZE="-1"><B>Status: Beta</B></FONT><BR><P>Just in case you don't know, an IRC client is a program that lets youaccess Internet Relay Chat using your machine. You connect to a server andthen chat with other people. It's quite popular among Linux users.</P><P>Many distributions come with IRC clients, but they're usually ircII,which isn't that great. You should get ircII-EPIC, a better client, whichis what this document covers. You will need to download the source andcompile it yourself; if you're not comfortable with this concept, that'sfine.</P><P>If you think this document sucks, check out <AHREF="http://www.frenzy.com/~bhauber/epic/">The Official EPICHomepage</A>; it has some good resources. If this doc is very old at all,check out the EPIC homepage for any updates.</P><OL><LI><A HREF="#downloadcompile">Download and Compile</A><LI><A HREF="#twochannels">Being In Two Places At Once: Opening New Windows for Channels</A> <UL> <LI><A HREF="#splitscreen">Splitting the Screen</A> <LI><A HREF="#openwinnew">Opening Up a New Window</A> <LI><A HREF="#wininfostartup">Putting New Window Information in Startup</A> </UL><LI><A HREF="#color">Color</A><LI><A HREF="#ircrc">Startup Script</A></OL><A NAME="downloadcompile"></A><H3><A NAME="1">Download and Compile</A></H3><P>Download the compressed archive into your <TT>/usr/src/</TT> or<TT>/usr/local/src</TT> directory. Let's assume that the archive is named<TT>./epic4pre2.001-NR10.tar.gz.</TT> You can grab the source(theoretically) from any of the following sites:</P><UL><LI><A HREF="ftp://ftp.epicsol.org/pub/epic">ftp://ftp.epicsol.org/pub/epic</A><LI><A HREF="ftp://ftp.acronet.net/pub/ircii">ftp://ftp.acronet.net/pub/ircii</A><LI><A HREF="ftp://ftp.neato.org/pub/irc">ftp://ftp.neato.org/pub/irc</A><LI><A HREF="ftp://epic.doggie.net/epic">ftp://epic.doggie.net/epic</A><LI><A HREF="ftp://ftp.parodius.com/pub/EPIC">ftp://ftp.parodius.com/pub/EPIC</A><LI><A HREF="ftp://clients.undernet.org/pub/irc/clients/unix/ircii">ftp://clients.undernet.org/pub/irc/clients/unix/ircii</A><LI><A HREF="ftp://ftp.lice.org/pub/irc/clients/epic">ftp://ftp.lice.org/pub/irc/clients/epic</A><LI><A HREF="ftp://ftp.shutdown.org/pub/epic">ftp://ftp.shutdown.org/pub/epic</A><LI><A HREF="ftp://ftp.memax.krakow.pl/pub/ircii">ftp://ftp.memax.krakow.pl/pub/ircii</A><LI><A HREF="ftp://ftp.totem.tihlde.hist.no/pub/mirrors/ftp.acronet.net/pub/ircii">ftp://ftp.totem.tihlde.hist.no/pub/mirrors/ftp.acronet.net/pub/ircii</A></UL><P>This list is from <AHREF="http://www.frenzy.com/~bhauber/epic/Ftp_Sites.html">EPIC FTPSites</A>, from <A HREF="http://www.frenzy.com/~bhauber/epic/">TheOfficial EPIC Homepage</A>.</P><P>So, after downloading it to <TT>/usr/src/</TT> or<TT>/usr/local/src/</TT> unpack the archive by typing:</P><PRE># tar -zxvf epic4pre2.001-NR10.tar.gz</PRE><P>This will unpack the directories and files needed to produce your brandnew IRC client. When it shows a whole bunch of files being listed, thenyou know it's unpacking. By the way, this is how you should unpack mostarchives you download. When it's done unpacking and you're back at thecommand prompt, <TT><B>cd</B></TT> to the <TT>./epic4pre2.001-NR10</TT>directory ('cd <TT>./epic4pre2.001-NR10',</TT> or replace the<TT>./epic4pree1.400</TT> with the directory the archive unpacked into.)When you're in the new directory, either read the INSTALL file(recommended even if you don't have a different archive) or use theseinstructions:</P><UL><LI><TT><B>./configure</B></TT><LI><TT><B>make</B></TT><LI><TT><B>make install</B></TT></UL><P>Again, make sure you're doing this from<TT>/usr/src/epic4pre2.001-NR10</TT> or<TT>/usr/local/src/epic4pre2.001-NR10,</TT> 'epic4pre2.001-NR10' being thedirectory that you extracted from the tarred and gzipped file. The fileyou have can be directly executed using the command <TT><B>epic</B></TT>(or <TT><B>irc</B></TT> on older versions of EPIC) after compiling. Thereare other versions of ircii around, though, remember. I am currently usingircII-EPIC4pre2.001-NR10 on my last update.</P><A NAME="twochannels"></A><H3><A NAME="2">Being in Two Places at Once: Opening New Windows for Channels</A></H3><P>If you want to be in two or more channels at the same time, there's noproblem with that; just type <TT><B>/join [Channel]</B></TT> everytime youwant to talk in that channel. Even if you've already joined that channel,it won't be set to be the active one until you type that again.</P><P>But what about if you want to split your screen into two or moresections, or maybe open up a whole new window for each channel (if you'rein X)? First I'll discuss how to split your screen, and switch betweenthem, then discuss new windows in X.</P><A NAME="splitscreen"></A><H4><A NAME="3">Splitting the Screen</A></H4><P>There are several steps that I take. First, I type<TT><B><TT>/bind</TT> ^w next window</B></TT> so that I can type Ctrl-w toswitch between portions of the screen. Then I split the screen by typing<TT><B><TT>/win</TT> new</B></TT>. You can tell which part of the screenis active by looking for a whole bunch of characters like"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" on its bar at the bottom. Onceyou have a selected active window, type <TT><B>/join [Channel]</B></TT>,where [Channel] is the channel that you want to join.</P><A NAME="openwinnew"></A><H4><A NAME="4">Opening Up a New Window</A></H4><P>You should be in X to do this. You can chat through<TT><B>xterm</B></TT> or <TT><B>rxvt</B></TT>, it doesn't matter. You justhave to type <TT><B><TT>/window</TT> create</B></TT> to open up a newwindow in X. Then use your mouse or whatever to switch to that window andjoin the channel of your choice.</P><A NAME="wininfostartup"></A><H4><A NAME="5">Putting New Window Information in Startup</A></H4><P>You can put these lines in your startup script, called<TT>~/.ircrc</TT>. We'll discuss the <TT>~/.ircrc</TT> file in more detaillater on. To split the screen, assign Ctrl-w to switch windows, and joinboth #LinuxHelp and Computers on startup, I have in my <TT>.ircrc</TT>file the following:</P><PRE>bind ^w next windowjoin #Computerswin newjoin #LinuxHelp</PRE><A NAME="color"></A><H3><A NAME="6">Color</A></H3><P>If you use EPIC4, you can see mIRC-style colors by typing <TT><B>/setcontrol_c_color on</B></TT> if it's not already enabled. If you want toturn it off, type <TT><B>/set control_c_color off</B></TT> while you're inthe program.</P><P>Note that most scripts put in the color for you. They even addadditional color into things that are not colored by default.</P><!-- Next paragraph might need more explanation and suggestions, but I'mout of ideas right now, as I've been working on this on and off for halfthe day. (jtg, 06021999) --><P>If your color doesn't seem to be showing up, your terminal typeprobably doesn't support color.</P><A NAME="ircrc"></A><H3><A NAME="7">Startup Script</A></H3><P><TT>~/.ircrc</TT> is a file that ircII reads (and executes each commandin it) every time you start it up. It should be located in your homedirectory; it probably doesn't exist yet, so don't worry if it's"missing". You can create it using a text editor such as<B>pico</B>, <B>vim</B>, <B>joe</B>, <B>jed</B>, or <B>emacs</B>. Eachline is read as a separate command, so if you want to automatically setcolors on, for example, put in the line <TT>set control_c_color on</TT>.If you want to automatically join a channel (I'll use #LinuxHelp as anexample), add the line <TT>join #LinuxHelp</TT>. Putting a slash (/)character in front of the commands isn't necessary if it's in thefile.</P><P><TT>.ircrc</TT> is roughtly comparable to the various *.ini files thatmIRC and PIRCH (IRC clients for Windows) load; ircII-EPIC is highlyscriptable (contains most of the features of mIRC and pIRCh, and a fewmore. Check out the <AHREF="http://www.frenzy.com/~bhauber/epic/help/index.html">ircII-EPICScripting Help Table of Contents</A> for a list of all itscommands/functions).</P><HR><P><B><FONT SIZE="-1">Copyright © 1997-1999 <AHREF="mailto:jgo@local.net">Joshua Go (jgo@local.net)</A>. Allrights reserved. Permission to use, distribute, and copy this documentis hereby granted. You may modify this document as long as credit to meis given.</FONT></B></P>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -