Skip to content

Instantly share code, notes, and snippets.

@evanscottgray
Last active August 29, 2015 14:09
Show Gist options
  • Save evanscottgray/4ea2991479d076651789 to your computer and use it in GitHub Desktop.
Save evanscottgray/4ea2991479d076651789 to your computer and use it in GitHub Desktop.
weechat wow

Getting your WeeChat on.

Boot a Fedora 22 Cloud Server.

We'll need to install these things:

mosh
weechat
tmux
vim

As root run these commands to install the packages

yum update
yum install mosh
yum install weechat
yum install tmux
yum install vim

You'll need an unprivileged user, mine was 'evan'

# Add that unprivileged user.
useradd evan
# Give him a password.
passwd evan
# Be sure to change your root password while you're at it!
passwd

Don't forget to add your user to the root users group!

usermod evan -a -G wheel

Switch to your non-privileged user (su evan) and do this

mkdir bin
wget -O bin/irc https://gist.githubusercontent.com/rbounds/9e84205d33022465f979/raw/61ee0b1e0c8e79600485dd5c5ee67cfc0248e176/gistfile1.txt
chmod +x bin/irc

Let's get some firewall rules in place for mosh... Paste the following into /etc/firewalld/services/mosh.xml

<?xml version="1.0" encoding="utf-8"?>
<service>
  <short>MOSH</short>
  <description>Mosh (mosh.mit.edu) is a free replacement for SSH that allows roaming and supports intermittent connectivity.</description>
  <port protocol="udp" port="60001"/>
  <port protocol="udp" port="60002"/>
  <port protocol="udp" port="60003"/>
  <port protocol="udp" port="60004"/>
  <port protocol="udp" port="60005"/>
  <port protocol="udp" port="60006"/>
  <port protocol="udp" port="60007"/>
  <port protocol="udp" port="60008"/>
  <port protocol="udp" port="60009"/>
</service>

Then add the rule to firewalld and reload!

firewall-cmd --add-service=mosh --permanent
firewall-cmd --reload

Log out and in as your unprivileged user, be sure to mosh this time!

Then run the new irc command (fedora is amaze and includes ~/bin in your $PATH. Wow, amaze.).

irc

Once you're in WeeChat...

/script install iset.pl
/script install buffers.pl

Random links on WeeChat stuff:

making it pretty: http://dev.weechat.org/post/2011/08/28/Beautify-your-WeeChat
plugin for notifications I wrote: https://github.com/evanscottgray/weequeue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment