Atom

Atom is a cross platform editor. The site hosts the most up to date installation instructions.

Install Plugins

Plugins are optional and can enhance your text editing experience. If you are ever editing files in a particular language and having trouble, take a look for some syntax checkers.

Go to Settings -> Packages. Search for ‘atom-beautify’, and install. Do the same for ‘language-yaml’, ‘indent-guide-improved’ and ‘linter-js-yaml’.

Important: If you are connected to a VPN or proxy server then this may cause issues in which case please disconnect from the above networks and try again.

Remote Editing

Remote FTP

The remote-ftp plugin reads your files through ssh.

Optional – Set up SSH Keys

For this to work can set up ssh keys. ssh keys are basically your computer’s signature which you can use to tell a computer who you are and that you are trusted.

mkdir -p ~/.ssh/
#Just hit enter here
cd ~/.ssh
# Please do not create a new password - just press enter until you are returned to the command prompt
ssh-keygen
ssh-copy-id -i ~/.ssh/id_rsa.pub netid@dalma.abudhabi.nyu.edu
# if ssh-copy-id is not recognized on your computer, please use the scp commands below:
cat ~/.ssh/id_rsa.pub | ssh netid@dalma.abudhabi.nyu.edu 'cat >> ~/.ssh/authorized_keys'

Important: the ssh-keygen command will prompt to enter a password. Please do not enter one – just press enter/return until you are returned to the command prompt (usually it takes 3 enters to get you there).

Configure

With SSH Keys

If you followed the previous step to set up ssh keys, or already had then setup, use the following configuration. Change the ‘NETID’ entries with your netid.

{
"protocol": "sftp",
"host": "dalma.abudhabi.nyu.edu",
"port": 22,
"user": "NETID", // Change this to your netid
"remote": "/scratch/NETID", //Change this to your netid
"privatekey": "/home/LOCAL_USER/.ssh/id_rsa", //Change this to the homedirectory on your local computer
"secure": true,
"secureOptions": null,
"connTimeout": 10000,
"pasvTimeout": 10000,
"keepalive": 10000,
"watchTimeout":500
}
Without SSH Keys
{
"protocol": "sftp",
"host": "dalma.abudhabi.nyu.edu",
"port": 22,
"user": "NETID", //Change this to your netid
"remote": "/scratch/NETID", //Change this to your netid
"promptForPass": true,
"secure": true,
"secureOptions": null,
"connTimeout": 10000,
"pasvTimeout": 10000,
"keepalive": 10000,
"watchTimeout":500 // integer - The duration ( in milliseconds ) from when the file was last changed for the upload to begin.
}

Add a project folder in Atom. Select the main toolbar -> Packages -> Remote FTP -> Toggle. Select ‘Edit Configuration’. Cut and paste the appropriate configuration. Save the file, and select ‘Connect’.

Important: some people will need to log into dalma initially via ssh in order to make this work. To do so, please do: ssh NETID@dalma.abudhabi.nyu.edu, enter your NYU password and then press enter until you are returned to the command prompt (do not create any new passwords if prompted – just press enter instead!).

Other packages

There are other packages, but I have not been able to get them to work. Your mileage may vary.

SSH Mount

Finally, you can always just set up an ssh mount, but then you need to make sure the directory is mounted each time you want to edit.