Tips for Windows Users

From URCFwiki
Jump to: navigation, search

These are some basic tips for users whose primary machines are Windows.

Logging into Proteus

Logins to Proteus are via commandline only, using SSH. Here are three ways to do so.

OpenSSH in Windows 10

Windows 10 provides the full OpenSSH suite as an optional feature.[1]

Installation instructions: https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse

Once installed, run the ssh command within Windows PowerShell.[2]

Here are a couple of tutorials on how to use this feature:

PuTTY

Access to Proteus is via SSH. Use the PuTTY ssh client for Windows:

PuTTY Alternatives

If for some reason PuTTY does not work, you may use one of these alternatives:

Transferring Files

The PuTTY project also includes an SCP and SFTP client, downloadable from the link above.

OpenSSH in Windows 10

The OpenSSH feature in Windows 10 provides all the usual OpenSSH command line tools: ssh, sftp, scp. See above for links to information on installing it.

Use PowerShell to run it -- type "yes" at the question "Are you sure you want to continue connecting?":

Example of using sftp in Windows 10 PowerShell

Tutorial for using sftp: https://www.digitalocean.com/community/tutorials/how-to-use-sftp-to-securely-transfer-files-with-a-remote-server

WinSCP

WinSCP supports some newer encryption standards.

Download it from: http://winscp.net/eng/index.php

Code 32 system error WinSCP may raise this error in certain circumstances. The solution is:

    Options >> Preferences
    
    1. select Storage (in left panel) and under the Configuration storage section, select ‘INI file’  AND
    2. select Endurance (in left panel) and under the Enable transfer resume/transfer to temporary filename section, select ‘disable’

FileZilla

NOTE FileZilla has some issues with connection because it tries all available SSH keys, which may lead to multiple authentication failures before it succeeds in logging in. There seems to be no fix for this issue on Windows, at least, and possibly the other platforms.

FileZilla is a graphical file transfer program that supports SFTP and FTP: https://filezilla-project.org/

To connect to the login nodes, use one of the following as the "Host" in the quick connect bar:

     sftp://proteusi01.urcf.drexel.edu
     sftp://proteusa01.urcf.drexel.edu

FilezillaExample.png

DeltaCopy

DeltaCopy is an rsync implementation for Windows (which cheats a little by using Cygwin, a Linux-like environment for Windows).

Rsync provides differential updates, which makes it well-suited for keeping a directory tree synchronized between two computers.

Text Editors

Some Windows text editors handle multiple line-ending styles, e.g.

  • Notepad++ - RECOMMENDED Use the option to prroduce Unix LF (linefeed) format
  • VIM

Graphical Display to Windows

If you want to use a GUI application on one of the login nodes (proteusi01, or proteusa01), your Windows machine must have an X11 server installed to be able to display the GUI. Either of the two below should work.

Once installed, ssh to one of the Proteus login nodes giving the "-Y" option:

    ssh -Y myname@proteusi01.urcf.drexel.edu

Or use your SSH client application setup to enable "X11 Forwarding".

Then, try the command "xclock": if your setup is working, you should see a small analog clock window pop up.

Xclock.png

NOTE: remote display in this manner is very slow, and noticeably laggy.

MobaXterm

  • MobaXterm -- NB apparently uses Cygwin/X and PuTTY under the covers.

X-Win32

Drexel has a license for X-Win32. Download is available at:

See documentation at: https://www.starnet.com/xwin32/

XMing

Use XMing:

See also their documentation on how to set up PuTTY for remote display:

Password-protected ZIP Files

If you have a password-protected ZIP file created by WinZIP, it cannot be decrypted by the "unzip" program. Use "7za" instead:

    [juser@proteusi01 ~]$ 7za e myfile.zip

Scripts Created on Windows

Text files on Windows have different line endings.[3] This may cause scripts (shell scripts, Matlab .m files, makefiles, etc.) to fail when used on Linux. If "qstat -j JOBID" shows an error like:

    error reason    1:          05/14/2015 11:17:46 [1002:69060]: execvp(/cm/local/apps/sge/var/spool/ic21n04/job_scripts/213677, 
        "/cm/local/apps/sge/var/spool/ic21n04/job_scripts/213677") failed: No such file or directory

it is likely that the script has the wrong line endings.

To convert a Windows text file to a Linux text file, use the dos2unix command:

    [juser@proteusa01 ~]$ dos2unix filename

References

  1. Windows Server Administration: OpenSSH in Windows (while this is documentation for Windows Server, OpenSSH is available in Windows 10, as well)
  2. Microsoft - Windows PowerShell Documentation
  3. wikipedia:Newline