Comments for ciberterminal https://blog.ciberterminal.net Welcome, connect your terminal Mon, 15 Jul 2019 09:25:15 +0000 hourly 1 https://wordpress.org/?v=6.8.1 Comment on Openvpn in the TP-LINK WR841N[D] by Openwrt, TP-Link MR3020 and OpenVPN installation every time at power up | xiaolabaDIY https://blog.ciberterminal.net/2013/06/18/openvpn-in-the-tp-link-wr841nd/comment-page-1/#comment-7076 Sun, 20 Mar 2016 06:02:10 +0000 http://blog.ciberterminal.net/?p=876#comment-7076 […] http://blog.ciberterminal.net/2013/06/18/openvpn-in-the-tp-link-wr841nd/ […]

]]>
Comment on My adventures with Android (I) by Pradeep https://blog.ciberterminal.net/2012/10/26/my-adventures-with-android-i/comment-page-1/#comment-5496 Mon, 03 Aug 2015 18:04:20 +0000 http://blog.ciberterminal.net/?p=757#comment-5496 I successfully compiled kernel 3.10.33 and got the uImage.But when i try to make ota package in android 5.0 , i end up with below error.

make: *** No rule to make target `out/target/product/f06ref848L/kernel’, needed by `out/target/product/f06ref848L/boot.img’. Stop.

If i build normally , it is creating system.img .But not able to create otapackage. :(
Any help will be really appreciated .

]]>
Comment on Openvpn in the TP-LINK WR841N[D] by pedro https://blog.ciberterminal.net/2013/06/18/openvpn-in-the-tp-link-wr841nd/comment-page-1/#comment-1938 Mon, 12 Jan 2015 17:18:56 +0000 http://blog.ciberterminal.net/?p=876#comment-1938 I have an wr841nd v9 with DDWRT, and there is only PPTP.
But i need a OpenVPN Client. Works this on DDWRT?

]]>
Comment on Openvpn in the TP-LINK WR841N[D] by tim https://blog.ciberterminal.net/2013/06/18/openvpn-in-the-tp-link-wr841nd/comment-page-1/#comment-1617 Sun, 26 Oct 2014 09:24:07 +0000 http://blog.ciberterminal.net/?p=876#comment-1617 Hi!
Found another solution.
You have to upgrade your OpenWRT with firmware that includes openvpn-polarssl.
Then configure it as described here (in russian)
http://www.securitylab.ru/blog/personal/securegalaxy/39048.php

My TP-LINK WR841ND v8.4 works perfectly. Have tun0 to USA.

]]>
Comment on Openvpn in the TP-LINK WR841N[D] by tim https://blog.ciberterminal.net/2013/06/18/openvpn-in-the-tp-link-wr841nd/comment-page-1/#comment-1615 Sat, 25 Oct 2014 16:06:28 +0000 http://blog.ciberterminal.net/?p=876#comment-1615 Hi!
I have BARRIER BREAKER (14.07, r42625) firmware.
When I try to install kmod-tun:
root@OpenWrt:~# opkg install kmod-tun

I get:
Unknown package ‘kmod-tun’.
Collected errors:
* opkg_install_cmd: Cannot install package kmod-tun.

Need help please!

]]>
Comment on UPS Salicru en Nut by Jordi https://blog.ciberterminal.net/2013/04/28/ups-salicru-en-nut/comment-page-1/#comment-1242 Sat, 12 Jul 2014 17:00:16 +0000 http://blog.ciberterminal.net/?p=803#comment-1242 Buenas!
Solo quería decirte que mi problema era que tenía el hub estropeado y por eso no leía datos. Ahora ya funciona correctamente sin necesidad de hacer nada extra. Como a punte te diré que la versión que yo he usado es la que se descarga mediante apt-get, sin necesidad de compilar ni tocar nada de configuración, a parte de sus ficheros específicos. Quizá puedas probar tu también…

Gracias!

]]>
Comment on UPS Salicru en Nut by Jordi https://blog.ciberterminal.net/2013/04/28/ups-salicru-en-nut/comment-page-1/#comment-1187 Thu, 26 Jun 2014 10:30:29 +0000 http://blog.ciberterminal.net/?p=803#comment-1187 No logro ver cómo configuras el tema del udev… ¿Podrías poner el contenido que afecta a NUT? Gracias!

]]>
Comment on UPS Salicru en Nut by Jordi https://blog.ciberterminal.net/2013/04/28/ups-salicru-en-nut/comment-page-1/#comment-1164 Wed, 18 Jun 2014 07:05:11 +0000 http://blog.ciberterminal.net/?p=803#comment-1164 Ostras!!! Pues cuando llegue a casa lo pruebo. Lo raro es que la primera vez que lo intenté si arrancó correctamente… Ahora no hay manera…

ya te diré, y mil gracias por el aporte!

Jordi

