Install and use a peanut shell (Linux). I did this:
First you have to have a peanut shell account, must apply to the http://www.oray.com. Follow these steps.
1. Open the Web http://www.oray.com/peanuthull/download_linux.php In the XP Browser
Button download now phddns-2.0.5.19225.tar.gz
2. Use pscp to upload files to RPI
Pscp phddns-2.0.5.19225.tar.gz pi@192.168.1.101:/home/PI
3. Decompress all files
Tar zxvf phddns-2.0.5.19225.tar.gz
4. Go to the directory and compile
CD phddns-2.0.5.19225
./Configure
Make
5. Execute the compiled program and configure it. (/etc/phlinux. conf is used by default. If this file does not exist, the interactive configuration is automatically entered)
CD SRC
./Phddns
Enter the server address. You can use the default value (Press ENTER) unless otherwise specified)
Enter server address (Press ENTER use phlinux3.oray.net ):
Enter the oray account name
Enter your oray account:
Corresponding oray account password
Password:
Select the bound Nic. If no special Nic exists, press enter by default)
Network Interface (s ):
Eth0: 192.168.1.101
Lo: 127.0.0.1
Choose one (default eth0 ):
Select the file to which the log is saved (Press ENTER)
Log to use (default/var/log/phddns. Log ):
Save the configuration file. If yes is selected, save the file to/etc/phlinux. conf. enter other to specify the file (Press Y and press Enter)
Save to configuration file (/etc/phlinux. conf )? (Yes/No/other ):
Next, the program starts to run in interactive mode. The console displays:
192.168.1.101
Nic bind success
Onstatuschanged okconnecting
Onstatuschanged okdomainlisted
Ondomainregistered skyvense22.gicp.net
Onstatuschanged okdomainsregistered
Usertype: 0
If you see the above, the logon is successful. You can press Ctrl + C to exit the program first.
6. Copy phddns to the desired location
CP phddns/usr/bin/
7. Start the peanut shell in later mode and check the running status
/Usr/bin/phddns-C/etc/phlinux. conf-d
Console: phlinux started as Daemon!
View client logs:
Tail/var/log/phddns. Log
Note: If you carefully check the log Content, you will understand the working principle of the peanut shell, that is, report the IP address of the client to the server at regular intervals.
8. Exit the peanut shell
View the process ID:
PS-A | grep phddns
Exit background processes:
Kill-9 XXXXX
Note: XXXXX is the process ID viewed by PS.
9. Run the commands when adding the peanut shells to the system startup.
VI/etc/rc. Local
Add a line at the end of the file:
/Usr/bin/phddns-C/etc/phlinux. conf-d
Start the peanut shell client manually on the console, that is:
Sudo/usr/bin/phddns-C/etc/phlinux. conf-d