Synology : installer PIP, le gestionnaire de paquets Python photo

Synology : installer PIP, le gestionnaire de paquets Python

Si l’on souhaite rajouter pas mal de fonctionnalités à un NAS Synology, on est vite limité par les applications officielles.

On peut passer par IPKG ou alors tout simplement installer pip, le gestionnaire de paquets Python.

Voici comment installer pip sur votre NAS Synology en moins de 3 minutes.

Installation de pip sur votre Synology

Pré-requis : vous devez avoir installé Python (version 2.7 chez moi) depuis le gestionnaire de paquets du DSM.

1. On commence par ouvrir une session SSH avec l’utilisateur root sur le port 22 de l’IP de notre NAS :

ssh -l admin 192.168.IP.NAS -p22
sudo -iCode language: CSS (css)

Depuis DSM6, on ne peut plus ouvrir de session SSH avec l’utilisateur root. Il faut donc ruser en ouvrant une session avec un autre utilisateur (admin par exemple) puis passer root avec sudo -i

2. Une fois connecté en tant que root, on récupère le paquet pip :

wget https://bootstrap.pypa.io/get-pip.pyCode language: JavaScript (javascript)

3. Et on installe pip :

python get-pip.pyCode language: JavaScript (javascript)

Cela prend un peu de temps. Voici ce que vous devriez obtenir :

Collecting pip
  Downloading pip-8.1.2-py2.py3-none-any.whl (1.2MB)
    100% |████████████████████████████████| 1.2MB 103kB/s 
Collecting setuptools
  Downloading setuptools-27.1.2-py2.py3-none-any.whl (464kB)
    100% |████████████████████████████████| 471kB 99kB/s 
Collecting wheel
  Downloading wheel-0.29.0-py2.py3-none-any.whl (66kB)
    100% |████████████████████████████████| 71kB 535kB/s 
Installing collected packages: pip, setuptools, wheel
Successfully installed pip-8.1.2 setuptools-27.1.2 wheel-0.29.0

pip est maintenant installé. Il ne vous reste plus qu’à installer les paquets de votre choix, à la manière d’un apt, apt-get ou aptitude :

Usage:   
  pip  [options]

Commands:
  install                     Install packages.
  download                    Download packages.
  uninstall                   Uninstall packages.
  freeze                      Output installed packages in requirements format.
  list                        List installed packages.
  show                        Show information about installed packages.
  search                      Search PyPI for packages.
  wheel                       Build wheels from your requirements.
  hash                        Compute hashes of package archives.
  help                        Show help for commands.Code language: PHP (php)

À vous les paquets Python sur votre Synology !

In lycée with Mister B. : "un muffin pour fêter nos 1 an!" photo

In lycée with Mister B. : “un muffin pour fêter nos 1 an!”

Aujourd’hui, j’ai cours avec mes Terminales, dont je connais à peu près la moitié de l’effectif puisque je les avais déjà eu en classe de Première. Je les fait entrer en classe et m’aperçois que deux élèves sont en retard. Elles me disent qu’elles arrivent tout de suite. Okie dokie, je ne pose pas de question et laisse la porte ouverte.

J’entre donc dans la classe et commence à préparer mes affaires pour le traditionnel discours de début d’année qui rappelle les règles du cours.

Et au moment où je vais commencer à parler, mes deux élèves rentrent avec ceci :

In lycée with Mister B. : "un muffin pour fêter nos 1 an!" photo

Un muffin aux pépites de chocolat, avec une bougie allumée plantée dedans : “c’est pour fêter nos 1 an Mister B.!”

Lire la suite

Wanderer above the Sea of Fog, an oil painting composed in 1818 by the German Romantic artist Caspar David Friedrich

The 19th Century : Romanticism in Art and Literature

  1. The 18th Century: the Age of Enlightenment
  2. The Gothic and the Fantastic
  3. The 19th Century : Romanticism in Art and Literature
  4. English Romanticism (1798-1832)
  5. 19th Century Literary Movements : Realism and Naturalism
  6. British Civilisation and Literature: 19th and 20th centuries

Definition of Romanticism

Romanticism (also the Romantic era or the Romantic period) is an artistic, literary, and intellectual movement that originated in Europe toward the end of the 18th century and was at its peak in the approximate period from 1800 to 1850.

Romanticism is characterized by its emphasis on emotion and individualism as well as glorification of all the past and nature, preferring the medieval rather than the classical. It is a reaction to the ideas of the Industrial Revolution, the aristocratic social and political norms of the Age of Enlightenment, and the scientific rationalization of nature.

The meaning of romanticism has changed with time. In the 17th century, “romantic” meant imaginative or fictitious due to the birth of a new literary genre: the novel. Novels, that is to say, texts of fiction, were written in vernacular (romance languages), as opposed to religious texts written in Latin.

In the 18th century, romanticism was eclipsed by the Age of Enlightenment, where everything is perceived through the prism of science and reason.

In the 19th century, “romantic” means sentimental: lyricism and the expression of personal emotions are emphasized. Feelings and sentiments are very much present in romantic works.

Thus, so many things are called romantic that it is difficult to see the common points between the novels by Victor Hugo, the paintings by Eugène Delacroix or the music by Ludwig Von Beethoven.

Lire la suite