Install and use a peanut shell (Linux)

Source: Internet
Author: User
Tags shell account pscp

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

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.