Objective: The Objective of this Raspberry Pi is to install Weaved Software on Raspberry Pi and expose the Raspberry Pi over the internet. Also expose the services like SSH, Web, MySQL, Embedded Tomcat from Spring boot from Raspberry Pi to outside world.
Details:
Weaved (http://weaved.com/) services connect you easily and securely to your Pi from a mobile app or browser window. Control remote computers using tcp hosts such as ssh (remote terminal) and VNC (Virtual Network Console).
You can choose from the following services:
- SSH on port 22
- Web (http) on port 80
- VNC on port 5901
- A custom TCP service on your port of choice
Please note that, except for ssh on port 22, Raspbian does not install tcp hosts for these services by default.
Pre-requisites:
Get a free Weaved account before running the installation. If you have not already done so, please create an account
Steps:
1. Connect to your Raspberry Pi using SSH with your login credentials.
2. Download and Install Weaved Connect using the following commands
sudo apt-get update
sudo apt-get install weavedconnectd
This downloads the installer code from the official Pi code repository and installs it onto your Pi.
3. When the command finishes executing, you’ll see the message:
Run sudo weavedinstaller to add or remove Weaved remote connection services.
4. Now Enter the command:
sudo weavedinstaller
5. Enter your Weaved account username and password
6. Type 1 and click Enter, which will ask you to enter your Weaved Username (email address). Remember, this is one of the pre-requisite tasks. Incase if you have not registered, please register at the following link and enter the user id and followed by the password.
https://developer.weaved.com/portal/login.php
7. Similarly, it will ask for password. Once it is entered, you will be provided with the following options:
Installation of SSH Service using Weaved:
8. Now enter 1 and you will get the following screen:
9. Now enter 1 to make SSH on default port 22 and you will given the following option.
10. Now type Y and hit enter. If you have specifically changed the port for this service though, enter the alternate port you have used.
The installer confirms your choice and asks you to give this connection a name:
11. Enter some name to uniquely identify it in the Weaved Service List. Here I entered Raspberry-Pi-SSH. You can choose whatever name you like.
12. You will now return to the main menu, where you can see your Weaved Service Connection installed. But at the top, you will see additional information displayed, as highlighted.
13. From left to right, the columns show:
The protocol name (SSH here)
The internal TCP port it is using (22 here)
The name of the installed TCP host (sshd here)
The name you just gave this connection. (Raspberry-Pi-SSH here)
If you happen to install a connection for which there is no installed service, you’ll see “WARNING-NONE” in the Service column.
Installation of HTTP Service using Weaved:
14. Now enter 1 again and let’s now install HTTP service.
15. Now type 2 and enter y when you see the below message.
16. Now enter a name for the HTTP connection as you wish. Here I entered the name as Raspberry-Pi-http and hit enter.
17. Now you will see the additional entry for HTTP in the “Installed Weaved Services” as highlighted and also you will be returned to the main menu with the list of options.
18. You will be provided with the following main menu and give input as 1 and hit enter.
Installation of MySQL Service using Weaved:
19. It will list the following options and now let’s install MySQL which is running on port 3306. So input 4 and hit Enter.
20. You will be asking the following question and input n and hit enter.
21. You will be asking to enter the protocol name and input any name you like. Here I am entering mysql and hit enter.
22. As mysql will run on the port 3306, let’s enter 3306 and hit enter
23. You will see the following screen and enter some name for the service. Here I am entering MySQL-Pi and hit enter.
24. You will be now brought back to the main menu and you will now see the MySQL-Pi service listed.
Installation of Embedded Tomcat Service running on port 9999 using Weaved:
25. Now let’s enable the port 9999 to access Tomcat from my Raspberry Pi:
26. Enter Y, SpringBoot-Tomcat (it can be any name) and port as 9999. In my case, the SpringBoot Tomcat is configured to run on port 9999 (the default is 8080).
27. Also enter the following name - Raspberry-Pi-SpringBoot-Tomcat
28. Now goto weaved website https://developer.weaved.com/ and sign in with your Weaved Credentials to see the Services that you registered.
29. Click each of the above links under the heading “Name” and you will find the new host name and port with which you can connect to the respective service.
References:
https://www.weaved.com/installing-weaved-raspberry-pi-raspbian-os/
No comments:
Post a Comment