Beginner's guide on using IRC
来源:互联网 发布:天津教育出版社淘宝 编辑:程序博客网 时间:2024/04/24 18:14
<script type="text/javascript"><!--google_ad_client = "pub-5143338080895292";/* 728x90, created 4/10/08 */google_ad_slot = "8165396160";google_ad_width = 728;google_ad_height = 90;//--></script> <script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
The standard IRC client is the original ircII. It's part of most Linux distributions, and most other text-based IRC clients (notably BitchX and EPIC) are derived from it.
4.1. Running the ircII program
It's easy to use ircII. Let's say you want to connect to irc.freenode.net as mini-HOWTO.
At the command line, type:
$ irc mini-HOWTO irc.freenode.net
You can also export variables, so you won't need to use them at the command line. For bash and zsh users:
$ export IRCNICK=mini-HOWTO IRCSERVER=irc.freenode.net
For csh and tcsh users, replace export with setenv.
Add them to your shell profile (e.g. ~/.bash_profile or ~/.zprofile) when you're done.
Other common variables are IRCNAME and IRCUSER, to respectively set the ircname part of a /whois and username as seen at the first line 'mini-HOWTO is ~username@hostname (ircname)'. Keep in mind that IRCUSER won't work if you run an ident daemon (default on most distributions). If you still need to change your username (not recommended, and I hope you're not using IRC logged as root !), install oidentd from http://ojnk.sourceforge.net/ . To configure, read the oidentd.conf man page. Finally run '/usr/local/sbin/oidentd -g nobody -u nobody'. Add this to your startup scripts (e.g. /etc/rc.d/rc.local) when you're done.
If not set, IRCNICK, IRCUSER, and IRCNAME will be retrieved from /etc/passwd .
4.2. Commands
Use /help to get a list on all available commands (/help help is a good start). Replace nick by any IRCNICK.
-
First, /set NOVICE off
-
/nick IRC-mini-HOWTO changes your IRCNICK to IRC-mini-HOWTO
-
/set realname The Linux IRC mini-HOWTO changes your IRCNAME to The Linux IRC mini-HOWTO (doesn't change on the same connection)
-
/j #mini-HOWTO joins channel #mini-HOWTO
-
/j #unmaintained-HOWTO joins channel#unmaintained-HOWTO
-
/j #mini-HOWTO changes the active current channel to #mini-HOWTO
-
/msg nick Hi. sends a private message to nick containing Hi.
-
/notice nick (or #mini-HOWTO) Hi. sends a notice to nick (or #mini-HOWTO) containing Hi.
-
/query nick starts a private conversation with nick. /query ends the private conversation
-
/me uses Linux. sends an action to the current channel or query containing IRC-mini-HOWTO loves Linux.
-
/dcc chat nick starts a chat with nick. Use /msg =nick (notice the =) to send messages over the chat
-
/dcc send nick /etc/HOSTNAME sends the given file to nick
-
/dcc get nick receives the file offered by nick
-
/part leaves the active current channel
-
/part #unmaintained-HOWTO leaves channel #unmaintained-HOWTO
-
/discon disconnects from current IRCSERVER
-
/server irc.oftc.net connects to IRCSERVER irc.oftc.net
-
/quit Bye. quits your IRC session with a reason Bye.
Most of the above commands (including the use of environmental variables) will also work in other console-based clients.
4.3. IRC Etiquette
WARNING WARNING WARNING WARNING WARNING
-
Never use IRC logged as root or any user with excessive privileges. Bad things may happen sooner or later. You were warned. It's highly recommended you create an user only to use IRC.
$ man adduser
On Linux channels you shouldn't:
-
Act as an idiot. If you want to be respected, then first respect each other.
-
Use colors (^C). Most Linux users don't tolerate such mIRC crazes, and ircII doesn't really support them. The same should apply for ANSI.
-
Use full CAPS, bold (^B), reverse (^V), underline (^_), blink (^F), and bell (^G). The first 4 are here to emphasize words, not the whole text. The last 2 are just very annoying.
-
Ask if you can ask a question. Just ask, but first read all documentation available on the subject. Start looking at /usr/doc/ (on some systems it may be /usr/doc/, otherwise go to http://www.tldp.org/ or http://www.ibiblio.org/pub/Linux/docs/ . And don't repeat your question immediately. Wait at least 10 minutes. If you don't get any answer it's because nobody knows or wants to help. Respect their choice, they're not your personal assistant. Also never send mass private messages. It's like spam.
- Beginner's guide on using IRC
- The Beginner's Guide to Using Enum Flags
- Nginx: Beginner’s Guide
- Note on <Zend Framework - A Beginner's Guide> - 03
- Note on <Zend Framework - A Beginner's Guide> - 05
- Note on <Zend Framework - A Beginner's Guide> - 06
- Note on <Zend Framework - A Beginner's Guide> - 07
- Cisco: A Beginner's Guide, Fourth Edition (Beginner's Guide
- WAP: A Beginner's Guide
- Objective-C Beginner's Guide
- PHP: A BEGINNER'S GUIDE
- PHP: A BEGINNER'S GUIDE
- PHP: A BEGINNER'S GUIDE
- AJAX: A Beginner's Guide
- AJAX: A Beginner's Guide
- Magento书籍: Beginner’s Guide
- Ogre1.7 Beginner's guide
- Objective-c Beginner's Guide
- 求助----C#.NET连接SQL数据库的问题。寻找……
- 笨..
- JavaScript加密解密7种方法
- 最近学习的概况!
- Struts 2 下载文件(12)
- Beginner's guide on using IRC
- ANTI-CNN现正式发起“一人一信 抗议CNN Jack Cafferty的辱华言论”的活动!!
- 最近不顺,感慨一下(附送一篇文章给自己)
- eMule协议专题 | Tinyfool的开发日记(blog)
- ASP内置对象Request和Response详解
- 古筝课4
- Rational Rose进行C++代码 逆向工程
- 页面元素聚焦的一个技巧
- WEB 开发