Skip to content

Instantly share code, notes, and snippets.

View orejuelajd's full-sized avatar

orejuelajd orejuelajd

  • Ninguna
  • Colombia
View GitHub Profile
@orejuelajd
orejuelajd / hello-world-opencv-python-ubuntu.md
Last active July 28, 2016 19:20
Este apunte es para instalar pyhton y opencv en Ubuntu, además de como hacer un hello world con opencv y python en Ubuntu.

Hello world con OpenCv y Python en Ubuntu

Nota: La versión de Ubuntu es la 16.04 LTS.

  1. Para instalar Python en Ubuntu (La versión 16.04 de Ubuntu LTS ya tiene Python instalado):
sudo apt-get install python
  1. Instalar OpenCV para Python

A veces cuando se vaa instalar un software que no proviene propiamennte de la tienda de ubuntu, este SO muestra un error que no deja instalar dicho programa.

El error es el siguiente: "This software comes from a 3rd party and may contain non-free components"

Para solucionarlo y que ubuntu deje instalar los programas se debe digitar en la terminal lo siguiente:

sudo apt-get install ubuntu-restricted-extras

1 Instalar el SDK de android para el debugging

2 Instalar los drivers del celular (Si se está haciendo desde Windows)

3 Crear la variable ANDROID_HOME para que Ionic pueda exportar para Android. Para esto, ejecutar desde la terminal:

  • export ANDROID_HOME=(Path donde está el SDK de android)/sdk/
  • export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platforms-tools

4 Ejecutar desde la terminal: ionic start test blank

Para instalar s4a en ubuntu 16.04 de 64 bits se debe hacer lo siguiente:

  1. Tener instalado arduino
  2. Instalar scratch con: sudo apt-get install scratch
  3. Descargar el paquete S4A.deb de la pagina oficial de S4A (http://s4a.cat/index_es.html) y descomprimirlo en la carpeta donde queremos que qede instalado el programa
  4. Copiamos el script que ejecuta scratch y lo modificamos para que arranque la imagen de S4A cp /usr/bin/scratch ./S4A
  5. Instalamos el paquete .deb con el comando dpkg -i S4A.deb
  6. Editamos el archivo "scratch" que acabamos de copiar y cambiamos esto: IMAGE="/usr/share/scratch/Scratch.image" .... por esto: IMAGE="/usr/lib/s4a/S4A.image" (esta es la ruta por defecto donde se ecnuentra la imagen S4A.image luego de que instalamos el .deb del S4A)
  7. Ejecutamos el archivo "scratch" con el comando ./scratch

Step 1. Download Go!

You can download Golang from its official web: https://golang.org/dl/ and download tar.gz package.

Step 2. Install Go!

Extract this tar.gz package and the apply this command to the folder:

sudo chown -R root:root ./go

Hello World con Golang (helloworld.go):

package main
import "fmt"

func main() {
    fmt.Printf("hello, world\n")
}

You can do this with sudo usermod -a -G dialout terrik if terrik is your username.

static const uint8_t D0 = 16; static const uint8_t D1 = 5; static const uint8_t D2 = 4; static const uint8_t D3 = 0; static const uint8_t D4 = 2; static const uint8_t D5 = 14; static const uint8_t D6 = 12; static const uint8_t D7 = 13; static const uint8_t D8 = 15; static const uint8_t D9 = 3;

I have installed Unity in Ubuntu 16 . When I open for 1st time and sign in. I get this message "Service not available. Try again later"

For others with this issue: First, check if you have "libc6" installed (sudo apt install libc6). Secondly, run: sudo locate libresolv This will print a list to where the file is on your disk. For me, I had like three libresolv.so.2 but in different folders. Then, I ran the command written above and it worked. After signing in to Unity I can just start the program without having to use the above command again.

So for me: LD_PRELOAD=/lib/x86_64-linux-gnu/libresolv.so.2 /opt/Unity/Editor/Unity (Execute this command in terminal)