Coder Social home page Coder Social logo

lxfarm's Introduction

Liverpool Uni Linux Farm tutorial for VSCode

How to connect to the Linux farms over SSH in VSCode. Useful in COMP284. VSCode is a waaaaaaayyy better text editor than the recommended gedit, and it also helps you keep all your stuff in one place rather than using several different IDEs / editors.

Note: For Mac users use Cmd instead of Ctrl in shortcuts.

Step 1

Open VSCode and under Extensions (Ctrl-Shift-X), search for "ssh" and install "Remote - SSH" and "Remote - SSH Editing...".

VSCode extensions

Step 2

Open the VSCode settings search by pressing Ctrl-Shift-P and type "open ssh". The top option should read "Remote-SSH: Open SSH Configuration File". Press Enter.

You should now be presented with a couple options, hit Enter on the one that looks like <your_user_area>.ssh\config.

dialogue options

Step 3

Now we need to enter our connection settings in the format:

Host <host>
    HostName <hostname>
    MACs <MAC>
    User <username>

Note: the MAC is an encryption algorithm used when logging in. Lots of them will work but I found that a SHA512 one works fine, so I'll be using that.

  1. Replace <hostname> and <host> with the address of a UoL Linux server, such as lxfarm01.csc.liv.ac.uk (you can choose from 01 up to 08 I think, I'm not really sure it matters either).

  2. Replace <MAC> with hmac-sha2-512 (this is the SHA512 algorithm from the note above)

  3. Replace <username> with your university username (do not include the @liverpool.ac.uk part)

In my case, my config file looks like this:

my config file

Save the file.

Step 4

Once we've made the config file, we should be able to connect.

Click the Remote Explorer in the left side of VSCode (blue arrow), then click Refresh (red arrow).

remote access panel

Your connection should now show up. Right-click and choose current or new window to start the connection process, where you will be prompted for your password.

Note: sometimes VSCode will not be able to figure out what system it is connecting to, and it will show a few options. Just click Linux.

Step 5

Once connected, we will have access to all our files on the Linux systems. In the left-hand side of the screen click Explorer (Ctrl-Shift-E) and open a folder. It will default to your home directory on the server. Click "OK" in the prompt.

All done! Now you can access your files in the Explorer panel, edit them, create them and so on... If you'd like to access the terminal press Ctrl-Shift-' or click Terminal > New Terminal in the toolbar.

Thanks for reading this guide and I hope it helped. If you have any questions or something isn't working please create an issue on GitHub and I'll do my best to help.

lxfarm's People

Contributors

rhugill avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.