xpµ×ϳɹ¦Ê¹ÓÃsshµÇ¼ubuntu linux(²ÉÓÃÃÜÔ¿·½Ê½)
·þÎñÆ÷¶ËµÄÉèÖãº
°²×°ssh£º
sudo apt-get install ssh
ÒÔÆÕͨÓû§µÄÉí·Ý½¨Á¢¹«Ô¿ºÍ˽Կ£º
ssh-keygen -t rsa
È»ºóÒªÇóÄãÈ·ÈÏÔ¿³×µÄÎļþÃû(ÓÃĬÈϵľͺÃÁË)£»ÊäÈë¿ÚÁÔÙ´ÎÊäÈë¿ÚÁî¡£
ÔÚ~/.ssh/Ï»áÉú³É¹«Ô¿id_rsa.pubºÍ˽Կid_rsa
¸ü¸Ä¹«Ô¿ÎļþÃû£º
cd ~/.ssh/
mv id_rsa.pub authorized_keys
ÉèÖÃÎļþÊôÐÔ£º
chmod 400 authorized_keys
chmod 644 id_rsa
±¸·ÝSSH·þÎñµÄÅäÖÃÎļþ
sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.ORIGINAL
±à¼ÅäÖÃÎļþ
sudo gedit /etc/ssh/sshd_config
ÕâÊÇÎÒµÄÅäÖÃÎļþ£¬Öص㲿·ÖÎÒ»áÓúìÉ«×ÖÌ壬עÊÍÓÃÀ¶É«×ÖÌå
# Package generated configuration file
# See the sshd(8) manpage for details
# What ports, IPs and protocols we listen for
Port 22
# Use these options to restrict which interfaces/protocols sshd will bind to
#ListenAddress ::
#ListenAddress 0.0.0.0
Protocol 2
# HostKeys for protocol version 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
#Privilege Separation is turned on for security
UsePrivilegeSeparation yes
# Lifetime and size of ephemeral version 1 server key
KeyRegenerationInterval 3600
ServerKeyBits 1024 //½«ServerKeyÇ¿¶È¸ÄΪ1024±ÈÌØ
# Logging
SyslogFacility AUTH
LogLevel INFO
# Authentication:
LoginGraceTime 120
PermitRootLogin no //½ûÖ¹ÒÔrootµÇ¼
StrictModes no //¹Ø±ÕÑϸñµÇ¼
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile /home/yourusername/.ssh/authorized_keys //ÕâÀïÊÇÖ¸¶¨Ä㹫³×ËùÔÚµÄλÖã¬yourusernameÓÃÄãµÄÓû§Ãû´úÌæ¡£
# Don't read the user's ~/.rhosts and ~/.shosts files
IgnoreRhosts yes
# For this to work you will also need host keys in /etc/ssh_known_hosts
RhostsRSAAuthentication no
# similar for protocol version 2
HostbasedAuthentication no
# Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication
#IgnoreUserKnownHosts yes
# To enable empty passwords, change to yes
Ïà¹ØÎĵµ£º
£¨L2CAPÐÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPÐÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼Á¬½Ó¿ØÖƺÍÊÊÅäÐÒé (L2CAP) ΪÉϲãÐÒéÌá¹©ÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àÐÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãÐÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......
ÀýÒ»£º·¢ËÍSignaling Packet£º
Signaling CommandÊÇ2¸öBluetoothʵÌåÖ®¼äµÄL2CAP²ãÃüÁî´«Êä¡£ËùÒÔµÃSignaling CommandʹÓÃCID 0x0001.
¶à¸öCommand¿ÉÒÔÔÚÒ»¸öC-frame£¨control frame£©Öз¢ËÍ¡£
Èç¹ûÒªÖ±½Ó·¢ËÍSignaling Command.ÐèÒª½¨Á¢SOCK_RAWÀàÐ͵ÄL2CAPÁ¬½ÓSocket¡£ÕâÑù²ÅÓлú»á×Ô¼ºÌî³äCommand Code£¬Identi ......
¸ÐлÔÎÄ×÷Õߣºhttp://blog.csdn.net/thinkerABC/archive/2006/03/11/621817.aspx
¸ÐлתÌûÕßµÄÅŰ棺http://blog.chinaunix.net/u3/101219/showart_2006014.html
ÎÒÃÇͨ³£°ÑһЩ¹«Óú¯Êý
ÖÆ×÷³Éº¯Êý¿â£¬¹©ÆäËü³ÌÐòʹÓá£
º¯Êý¿â·ÖΪ¾²Ì¬¿âºÍ¶¯Ì¬¿âÁ½ÖÖ¡£
¾²Ì¬¿âÔÚ³ÌÐò±àÒëʱ»á±»Á¬½Óµ½Ä¿±ê´úÂëÖУ¬ ......
int Daemon(char* szExecName = NULL)
{
int res = 0;
pid_t pc;
pc = fork();
if(pc < 0)
{
fprintf(stderr,"ERROR_Deamon()_fork(): failed!");
return -1;
}
else if(pc == 0) //sub process
{
}
else if( ......
1 »ùÓÚ80x86µÄLinux·Ö¶Î»úÖÆ
80386µÄÁ½ÖÖ¹¤×÷ģʽ£º80386µÄ¹¤×÷ģʽ°üÀ¨ÊµµØÖ·Ä£Ê½ºÍÐéµØÖ·Ä£Ê½£¨±£»¤Ä£Ê½£©¡£LinuxÖ÷Òª¹¤×÷ÔÚ±£»¤Ä£Ê½Ï¡£
ÔÚ±£»¤Ä£Ê½Ï£¬80386Ð鵨ַ¿Õ¼ä¿É´ï16K¸ö¶Î£¬Ã¿¶Î´óС¿É±ä£¬×î´ó´ï4GB¡£Âß¼µØÖ·µ½ÏßÐÔµØÖ·µÄת»»ÓÉ80386·Ö¶Î»úÖÆ¹ÜÀí¡£¶Î¼Ä´æÆ÷CS¡¢DS¡¢ES¡¢SS¡¢FS»òGS¸÷±êʶһ¸ö¶Î¡£ÕâЩ¶Î¼Ä´æÆ ......