playground:playground
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| playground:playground [2016/05/10 06:31] – bedutra | playground:playground [2019/01/06 09:29] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== PlayGround ====== | ||
| - | ====== Linux Tutorial ====== | ||
| - | |||
| - | This tutorial is intended to be a practical and brisk tutorial of many of the basics of using Linux for people who have never used it before. Setting up a website, compiling LaTeX, firing up MatLAB, and other typical tasks math grads would want from the department computers are covered quickly. | ||
| - | |||
| - | By using the related tools mentioned here, you can do things such as modify your webpage, retrieve/ | ||
| - | |||
| - | ===== Connecting to a Linux computer ===== | ||
| - | |||
| - | If you are using one of the Ubuntu computers in the computer lab or in your office, there is nothing special you have to do. Just open the " | ||
| - | |||
| - | If you are on your own computer, you first need to connect to the math's computers. | ||
| - | |||
| - | Some good SSH clients include | ||
| - | |||
| - | * Windows: [[http:// | ||
| - | * Mac: See the Mac program " | ||
| - | |||
| - | For details on how to connect to a math server, see the computer FAQ [[https:// | ||
| - | |||
| - | |||
| - | ===== The Basics ===== | ||
| - | |||
| - | The first thing you should do is watch this [[https:// | ||
| - | |||
| - | * ls (for listing a directory) | ||
| - | * pwd (printing current path) | ||
| - | * cd (for moving around in folders) | ||
| - | * mkdir (making folders) | ||
| - | * mv (moving things) | ||
| - | * rm (removing things) | ||
| - | * cp (copy things) | ||
| - | |||
| - | |||
| - | < | ||
| - | |||
| - | |||
| - | Just as you need a web browser (like Firefox) to connect to a web server (like www.gmail.com), | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | Once you successfully connect, you are given a prompt where you can type commands. This section is devoted to introducing everyday commands. In what follows, when in doubt, Linux is typically case-sensitive!</ | ||
| - | < | ||
| - | Like on your own computer, Linux has a folder (sometimes called a directory) structure. | ||
| - | < | ||
| - | < | ||
| - | To see what directory you're in at a given moment, you can type <span class=" | ||
| - | <p>To move to a different directory, use the command <span class=" | ||
| - | <p>To get back to your home directory, use <span class=" | ||
| - | < | ||
| - | <p>In your home directory, suppose you want to create a subdirectory (to store, for example, the scratch work of the rest of this tutorial). | ||
| - | <p>To delete the directory <span class=" | ||
| - | < | ||
| - | < | ||
| - | To create a blank file called <span class=" | ||
| - | <p>If you've followed along exactly, the folder <span class=" | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | <p>To edit a file in the present directory called <span class=" | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | <p>If your LaTeX file is invalid, you will not reach the normal prompt and instead be given a question mark. You can type a capital < | ||
| - | < | ||
| - | Type <span class=" | ||
| - | < | ||
| - | To setup a website with the main address <span class=" | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | <!-- < | ||
| - | If you wish to transfer files between your computer and the math department machines, you could always attach files and send them to your personal e-mail address. | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | <p>Up until now, the tutorial has focused on running text-based programs. | ||
| - | < | ||
| - | < | ||
| - | <p>To start Cygwin/X, run Cygwin and run the command <span class=" | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | <p>In your SSH Client (whether PuTTY or something else), you must enable tunneling of X connections. | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | This section is filled with several odds and ends. Nothing beyond this point in the tutorial is absolutely necessary, but each thing here has been suggested by one or more math graduate student. | ||
| - | < | ||
| - | <p>To fill in later...</ | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | <p>To fill in later...</ | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | <p>In BASH, you can use Ctrl-R. In general, you can also type <span class=" | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | <p>In the section on file permissions, | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
playground/playground.1462861917.txt.gz · Last modified: by bedutra
