Entradas

Configurar El Wifi Y Activar El SSH En Una Raspberry PI ZERO

Imagen
Cómo configurar el Wi-Fi antes de iniciar la Raspberry Pi por primera vez 12 agosto, 2017  by  manuti   6 Comments En versiones recientes de  Raspbian  han añadido un par de  cambios interesantes , uno de ellos tiene que ver con la seguridad y el otro con facilitar la configuración. El primero de ellos es que ya no está activado por defecto el servio de terminal remoto por  SSH . El segundo es que se puede configurar por adelantado el Wi-Fi. Activar o habilitar SSH sin pantalla Tienes que  hacer dos cosas antes de poner la microSD en la Raspberry . Puedes hacerlo desde Windows mismo. Después de copiar la imagen de Rapsbian Lite usando Etcher como recomiendo en otro post, extrae la tarjeta y vuélvela a poner. Se verá al menos la partición de arranque o  /boot  allí crea un nuevo fichero vació de la forma que quieras y lo renombras como:  ssh  en minúsculas sin extensión ni nada. Si Windows le ha añadido alguna extensión como .txt o la que sea debes borrarla. Co

Trabajar con la Orange Pi IoT 2G

Imagen
Usar switches, pantallas LCD y OLED, sensores temp, Iot Mqtt: https://4pda.ru/forum/index.php?showtopic=813602&st=260#entry67467290 https://4pda.ru/forum/index.php?showtopic=813602&st=280 https://4pda.ru/forum/index.php?showtopic=813602&st=340#entry71820433 https://4pda.ru/forum/index.php?showtopic=813602&st=360#entry72321134 Kernel, modules, memoria NAND: Utilidades para compilar el kernel, modulos y uboot para Orange Pi Iot 2G -Fix ramdom Wifi MAC -Uboot con acceso a ubifs (NAND) Sistema host 16.04.1-Ubuntu x64 Instalar Toolchain (para crosscompile): sudo apt-get install gcc-arm* Clonar repositorio github a disco: 1.1 git clone https://github.com/txurtxil/Opi2gIOT 2 Para cambiar el kernel en la SD (primero clonar desde una distro SD para Opi2G):           2.1 Copiar el Kernel:                Montar la particion con el kernel zImage:                mount /dev/sdb1 /mnt                Borramos el kernel zImage antig

Linux – random mac address on boards OrangePi/NanoPi

For some boards, such as Orange Pi/NanoPi, mac address can random changing. To fix it, need to add one string to /etc/network/interfaces hwaddress ether  where ether – is a mac address in format 00:00:00:00:00:00 Example of part of file /etc/network/interfaces allow-hotplug eth0 no-auto-down eth0 iface eth0 inet dhcp     hwaddress 12:34:56:78:90:ab

MONTAR IMAGEN IMG EN LINUX PARA EDITARLA Y REDUCIRLA

Antes de nada hay que tener en cuenta que no se puede montar la imagen en su conjunto, ya que en realidad contiene dos particiones (sector de arranque y sector de sistema). Sin embargo, se puede montar las particiones individuales de la imagen.  Usando el siguiente comando, veremos la distribucion de particiones dentro de la imagen ("imagenRPi") CÓDIGO:  SELECCIONAR TODO fdisk -l "imagenRPi".img. Nos saldrà algo como la siguiente: CÓDIGO:  SELECCIONAR TODO Disco "imagenRPi".img: xxxxxx GiB, xxxxx bytes, xxxxx sectores Unidades: sectores de 1 * 512 = 512 bytes Tamaño de sector (lógico/físico): 512 bytes / 512 bytes Tamaño de E/S (mínimo/óptimo): 512 bytes / 512 bytes Tipo de etiqueta de disco: dos Identificador del disco: 0x81c0ff4b Device Boot Start End Blocks Id System "imagenRPi".img1 8192 122879 57344 c W95 FAT32 (LBA) "imagenRPi".img2 122880 5785599 2831360 83 Linux

Como trabajar a diario con github

Subir archivos de proyecto local a github publico Guia: 1 Empezar a trabajar,ir a la carpeta donde tenemos el proyecto cd /carpera: 1.$git init 2.$git add . 3.$git commit -m “version1.0″ 4.$git remote add origin https://github.com/usuario/repositorio 5.$git remote -v 6.$git push origin master Explicación: En este tutorial voy a explicar como subir los archivos de tu carpeta local a tu repositorio de Github. Para eso es importante seguir los siguientes pasos: Instala Git Bash en tu computadora utilizando la terminal. Lo puedes descargar del siguiente link: https://git-scm.com/downloads Ingresa a www.github.com y crea un repositorio publico en tu cuenta de Github. Abre la terminal y navega con el comando “cd” a la carpeta de tu proyecto. Dentro de tu proyecto escribe: $git init Agrega los archivos a tu nuevo repositorio local utilizando el siguiente comando (no olvides el punto después de “add”): $git add . Para entender el siguiente paso, es necesario entender el

activar Proxy en la shell de Linux

Set http_proxy shell variable on Linux/OS X/Unix bash shell Type the following command to set proxy server: $ export http_proxy=http://server-ip:port/ $ export http_proxy=http://127.0.0.1:3128/ $ export http_proxy=http://proxy-server.mycorp.com:3128/ If the proxy server requires a username and password then add these to the URL. For example, to include the username foo and the password bar: $ export http_proxy=http://foo:bar@server-ip:port/ $ export http_proxy=http://foo:bar@127.0.0.1:3128/ $ export http_proxy=http://USERNAME:PASSWORD@proxy-server.mycorp.com:3128/ How do I setup proxy variable for all users? To setup the proxy environment variable as a global variable, open /etc/profile file: # vi /etc/profile Add the following information: export http_proxy=http://proxy-server.mycorp.com:3128/ OR export http_proxy=http://USERNAME:PASSOWRD@proxy-server.mycorp.com:3128/ Save and close the file. A note about enabling proxy access to a specific user To enable proxy access for a

How to access iPhone with iOS 11 in Linux

Imagen
How to access iPhone (6s) with iOS 11 in Linux A couple of years ago, I wrote a detailed tutorial on iPhone mount & use compatibility in Linux across multiple distributions. KDE/Plasma struggled with this the most, not seeing and/or not mounting the device automatically. But we did have a relatively neat solution in the form of idevice and ifuse utilities, with some command line hacking. With the release of iOS 11 (and possibly one version earlier) things seem to have changed somewhat. And I have only run and tested iPhone 6 with iOS 8/9. To wit, here's another tutorial to help you work around this. At the moment, I have an iPhone 6s model for testing, and I cannot guarantee this method will work well with newer models, but overall, the procedure should be identical for the rest of the Apple smartphone range. Anyway, after me. Tools of the trade This guide aims specifically at Plasma use, however, we will cover