linux pppoe
ÊÖÍ·Óиöep9315µÄ°å£¬½ñÌìͻȻÏëÆðÅÜÒ»ÏÂadslÉÏÍø¡£ÍíÉÏ»ØÀ´¾Í¿ªÊ¼¸ã¡£
´Ó10µãµ½ÏÖÔÚ£¬ÖÕÓÚÄܹ»ÅÜÆðÀ´¡£
¸ø´ó¼Ò½è¼øһϡ£
1.±àÒëÄںˣ¬°ÑpppµÄÄÇЩѡÏîÑ¡ÉÏ¡£ (ÎÒÓÃ2.6.8.1µÄkernel£¬cirrus µÄpatch)
2.libpcap-0.9.1 Õâ¸ö°üÊÇpppdÐèÒªµÄ¡£
./configure CC=arm-linux-gcc CFLAGS=-msoft-float --target=arm-linux --host=i686-linux --with-pcap=linux --prefix=/usr/local/arm/3.4
make; make install
3. ppp-2.4.3
./configure --target=arm-linux --enable-arm --prefix=/cirrus/usr
make CC=arm-linux-gcc; make install
Ìæ»»Makefile£¨ºÜ¶àĿ¼Ï¶¼ÓУ©ÖеÄÄÇЩinstall -s Ñ¡ÏÒòΪÕâ¸öÑ¡Ïî»áÓõ½stripÕâ¸öÃüÁµ«ÊÇhost°æ±¾²»ÄܶÔarm bin²Ù×÷£¬¶øÎÒ²»ÖªµÀÔõôarm-linux-strip£¬ÄÇλ֪µÀµÄ˵һÏ¡£
4.rp-pppoe-3.8
./configure --host=arm-linux --prefix=/cirrus
make; make install
×îÖÕÔÚ/cirrus/sbinÏ°²×°ÁËpppd pppoe pppoe-setup pppoe-start pppoe-stopµÈ¡£
ÆäÖÐpppoeÊÇ¿ÉÖ´ÐÐÎļþ£¬pppoe-xxxÊǽű¾¡£
ÓÉÓÚÎÒµÄ./configureÃüÁîÓеãÎÊÌ⣬ÐèÒªÐÞ¸ÄÒ»ÏÂpppoe-setup pppoe-start pppoe-connectÖеÄÖ´Ðз¾¶¡£ÎÒ²ÂÏë¿ÉÒÔÓÃ--exec-prefixÀ´½â¾ö£¬²»¹ýÏë˯¾õÁË£¬½ñÌì²»ÏëÊÔÁË¡£
5.±ðÍüÁËÔÚ/cirrus/devÏ mknod ppp c 108 0
6.pppoe-setup °´ÕÕʵ¼ÊÇé¿öÉèÖÃÓû§ÃÜÂëDNSµÈ
7.pppoe-start
8.ping gznet.com ....................... OK
9. Èç¹ûÓÐÎÊÌ⣬±ÈÈç..........TIMEOUTµÈ´íÎ󣬿ÉÒÔ
export DEBUG=1
pppoe-start
È»ºóÔÚ/cirrus/tmp/ppp........µÄĿ¼Ï»áÓÐÒ»¸ödebugµÄÐÅÏ¢Îļþ£¬×Ðϸ¿´¿´Ê²Ã´ÎÊÌâ¡£
¾ÍÕâô¶àÁË¡£Ï£Íû´ó¼ÒÀ´²¹³ä¡£
×îºó£¬ËµÃ÷һϣºÄǸö/cirrusÊÇÔÚÎÒµÄlinux hostÉÏÓÃÀ´´æ·ÅÄ¿±ê°åÎļþϵͳµÄĿ¼¡£Ä¿±ê°åʹÓÃnfsÀ´mount Õâ¸öĿ¼²¢×÷Ϊrootfs¡£
Ïà¹ØÎĵµ£º
ÎÒÏë¸üÓкܶàÈËûÓÐÌý˵¹ýZModemÐÒ飬¸ü²»ÖªµÀÓÐrz/szÕâÑù·½±ãµÄ¹¤¾ß¡£
¡¡¡¡ºÃ¶«Î÷²»¸Ò¶ÀÏí¡£ÒÔϸø³öÎÒÖªµÀµÄÒ»µãƤë¡£
¡¡¡¡ÏÂÃæÒ»¶ÎÊÇ´ÓSecureCRTµÄ°ïÖúÖÐcopyµÄ£º
¡¡¡¡ZModem is a full-duplex file transfer protocol that supports fast data transfer rates and effective error detection. ZModem is very user ......
ÏÖÔÚʹÓÃlinuxµÄÅóÓÑÔ½À´Ô½¶àÁË£¬ÔÚlinuxÏÂ×ö¿ª·¢Ê×ÏȾÍÊÇÐèÒªÅäÖû·¾³±äÁ¿£¬ÏÂÃæÒÔÅäÖÃjava»·¾³±äÁ¿ÎªÀý½éÉÜÈýÖÖÅäÖû·¾³±äÁ¿µÄ·½·¨¡£
1.ÐÞ¸Ä/etc/profileÎļþ
Èç¹ûÄãµÄ¼ÆËã»ú½ö½ö×÷Ϊ¿ª·¢Ê¹ÓÃʱÍƼöʹÓÃÕâÖÖ·½·¨£¬ÒòΪËùÓÐÓû§µÄshell¶¼ÓÐȨʹÓÃÕâЩ»·¾³±äÁ¿£¬¿ÉÄÜ»á¸øϵͳ´øÀ´°²È«ÐÔÎÊÌâ¡£
(1)Ó ......
¼ÙÉèÊÇÆô¶¯Ò»¸ö rails ³ÌÐò£º
ruby script/server
ͨ³£»áÕâÑù£º
nohup ruby script/server &
°Ñ´íÎóÊä³öÁ÷Ò²¶¨Ïòµ½Õý³£Êä³öÁ÷ÖУº
nohup ruby script/server & 2 > 1 &
Òª¼Ç¼Ï pid £º
nohup ruby script/server & 2 > 1 & echo $! > tmp/pid &
¾¹ý·´¸´µ÷ÊÔ£¬ÉÏÃæµÄÓï¾äËƺõ²»Í ......
ÕâƪÈÕÖ¾»¹ÊÇÏÈ´ÓÒ»¸öÄܹ»ÔËÐÐÆðÀ´µÄÀý×Ó³ö·¢£¬Ò»µ©ÄÜ˳ÀûµÄ¿´µ½³ÌÐòµÄ³É¹¦ÔËÐУ¬ÄÇô½ÓÏÂÀ´µÄʼþÎÒÏëÓ¦¸ÃÊÇÎÊΪʲôÁË£¿ËƺõÕâÑù¸ü¼ÓÈÝÒ×Àí½âºÍÕÆÎÕ¡£
¶ÔÓÚsocket³ÌÐòµÄ¸ÅÄîÕâÀï¾Í²»¶àдÁË£¬µ«ÎÒÏàÐÅ£¬Èç¹ûÄÜ¿´ÍêÕâÕûƪÎÄÕ£¬ÎÒÏàÐŲ»»áÔÙÓÐÕâÑùµÄÒÉÎʵġ£
ÏÂÃ潫±àдһ¸öc/s½á¹¹µÄ³ÌÐò£¬Ö÷Òª¹¦ÄÜÊÇclient½«Ïòserver·¢Ë ......
gcc£¬gdbµÄʹÓÃ
×÷Õߣºzccst
ÉÏÖÜÎåÔÚͼÊé¹Ý½èÁËÒ»±¾¡¶LinuxÈí¼þ¹¤³Ìʦ£¨CÓïÑÔ£©ÊµÓý̡̳·£¬ÈÃÎÒÊÕ»ñÁ¼¶à¡£²»½ö½öÊÇÊéÖеÄ֪ʶ£¬»¹ÓжÔ֪ʶÌåϵºÍ¼Ü¹¹ÈÏʶµÄÉîÈë¡£
LinuxÏÂC¿ª·¢£º
1£¬gcc,gdbµÄʹÓá£
2£¬MakefileÎļþµÄ±àд¡£
3£¬ÏµÍ³º¯ÊýµÄʹÓÃ
4£¬Îļþ²Ù×÷
5£¬´®ÐÐͨÐÅ
6£¬½ø³Ì¿ØÖÆ
7£¬½ø³Ì¼ ......