Newer
Older
jacques.dainat_ird.fr
committed
[![CC BY 4.0][cc-by-shield]][cc-by]
jacques.dainat_ird.fr
committed
# Initiation à Linux/Unix
---------------------------
jacques.dainat_ird.fr
committed
Et si utiliser des lignes de commandes pouvait être facile et vous faire gagner en productivité ?
Cette initiation vise à démystifier l'utilisation d'un terminal et du fonctionnement d'un ordinateur. Que vous travaillez sous Linux, Mac ou Windows, en apprenant l'utilisation d'une interface de ligne de commande Unix, vous serez en mesure de gagner en productivité lorsqu'il s'agit de gérer de nombreuses tâches telles que la gestion des fichiers et le contrôle des jobs. Cela vous ouvrira l'accès à de nombreux outils qui ne sont disponibles qu'en ligne de commande (ou de créer vos propres tâches automatisées). Ces bases seront essentielles si vous souhaitez par la suite travailler à distance sur des ordinateurs de haute performance (HPC). Les bases de programmation enseignées lors de ce cours sont des bases communes à tous les langages de programmation et pourront être mis à profit pour l'apprentissage d'autres langages.
jacques.dainat_ird.fr
committed
## Table of Contents
jacques.dainat_ird.fr
committed
* [Foreword](#foreword)
* [Project layout](#project-layout)
* [For collaborators-teachers and developers](#for-collaborators-teachers-and-developers)
* [Modify content](#modify-content)
* [MkDocs](#mkdocs)
* [Welcome to MkDocs](#welcome-to-mkdocs)
* [Installation](#installation)
* [Manual](#manual)
* [Conda](#conda)
* [Testing and building the website](#testing-and-building-the-website)
* [License](#license)
* [Acknowledgment](#acknowledgment)
jacques.dainat_ird.fr
committed
## Foreword
The course itself lives [https://e-cop.pages.ird.fr/isi-formation-unix/](https://e-cop.pages.ird.fr/isi-formation-unix/),
jacques.dainat_ird.fr
committed
where you can find all the relevant information.
## Project layout
README.md # General readme
mkdocs.yml # The configuration file for the site rendering.
conda_env.yml # Conda env to build and test the site locally
docs/ # material that will be publish with the static web site
index.md # The documentation homepage (Website Home page).
pages/ # Folder dedicated to the course materials use by mkdocs for the website
images # Images used in the course materials in general
xxx/ # Folder containning the course materials for one topic
xxx.md # Page taking about all or a part of the topic
images/ # Images related to the topic
...
lectures/ # Folder dedicated to lectures (within docs to ease embedding within the course)
README.md # readme
environment.yml # conda env to use for rendering the Rmarkdown lecture files
template.css # CSS used by all Rmarkdown lecture files
Snakefile # Automating rendering of all Rmarkdown lecture files
xxx # folder related to one lecture
xxx.Rmd # Lecture in Rmarkdown format
xxx.pdf # PDF rendering of Rmarkdown file
xxx.html # HTML rendering of Rmarkdown file
tutorials/ # Folder dedicated to tutorials
xxx # folder related to one tutorial
Images # Images used in the README
## For collaborators-teachers and developers
This part is for collaborators-teachers and developers.
jacques.dainat_ird.fr
committed
### Modify content
jacques.dainat_ird.fr
committed
When you are in the repository, add and/or modify your markdown tutorials in the docs directory.
The arborescence of the website menu is to setup in the `mkdocs.yml` file
jacques.dainat_ird.fr
committed
### Mkdocs
jacques.dainat_ird.fr
committed
#### Welcome to MkDocs
jacques.dainat_ird.fr
committed
For full documentation visit [mkdocs.org](https://www.mkdocs.org).
For full documentation about the [material mkdocs theme](https://squidfunk.github.io/mkdocs-material/).
jacques.dainat_ird.fr
committed
#### Installation
jacques.dainat_ird.fr
committed
##### Manual
jacques.dainat_ird.fr
committed
As prerequisite you need python >=3.8 and pip.
jacques.dainat_ird.fr
committed
Install Mkdocs:
jacques.dainat_ird.fr
committed
`pip install mkdocs`
jacques.dainat_ird.fr
committed
For the theme:
`pip install mkdocs-material`
jacques.dainat_ird.fr
committed
For the extensions:
`pip install pymdown-extensions`
jacques.dainat_ird.fr
committed
For the plugins:
`pip install mkdocs-minify-plugin`
`pip install mkdocs-macros-plugin`
`pip install mkdocs-include-markdown-plugin`
jacques.dainat_ird.fr
committed
##### Conda
jacques.dainat_ird.fr
committed
Clone the repository and move in it.
Then install all dependencies using conda and the `conda_env.yml` shipped with this repo:
jacques.dainat_ird.fr
committed
```
conda env create -f conda_env.yml
```
jacques.dainat_ird.fr
committed
Activate the environment and you are good:
jacques.dainat_ird.fr
committed
```
conda activate education
```
jacques.dainat_ird.fr
committed
#### Testing and building the website
jacques.dainat_ird.fr
committed
* `mkdocs serve` - Start the live-reloading docs server, to test the site locally (http://127.0.0.1:8000/).
* `mkdocs gh-deploy` - Deploys the site on github pages.
jacques.dainat_ird.fr
committed
* `mkdocs build` - Build the documentation site.
* `mkdocs new [dir-name]` - Create a new project.
* `mkdocs -h` - Print help message and exit.
jacques.dainat_ird.fr
committed
This work is licensed under a [Creative Commons Attribution 4.0 International License][cc-by].
[cc-by]: http://creativecommons.org/licenses/by/4.0/
[cc-by-shield]: https://img.shields.io/badge/License-CC%20BY%204.0-lightgrey.svg
## Acknowledgment
This course is build on top of a course made by Jacques Dainat ([git repo](https://forge.ird.fr/mivegec/dainat/malbec-unix-basics) / [website](https://mivegec.pages.ird.fr/dainat/malbec-unix-basics/)).