Shell account tutorial: Difference between revisions
imported>Johnv No edit summary |
imported>Echarlie No edit summary |
||
| Line 1: | Line 1: | ||
This page is intended for [[ECE2524]] students and others new to the concept of console-based IRC clients. | This page is intended for [[ECE2524]] students and others new to the concept of console-based IRC clients. | ||
The [[gp:Bradley Department of Electrical and Computer Engineering|ECE]] department offers shell ccounts on the [[gp:CAD and Visualization Laboratory|CVL]] for Virginia Tech affiliates. Accounts can be created at [http://computing.ece.vt.edu/accounts/ this page]. | == CVL SSH accounts == | ||
The [[gp:Bradley Department of Electrical and Computer Engineering|ECE]] department offers shell ccounts on the [[gp:CAD and Visualization Laboratory|CVL]] | |||
for Virginia Tech affiliates. Accounts can be created at [http://computing.ece.vt.edu/accounts/ this page]. | |||
The ECE2524 VM (128.173.88.125) can be accessed via SSH for CVL users, and has tmux, mosh, and weechat installed. Acidburn (acidburn.vtluug.org), the VTLUUG shell server, has a few more IRC clients installed, as well as other software and full IPv6 support. The [[gp:CAD and Visualization Laboratory|CVL]] does ''not'' have any IRC clients installed, but is useful for general computing (e.g. MATLAB) | The ECE2524 VM (128.173.88.125) can be accessed via SSH for CVL users, and has tmux, mosh, and weechat installed. Acidburn (acidburn.vtluug.org), | ||
the VTLUUG shell server, has a few more IRC clients installed, as well as other software <s>and full IPv6 support</s>. The | |||
[[gp:CAD and Visualization Laboratory|CVL]] does ''not'' have any IRC clients installed, but is useful for general computing (e.g. [[MATLAB]]). | |||
One advantage of a shell account is that it allows one to leave an IRC client constantly connected, eliminate join/quit spam, and log missed messages to check later. In order to accomplish this, the IRC client must be run inside either tmux or screen so that it will not be killed when you disconnect from SSH. | One advantage of a shell account is that it allows one to leave an IRC client constantly connected, eliminate join/quit spam, and | ||
log missed messages to check later. In order to accomplish this, the IRC client must be run inside either [[tmux]] or [[screen]] so that | |||
it will not be killed when you disconnect from SSH. | |||
Here's the procedure for using either the ECE2524 server or acidburn for IRC: | Here's the procedure for using either the ECE2524 server or acidburn for IRC: | ||
| Line 21: | Line 27: | ||
#* <code>^b-d</code> (that is, press Control-b, then d) | #* <code>^b-d</code> (that is, press Control-b, then d) | ||
#* ''Use this whenever you are inside a tmux window and wish to return to a shell'' | #* ''Use this whenever you are inside a tmux window and wish to return to a shell'' | ||
# To, reattach to the first tmux seesion, just use <code>tmux | # To, reattach to the first tmux seesion, just use <code>tmux attach</code> | ||
#* <code>user@ece2524:~$ tmux attach</code>. | #* <code>user@ece2524:~$ tmux attach</code>. | ||
#* ''On subsequent logins, this should be the only command you need to execute to return to IRC'' | #* ''On subsequent logins, this should be the only command you need to execute to return to IRC'' | ||
Check out the [http://www.dayid.org/os/notes/tm.html tmux and screen cheat sheet] for a quick reference of some of the other tmux commands. An additional command that might be useful is <code>tmux list-sessions</code>. | Check out the [http://www.dayid.org/os/notes/tm.html tmux and screen cheat sheet] for a quick reference of some of the other | ||
tmux commands. An additional command that might be useful is <code>tmux list-sessions</code>. | |||
[http://mosh.mit.edu Mosh] is another helpful tool you may want to use for high-latency or mobile (e.g. wifi) connections. You also may want to look into zsh, an alternative to bash with more features. | [http://mosh.mit.edu Mosh] is another helpful tool you may want to use for high-latency or mobile (e.g. wifi) connections. | ||
You also may want to look into zsh, an alternative to bash with more features. | |||
You also may want to setup an [http://nerderati.com/2011/03/simplify-your-life-with-an-ssh-config-file/ SSH config file] for host aliases and Kerberos authentication. | You also may want to setup an [http://nerderati.com/2011/03/simplify-your-life-with-an-ssh-config-file/ SSH config file] | ||
for host aliases and Kerberos authentication. | |||
If you have been given a temporary password please reset it by running | '''If you have been given a temporary password please reset it by running | ||
<code>user@acidburn:~$ passwd</code> | <code>user@acidburn:~$ passwd</code>''' | ||
==Other SSH suggestions== | |||
* Use SSH Keys | |||
* Write up your own [[tmux|tmux.conf]] | |||
* Use X-forwarding on servers that support it: <code> ssh -X user@client.server.tld </code> | |||
==Random Bash tips== | ==Random Bash tips== | ||