Entradas

Mount lacie storage in ubuntu through command line

I have been trying to mount a folder share in a storage device called: LaCie 5Big Network 2. You need to install basic NFS software first with: sudo apt-get install nfs-common In the LaCie device create a share, por example "FolderShared1". Click on the button "protocols" to see if NFS is enabled. Set it up to public in case you want to access it without user and password. Create a folder that will be used as mounting point: mkdir /home/your_username/LacieMount Let's say the ip address of your LaCie device is 192.168.1.1 To mount it use: sudo mount 192.168.1.1:/shares/FolderShared1 /home/your_username/LacieMount That is all. Was this useful for you? Contact me: https://www.linkedin.com/in/bsaldivar/ https://www.facebook.com/bsaldivaremc2/

Install php7.0 in apache2 ubuntu 16.0

I tried to install php with apache by default. It didn't work. After installing "everything" php was seen as a text file. So apparently there is one additional package that needs to be installed. So, the right way to install is sudo apt-get install apache2 php libapache2-mod-php7.0 The first two will install the latest versions (At the time I am writing this post the latest version for php was 7.0)

Ubuntu spanish keyboard wrong layout

It has just happened to me that suddenly the keyboard lost its setup. The keyboard has in  a button the 6 and &, symbols, but with this issue the /  character was printed instead. In addition, the ^  character in the right, using AltGr  didn't appear. Additional keys were missing and others in other settings. To solve this state the following command is the key: sudo dpkg-reconfigure keyboard-configuration In the options I selected the standard 104 keyboard, and included dead tilde. This is your path.

Micro sd read only ubuntu

I wasn't able to format a micro sd card using ubuntu. So I saw several threads but none worked on my device. The following steps allowed me to format it. This wasn't my sd card so I was able to validate all once, but not find if all steps are required. #Find the device you want to access: sudo fdisk -l #Example output: /dev/sdb1 #Set some variables to ease the access to your device DEV=dev/sdb DEVX=dev/sdb1 #The following code lines seemed to fix the problem, including the last one. Them alone don't seem to work sudo chown ${USER}:${USER} -R ${DEV} sudo chown ${USER}:${USER} -R ${DEVX} find ${DEV} -type d -execdir chmod 777 -Rv {} + find ${DEVX} -type d -execdir chmod 777 -Rv {} + chmod 777 ${DEV} chmod 777 ${DEVX} sudo mount -orw,remount ${DEV}

Check the information you leave while browsing the internet

Check the information you leave while browsing the internet. Here I show you some of the variables that your device sends every time you visit a website:

Sine signal sound generator

Frecuencia (0 a 24kHz) Play Stop

Xencenter on GNU/Linux

In this publication will be present the steps to install Xencenter on Linux. Software used: Ubuntu 16.04.1 LTS (To see this use the comand lsb_release -a ) PlayOnLinux 4.2.10 XenCenter version 6.5 (build 6.5.2.2477) 32-bit As may be seen the way to do it is by using playonlinux, for which the way to install it is: sudo apt-get install playonlinux Once installed playonlinux, select Install, Install a non-listed program, after this select Install a program in a new Virtual Drive. When you be asked What would you like to do before installation , select the three checkboxes. When you be asked to configure a version of wine to use, you can choose 1.7.37 or 1.9.17 (Tested). In the popped up windows for wine configuration check that the Windows version box is set on Windows XP. Select a 32-bit installation. In the component installation select the following components (They appear in that order): POL_install_dotnet40 POL_Install_ie8 POL_Install_tahoma2 During the n...

QR en GNU/linux - Ubuntu

Imagen
Para obtener la información de una imagen con código QR, instalar Zbar . $ sudo apt-get install zbar-tools Guardar la imagen con el código QR en un archivo como qr_image.png , y luego obtener la información con: $ zbarimg qr_image.png QR-Code:http://aca_viene_el_resultado.html scanned 1 barcode symbols from 1 images in 0.12 seconds Referencia 1 ¿Desea donar?/Do you wish to give some money to the author? Give money to the author/writer 1 USD $1.00 USD 5 USD $5.00 USD 10 USD $10.00 USD 20 USD $20.00 USD 50 USD $50.00 USD 100 USD $100.00 USD 1000 USD $1,000.00 USD

Android x86 en virtualbox y Xenserver 6.5

