Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

linux»·¾³±äÁ¿Îļþ

¹ØÓÚlinux»·¾³±äÁ¿Îļþ
µÚÒ»ÄÚÈÝ£º
etc/profile:´ËÎļþΪϵͳµÄÿ¸öÓû§ÉèÖû·¾³ÐÅÏ¢,µ±Óû§µÚÒ»´ÎµÇ¼ʱ,¸ÃÎļþ±»Ö´ÐÐ.
²¢´Ó/etc/profile.dĿ¼µÄÅäÖÃÎļþÖÐËѼ¯shellµÄÉèÖÃ.
/etc/bashrc:Ϊÿһ¸öÔËÐÐbash shellµÄÓû§Ö´ÐдËÎļþ.µ±bash shell±»´ò¿ªÊ±,¸ÃÎļþ±»¶ÁÈ¡.
µÚ¶þÄÚÈÝ£º
~/.bash_profile:ÿ¸öÓû§¶¼¿ÉʹÓøÃÎļþÊäÈëרÓÃÓÚ×Ô¼ºÊ¹ÓõÄshellÐÅÏ¢,µ±Óû§µÇ¼ʱ,¸Ã
Îļþ½ö½öÖ´ÐÐÒ»´Î!ĬÈÏÇé¿öÏÂ,ËûÉèÖÃһЩ»·¾³±äÁ¿,Ö´ÐÐÓû§µÄ.bashrcÎļþ.
~/.bashrc:¸ÃÎļþ°üº¬×¨ÓÃÓÚÄãµÄbash shellµÄbashÐÅÏ¢,µ±µÇ¼ʱÒÔ¼°Ã¿´Î´ò¿ªÐµÄshellʱ,¸Ã
¸ÃÎļþ±»¶ÁÈ¡.
~/.bash_profile Êǽ»»¥Ê½¡¢login ·½Ê½½øÈë bash ÔËÐеÄ
~/.bashrc Êǽ»»¥Ê½ non-login ·½Ê½½øÈë bash ÔËÐеÄ
ͨ³£¶þÕßÉèÖôóÖÂÏàͬ£¬ËùÒÔͨ³£Ç°Õß»áµ÷ÓúóÕß¡£
/etc/profileÖÐÉ趨µÄ±äÁ¿(È«¾Ö)µÄ¿ÉÒÔ×÷ÓÃÓÚÈκÎÓû§,¶ø
~/.bashrcµÈÖÐÉ趨µÄ±äÁ¿(¾Ö²¿)Ö»Äܼ̳Ð/etc/profileÖеıäÁ¿,ËûÃÇÊÇ\"¸¸×Ó\"¹Øϵ.
µÚÈýÄÚÈÝ£º
~/.bash_logout:µ±Ã¿´ÎÍ˳öϵͳ(Í˳öbash shell)ʱ,Ö´ÐиÃÎļþ.
ִɨ˳Ðò×ܽ᣺
 /etc/profile------ ~/.bash_profile£¨ ~/.bash_login»ò ~/.profile£¨linux°æ±¾¶ø¶¨£©£©-------~/.bashrc------/etc/bashrc------ ~/.bash_logout
