博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Use weechat (IRC client) on OS X. MacBook Pro
阅读量:4316 次
发布时间:2019-06-06

本文共 1948 字,大约阅读时间需要 6 分钟。

Weechat is a console IRC client. It is opensource and very easy to use.

I use weechat in my Linux PC always. But what about using it on a MacBook (OS X)?

 

Actually we have 3 ways to make it work on OS X.

 

1. Download source codes of weechat, compile it for OS X

2. Use homebrew -- the OS X unoffical package manager to install 3rd party packages. ( I am using it )

3. Use macports -- another OS X package manager like homebrew

 

Here I am gonna use homebrew for demonstration since it's easy and

Before doing this, you need to install homebrew on your mac. Here's the reference. Go to http://brew.sh and install it

 

Install Homebrew

 

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

 

Install weechat from homebrew

After installing the homebrew, now let's install the weechat.

brew install weechat

 The homebrew manager will do the update and formula search for this package.

When it was finished , you would like to open weechat in terminal with command

someone_MBP$~ weechat

 

Let's test if it can connect to the freenode, IRC relay server.

Get help in weechat

Input `/help` in weechat console. Or you only want help for servers `/help server`

Settings in weechat

 

/server add freenode irc.freenode.org/7000 -ssl

 

Now let's go for the default CA file (This is MUST or the CA verification will fail)

In weechat console input

/set weechat.network.gnutls_ca_file "/usr/local/etc/openssl/cert.pem"/set irc.server.freenode.ssl_dhkey_size 1024

(Why did I set the CA file path like that? Because this is the default ca file which homebrew gives us by default. In Linux, mostly it's at /etc/ssl/certs/ca-certificates.crt )

Now let's try whether it works.

/connect freenode

 

 

Now you can see it works, and you can join in channels on Freenode with SSL enabled.

This is for fun.

 

OS X is different from Linux/GNU systems but basic concepts are the same.

Happy hacking!

 

转载于:https://www.cnblogs.com/spaceship9/p/6265555.html

你可能感兴趣的文章
数据结构-栈 C和C++的实现
查看>>
MySQL基本命令和常用数据库对象
查看>>
poj 1222 EXTENDED LIGHTS OUT(位运算+枚举)
查看>>
进程和线程概念及原理
查看>>
Lucene、ES好文章
查看>>
android 生命周期
查看>>
jquery--this
查看>>
MySQL 5.1参考手册
查看>>
TensorFlow安装流程(GPU加速)
查看>>
OpenStack的容器服务体验
查看>>
【BZOJ 4059】 (分治暴力|扫描线+线段树)
查看>>
BZOJ 1066 蜥蜴(网络流)
查看>>
提高批量插入数据的方法
查看>>
Linux重启Mysql命令
查看>>
前端模块化:RequireJS(转)
查看>>
应用程序缓存的应用(摘抄)
查看>>
jQuery基础知识,很赞的!!!
查看>>
JK_Rush关于索引的一些总结
查看>>
[Codevs] 线段树练习5
查看>>
Amazon
查看>>