This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
logging_in [2016/06/23 16:37] mgstauff [Mac OSX] |
logging_in [2018/03/02 20:32] (current) mgstauff [Screen & tmux] |
||
---|---|---|---|
Line 3: | Line 3: | ||
====== Overview ====== | ====== Overview ====== | ||
- | The CfN cluster is a linux-based system (CentOS 6.3). You connect to it using //ssh//, a tool for remote secure connections between computers. The initial connection and your interaction with the cluster are done using a standard linux //shell// environment (aka ' | + | The CfN cluster is a linux-based system (CentOS 6.9). You connect to it using //ssh//, a tool for remote secure connections between computers. The initial connection and your interaction with the cluster are done using a standard linux //shell// environment (aka ' |
---- | ---- | ||
Line 16: | Line 16: | ||
=== Tutorials and Help === | === Tutorials and Help === | ||
- | If you've never used a linux or unix shell before, you'll want to learn something about it. There are a lot of resources online, or your colleague might have a favorite book. Here are a couple | + | If you've never used a linux or unix shell before, you'll want to learn something about it. There are a lot of resources online, or your colleague might have a favorite book. Here are some places to start: |
- | Here's one for the very beginners that takes you through | + | Here's one for the very beginners that takes you through |
- | [[http://linuxsurvival.com/wp/? | + | [[http://ryanstutorials.net/linuxtutorial/ |
Here's a good-looking introduction to the [[http:// | Here's a good-looking introduction to the [[http:// | ||
Line 26: | Line 26: | ||
---- | ---- | ||
+ | ====== Some Useful Linux Things ===== | ||
+ | ==== Screen & tmux ==== | ||
+ | |||
+ | The '' | ||
+ | |||
+ | Screen - [[https:// | ||
+ | |||
+ | tmux - [[https:// | ||
+ | |||
+ | ==== Simple Bash script loop ==== | ||
+ | |||
+ | [[using_ogs_sge# | ||
+ | |||
+ | ---- | ||
+ | ====== Windows and the Linux/Bash Shell ====== | ||
+ | |||
+ | There are a number of ways to use Linux/Bash commands on Windows machines. This can be useful for running '' | ||
+ | |||
+ | == Windows Subsystem for Linux == | ||
+ | |||
+ | This is a new subsystem in Windows 10 for running Bash shell. It's not a full Linux VM. | ||
+ | |||
+ | https:// | ||
+ | |||
+ | == Cygwin == | ||
+ | |||
+ | Tried and true, a little awkward though. Known to work for '' | ||
+ | |||
+ | https:// | ||
+ | |||
+ | == Git bash shell == | ||
+ | |||
+ | Git on windows includes its own shell app. This has been touted as being good and simple for '' | ||
+ | |||
+ | http:// | ||
+ | |||
+ | ---- | ||
====== Logging In ====== | ====== Logging In ====== | ||
Line 108: | Line 145: | ||
===A Quick Test=== | ===A Quick Test=== | ||
Once you follow instructions below to get setup, a quick test of your X11 functionality is to login to chead and run the command '' | Once you follow instructions below to get setup, a quick test of your X11 functionality is to login to chead and run the command '' | ||
- | ==== Linux ==== | + | ==== -- Linux -- ==== |
There nothing to do, Linux should be setup out-of-the-box to accept X11 connections. | There nothing to do, Linux should be setup out-of-the-box to accept X11 connections. | ||
- | ==== Mac OSX ==== | + | ==== -- Mac OSX -- ==== |
You need to install [[http:// | You need to install [[http:// | ||
+ | |||
+ | === XQuartz 2.7.11 Issue === | ||
+ | The issue mentioned below for 2.7.9 persists, however the fix is simpler. On your local machine (i.e. your laptop or desktop, not the cluster), run this command in Terminal: | ||
+ | |||
+ | defaults write org.macosforge.xquartz.X11 enable_iglx -bool true | ||
=== Xquartz 2.7.9 Issue === | === Xquartz 2.7.9 Issue === | ||
Line 121: | Line 163: | ||
Xquartz 2.7.9 may break some programs like ITK-SNAP when running over ssh. Here's a fix (thanks to Phil Cook!): | Xquartz 2.7.9 may break some programs like ITK-SNAP when running over ssh. Here's a fix (thanks to Phil Cook!): | ||
- | To fix, I had to edit the startup config: | + | To fix, I had to edit the startup config |
- | sudo vi / | + | sudo vi / |
changing Line 59 to | changing Line 59 to | ||
Line 134: | Line 176: | ||
After this and a restart of XQuartz, it works as normal. | After this and a restart of XQuartz, it works as normal. | ||
- | ==== Windows ==== | ||
- | You'll need an X Server app like [[http://sourceforge.net/ | + | === Xquartz 2.8.8 fallback === |
+ | |||
+ | **If this still doesn' | ||
+ | ==== -- Windows -- ==== | ||
+ | |||
+ | You'll need an X Server app like [[http://mobaxterm.mobatek.net/ | MobaXterm | ||
+ | |||
+ | Note that mobaXterm is multi-tool application, | ||
+ | |||
+ | === Terminal application === | ||
+ | |||
+ | You'll need a terminal application, | ||
+ | We recommend the mobaXterm app (see above) that includes terminal and sftp (and other) tools along with the X11 Server functionality. | ||
=== Putty on Windows === | === Putty on Windows === | ||
Line 154: | Line 207: | ||
---- | ---- | ||
- | ====== ' | + | ====== ' |
- | **This is a general warning about using the command '' | + | **This is a general warning about using the command |
+ | |||
+ | **When you delete a file in Linux using '' | ||
+ | |||
+ | This command removes whatever files **and directories** you list after it without asking for confirmation, | ||
+ | |||
+ | This warning also applies to the '' | ||
- | This command removes whatever files and directories you list after it without asking | + | You may also have an issue, |
- | Be careful. It's often good to replace ' | + | ===How to use it carefully=== |
+ | Be careful. It's often good to replace | ||
---- | ---- | ||
====== Editing Text Files ====== | ====== Editing Text Files ====== |