I have chosen to store the script in my irssi config folder ( ~/.irssi/screen ) : #!/bin/bash Make sure this script is executable by the user that will be connecting to the machine. The first thing we need to do is make sure you have the following script available to start a new screen session, or attach an existing screen when you want to connect to IRC. I won’t explain this here, since I hope you already work this way by disabling password logins through ssh and only allow pub-private key authentication. So we need to run irssi as a user we can ssh into, preferably with keys. In case there is already a screen session active, we want of course to attach the existing screen so we don’t end up with multiple new sessions running at the same time and hence lose the ability to review conversations when we are away. Now to make things go smoothly, we want to connect from a remote machine, onto our server, creating a screen session which starts irssi. sudo apt-get install irssi irssi-scripts screen Since I’m running Ubuntu on my server, this is pretty easy through aptitude. So first of all, let’s make sure everything is installed properly. This way, I can just detach the screen when I log off so I can login again and reattach it later. And since I use irssi, I could simplify everything, by just installing irssi on my server and run it in a screen session. So every time I connect from my desktop or laptop, I would just connect to ZNC where I could review previous conversations if they happened while I was gone.Īs I used this setup for several years, it’s kind of overkill, since I’m the only one connecting to it. As IRC client, I’m found of irssi, which is a terminal based IRC client. ZNC is an IRC bouncer, that stays connected to IRC, so when an IRC client disconnects/reconnects, you don’t lose your chat session. That’s why I installed ZNC on one of my servers. It may be handy to stay online all the time, just in case something interesting passes by when you’re not around. Like a lot of other geeks, I’m still somewhat active on IRC.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |