Community
cancel
Showing results for 
Search instead for 
Did you mean: 
nDE_S
New Contributor I
2,402 Views

how to access my home network from outside

Hi

To do that I configured my Iot cloud analytics (https://drive.google.com/file/d/0B9gPdWq4OH-XdlpaZHBBeGZiYnM/view?usp=sharing https://drive.google.com/file/d/0B9gPdWq4OH-XdlpaZHBBeGZiYnM/view?usp=sharing) and now (using iotkit.h) I can read temperature in my network. But when I'm out of my network What's the best solution ?

Yesterday I fixed static ip in my Intel Edison. I have account in DynDns and I have a Hostname now. I understand about port forwarding.

In Raspberry pi, I used ddclient (apt-get install ddclient) to dynamic DNS. I trying use ddclient in Edison and have errors:

root@neuberfran:~# ddclient -v

Can't locate Sys/Hostname.pm in @INC (you may need to install the Sys::Hostname module) (@INC contains: /etc/perl /usr/lib/perl/site_perl/5.20.0/ /usr/lib/perl/site_perl/5.20.0 /usr/lib/perl/vendor_perl/5.20.0/ /usr/lib/perl/vendor_perl/5.20.0 /usr/lib/perl/5.20.0/ /usr/lib/perl/5.20.0 /usr/local/lib/site_perl /usr/lib/perl/5.20.0 .) at /usr/sbin/ddclient line 25.

BEGIN failed--compilation aborted at /usr/sbin/ddclient line 25.

Help me please

28 Replies
Sergio_A_Intel
Employee
269 Views

Hi,

Go to the Linux console and type:

wget http://sourceforge.net/projects/ddclient/files/latest/download http://sourceforge.net/projects/ddclient/files/latest/download

tar –xvf download

cd ddclient-3.8.3/

Now, follow the steps here https://github.com/wimpunk/ddclient wimpunk/ddclient · GitHub for the installation steps for your OS.

Let me know if this works

Sergio

nDE_S
New Contributor I
269 Views

Thank's Sergio,

I've done this. And I changed ddclient.conf. And I put ddclient in /usr/sbin/

After

cp sample-etc_rc.d_init.d_ddclient /lib/systemd/system/ddclient

root@neuberfran:/lib/systemd/system# systemctl enable ddclient

Failed to execute operation: Bad message

root@neuberfran:/lib/systemd/system# systemctl start ddclient

Failed to start ddclient.service: Unit ddclient.service failed to load: Bad message. See system logs and 'systemctl status ddclient.service' for details.

root@neuberfran:~/ddclient-3.8.3# ddclient -v

Can't locate Sys/Hostname.pm in @INC (you may need to install the Sys::Hostname module) (@INC contains: /etc/perl /usr/lib/perl/site_perl/5.20.0/ /usr/lib/perl/site_perl/5.20.0 /usr/lib/perl/vendor_perl/5.20.0/ /usr/lib/perl/vendor_perl/5.20.0 /usr/lib/perl/5.20.0/ /usr/lib/perl/5.20.0 /usr/local/lib/site_perl /usr/lib/perl/5.20.0 .) at /usr/sbin/ddclient line 25.

BEGIN failed--compilation aborted at /usr/sbin/ddclient line 25.

I think that is because libjson-perl package

How to install libjson-perl package in yocto image ?

nDE_S
New Contributor I
269 Views

Intel_Alvarado,

I installed perl-module-sys-hostname and now I have new error (Can't locate IO/Socket.pm)

root@neuberfran:~# opkg install perl-module-sys-hostname

 

Installing perl-module-sys-hostname (5.20.0-r1) on root.

 

Downloading http://repo.opkg.net/edison/repo/core2-32/perl-module-sys-hostname_5.20.0-r1_core2-32.ipk http://repo.opkg.net/edison/repo/core2-32/perl-module-sys-hostname_5.20.0-r1_core2-32.ipk.

 

Configuring perl-module-sys-hostname.

 

root@neuberfran:~# ddclient -v

 

Can't locate IO/Socket.pm in @INC (you may need to install the IO::Socket module) (@INC contains: /etc/perl /usr/lib/perl/site_perl/5.20.0/ /usr/lib/perl/site_perl/5.20.0 /usr/lib/perl/vendor_perl/5.20.0/ /usr/lib/perl/vendor_perl/5.20.0 /usr/lib/perl/5.20.0/ /usr/lib/perl/5.20.0 /usr/local/lib/site_perl /usr/lib/perl/5.20.0 .) at /usr/sbin/ddclient line 27.

 

BEGIN failed--compilation aborted at /usr/sbin/ddclient line 27.

The other solution (for the future) is that : http://mkaczanowski.com/golang-build-dynamic-dns-service-go/ http://mkaczanowski.com/golang-build-dynamic-dns-service-go/

But I have error with NSUPDATE package

root@neuberfran:~# opkg install nsupdate

 

Unknown package 'nsupdate'.

 

Collected errors:

opkg_install_cmd: Cannot install package nsupdate

Sergio_A_Intel
Employee
269 Views

Hi,

I'm trying to install the same package as you and I'm receiving the same error. When typing ddclient I get the same error. I tried to install the libjson-perl package and received a similar error to the one you are receiving now. The error was: Can't locate lib.pm in @INC…I then followed the steps of your last reply and managed to install perl-module-sys-hostname. This didn't resolve the error. I then tried to install nspudate and libio-socket-ssl-perl. According to some users that is the solution to the error however they seem not to be compatible with the Yocto version of the Edison. What image are you using?

One option to get those packages and make sure they are included in your image would be to create your own image and add the files you need.

Sergio

nDE_S
New Contributor I
269 Views

Hi ntel_Alvarado,

About this site http://cgit.openembedded.org/openembedded/tree/recipes/ddclient/ddclient_3.6.3.bb openembedded - Classic OpenEmbedded Development Tree

I install everything via opkg and ddclient worked.

But now I stay have problems to keep wifi and fixed ip (192.168.1.XXX) working together

I change /etc/hostname and /etc/hosts files. my wireless network this alone disabling

root@neuberfran:~# configure_edison --version

159

Now I have this error:

root@neuberfran: ddclient

~# WARNING: file /var/cache/ddclient/ddclient.cache, line 3: Invalid Value for keyword 'ip' = ''

Sergio_A_Intel
Employee
269 Views

To what have you changed the file /etc/hosts? For the /etc/hostname, the proper way to change the hostname of the Edison is to use configure_edison –setup or configure_edison –name.

Using image 159 if you use the command reboot you're not retaining the IP address?

Sergio

LCorn3
Novice
269 Views

Or in the alternative, just use https://ngrok.com/ NGROK Way easier. Nothing to download, nothing to change. Keep using your localhost and existing ip address. Not sure about the security model, though. Its fine for software prove-out, not sure I'd use it for ongoing operations.

nDE_S
New Contributor I
269 Views

hI

Intel_Alvarado

Hostname here its OK

root@neuberfran:~# hostname

neuber.dyndns.xxx.xxx.

 

according thsi link:

https://communities.intel.com/thread/55880?start=0&tstart=0 https://communities.intel.com/thread/55880?start=0&tstart=0

User: DimitriM suggests that the command

"systemctl enable wpa_supplicant" to make Edison connect to Wifi automatically after reboot does not work with this static IP setup.

I'm having this problem and more. I have to disconnect my laptop usb cables (not just give the reboot command) and then restarted oh yes I command: configure_edison --wifi

I'm really trying to install: NSUPDATE.

I am participating in a mailing list to do this.

"

I'm trying to to this: http://mkaczanowski.com/golang-build-dynamic-dns-service-go/ http://mkaczanowski.com/golang-build-dynamic-dns-service-go/

But I have error with NSUPDATE package

root@neuberfran:~# opkg install nsupdate

 

Unknown package 'nsupdate'.

 

Collected errors:

opkg_install_cmd: Cannot install package nsupdate

 

I see: "nsupdate to push updates on records. It is a part of the bind project, so it can be found in bind-tools or bind-clientpackages."

root@neuberfran:~# ping 8.8.8.8

PING 8.8.8.8 (8.8.8.8): 56 data bytes

64 bytes from http://8.8.8.8/ 8.8.8.8: seq=0 ttl=53 time=55.101 ms

64 bytes from http://8.8.8.8/ 8.8.8.8: seq=1 ttl=53 time=32.649 ms

64 bytes from http://8.8.8.8/ 8.8.8.8: seq=2 ttl=53 time=32.983 ms

^C

--- 8.8.8.8 ping statistics ---

3 packets transmitted, 3 packets received, 0% packet loss

round-trip min/avg/max = 32.649/40.244/55.101 ms

root@neuberfran:~# opkg install bind-client

Unknown package 'bind-client'.

Collected errors:

* opkg_install_cmd: Cannot install package bind-client.

root@neuberfran:~# opkg install bind-tools

Unknown package 'bind-tools'.

Collected errors:

* opkg_install_cmd: Cannot install package bind-tools.

"

nDE_S
New Contributor I
269 Views

LBC

I'm analyzing

Sergio_A_Intel
Employee
269 Views

Do you have any updates on this case? If you're looking to go with LBC's suggestion you can also take a look at https://www.npmjs.com/package/ngrok ngrok for additional information and steps to install ngrok. I'd suggest you to try with this approach.

About the nsupdate package, you're not going to download that specific package using that command if you're communicating with AlexT's repository, because that package is not available in the repo. If you want that package you need to find another repo that is compatible with Edison or download and install the package another way. To look at the packages available in AlexT's repo look at http://repo.opkg.net/edison/repo/ Index of /edison/repo

Sergio

nDE_S
New Contributor I
269 Views

Hi

Intel_Alvarado,

 

 

I can't solved.

I'm not trying Alex_T package. I'm using github Alex_T to question about NSUPDATE

I will insist on install NSUPDATE and/or solve problems with DDCLIENT (Here I have dynamic IP)

1) What you investigated about : put statit ip in intel edison with yocto image?

2.1) As I said, I am participating of the mail list of the yocto project and they could not help me with Dynamic DNS package recipes to put in yocto image (

3.1 – Adding standard Yocto packages in the image :https://software.intel.com/en-us/node/593592 IoT - Creating Custom Intel® Edison Images | Intel® Developer Zone

2.2/Do you can help me with this or with error correction ddclient/nsupdate?

Sergio_A_Intel
Employee
269 Views

If your goal is to install nsupdate from the source then you have to make kernel modifications. You'd have to add the packages to the images and build your own image. For details on how to build your image look at the Edison BSP: http://www.intel.com/content/www/us/en/support/boards-and-kits/000005616.html Board Support Package (BSP) User Guide for Boards and Kits . The steps in the BSP are similar to the ones here https://software.intel.com/en-us/node/593592 IoT - Creating Custom Intel® Edison Images | Intel® Developer Zone .

If you need a static IP take a look at . It has detailed steps to configure a static IP.

Sergio

nDE_S
New Contributor I
269 Views

LBC,

LBC 3

ngrok Need pain. not good

root@neuberfran:~/ngrok# ./ngrok http 8999 --hostname *.neuberfran.xxxx.zzz

Tunnel session failed: Custom hostnames are only available for paid plans. Signup at https://ngrok.com/signup https://ngrok.com/signup

LCorn3
Novice
269 Views

Ngrok just recently changed their pricing. It was all free a few months ago. (here kids, free Cocaine. its free ?)

I do see a "Free Plan"

For quick demos and other simple tunneling needs.

HTTP/TCP tunnels on random URLs/ports

1 online client

 

How many clients have to address this home based device at a time? Shouldn't this work for you, free? You can go the static IP route, but a whole lot depends on your internet service provider. Generally they block that sort of behavior, they never ever want a home user to be hosting a website.... Look at your service provider's terms of service. You may also need to make some mods to your home router firewall settings to make that work.

 

 

 

oops.. I just read your thing again... get rid of the name 'neuberfran' and simply use IP addressing (192.168.0.15) when you make your ngrok call.

 

in fact, isn't the command as easy as: $ ngrok 8080 ??

 

and the return should look something like this:

ngrok (Ctrl+C to quit) 

 

Tunnel Status online

 

Version 1.7/1.7

 

Forwarding http://z4182320.ngrok.com http://z4182320.ngrok.com -> 192.168.0.15:8080

 

Forwarding https://z4182320.ngrok.com https://z4182320.ngrok.com -> 192.168.0.15:8080

 

Web Interface 192.168.0.15:4040

 

# Conn 0

 

Avg Conn Time 0.00ms
nDE_S
New Contributor I
269 Views

LBC,

 

The command is easy ! It is similar to heroku

I pay DynDNS plan and I think use this and port forward in my router.

I'm having trouble to put static IP and and this continues running when you restart the intel edison if have a power failure here

in Ubilinux I'm earliest. If you can help-me: http://www.emutexlabs.com/forum/general-questions/96-error-to-run-node-js-application-in-intel-ediso... 153 EmutexLabs

 

about this site:

one people said: "mraa doesn't seem to support node 0.12.x."

 

I thkin: and not support node v5.4.0 also. I need to know more about this 

Sergio_A_Intel
Employee
269 Views

Were you able to try LBC's suggestion? Do you still need help with this case?

Sergio

nDE_S
New Contributor I
269 Views

, Intel_Alvarado,

 

Yes, I need more help. I will not use LBC suggestion Because price. I receive email of the ngrok

 

Do you know if mraa work with node.js version V4.0.0 or v4.2.0 or v5 ??? Or only with 0.10 ??

 

I stay doing a backup of the my intel edison. I used (in ubuntu PC prompt) this command : dd if=/dev/sdb of=/dev/sdc bs=1M (see in Gparted)

My question about this is: If (to restore) I use dd if=/dev/sdc of=/dev/sdb bs=1M. This is will erase all data of the intel edison (which already have the new yocto version running) ?

e.g.: I new edison yocto version I can put static IP. In older version, I can't.

Sergio_A_Intel
Employee
269 Views

You can check the version of node with node –version and the version of the mraa library with opkg info libmraa0. I'm using node v0.10.38 and libmraa0 0.7.3 and they work properly. What versions do you have?

The dd command shouldn't delete your Edison's data. The dd command is used to copy the files from one device to another. The command just as you are using it will just clone from one partition to another.

Regarding your last statement about static IP issues why don't you upgrade your Edison with an older version to the newest version?

Sergio

nDE_S
New Contributor I
92 Views

Hi 

Intel_Alvarado,

 

In edison with yocto I don't have problems with node.js. I have problems with DDNS. ngrok Need pain. not good

I'm trying solve problems with DDCLIENT in intel edison with yocto.

 

In intel edison with ubilinux ddclient worked. But I still wait debian jessie to have a gcc 4.9 and put node.js 4.2 is easy 

Sergio_A_Intel
Employee
92 Views

What specifically is your issue with DDNS? Were you successful installing nsupdate? Did you follow our suggestion to install nsupdate from source? What is your current goal? What are your problems with ddclient?

Sergio

Reply