Imagen
El objetivo de esta publicación es modificar un iso de androidx86 para que cuente con acceso a internet cuando se utiliza en virtualbox, habilitando la interfaz ethernet para adquirir una dirección IP al iniciar el sistema por DHCP y habilitar un servidor DNS. Se recomienda probar que los comandos que se incorporarán al iso funcionan en el iso que se haya seleccionado. Para esta prueba se usó el iso android-x86-4.0-r1-eeepc.iso . La prueba consiste en iniciar en modo Live el iso, aceptar todas las opciones hasta tener el mensaje de que está listo para usarse. Una vez ahí, iniciar una consola con Alt+F1 , para regresar a la interfaz gráfica usar Alt+F7 , y una vez ahí seguir los pasos descritos en un foro netcfg eth0 up netcfg eth0 dhcp setprop net.dns1 8.8.8.8 Para probar que están funcionando los comandos, después del comando dhcp, ejecutar solo netcfg con el fin de ver que hemos adquirido una dirección IP. Tras este paso, probar ...

Instalar guvcview en ubuntu - error webcam de color negro

Imagen
Si habéis instalado guvcview, pero al momento de probar y querer grabar la webcam ésta aparece con un fondo negro, este post es para ti. La razón principal es porque hay conflictos con el kernel de vuestra versión de ubuntu. Hay dos soluciones, agregar un ppa ( Enlace a post de PPA ), o descargar la última versión de guvcview y resolver sus dependencias manualmente, este último caso es el que se explica. Primero, descargad la última versión desde la página oficial del proyecto Enlace . Una vez descargado, y descomprimido el paquete con tar -xzvf paquete.tar.gz , al ejecutar ./configure los siguientes paquetes no están presentes en el sistema y si se busca explícitamente con apt-get install, no serán encontrados, algunos vienen con otros paquetes, no se instalan directamente, mas otros solo hay que saber el nombre apropiado para descargarlos. No package 'libv4l2' found No package 'libudev' found No package 'libusb-1.0' fou...

Instalar JRE, JDK y abrir archivos jnlp en GNU/linux

Imagen
Instalar Java Development Kit JDK openjdk-7-jdk ~ sudo apt-get install openjdk-7-jdk Instalar Java Runtime Enviroment openjdk-7-jre ~ sudo apt-get install openjdk-7-jre Para abrir archivos jnlp se debe contar con el paquete icedtea-netx y abrir los archivos con el comando javaws (Java Web Start), o una vez instalado el paquete, hacer click derecho en el archivo y seleccionar abrir con "IcedTea Java Web Start" ~ sudo apt-get install icedtea-netx ¿Desea donar?/Do you wish to give some money to the author? Give money to the author/writer 1 USD $1.00 USD 5 USD $5.00 USD 10 USD $10.00 USD 20 USD $20.00 USD 50 USD $50.00 USD 100 USD $100.00 USD 1000 USD $1,000.00 USD

Grabar ISO en USB booteable en GNU/Linux

Imagen
Primero obtener la partición donde está montado el USB con el comando fdisk -l #fdisk -l | grep /dev/sd Ejemplificando, que esté montado en el /dev/sdc1, proceder a desmontar la unidad con umount #umount /dev/sdc1 *Paso opcional: Formatear la unidad con la unidad mkdosfs #mkdosfs -n 'USBname' -I /dev/sdc -F 32 Buscar el iso que se quiero montar y prepararlo con el comando isohybrid (¿No está presente?) #isohybrid imagenLinux.iso Copiar el iso al USB con el comando dd . Percatarse que en la sección if= se coloca la ubicación del iso que se desea grabar al USB. En la sección of= es el destino, para este caso el disco USB. También notar que no se está colocando /dev/sdc1 sino /dev/sdc #dd if=imagenLinux.iso of=/dev/sdc bs=4k Finalizar sincronizando la información en caché al disco y expulsar la unidad con los comandos sync y eject respectiva...

Iniciando programación android en ubuntu

Imagen
Para iniciarse en la programación en android será requerido: Descargar android studio : IDE para programar en android.  Enlace para descargar Configurar adb server :  Para poder enviar las aplicaciones vía USB directamente a un dispositivo android  Referencia en inglés La descarga e instalación de android studio es relativamente simple siguiendo los pasos de la sección de Instalación de SDK . Pero, cuando se requiere enviar a un dispositivo android se debe: Conectar el dispositivo Android a la computadora. Habilitar las opciones de programador en el dispositivo Android. Habilitar debugging de puerto USB (Dentro de las opciones de programador)  Obtener el ID del fabricante  En la página de desarrollo de android existe una lista de identificadores (ID) de fabricantes , pero si vuestro dispositivo no figura en la lista puede obtenerse usando el comando lsusb. #lsusb Bus 002 Device 003: ID 04f2:b34f Chicony Electronics Co., Ltd Los dígit...

Encriptación de archivos

