The CSF2 has been replaced by the CSF3 - please use that system! This documentation may be out of date. Please read the CSF3 documentation instead. To display this old CSF2 page click here. |
Using the CSF from MS Windows
Introduction
The CSF (and other central HPC facilities such as Hydra, Redqueen, iCSF) are linux systems but can easily be accessed from your Windows desktop. Here we provide some useful information for those users accessing the CSF from Windows and who are less familiar with Linux than Windows.
Logging in from Windows
We now provide common access instructions for all of the central facilities (CSF, Hydra, Redqueen, iCSF, zCSF). Please follow the connecting from Windows instructions.
Important information about text files/batch submission scripts
Windows and Linux have different ways of indicating end-of-lines in text files (using hidden characters). If you use a program on Windows (e.g., Notepad) to create a batch job submission script and transfer it to the CSF your batch job will error and fail to run. This is because the batch system cannot understand the Windows line-end convention. We have three recommended ways of dealing with this if you prefer not to learn a command line based linux editor.
- Use gedit on the CSF – although this is a linux editor it is GUI based and can be run directly on the CSF which means you do not need to transfer files back and forth. If you’ve logged in with MobaXterm then this will work straight away. If you’ve used PuTTy you must also run XMing. If you’ve logged in from a Mac then you’ll need to run XQuartz (all of which provide X11 on your local computer).
- If you do create your jobscript text file on Windows and upload it to the CSF, run the following command on the CSF (at your prompt) before you submit it to batch:
dos2unix filename
where
filename
is the name of your file. Please note: you should never rundos2unix
on other files you may have uploaded to the CSF from Windows. It should only be used to convert text-file jobscripts. If you rundos2unix
on other files such as data files you will break them – even if you used a Windows application to create the data files.dos2unix
is for converting jobscripts only. - On Windows install Notepad++. In the menu select
Edit -> EOL Conversion -> UNIX/OSX Format
when creating/editing a new text file. When you then upload that file the CSF will understand it.
File and directory/folder names
The use of spaces and non-alpha-numeric characters in filenames and directories on linux can cause problems. In particular, the batch system may not be able to fully resolve the names of directories and cause jobs to error. Command line listing of files will be less clear, and without the use of escape characters navigation of the filesystem, manipulation and deletion of files can be difficult. Acceptable non-alpha-numeric characters are underscore and dash. For example instead of:
Chemistry Simulation 1 # Bad choice of name - it contains spaces
use:
Chemistry_Simulation_1 # A better choice - it contains _ instead of space
or
Chemistry-Simulation-1 # A equally good choice - it contains - instead of space
You may need to ensure that the folder structure and filenames on your windows PC/laptop follows these conventions to avoid problems when you upload then to the CSF. On windows you should not encounter any problems using these conventions, provided you name only your files and folders in that way, i.e. do not change any of the system files or directories on your windows PC/laptop.
Basic Linux Commands and Compute Cluster Usage
If you are unfamiliar with Linux/Unix it is recommended that you work through one of the following:
Approximately three times a year an Intro to CSF course is run which provides an excellent starting point for users new to compute clusters and parallel computing concepts.