Muestra las diferencias entre dos versiones de la página.
Ambos lados, revisión anteriorRevisión previaPróxima revisión | Revisión previa | ||
guias:debian_jessie_post_instalacion [2017/05/21 15:26] – [pip, virtualenv, virtualenvwrapper, virtualfish] Sergio Alvariño | guias:debian_jessie_post_instalacion [2021/04/16 20:41] (actual) – editor externo 127.0.0.1 | ||
---|---|---|---|
Línea 378: | Línea 378: | ||
< | < | ||
aptitude install pinentry-gtk2 opensc | aptitude install pinentry-gtk2 opensc | ||
+ | </ | ||
+ | |||
+ | ==== wire ==== | ||
+ | |||
+ | Un cliente de mensajeria seguro. | ||
+ | |||
+ | < | ||
+ | sudo aptitude install apt-transport-https | ||
+ | wget -q https:// | ||
+ | echo "deb https:// | ||
+ | sudo aptitude update | ||
+ | sudo aptitude install wire-desktop | ||
</ | </ | ||
===== Documentos ===== | ===== Documentos ===== | ||
Línea 749: | Línea 761: | ||
sudo aptitude install comix | sudo aptitude install comix | ||
</ | </ | ||
- | ===== Desarrollo | + | ===== Desarrollo |
==== Paquetes esenciales ==== | ==== Paquetes esenciales ==== | ||
+ | |||
+ | Estos son los paquetes esenciales para empezar a desarrollar software en Linux. | ||
< | < | ||
sudo apt-get install build-essential checkinstall make automake cmake autoconf git git-core dpkg wget | sudo apt-get install build-essential checkinstall make automake cmake autoconf git git-core dpkg wget | ||
</ | </ | ||
- | |||
==== Git ==== | ==== Git ==== | ||
- | Absolutamente imprescindible. | + | Control de versiones distribuido. Imprescindible. |
Instalado git desde aptitude | Instalado git desde aptitude | ||
Línea 777: | Línea 790: | ||
git config --global push.default simple | git config --global push.default simple | ||
git config --global alias.sla 'log --oneline --decorate --graph --all' | git config --global alias.sla 'log --oneline --decorate --graph --all' | ||
+ | git config --global alias.lg "log --graph --pretty=format:' | ||
git config --global alias.car ' | git config --global alias.car ' | ||
git config --global alias.unstage reset | git config --global alias.unstage reset | ||
Línea 783: | Línea 797: | ||
git config --global alias.ca ' | git config --global alias.ca ' | ||
</ | </ | ||
- | |||
==== Open Java ==== | ==== Open Java ==== | ||
- | |||
- | Tendremos que usar Java para ejecutar varias aplicaciones, | ||
< | < | ||
apt-get install openjdk-7-jre icedtea-7-plugin | apt-get install openjdk-7-jre icedtea-7-plugin | ||
</ | </ | ||
- | |||
==== Lenguaje de programación D (D programming language) ==== | ==== Lenguaje de programación D (D programming language) ==== | ||
Línea 798: | Línea 808: | ||
=== D-apt e instalación de programas === | === D-apt e instalación de programas === | ||
- | Configurado [[http:// | + | Configurado [[http:// |
< | < | ||
Línea 906: | Línea 916: | ||
(setq indent-line-function ' | (setq indent-line-function ' | ||
</ | </ | ||
- | == Referencias == | + | === Referencias |
* https:// | * https:// | ||
Línea 955: | Línea 965: | ||
Python 3.4.2 | Python 3.4.2 | ||
</ | </ | ||
- | ==== pip, virtualenv, virtualenvwrapper, | + | === pip, virtualenv, virtualenvwrapper, |
//pip// es un gestor de paquetes para **Python** que facilita la instalación de librerías y utilidades. | //pip// es un gestor de paquetes para **Python** que facilita la instalación de librerías y utilidades. | ||
Línea 994: | Línea 1004: | ||
[[http:// | [[http:// | ||
- | ==== iPython notebook | + | === iPython notebook === |
- | Teóricamente | + | [[https://ipython.org/|iPython]], y su evolución [[https://jupyter.org/index.html|Jupyter]] proporcionan un entorno para interactivo de programación |
- | Las instalaciones | + | == Instalar Jupyter en el Python del sistema == |
+ | |||
+ | Seguimos las instrucciones [[https:// | ||
+ | |||
+ | Si usamos el script descargado del github se instalará el **Jupyter** con el python3 del sistema. %%__%%Conviene asegurarse | ||
+ | |||
+ | < | ||
+ | which python | ||
+ | </code> | ||
+ | == Instalar Anaconda Python == | ||
+ | |||
+ | Teóricamente [[https:// | ||
< | < | ||
Línea 1018: | Línea 1039: | ||
set -x PATH ~/ | set -x PATH ~/ | ||
</ | </ | ||
- | ==== iPython y GraphLab ==== | + | === iPython y GraphLab === |
+ | |||
+ | La instalación de iPython y GraphLab (que es una librería comercial) la hice para realizar un curso. | ||
Creamos un entorno conda con Python 2.7.x | Creamos un entorno conda con Python 2.7.x | ||
Línea 1062: | Línea 1085: | ||
source deactivate gl-env | source deactivate gl-env | ||
</ | </ | ||
- | === Instalación alternativa con virtualenv | + | == Instalación alternativa con virtualenv == |
< | < | ||
Línea 1084: | Línea 1107: | ||
pip install --upgrade --no-cache-dir https:// | pip install --upgrade --no-cache-dir https:// | ||
</ | </ | ||
- | ==== Instalar Jupyter en el Python del sistema ==== | ||
- | |||
- | Seguimos las instrucciones [[https:// | ||
- | |||
- | Si usamos el script descargado del github se instalará el **Jupyter** con el python3 del sistema. %%__%%Conviene asegurarse de que estamos apuntando al python del S.O. y no al de Anaconda: | ||
- | |||
- | < | ||
- | which python | ||
- | </ | ||
- | |||
=== Usar Emacs para editar Python === | === Usar Emacs para editar Python === | ||
Línea 1103: | Línea 1116: | ||
(elpy enable) | (elpy enable) | ||
</ | </ | ||
- | // | + | // |
< | < | ||
Línea 1112: | Línea 1125: | ||
Estudiar esto con calma https:// | Estudiar esto con calma https:// | ||
- | === Web2py === | + | ==== Web2py |
Desde [[http:// | Desde [[http:// | ||
Línea 1154: | Línea 1167: | ||
sudo aptitude install python-pygraphviz | sudo aptitude install python-pygraphviz | ||
</ | </ | ||
+ | ==== Selenium ==== | ||
+ | Vamos a instalar // | ||
+ | )) de aplicaciones web con Python. Lo haremos siguiendo [[http:// | ||
+ | |||
+ | En principio lo voy a usar con el Python del sistema '' | ||
+ | |||
+ | < | ||
+ | sudo pip install -U selenium | ||
+ | </ | ||
+ | Con esto nos queda instalado '' | ||
+ | |||
+ | Además de Selenium necesitamos los drivers de los navegadores que queremos controlar, de momento solo usaré // | ||
+ | |||
+ | < | ||
+ | sudo chown root:staff ~/ | ||
+ | sudo chmod 755 ~/ | ||
+ | sudo mv ~/ | ||
+ | </ | ||
+ | Para probarlo escribimos un pequeño programa en Python: | ||
+ | |||
+ | < | ||
+ | from selenium import webdriver | ||
+ | |||
+ | browser = webdriver.Firefox() | ||
+ | browser.get(' | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | > **Nota**: Tengo que pensar bien como hacerlo. | ||
+ | |||
+ | ===== Go language ===== | ||
+ | |||
+ | Nos bajamos los binarios desde la [[https:// | ||
+ | |||
+ | Descomprimimos en ///opt//, ejecutando (como root): | ||
+ | |||
+ | < | ||
+ | cd /opt | ||
+ | tar xvzf ~/ | ||
+ | </ | ||
+ | Deberíamos dejar configuradas las siguientes variables de entorno: | ||
+ | |||
+ | < | ||
+ | # Point to the local installation of golang. | ||
+ | export GOROOT=/ | ||
+ | |||
+ | # Point to the location beneath which source and binaries are installed. | ||
+ | export GOPATH=$HOME/ | ||
+ | |||
+ | # Ensure that the binary-release is on your PATH. | ||
+ | export PATH=${PATH}: | ||
+ | |||
+ | # Ensure that compiled binaries are also on your PATH. | ||
+ | export PATH=${PATH}: | ||
+ | </ | ||
===== Desarrollo hardware ===== | ===== Desarrollo hardware ===== |