--------------------------------------------------------------------------------
¾ßÌå
ÔڵǼLinuxʱҪִÐÐÎļþµÄ¹ý³ÌÈçÏ£º
ÔڸյǼLinuxʱ£¬Ê×ÏÈÆô¶¯ /etc/profile Îļþ£¬È»ºóÔÙÆô¶¯Óû§Ä¿Â¼Ï嵀 ~/.bash_profile¡¢ ~/.bash_login»ò ~/.profileÎļþÖеÄÆäÖÐÒ»¸ö(¸ù¾Ý²»Í¬µÄlinux²Ù×÷ϵͳµÄ²»Í¬£¬ÃüÃû²»Ò»Ñù)£¬
Ö´ÐеÄ˳ÐòΪ£º~/.bash_profile¡¢ ~/.bash_login¡¢ ~/.profile¡£
Èç¹û ~/.bash_profileÎļþ´æÔڵĻ°£¬Ò»°ã»¹»áÖ´ÐÐ ~/.bashrcÎļþ¡£
~/.bash_profileÎļþÖÐÒ»°ã»áÓÐÏÂÃæµÄ´úÂ룺
if [ -f ~/.bashrc ] ; then
. ./bashrc
fi
~/.bashrcÖУ¬Ò»°ã»¹»áÓÐÒÔÏ´úÂ룺
if [ -f /etc/bashrc ] ; then
. /bashrc
fi
ËùÒÔ£¬~/.bashrc»áµ÷Óà /etc/bashrcÎļþ¡£×îºó£¬ÔÚÍ˳öshellʱ£¬»¹»áÖ´ÐÐ ~/.bash_logoutÎļþ¡£
Ö´ÐÐ˳ÐòΪ£º/etc/profile -> (~/.bash_profile | ~/.bash_login | ~/.profile) -> ~/.bashrc -> /etc/bashrc -> ~/.bash_logout
¹ØÓÚ¸÷¸öÎļþµÄ×÷ÓÃÓò£¬ÔÚÍøÉÏÕÒµ½ÁËÒÔÏÂ˵Ã÷£º
£¨1£©/etc/profile£º ´ËÎļþΪϵͳµÄÿ¸öÓû§ÉèÖû·¾³ÐÅÏ¢,µ±Óû§µÚÒ»´ÎµÇ¼ʱ,¸ÃÎļþ±»Ö´ÐÐ. ²


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì£¨Èý£© HCI²ã±à³Ì

1. HCI²ãЭÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI)  ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈЭÒé ......

ʵսLinux Bluetooth±à³Ì(Áù) 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 ......

dz̸LinuxµÄ¿ÉÖ´ÐÐÎļþ¸ñʽELF

 ÏÖ´úLinux²ÉÓÃELF×öΪÆä¿ÉÁ¬½ÓºÍ¿ÉÖ´ÐÐÎļþµÄ¸ñʽ£¬Òò´ËELF¸ñʽҲÏòÎÒÃÇ͸³öÁËÒ»µãLinuxºËÄÚµÄÇé¾°£¬¾ÍÏñϷ̨άĻÁôϵÄÒ»ÌõδÀ­Ñϵķ졣PCÊÀ½ç32ÈÔÊÇÖ÷Á÷£¬µ«64λµÄ½Å²½È´ÒÑÈç´ËµÄ±Æ½ü¡£±¾ÎÄ×ÅÖؽ²Êö32λELFµÄͬʱ¸½´øÁË64λµÄÐÅÏ¢£¬ÕâÁ½ÖÖ¸ñʽÈç´ËÀ×ͬ£¬ÒÔÖÂÓÚ³õ´Î½Ó´¥ELFµÄ¶ÁÕß²»±Ø¼æ¹Ë×óÓÒ¡£Èç¹ûÄã¶ÔWindows±È½ÏÊ ......

linux ²¥·ÅÉùÒôÎļþ³ÌÐò´úÂë

ÉùÒôÎļþ±ØÐëΪWave PCM unsigned 8bits mono¸ñʽ
/* the *.wav must be 8000Hz 64kbps  8bits MONO(1)*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/ioctl.h>
#include <linux/soundcard.h&g ......

LinuxÄÚºËÎĵµÖ®rbtree.txt

Red-black Trees (rbtree) in Linux
January 18, 2007
Rob Landley <rob@landley.net>
=============================
red-blackÊ÷ÊÇʲôÑùµÄÊ÷£¬ÎªÊ²Ã´ÐèÒªred-blackÊ÷£¿
------------------------------------------------
    red-black tree£¨RBÊ÷£©ÊÇÒ»ÖÖƽºâ¶þ²æÊ÷£¬ËüÖ÷ÒªÓÃÓÚ´æ´¢»òÕß˵ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