/srv/irclogs.ubuntu.com/2012/07/26/#ubuntu-classroom.txt

=== VGoff_afk is now known as VGoff
=== Amit is now known as Guest60693
Guest60693hi06:19
Guest60693I am a Java and Android Developer how can I contribute to Ubuntu Development06:19
Guest60693?06:19
=== ChanServ changed the topic of #ubuntu-classroom to: Welcome to the Ubuntu Classroom - https://wiki.ubuntu.com/Classroom || Support in #ubuntu || Upcoming Schedule: http://is.gd/8rtIi || Questions in #ubuntu-classroom-chat || Current Session: Introduction to being an IRC operator - Instructors: Myrtti
AlanBellHello everyone17:02
AlanBelltoday we have Myrtti with an introductory session on being an operator17:02
IdleOnewe can't send to channel17:02
AlanBellcovering all sorts of interesting commands17:02
Myrttiso17:03
Myrttihiya everyone, if everyone who are participating could give give me a hands up in the form hilight in the chat17:04
Myrttithat is, if you're not already joined in #ubuntu-classroom-chat, join and mention my nickname17:04
MyrttiI'm horribly late and disprepared this time, so I don't have channel access set up for our playground channel yet17:05
Myrttiso bear with me17:05
Myrtti!moderate17:06
Myrttialright, that doesn't work then17:07
Myrttinevermind then17:07
Myrttiso17:07
MyrttiI hope you've already registed your nickname17:07
Myrttiif you haven't, people in #freenode are happy to help17:07
MyrttiSo let's start with dirty basics. I'm using irssi myself but this short primer is intended to be usable no matter what client you are using.17:07
MyrttiIf you're planning to you some other client, like XChat, connect to freenode with the GUI tools, or wait a few minutes and I'll show how you can connect with the commands. I'll come back to how you can autoidentify to NickServ later on. I know many people like to use pidgin or other clients for IRC, but things are considerably easier if you use either irssi or XChat. Bitlbee can help you in the conversion from Pidgin/Empathy to ...17:08
Myrtti... a proper IRC client, and you can ask about it later on, I can help with it a bit and I'm sure there's plenty of others who can help with it better than I can.17:08
Myrttiwe're on a strict schedule so I hope you can wait for direct questions to me until end of the session17:09
MyrttiAlso, if you notice a mistake in what I'm teaching to others or you have a suggestion on how to do things better, feel free to ask!17:09
Myrttifor reference, this session is an abbreviated version of the earlier session17:10
Myrttihttp://irclogs.ubuntu.com/2012/03/12/%23ubuntu-classroom.html#t19:5917:10
Myrttiso if you want more hints on how to use irssi, or how to set it up, please refer to that17:10
MyrttiI should hope you know how to connect to the network using your preferred client17:11
Myrttisince you're here, you should know how to join channels17:12
Myrttiand how to message others in private17:12
Myrttilet's go to op basics. Before we start the actual business, some philosophical reminders about the job.17:12
MyrttiEscalation and catalysing are important things to remember. Person who breaks the guidelines should be warned first, and from there on the actions should be slowly be escalated if no reasonable result isn't achieved. Usually the route goes by *warning* -> *mute* -> *remove* -> *removeban*.17:13
MyrttiFreenode philosophy has an excellent essay about catalyzing, I wholeheartedly suggest everyone should read it. http://freenode.net/catalysts.shtml17:13
MyrttiThe main point to be remembered is that mute/remove/ban isn't supposed to be considered a punishment, but rather a way of preventing more harm done. It should be possible for every single ban to be negotiated and resolved, if not by an op, then by the escalation process.17:14
Myrttimind you - this doesn't mean that you need to entertain trolls.17:14
Myrttiif you are unsure how to act on people who appear to be acting like a troll, negotiate with other ops17:15
Myrttior if none are available, with a freenode staff member - possibly in private17:15
Myrtti(we can be contacted in pm at any time without asking permission - although we do sleep and work occasionally=17:16
MyrttiTrolls don't need to be fed, so don't feed them. The cases where interacting with habitual trolls has benefited anyone are rare as chickens teeth17:17
Myrttiwhatever you do... Remember: Everything that applies for normal user applies for supporter https://wiki.ubuntu.com/IrcGuidelines. Everything that applies for supporter of the channels applies for you https://wiki.ubuntu.com/IRC/SupportersGuide.17:18
MyrttiAnd most of all, both the normal and Leadership Code of Conduct applies to you as well. http://www.ubuntu.com/project/about-ubuntu/conduct and http://www.ubuntu.com/project/about-ubuntu/leadership-conduct. Behave accordingly. This session will not go into depth with these documents, so we'll move on to the actual training part.17:18
Myrttiif you have any questions, you can actually ask them now if you wish in the -chat, I'll answer them in FIFO order at the end17:20
Myrtti*IF* I can.17:21
Myrtti;-)17:21
Myrttiunlike last time where we practiced the commands while I'm lecturing, this time we'll save that fun until the end17:22
Myrttiso we can clear out this channel for the next users in time17:22
MyrttiAs per freenode recommendations, the IRC team has advised to op up (and stay opped) only when needed. This encourages users to not to ask for support specifically from the ops (in PM or publicly) and atleast in theory will facilitate non-op users to catalyse situations equally to the actual ops, creating a more equal atmosphere.17:22
MyrttiAt the end of the lesson I will give a few aliases on how to automate opping up/down for certain commands. There are also scripts that will do the same functionality. About those later on. Now for the actual commands.17:23
Myrttimost of the op duties require interaction with ChanServ, because Chanserv manages the channel accesslists and what you can and can't do17:24
Myrttiif you wish to participate to the sandpit part at the end, please raise your hand in the -chat now, and I'll set up your access for the playpit17:24
Myrttibecause the default status for an op on any Ubuntu IRC channel is to be unopped unless needed, we need to first op up17:25
Myrtti/msg chanserv op #ubuntu-sandpit nickname17:25
MyrttiLet's follow the escalation route and start with mute. Mute is a way to prevent users from sending to channel and/or others from seeing the text they send. Mute can be set with17:26
Myrtti/mode +q nickname*!*@*17:26
Myrttionce you've opped up17:26
MyrttiThis prevents the user from sending messages to the channel. If the channelmodes include +z, then people opped can see what the muted say. We will return on what all the bits are on the command we used later on when we discuss bans more.17:27
MyrttiSome of you may be familiar with /kick - in Ubuntu IRC channels we usually use remove command. Some IRC clients, like irssi, don't include this command at all and don't pass command it doesn't recognize to the server directly, and so you have to give it as a direct command to the server with /quote. Thus, instead of /kick we use /quote remove.17:28
MyrttiRemove is used for few reasons, the most important one being that usually IRC clients do not include so-called "autorejoin on kick"-functionality. As the old proverb of the jungle says: "Kick is not an invite" - If we've decided to remove you from the channel for one reason or another, it is unlikely that things change in the split second you've rejoined.17:29
MyrttiCombined with a kick or remove, ban is the next up tool. Bans are set up just like quiets are, but as ban is available in all networks, users know how to bypass it by changing their nicknames and rejoining the channel. This is known as banevasion.17:31
MyrttiIf a banevader is cloaked and is persistant enough in evasion, freenode may revoke their cloak and/or not issue a cloak as it would be possible to use the cloak as a tool of banevasion. Your client should know how to set bans based on only nicknames by using /ban command.17:32
Myrtti/ban nickname17:32
MyrttiIf you are unfamiliar what a cloak - also known as vhost in other networks - is, please see http://freenode.net/faq.shtml#cloaks . Cloaks can be used as either a way just to hide your hostname part, or to show your affiliation to a project, and often by that rights to certain actions on channels.17:33
MyrttiBans are set more generally against a hostmask, that is: nickname!username@hostmask, or more seldomly against a username or a realname. We will touch only the most common usecase of the aforementioned kind, if you need to ban someone by username or realname, ask for help when the need arises. When using a hostmask for banning people, please use appropriate * or ? wildcards.17:33
MyrttiFor example, nickname?!?username@hostmask, nickname?!*@hostmask, *!*@hostmask, or different ip ranges. Cloaks can be wildcarded the same way IP addresses and hostmasks can, for example *!*@dsl-hkibrasgw*.dhcp.inet.fi would ban everyone connecting to IRC from the Helsinki gateway of Sonera, one of the biggest ISP's in Finland, while *!*@*.staffs.ac.uk bans everyone from Staffordshire University.17:33
MyrttiWhen using wildcards, try to include the smallest possible range that you think will prevent the user from evading their ban. If you do end up setting a ban on a large range of addresses then make it a banforward to #ubuntu-ops so anyone accidentally caught by it can be helped around it (more on banforwards coming up)17:34
MyrttiOne thing to worth noting is the username field, the *!username@* part. If it does not start with a tilde ~, the user connects from a computer or server running identd. identd operates by looking up specific TCP/IP connections and returning the user name of the process owning the connection.17:34
Myrttiwhen a user is connecting from a host running identd, the user can't change the username on their clients and it is safe to assume that while they are connecting from that machine, their username stays the same.17:35
MyrttiBanforwards are used to guide users to other channels. Their main uses in Ubuntu IRC channels are to guide people to the #ubuntu-ops channel, or if a user has a client that is misbehaving disruptively (disconnecting and rejoining channel on quick succession in a way which is disturbing the discussion or channel itself) to ##fix_your_connection.17:36
Myrttiif you banforward someone to ##fix_your_connection, join the channel yourself to monitor, when their connection stabilises17:36
MyrttiBanforwards are set just like normal bans, but at the end of the banmask the channel you want the user to be forwarded to is appended by $<channelname>, for example $#ubuntu-ops. Since some clients use autorejoin on kick, this is one of the usecases where using kick instead of remove is valid. Just remember to set the banforward *before* kicking. The banforwards are set with17:37
Myrtti/mode +b nick!username@hostmask$##fix_your_connection17:37
MyrttiRun-by-trolling/spamming attack participants can be unbanned after few hours without discussing it with them, as nicknames, usernames and often ip's are throwaway ones or drone machines and they are unlikely to be used again, and freenode usually responds to big scale multiple channel attacks with K-lines (network bans).17:38
MyrttiIt is important to try to keep the ban list as short as possible. Otherwise, unbanning should be done only after discussing with the banned person and telling them why they were removed and banned from the channels, either in PM or #ubuntu-ops. Unbanning can be done with17:38
Myrtti/mode -b nickname!username@hostmask17:39
MyrttiUnmuting is -q.17:39
MyrttiThere is a bit more to being an op, but usually those situations are such that more than one operator are present and can help you. Please do ask for help.17:40
MyrttiYou can unop yourself with two methods, one by doing it directly yourself and the other by asking chanserv to do it.17:40
Myrtti/mode -o nickname17:40
Myrtti/msg chanserv op #ubuntu-sandpit -nickname17:40
Myrttiare we still hanging on?17:41
MyrttiDuring the years of being an op in Ubuntu IRC channels, I've used both scripts and aliases to interface with nickserv and chanserv and to perform the ops tasks. For years I've used only aliases instead of scripts as I can better monitor and fix what they do. These aliases are for irssi, but you can modify them for XChat quite easily. There are some instructions on how in https://toxin.jottit.com/xchat_user_commands, irssi $C is ...17:42
Myrtti... %c in XChat, irssi $N is %n in XChat, $0 is %1 in XChat and so on.17:42
MyrttiI will posted these aliases on my website and I'll give the link after I've explained them here first and finished the tutorial.17:42
MyrttiIt is perfectly ok to use scripts instead of these aliases too. Other participants can later give you links to their scripts, tips and thoughts.17:43
Myrttisadly inputting aliases isn't as simple or textbased in XChat as it is in irssi17:44
Myrtti/alias NS /^msg nickserv17:45
MyrttiHow do aliases work? Alias sets a shortcode for combining or renaming commands. For example this one creates an alias called NS, which is /^msg nickserv - /^msg directs the command in irssi to the statuswindow (window 1) and doesn't log the messages if you've set to log all your private messages. Aliases can use parameters that you give while using the alias, or which irssi/Xchat takes from the environment. N is nick, C is ...17:45
Myrtti... channel you're on, 0 and 1 in irssi and 1 and 2 in xchat are the next parameters.17:45
Myrtti/ns and /nickserv are also available as server-side commands, so clients that pass unknown commands to the server (which is most of them, not including irssi) will work with them by default.17:45
Myrttiother nickserv aliases are17:46
Myrtti/alias NSHELP /^msg nickserv help17:46
Myrtti/alias NSGHOST /^msg nickserv ghost17:46
Myrtti/alias NSIDENTIFY /^msg nickserv identify17:46
Myrtti/alias NSINFO /^msg nickserv info17:46
Myrtti/alias NSRELEASE /^msg nickserv release17:46
Myrttithese should be quite selfexplanatory17:46
Myrtti/alias BANS /mode +b;/mode +q17:47
Myrttithis command lists all the bans and quiets on the channel you are on, if you're allowed to see them by the channel flags.17:47
Myrtti/alias BANSEARCH /msg ubottu @bansearch17:47
Myrtti/alias BANLOGIN /^msg ubottu @login;/^msg ubottu @btlogin17:47
Myrttiif you've got access to ubottu's ban database, you might find these aliases useful. First one searches the database, but isn't too reliable. The latter combines both login commands, the one you need for the bot to recognise you and the second which gives you a link to the bantracker.17:47
Myrttithen we'll move to ChanServ aliases17:48
Myrtti/alias CS /^msg chanserv17:48
Myrtti/alias CSHELP /^msg chanserv help17:48
Myrtti/alias CSACCESS /^msg chanserv access $C list17:48
Myrttithis command gives you the access list of the channel you are on17:48
Myrtti/alias CSINFO /^msg chanserv info17:48
Myrtti/alias CSOP /^msg chanserv op $C $017:49
Myrttithis command is short for the command that we used in the beginning of the session to op up or if given a nickname in the end, someone else. Usage:17:49
Myrtti/csop nickname17:49
Myrtti/alias CSDEOP /^msg chanserv op $C -$017:49
Myrttiand this is the the deop command17:49
Myrtti/alias CSMODE /^msg chanserv op $C $N;/wait 2000;/mode $0;/^msg chanserv op $C -$N17:49
Myrttithis command will help you set channelmodes17:49
Myrtti/alias CSINVITE /^msg chanserv op $C $N;/wait 2000;/invite $0;/^msg chanserv op $C -$N17:49
Myrttiwill invite someone to a channel you're on, if you're an op17:49
Myrtti/alias CSTOPIC /^msg chanserv op $C $N;/wait 2000;/topic $0-;/^msg chanserv op $C -$N17:49
Myrttiand this will help you change the topic. Please see /cshelp TOPICAPPEND and TOPICPREPEND for other ways of getting ChanServ help you with setting the topic.17:49
ClassBotThere are 10 minutes remaining in the current session.17:50
Myrttithen to the actual opping stuff17:50
Myrtti/alias CSMUTE /^msg chanserv op $C $N;/wait 2000;/mode +zq $0;/^msg chanserv op $C -$N17:50
Myrttithis alias helps you mute17:50
Myrttior rather, the channel management in bigger scale17:50
Myrtti/alias CSREMOVE /^msg chanserv op $C $N;/wait 2000;/quote remove $C $0 :$1-;/^msg chanserv op $C -$N17:51
Myrtti/alias CSREMOVEBAN /^msg chanserv op $C $N;/wait 2000;/quote remove $C $0 :$1-;/ban $0;/^msg chanserv op $C -$N17:51
MyrttiRemove and Removeban aliases:17:51
Myrtti/csremove nickname reason17:51
Myrtti/csremoveban nickname reason17:51
Myrttiand for canned, quickly usable reasons17:51
Myrtti/alias CSR /^msg chanserv op $C $N;/wait 2000;/quote remove $C $0 :Please see https://wiki.ubuntu.com/IrcTeam/AppealProcess if you feel mistreated;/^msg chanserv op  $C -$N17:52
Myrtti/alias CSRB /^msg chanserv op $C $N;/wait 2000;/quote remove $C $0 :Please see https://wiki.ubuntu.com/IrcTeam/AppealProcess if you feel mistreated;/ban $0;/^msg chanserv op  $C -$N17:52
Myrttiof course you can modify the canned responses to whatever you like, or make new ones.17:52
MyrttiNote that there are no quickaliases for unbanning, unmuting or doing banforwards as I find it better to do those manually without aliases.17:52
Myrttiirssi aliases: http://myrtti.fi/irssialiases17:52
Myrttixchat aliases that you can't sadly input as easily as you would in irssi http://myrtti.fi/xchatalias17:52
Myrttithis is the end of the scripted show, those of you who wish to practice how to use the commands by kicking, banning and fooling around can join #ubuntu-sandpit, which I shall set up for our use17:53
MyrttiI will also invite you to continue whatever discussion we are in the middle of as the hour turns, there17:54
ClassBotThere are 5 minutes remaining in the current session.17:55
MyrttiIdleOne asked earlier in the other channel what to do with persistant trolls that waste your harddrive space by filling it with logs17:57
Myrttimy personal favourite is ignoring them in one way or another17:58
Myrttiirssi even has a script that enables you to ignore in irssi but directing the input into a logfile17:58
Myrtti(if you prefer to still keep them filling your harddrive in log files)17:58
Myrttithat is, if they are trolling you in pm17:59
Myrttijust remember, not to feed the trolls17:59
ClassBotLogs for this session will be available at http://irclogs.ubuntu.com/2012/07/26/%23ubuntu-classroom.html18:00
Myrttile finis!18:00
=== ChanServ changed the topic of #ubuntu-classroom to: Welcome to the Ubuntu Classroom - https://wiki.ubuntu.com/Classroom || Support in #ubuntu || Upcoming Schedule: http://is.gd/8rtIi || Questions in #ubuntu-classroom-chat ||
Myrttithank you everyone, and if you have questions I'm more than happy to answer them in the channels mentioned in the session, or in #ubuntu-irc18:01
x1kthanks!18:01
Myrttihuh. I actually thought that there'd be another session by someone else right after18:06
Myrttioh well.18:06
AlanBellthanks Myrtti, excellent class and I know the logs will be referred to for many years to come18:06
AlanBellMyrtti: that ended up in a separate channel #ubuntu-on-air18:06
Myrttiah right18:06
=== margo_ is now known as margo
=== fenris is now known as Guest85355
=== anime is now known as Guest38161
=== VGoff is now known as VGoff_afk
=== VGoff_afk is now known as VGoff

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!