PD: Esto no avisa cuando alguien responde a los comentarios… no me había dado cuenta de que habías respondido… :'(

]]>
Comment on UPS Salicru en Nut by dodger https://blog.ciberterminal.net/2013/04/28/ups-salicru-en-nut/comment-page-1/#comment-1162 Mon, 09 Jun 2014 09:11:23 +0000 http://blog.ciberterminal.net/?p=803#comment-1162 Buenas,
Me viene al pelo, por que me petó la sd de la raspberry y estoy teniendo que poner todo de nuevo :-(
Más o menos me pasa lo mismo que a tí… La otra vez creo que también me dio problemas el driver (upsdrvctl).
He hecho varias cosas que no son muy seguras, empezando por los permisos del udev, copié el fichero de permisos general y lo modifiqué:
[cc lang=”bash”]
raspterminal /home/apps/nut # diff -bBiT /etc/udev/rules.d/91-permissions.rules /lib/udev/rules.d/91-permissions.rules
36c36
< MODE="0666" --- > MODE=”0664″
[/cc]
También cambié el de los drivers del ups en el udev:
[cc lang=”bash”]
raspterminal /home/apps/nut # sed ‘s,MODE=”664″,MODE=”666″,g’ /lib/udev/rules.d/52-nut-usbups.rules > /etc/udev/rules.d/52-nut-usbups.rules
[/cc]
Y reinicié.
Con esto deberías ver el dispositivo del ups en /dev con ugo+rw:
[cc lang=”bash”]
raspterminal /home/apps/nut # lsusb
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 0665:5161 Cypress Semiconductor USB to Serial
raspterminal /home/apps/nut # ll /dev/bus/usb/001/004
crw-rw-rwT 1 root nut 189, 3 Jun 9 11:01 /dev/bus/usb/001/004
[/cc]
Con esto ya puedes arrancar el driver (yo lo hago con el blazer por que con upsdrvctl no da tanta información):
[cc lang=”bash”]
raspterminal /home/apps/nut :( # /home/apps/nut/bin/blazer_usb -DDDDDDDDDD -a salicru
Network UPS Tools – Megatec/Q1 protocol USB driver 0.10 (2.7.1)
0.000000 send_to_all: SETINFO driver.parameter.port “auto”
0.004218 debug level is ’10’
0.033721 Checking device (0665/5161) (001/004)
0.046156 – VendorID: 0665
0.046302 – ProductID: 5161
0.046364 – Manufacturer: INNO TECH
0.046420 – Product: USB to Serial
0.046473 – Serial Number: unknown
0.046526 – Bus: 001
0.046577 Trying to match device
0.046644 Device matches
0.050626 send_to_all: SETINFO ups.vendorid “0665”
0.051015 send_to_all: SETINFO ups.productid “5161”
0.051148 send_to_all: SETINFO device.type “ups”
0.051240 send_to_all: SETINFO driver.version “2.7.1”
0.051323 send_to_all: SETINFO driver.version.internal “0.10”
0.051402 send_to_all: SETINFO driver.name “blazer_usb”
0.051467 Trying megatec protocol…
0.052368 send: Q1
0.187009 read: Q1
0.187156 blazer_status: short reply
0.187228 Status read 1 failed
0.189758 send: Q1
0.322006 read: Q1


1.682996 read: (227.7 227.7 227.7 000 49.9 13.1 –.- 00001001
1.683232 send_to_all: SETINFO input.voltage “227.7”
1.683354 send_to_all: SETINFO input.voltage.fault “227.7”
1.683510 send_to_all: SETINFO output.voltage “227.7”
1.683737 send_to_all: SETINFO battery.charge “100”
1.683837 blazer_status: non numerical value [–.-]
1.683940 send_to_all: DATAOK

Fatal error: unable to create listener socket

bind /var/state/ups/blazer_usb-salicru failed: Permission denied

1.684958 Exiting.
[/cc]
No sé por qué se va a a /var, asi que he recompilado el nut forzando el STATEPATH:
[cc lang=”bash”]
./configure –prefix=/home/apps/nut –with-usb –without-doc –with-serial –without-ipmi –without-freeipmi –without-macosx_ups –without-avahi –with-cgi –with-statepath=/home/apps/nut/var/state/ups
[/cc]
Y cambiando el fichero correspondiente:
[cc lang=”bash”]
raspterminal /home/apps/nut # egrep STATEPATH etc/*
egrep: etc/sample: Is a directory
etc/upsd.conf:# STATEPATH etc/upsd.conf:STATEPATH /home/apps/nut/var/state/ups
[/cc]
Con eso el driver ya arranca y ya se puede usar upsdrvctl, upsd y upsmon!
]]> Comment on UPS Salicru en Nut by Jordi https://blog.ciberterminal.net/2013/04/28/ups-salicru-en-nut/comment-page-1/#comment-1161 Fri, 06 Jun 2014 10:55:18 +0000 http://blog.ciberterminal.net/?p=803#comment-1161 Muy buenas de nuevo!

He de decirte, que todo genial, y a la primera! :D Mil gracia spor ser tan claro… Se agradece este tipo de tutoriales, todo es posible con empeño ;-)

Tengo un problema. Lo he conectado a la RaspberryPi, porque estoy montando el server casero con ella, y en caso de pérdida de tensión, será esta la encargada de “avisar” al resto de periféricos (no me preguntes cómo, jejeje, cuando lo haga lo publicaré en mi web). El problema es que me funcionó a la primera cuando la configuré desde la misma Pi, pero ahora lo etsoy haciendo “a distancia”, vía SSH y no estoy en casa para probar, pero he notado que no hay manera de que me detecte el dispositivo USB. Lo tengo conectado a un hub usb, y no se si puede ser ese el problema…

¿Hay alguna manera de testear si NUT reconoce o no el dispositivo USB? porque el error que me da no es muy “gráfico”:

pi@raspberrypi ~ $ sudo upsdrvctl -D start
Network UPS Tools – UPS driver controller 2.6.4
0.000000 Starting UPS: salicru
Network UPS Tools – Megatec/Q1 protocol USB driver 0.08 (2.6.4)
No supported devices found. Please check your device availability with ‘lsusb’
and make sure you have an up-to-date version of NUT. If this does not help,
try running the driver with at least ‘subdriver’, ‘vendorid’ and ‘productid’
options specified. Please refer to the man page for details about these options
(man 8 blazer).

0.028574 Driver failed to start (exit status=1)

]]>