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 -iLangage du code : 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.pyLangage du code : JavaScript (javascript)

3. Et on installe pip :

python get-pip.pyLangage du code : 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.Langage du code : 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 In lycée with Mister B. : « un muffin pour fêter nos 1 an! »

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

Romanticism in Art and Literature

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

Romanticism transformed European art, literature, music and thought from the late eighteenth century onwards. Rather than following one fixed doctrine, Romantic writers and artists explored imagination, emotion, individual freedom, nature, history and the sublime in response to political revolution, industrialisation and Enlightenment rationalism.

Caspar David Friedrich's Wanderer above the Sea of Fog, a major work of Romantic painting
Wanderer above the Sea of Fog, Caspar David Friedrich, around 1818.

What is Romanticism?

Romanticism was an artistic, literary and intellectual movement that developed in Europe during the late eighteenth century. It reached its greatest influence during the first half of the nineteenth century, although its chronology differs according to each country and artistic discipline.

It is often described as a reaction against the Enlightenment, rationalism and neoclassical order. That definition is useful, but incomplete. Many Romantic writers inherited Enlightenment ideals of liberty, criticism and human progress. What they challenged was the belief that reason alone could explain human existence.

Romanticism gave greater importance to imagination, emotion, intuition and individual experience. It also rediscovered nature, folklore, medieval history, national traditions and supernatural narratives.

The movement did not simply replace reason with feeling. Instead, it asked what rational systems had neglected: memory, desire, terror, spiritual experience, creativity and the relationship between humanity and the natural world.

Lire Romanticism in Art and Literature