Build your own micro-server with Raspberry Pi and access the Internet

Source: Internet
Author: User

First, you have to have a vro. Otherwise, the following content cannot be implemented.

Second, you have to apply for a free dynamic domain name resolution, because I use TP-LINK router, only support peanut shells, so I applied for dynamic domain name resolution of peanut shells.
It's easy to apply for a peanut shell, open the http://www.oray.com, click "register" on the top and apply for a peanut shell passport.



After the application is completed, click my console-product management-Domain Name Management



Select the free Domain Name tag, select the free domain name, and Click Activate peanut shells. Now, your free dynamic domain name resolution activation for peanut shells has been completed.



Third, enter the vro and configure your dynamic domain name account and port resend



Set your peanut shell passport account and password in the Dynamic DNS of the router, and click log on

Next, configure the port.
First, determine the IP address of your Raspberry Pi in the LAN. Here I will give it a static IP Address: 192.168.1.248
Then add the port according to the list below



After adding the server, we will build the Raspberry Pi web server.

Fourth, build Raspberry Pi's Web Server
Since I don't know how to do the website, so I had to apply the U large post in the method of http://www.eeboard.com/bbs/forum.php? MoD = viewthread & tid = 2053, a server is created to monitor the running status of Raspberry Pi.
If the GIT command cannot be found, run

  1. Sudo apt-Get install git
Copy code

After the installation is complete, you can execute the GIT command.

In the original post, the default port is 80, but my Router does not run port 80 forwarding, So I modified the port configuration of the startup script start. Sh in the post. The specific configuration is as follows:

  1. CD raspcontrol
  2. Sudo Nano./start. Sh
Copy code

Change the port to 8051, CTRL + O, and CTRL + X to exit.
Execute again

  1. Sudo./start. Sh
Copy code

At this time, you need to enter Raspberry Pi's IP: 8051 in the browser to access this management page.
Because the dynamic domain name resolution has been activated before, and the access to port 8051 can be forwarded to Raspberry Pi by the router, this is a success. You can enter your domain name: 8051 in the browser, to access your Raspberry Pi, you can also send the address to everyone,
Let everyone test.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.