Installation and Use of peanut shells (linux) I. Installation Instructions (take CentOS5 as an example) 1. install necessary development kits [root @ localhost ~] #Yuminstallgccgcc-c?#autoconfautomake2=download phddns-2.0.20.556.tar.gz to a directory www.2cto ....
Installation and Use of peanut shells (linux) I. Installation Instructions (take CentOS 5 as an example) 1. install necessary development kits [root @ localhost ~] # Yum install gcc-c ++ autoconf automake 2GZ download phddns-2.0.20.556.tar.gz to a directory www.2cto.com [root @ localhost ~] # Wget http://download.oray.com/peanuthull/phddns-2.0.2.16556.tar.gz 3, extract all files [root @ localhost ~] # Tar zxvf phddns-2.0.2.16556.tar.gz 4, enter the directory and compile
[Root @ localhost ~] # Cd phddns-2.0.2.16556 [root @ localhost phddns-2.0.2.16556] # aclocal [root @ localhost phddns-2.0.2.16556] # autoconf [root @ localhost phddns-2.0.2.16556] # automake [root @ localhost phddns-2.0.2.16556] #. /configure [root @ localhost phddns-2.0.2.16556] # make [root @ localhost phddns-2.0.2.16556] # cd src [root @ localhost src] # ls-l phddns-rwxr-xr-x 1 root 80968 aug 2 phddns 5. execute the compiled program and configure it. (/etc/phlinux is used by default.. Conf. If this file does not exist, the interactive configuration is automatically displayed.) [root @ localhost src] #. /phddns Enter the server address. if there are no special cases, ENTER the default value "Enter server address (press Enter use phlinux3.oray.net)": www.2cto.com "and ENTER your Oray account name" Enter your Oray account: password of the corresponding Oray account: Select the help Nic. if there is no special, the default Network interface (s): eth0: 192.168.141.18lo: 127.0.0.1Choose one (default eth0 ): select the file to which the Log is saved (default/var/log/phddns. log): save the configuration file. if yes is selected, the file is saved to/etc/phlinux. conf, input other to specify the file Save to configuration file (/etc/phlinux. conf )? (Yes/no/other): The program starts to run 192.168.141.18NIC bind successOnStatusChanged okConnectingOnStatusChanged okDomainListedOnDomainRegistered skyvense22.gicp in interactive mode. netOnStatusChanged okDomainsRegisteredUserType: 0. if you see the above, the logon is successful, in this case, press ctrl + c to exit the program first. 6. copy phddns to your desired location [root @ localhost src] # cp phddns/usr/bin/7. start it later. peanut shells and check the running status www.2cto.com [root @ localhost ~] #/Usr/bin/phddns-c/etc/phlinux. conf-dphlinux started as daemon! [Root @ localhost ~] # Tail/var/log/phddns. log2011/08/02 11:28:58. 256 | ExecuteUpdate OK, BeginKeepAlive! 11:29:59. 354 | SendKeepAlive () 82082011/08/02 11:30:00. 355 | RecvKeepaliveResponse () Data comes, OPCODE: 82722011/08/02 11:30:00. 356 | Keepalive response received ed, client ip: 116.231.123.962011/08/02 11:31:00. 447 | SendKeepAlive () 82082011/08/02 11:31:01. 450 | RecvKeepaliveResponse () Data comes, OPCODE: 82722011/08/02 11:31:01. 450 | Keepalive response unbound, client ip: 116.231.123.96 8. exit the peanut shell. View the process ID [root @ localhost ~] # Ps-A | grep phddns13731? At 00:00:00, phlinux exited the background process [root @ localhost ~] # Kill-9 13731 9. run [root @ localhost ~] when adding the peanut shell to the system startup # Vi/etc/rc. add a line at the end of the local file:/usr/bin/phddns-c/etc/phlinux. conf-d 2. command line parameter description for Linux [root @ localhost ~] #/Usr/bin/phlinux-hPeanuthull Linux-core 2.0 by oray.com, copyright 2011 Peanuthull Linux-core Help -- first-run-f, run for the first time is used to configure parameters www.2cto.com -- interact-I, run as interactive modeprogram will request for necessary parameters at the first startup. this mode will automatically enabled at first running, or your configuration file has been lost. start interaction mode -- daemon-d, run as a daemonprogram will quit after put itself to background, and continue running even you logout, you can use kill-9 To terminate. backend mode -- config-c, run with configuration fileprogram will run with the file to specify which configuration file to use -- user-u, run as the userprogram will run as the user to specify the user to start the background process -- help-h, print this screen. please visit http://www.oray.com For detail. iii. FAQs how do I manually modify the login user name and password? You can directly edit the/etc/phlinux. conf file to modify the login user name and password. Peanut Shell log storage path/var/log/phddns. log www.2cto.com why the peanut shell cannot be logged in? The communication ports used by the peanut shell are TCP: 6060 and UDP: 6060 (direction: OUT). check that the firewall has not blocked these communication ports. How can I check the current running status of a peanut shell? View Logs: [root @ localhost ~] # Tail/var/log/phddns. log2011/08/02 11:28:58. 256 | ExecuteUpdate OK, BeginKeepAlive! 11:29:59. 354 | SendKeepAlive () 82082011/08/02 11:30:00. 355 | RecvKeepaliveResponse () Data comes, OPCODE: 82722011/08/02 11:30:00. 356 | Keepalive response received ed, client ip: 116.231.123.962011/08/02 11:31:00. 447 | SendKeepAlive () 82082011/08/02 11:31:01. 450 | RecvKeepaliveResponse () Data comes, OPCODE: 82722011/08/02 11:31:01. 450 | Keepalive response already ed, client ip: 116.231.123.96 (Non-X86) compile and run? Method for cross-compiling mips cpu version: 1. install the cross tool and configure the environment ........ www.2cto.com 2. configure parameters. /configure -- host = i386-linux -- target = mipsel-linux -- build = mipsel-linux CXX = mipsel-linux-gcc CC = mipsel-linux-gcc LD = mipsel-linux-ld3, make4, last static in the following link, choose mipsel-linux-gcc-g-O2-o phlinux-s main. o phupdate. o PHGlobal. o PHSocket. o md5.o log. o generate. o coder. o blowfish. o bitstream. o base64.o ConvertUTF. o csf-parser. o PhClient. o PhUpdater. o/opt/openwrt/mipsel-linux/lib/librt. a/opt/openwrt/mipsel-linux/lib/libstdc ++. a // opt/openwrt/mipsel-linux/lib/libc. a5. compress upx-o phlinux2 phlinux (put in a small space on the router). This article is from Oray.
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