divendres, 10 de novembre de 2017

Export data from Amazfit Bip



I have changed my Mi band2 to an Amazfit Bip. I was so happy with my Mi Band 2 but I made the big mistake to forget it with my dirty clothes and it ends up in the washing machine reaching the cruel dead.

Well, now I have an Amazfit bip and everything is happiness :-)

But... I want to export my data from Amazfit BIP too!

So, given that I use the same APP to connect to my new wearable (Mi Fit), I tried to export my data the same way I used to do and SURPRISE! It works!

Follow the link to know how to do it..




dimarts, 5 de setembre de 2017

Citrix and SSL Error 61 Ubuntu 16.04

1) Install "Receiver for Linux Web client (x86_64)"
2) Assure that the Firefox Plug-in "Citrix Receiver for Linux" is enabled and Allowed
3) Export the certificate from Firefox clicking on the lock and viewing the Certificate
4) Save the exported certificate to the folder:  
"/opt/Citrix/ICAClient/keystore/cacerts" in a *.pem format

dissabte, 1 de juliol de 2017

$npm-install-all /usr/bin/env: ‘node\r’: No such file or directory

If you are using linux and you have this error:

 /usr/bin/env: ‘node\r’: No such file or directory  
when trying to use: npm-install-all..

Here you have the solution:
1) Check where do you have it installed

 $locate npm-install-all  
2)In my case is in: "/usr/lib/node_modules/npm-install-all"
-Let's go there:

 $cd /usr/lib/node_modules/npm-install-all/  
3) Convert the index.js file from windows format to unix using dos2unix (sudo apt-get install dos2unix)
 $ sudo dos2unix index.js  
dos2unix: converting file index.js to Unix format ...

Solved!

Now it's working!

diumenge, 21 de maig de 2017

Instalar y configurar SSH en Debian


#apt-get install ssh 
Luego de la instalación buscamos el archivo de configuración sshd_config que esta en 
# nano /etc/ssh/sshd_config 
Agregamos o modificamos las siguientes entradas en el archivo Parámetro Port Si fuera necesario por seguridad se puede cambiar el puerto por el cual escucha el SSH 
Port 54321 
Parámetro ListenAddress Especificamos bajo que direcciones intefaces responderá las peticiones 
ListenAddress 10.0.0.5 
Parámetro PermitRootLogin Especificamos si el superusuario podrá conectarse mediante SSH 
PermitRootLogin no 
Parámetro X11Forwarding Especificamos si es necesario que se ejecuten aplicaciones gráficas mediante SSH 
X11Forwarding no 
Parámetro AllowUsers Especificamos que usuarios se conectarán mediante SSH 
AllowUsers espiridion, cascajo, pully 
Tambien se puede restringir el acceso por usuario y host 
AllowUsers espiridion@192.168.0.55 cascajo@192.168.5.22 
Reiniciamos el SSH 
#/etc/init.d/ssh restart

dissabte, 20 de maig de 2017

Connecting a remote X client via SSH. Abrir aplicación gráfica via ssh.


The use of "ssh -X" enables a secure connection from a local X server to a remote application server.
Set "X11Forwarding " entries to "yes" in "/etc/ssh/sshd_config" of the remote host, if you want to avoid "-X" command-line option.
Start the X server on the local host.
Open an xterm in the local host.

Run ssh(1) to establish a connection with the remote site as the following.

localname @ localhost $ ssh -q -X loginname@remotehost.domain
Password:

Run an X application command, e.g. "gimp", on the remote site as the following.
loginname @ remotehost $ gimp &
This method can display the output from a remote X client as if it were locally connected through a local UNIX domain socket.