Imagen
Se desea encriptar un archivo bajo una contraseña Usando Openssl Encriptar el archivo file.pdf, teniendo como resultado el archivo fileEnc.pdf, solicitando colocar la contraseña tras su ejecución: openssl enc -in file.pdf -out fileEnc.pdf -e -aes256 Para desencriptar el archivo fileEnc.pdf y tener como resultado el archivo fileDesc.pdf, con solicitud para colocar la contraseña tras su ejecición: openssl enc -in fileEnc.pdf -out fileDesc.pdf -d -aes256 Si se desea colocar el password de encripción en la misma línea, agregar la opción -k seguido del password. -k passwordUsado Descargar openSSL para windows: http://gnuwin32.sourceforge.net/packages/openssl.htm http://downloads.sourceforge.net/gnuwin32/openssl-0.9.8h-1-setup.exe Referencias: http://stackoverflow.com/questions/16056135/how-to-use-openssl-to-encrypt-decrypt-files ¿Desea donar?/Do you wish to give some money to the author? Give money to the author/writer 1 USD $1.00 USD 5 USD $5.00 USD ...

Software, services, education List

Imagen
¿Desea donar?/Do you wish to give some money to the author? Give money to the author/writer 1 USD $1.00 USD 5 USD $5.00 USD 10 USD $10.00 USD 20 USD $20.00 USD 50 USD $50.00 USD 100 USD $100.00 USD 1000 USD $1,000.00 USD

GNU/Linux - useful commands

Imagen
Regresar ¿Desea donar?/Do you wish to give some money to the author? Give money to the author/writer 1 USD $1.00 USD 5 USD $5.00 USD 10 USD $10.00 USD 20 USD $20.00 USD 50 USD $50.00 USD 100 USD $100.00 USD 1000 USD $1,000.00 USD Regresar

ICMP Monitor With MySQL - Linux

Imagen
Hello everyone, here is some code intended to help you monitor any node of your network using ICMP (ping), but, with a some help, you could load the hosts to test from a MySQL database and register the state of it on the same database. First Create a database and a table with some fields like an ID , a Description for the node (Just to have a human identification), the HostName or IP Address , and the State (This could have an UP or DOWN state) CREATE DATABASE MysqlDatabase; use MysqlDatabase;  CREATE TABLE `MysqlTable` ( `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY , `Description` VARCHAR( 60 ) NOT NULL , `MysqlHostColumn` VARCHAR( 80 ) NOT NULL , `MysqlStateColumn` VARCHAR( 30 ) NOT NULL ); And insert some IP addresses or hostnames with some description for them:  INSERT INTO `MysqlTable` (`Description`, `MysqlHostColumn`, `MysqlStateColumn`) VALUES ('Gateway', '192.168.1.1', 'DOWN'); INSERT INTO `MysqlTable` (`Description`, `MysqlHostC...

Virtualbox in Kali Linux Issue (Can't start virtual machine)

Imagen
This publication summarizes the procedure to enable Virtualbox to run in Kali Linux. After downloading and installing Virtualbox ( How to install )  , you configure your virtual machine, but while trying to start it you get an error. Issue: Description: After installing Virtualbox in Kali Linux, it is not possible to start a virtual machine. Action requested by virtualbox:    /etc/init.d/vboxdrv setup While executing that command you are requested to look for the error in the log file: cat /var/log/vbox-install.log Error found: Makefile:183: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop. Solution: Verify that the file /etc/apt/sources.list have the following lines (If not add them): deb http://http.kali.org/kali kali main contrib non-free deb http://security.kali.org/kali-security kali/updates main contrib non-free Execute: apt-get update Then execute:   apt-get inst...

Block web sites on Windows

Imagen
Here is how to make your windows computer (Not Server) to become a DNS server. Why should you do that? Avoid webpages to redirect you to anoying sites, publicity you don't need, or if you want to restrict access so some pages without having a proxy server or software. There are a vast number of web pages that when you click on something, they open a new window and connect you to a different web site, this other web sites may contain only unuseful content or dangerous content. Ways to avoid it: a)  Include your URLs in your web browser restriction access list. Limitations:  It is needed to configure a per communication protocol domain restriction list, I find it not very flexible. b)  Configure your windows  C:\Windows\System32\drivers\etc\hosts  file . This method overcomes option  a)   by adding only one line per web site   protocol connection (ftp, http, https, etc), so you have to configure only one line to avoid whatever the...

Citrix - Xenserver - Migrate MAC address

Imagen
This post provides two scripts based on the shell of linux to export basic network information of your XenServer's virtual machines (VMs) , this will include the VM 's name, the device number, the MAC address and the network name of all the virtual interfaces (VIFs) of every VM of your pool, it has to be known that this software only works fine when the name of you VM s and the name of your networks have no spaces in between neither leading spaces, so rename this paramenters before using the scripts. Why should you like to save this information? In the following scenario: There are 2 sites in your company, one of them are the principal one, there you have provisioned VM 's with DHCP reserved to their MAC addresses, the alternate site is a recovery site, where you have to make work your VMs if the main site fails, as a requirement you have to have: Repplication LUNs from one site to the other, the VM 's disks have to be in a shared Storage Repository (SR) , the ...