CentOS installation of peanut shell software 1. 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 [root @ localhos...
CentOS installation of peanut shell software 1. Installation Instructions (take CentOS 5 as an example) 1. install necessary development kits [root @ localhost ~] # Yum install gcc-c ++ autoconf automake 2、download phddns-2.0.20.556.tar.gz to a directory [root @ localhost ~] # Wget http://download.oray.com/peanuthull/phddns-2.0.2.16556.tar.gz Www.2cto.com 3. decompress 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 is used by default. /Phlinux. 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.18 lo: 127.0.0.1 Choose 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. c Onf, input other to specify the file Save to configuration file (/etc/phlinux. conf )? (Yes/no/other): The program starts to run 192.168.141.18 NIC bind success OnStatusChanged okConnecting OnStatusChanged okDomainListed OnDomainRegistered login OnStatusChanged login UserType: 0, 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 [root @ localhost ~] #/Usr/bin/phddns-c/etc/phlinux. conf-d phlinux started as daemon! [Root @ localhost ~] # Tail/var/log/phddns. log 11:28:58. 256 | ExecuteUpdate OK, BeginKeepAlive! 11:29:59. 354 | SendKeepAlive () 8208 11:30:00. 355 | RecvKeepaliveResponse () Data comes, OPCODE: 8272 11:30:00. 356 | Keepalive response received ed, client ip: 116.231.123.96 11:31:00. 447 | SendKeepAlive () 8208 11:31:01. 450 | RecvKeepaliveResponse () Data comes, OPCODE: 8272 11:31:01. 450 | Keepalive response already ed, client ip: 116.231.123.96 ww Export 2cto.com 8. exit the peanut shell to view the process ID [root @ localhost ~] # Ps-A | grep phddns 13731? 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-h Peanuthull 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 the parameter -- interact-I, run as interactive mode program 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 interactive mode www.2cto.com -- daemon-d, run as a daemon program 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 file program will run with the file specifies which configuration file to use -- user-u, run as the user program 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. www.2cto.com 3. 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 why cannot I log on to peanut shells? 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. log 11:28:58. 256 | ExecuteUpdate OK, BeginKeepAlive! 11:29:59. 354 | SendKeepAlive () 8208 11:30:00. 355 | RecvKeepaliveResponse () Data comes, OPCODE: 8272 11:30:00. 356 | Keepalive response received ed, client ip: 116.231.123.96 11:31:00. 447 | SendKeepAlive () 8208 11:31:01. 450 | RecvKeepaliveResponse () Data comes, OPCODE: 8272 11:31:01. 450 | Keepalive response already ed, client ip: 116.231.123.96 ww How does ipv2cto.com compile and run on other platforms (non-X86? Method for cross-compiling mips cpu version: 1. install the cross tool and configure the environment. 2. configure parameters. /configure -- host = i386-linux -- target = mipsel-linux -- build = mipsel-linux CXX = mipsel-linux-gcc CC = mipsel-linux-gcc LD = mipsel-linux-ld 3 make www.2cto.com 4. Finally, under the static link, 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. a 5. compress upx-o phlinux2 phlinux
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.