Difference between revisions of "Irssi"

From Steak Wiki
Jump to navigationJump to search
 
(3 intermediate revisions by the same user not shown)
Line 55: Line 55:
 
/save</pre>
 
/save</pre>
 
ref: https://www.rosipov.com/blog/irssi-ignore-all-from-everyone/
 
ref: https://www.rosipov.com/blog/irssi-ignore-all-from-everyone/
 +
 +
===Other===
 +
https://github.com/irssi/irssi/blob/master/docs/manual.txt
 +
 +
From:
 +
https://gist.github.com/tasdikrahman/ec4e46a42cbf38c73ef3af863680c786
 +
 +
"The most important thing to know about navigating between windows is
 +
that alt + a sends you to the window with the most recent, most
 +
important activity. Pressing it consecutively will first lead you
 +
through all windows that are pink in your activity bar, then all
 +
windows that are white, and then the rest. This is not entirely
 +
correct, but if you are able to correct me on this, you don’t need
 +
this article in the first place :-)
 +
 +
Then there are alt + 1, alt + 2 , and so on. These take you directly
 +
to the window with that number. By default, the top 2 lines of your
 +
(qwerty) keyboard are bound that way, all the way up to alt + o, which
 +
takes you to window 19.
 +
 +
Going to the next or previous window can be done by pressing ctrl + p
 +
or ctrl + n, or via alt + arrow left or alt + arrow right."
  
 
==GNU Screen==
 
==GNU Screen==
Line 87: Line 109:
 
and
 
and
 
ref: https://bbs.archlinux.org/viewtopic.php?id=213229
 
ref: https://bbs.archlinux.org/viewtopic.php?id=213229
 +
 
'''why would you do this'''
 
'''why would you do this'''
 +
 
If you have a TFT on an RPI or [[Beaglebone]], you can edit the tft tty without logging in to it directly. Have the tft auto load a tmux session after a delay, and then connect into it from another acct.
 
If you have a TFT on an RPI or [[Beaglebone]], you can edit the tft tty without logging in to it directly. Have the tft auto load a tmux session after a delay, and then connect into it from another acct.
  

Latest revision as of 10:51, 15 March 2021

Because discord and slack are proprietary.

I've tried a few times to get into irssi, but realized the only way I'd be able to use it is with a long term running VPS, and documenting my steps here.

Usage

Login to VPS. Start tmux with

tmux new -s irssi irssi

If you later logout, you can re attach with:

tmux attach -t irssi

or alternatively, if you only have one tmux window open:

tmux attach

NOTE: You can close the window (I have a kill shortcut on F12) or ctrl-b d to detach from tmux.

Add IRC server if not already saved.

/server add -auto -network Freenode irc.freenode.net 6667

Connect to server.

/connect freenode

Can alternatively do

/connect irc.freenode.net

Add your name to freenode, if not already saved (this is a benefit of saving the server)

/network add -nick <your-nick> Freenode

When you login, you will want to register, if you haven't already. Then follow the server's instructions for the password. The server's output often displays on a different window than your default. So

CTRL-N

to switch to the next IRSSI window.

Windows

If you want a new window:

/window new

If you want to get rid of the split window

/window hide #

You might have to turn off the "sticky" window. It will prompt you if necessary, for example if you hit CTRL-N

Freenode Search

Servers manage search differently. You can always /list, but that is too many to read. For freenode:

/msg alis LIST * -topic electronics

There are more instructions here: https://freenode.net/kb/answer/findingchannels But the help doc is outdated, and at least one of the examples doesn't work (2019/10). So just use above.

After you search, scroll up pages in irssi default setup with:

PageUp

Just the page up key. Much easier than screen which requires changing modes.

Logs

mkdir ~/irclogs

in irssi

/SET autolog ON

login to server. quit irssi. verify that log was created. ref: https://irssi.org/documentation/startup/#logging

Ignore parts, joins, quits

/ignore * joins parts quits nicks
/save

ref: https://www.rosipov.com/blog/irssi-ignore-all-from-everyone/

Other

https://github.com/irssi/irssi/blob/master/docs/manual.txt

From: https://gist.github.com/tasdikrahman/ec4e46a42cbf38c73ef3af863680c786

"The most important thing to know about navigating between windows is that alt + a sends you to the window with the most recent, most important activity. Pressing it consecutively will first lead you through all windows that are pink in your activity bar, then all windows that are white, and then the rest. This is not entirely correct, but if you are able to correct me on this, you don’t need this article in the first place :-)

Then there are alt + 1, alt + 2 , and so on. These take you directly to the window with that number. By default, the top 2 lines of your (qwerty) keyboard are bound that way, all the way up to alt + o, which takes you to window 19.

Going to the next or previous window can be done by pressing ctrl + p or ctrl + n, or via alt + arrow left or alt + arrow right."

GNU Screen

scroll up

ctrl-a ESC
pgup / pgdn

output current screen buffer to file

ctrl-a :
hardcopy  output.file  (type this)

output whole screen buffer to file

ctrl-a :
hardcopy -h output.file

Note: if file seems blank at the top, scroll down. connect w/serial

# screen /dev/ttyS0 115200

Tmux

Two ttys / logins with r/w to same terminal

There is some misleading info about this online. If you search tmux multiple users, they will say not possible. Well maybe multiple users is wrong semantics. I want multiple logins to access the same terminal. They can be the same account. Therefore:

in first terminal

tmux new-session -s shared

Then in the second terminal attach to the shared session.

tmux list-sessions
tmux attach -t shared

key here is -t must be used by the 2nd tmux. ref: https://www.howtoforge.com/sharing-terminal-sessions-with-tmux-and-screen and ref: https://bbs.archlinux.org/viewtopic.php?id=213229

why would you do this

If you have a TFT on an RPI or Beaglebone, you can edit the tft tty without logging in to it directly. Have the tft auto load a tmux session after a delay, and then connect into it from another acct.

Security on IRC

Don't use your home internet connection, use a VPS. You can get VPS for extremely cheap ($10-15/yr) which are perfect for IRC.

IRC Gabbers (Politics)

IRC support chats are not for socializing. No one has time to read your hugbox. Keep it simple, and to the point. Life is short.