README.md 2.15 KB
Newer Older
Sergio Coronado's avatar
title    
Sergio Coronado committed
1
# Linux Basics 101 and GitLab R3 Workshop
Sergio Coronado's avatar
Sergio Coronado committed
2

Sergio Coronado's avatar
Sergio Coronado committed
3
4
## How to connect to a remote Session
***
Sergio Coronado's avatar
Sergio Coronado committed
5

Sergio Coronado's avatar
Sergio Coronado committed
6
7
1. Terminal 
    + Windows
Sergio Coronado's avatar
more    
Sergio Coronado committed
8
9
        + PuTTy
        + MobaXterm
Sergio Coronado's avatar
Sergio Coronado committed
10
    + Mac
Sergio Coronado's avatar
more    
Sergio Coronado committed
11
12
        + iTerm 
        + Terminal
Sergio Coronado's avatar
Sergio Coronado committed
13
    + Linux
Sergio Coronado's avatar
more    
Sergio Coronado committed
14
        + Terminal
Sergio Coronado's avatar
format    
Sergio Coronado committed
15
16
<br/>
<br/>
Sergio Coronado's avatar
Sergio Coronado committed
17
18
2. SSH key generation
    + Windows
Sergio Coronado's avatar
more    
Sergio Coronado committed
19
        + PuTTyGEN
Sergio Coronado's avatar
Sergio Coronado committed
20
    + Mac / Linux
Sergio Coronado's avatar
more    
Sergio Coronado committed
21
        + ssh-keygen
Sergio Coronado's avatar
format    
Sergio Coronado committed
22
23
<br/>
<br/>
Sergio Coronado's avatar
Sergio Coronado committed
24
3. Create LUMS account (LCSB)
Sergio Coronado's avatar
Sergio Coronado committed
25
26
27
    1. Add SSH key 
    2. Attach SSH key to LUMS account
    3. Go to https://lcsb-ipa.uni.lu
Sergio Coronado's avatar
format    
Sergio Coronado committed
28
29
30
31
    4. Login with first.lastname and password linuxwork2015 
        * (Note: Use your password for existing LUMS account)
<br/>
<br/>
Sergio Coronado's avatar
Sergio Coronado committed
32
4. Connecting to Virtual Machine
Sergio Coronado's avatar
last    
Sergio Coronado committed
33
    + ssh `first`.`lastname`@10.79.2.191 -p 8022
Sergio Coronado's avatar
Sergio Coronado committed
34
35
36

## Discover your surroundings
***
Sergio Coronado's avatar
Sergio Coronado committed
37
38
39
40
41
42
43
* In which folder am I? (Hint: pwd)
* What is the contents of the current folder? (Hint: ls)
* Creating my first file (Hint: touch)
* Creating my first folder (Hint: mkdir)
* How do I enter my folder? (Hint: cd)
* Moving my first file to the new folder (Hint: mv)
* Copying **** (Hint: cp)
Sergio Coronado's avatar
Sergio Coronado committed
44
45
46

## Learn more about any *nix command 
***
Sergio Coronado's avatar
Sergio Coronado committed
47
48
49
* Go to your home folder (Hint: cd <no arguments>)
* Are there any hidden files in my home folder? (Hint: man ls)
* How do I get such nice documentation for other unix commands? (Hint: man <mycommand>)
Sergio Coronado's avatar
Sergio Coronado committed
50
51
52

## Copy files to the VM or from the VM (only using console!!)
***
Sergio Coronado's avatar
Sergio Coronado committed
53
54
55
* Logout of the VM (Hint: logout)
* Go to training folder (./linux-training) (Hint: cd)
* Copy file1.txt to “my first folder” on the VM (Hint: scp –P 8022 first.lastname@1079.2.191:/myfirstfolder/)
Sergio Coronado's avatar
Sergio Coronado committed
56
57
58

## Start a simple program:
***
Sergio Coronado's avatar
Sergio Coronado committed
59
60
61
* Intro to command, parameters
* How to zip my folder? Unzip? 
* wget -> untar -> changes -> re-pack
Sergio Coronado's avatar
Sergio Coronado committed
62
63
64

## Text editor	
***
Sergio Coronado's avatar
Sergio Coronado committed
65
66
* nano 
* Others, like vim, emacs, Atom, Sublime, etc…
Sergio Coronado's avatar
Sergio Coronado committed
67
68
69

## File System explore
***
Sarah Diehl's avatar
Sarah Diehl committed
70
71
72
73
### Midnight Commander `mc` 
* [Tutorial](http://linuxcommand.org/lc3_adv_mc.php)
* if function keys do not work, use `Esc`+`1` for `F1`, `Esc`+`2` for `F2`, ..., `Esc`+`9` for `F9` and `Esc`+`0` for `F10`
* if you do not have an `Insert` key (e.g. on Apple keyboards) use `Ctrl`+`t` for (un-)selecting files and folders
Sergio Coronado's avatar
Sergio Coronado committed
74
75
76

## Scripts – bash
***
Sergio Coronado's avatar
Sergio Coronado committed
77
* Simple `bash` script
Sergio Coronado's avatar
Sergio Coronado committed
78
79
80

## Basic git (source control)
***
Sergio Coronado's avatar
Sergio Coronado committed
81
82
83
84
* add
* commit
* push
* pull
Sergio Coronado's avatar
Sergio Coronado committed
85