LinuxµÄÖ¡»º³å£¨Frame Buffer£©É豸
Ö¡»º³å£¨framebuffer£©ÊÇ Linux ΪÏÔʾÉ豸ÌṩµÄÒ»¸ö½Ó¿Ú£¬°ÑÏÔ´æ³éÏóºóµÄÒ»ÖÖÉ豸£¬ËûÔÊÐíÉϲãÓ¦ÓóÌÐòÔÚͼÐÎģʽÏÂÖ±½Ó¶ÔÏÔʾ»º³åÇø½øÐжÁд²Ù×÷¡£ÕâÖÖ²Ù×÷ÊdzéÏóµÄ£¬Í³Ò»µÄ¡£Óû§²»±Ø¹ØÐÄÎïÀíÏÔ´æµÄλÖᢻ»Ò³»úÖƵȵȾßÌåϸ½Ú¡£ÕâЩ¶¼ÊÇÓÉFramebuffer É豸Çý¶¯À´Íê³ÉµÄ¡£
Ö¡»º³åÉ豸¶ÔÓ¦µÄÉ豸ÎļþΪ/dev/fb*£¬Èç¹ûϵͳÓжà¸öÏÔʾ¿¨£¬Linux Ï»¹¿ÉÖ§³Ö¶à¸öÖ¡»º³åÉ豸£¬×î¶à¿É´ï 32 ¸ö£¬·Ö±ðΪ/dev/fb0 µ½/dev/fb31£¬¶ø/dev/fb ÔòΪµ±Ç°È±Ê¡µÄÖ¡»º³åÉ豸£¬Í¨³£Ö¸Ïò/dev/fb0¡£µ±È»ÔÚǶÈëʽϵͳÖÐÖ§³ÖÒ»¸öÏÔʾÉ豸¾Í¹»ÁË¡£Ö¡»º³åÉ豸Ϊ±ê×¼×Ö·ûÉ豸£¬Ö÷É豸ºÅΪ29£¬´ÎÉ豸ºÅÔò´Ó0µ½31¡£·Ö±ð¶ÔÓ¦/dev/fb0-/dev/fb31¡£
ͨ¹ý/dev/fb£¬Ó¦ÓóÌÐòµÄ²Ù×÷Ö÷ÒªÓÐÕ⼸ÖÖ£º
1£®¶Á/д£¨read/write£©/dev/fb£ºÏ൱ÓÚ¶Á/дÆÁÄ»»º³åÇø¡£ÀýÈçÓà cp /dev/fb0 tmp ÃüÁî¿É½«µ±Ç°ÆÁÄ»µÄÄÚÈÝ¿½±´µ½Ò»¸öÎļþÖУ¬¶øÃüÁî cp tmp > /dev/fb0 Ôò½«Í¼ÐÎÎļþtmpÏÔʾÔÚÆÁÄ»ÉÏ¡£
2£®Ó³É䣨map£©²Ù×÷£ºÓÉÓÚ Linux ¹¤×÷ÔÚ±£»¤Ä£Ê½£¬Ã¿¸öÓ¦ÓóÌÐò¶¼ÓÐ×Ô¼ºµÄÐéÄâµØÖ·¿Õ¼ä£¬ÔÚÓ¦ÓóÌÐòÖÐÊDz»ÄÜÖ±½Ó·ÃÎÊÎïÀí»º³åÇøµØÖ·µÄ¡£Îª´Ë£¬Linux ÔÚÎļþ²Ù×÷ file_operations ½á¹¹ÖÐÌṩÁË mmap º¯Êý£¬¿É½«ÎļþµÄÄÚÈÝÓ³Éäµ½Óû§¿Õ¼ä¡£¶ÔÓÚÖ¡»º³åÉ豸£¬Ôò¿Éͨ¹ýÓ³Éä²Ù×÷£¬¿É½«ÆÁÄ»»º³åÇøµÄÎïÀíµØÖ·Ó³Éäµ½Óû§¿Õ¼äµÄÒ»¶ÎÐéÄâµØÖ·ÖУ¬Ö®ºóÓû§¾Í¿ÉÒÔͨ¹ý¶ÁдÕâ¶ÎÐéÄâµØÖ··ÃÎÊÆÁÄ»»º³åÇø£¬ÔÚÆÁÄ»ÉÏ»æͼÁË¡£
3£®I/O¿ØÖÆ£º¶ÔÓÚÖ¡»º³åÉ豸£¬¶ÔÉ豸ÎļþµÄ ioctl²Ù×÷¿É¶ÁÈ¡/ÉèÖÃÏÔʾÉ豸¼°ÆÁÄ»µÄ²ÎÊý£¬Èç·Ö±æÂÊ£¬ÏÔʾÑÕÉ«Êý£¬ÆÁÄ»´óСµÈµÈ¡£ioctl µÄ²Ù×÷ÊÇÓɵײãµÄÇý¶¯³ÌÐòÀ´Íê³ÉµÄ¡£
µäÐͳÌÐò¶ÎÈçÏ£º
#include <linux/fb.h>
int main()
{
int fbfd = 0;
struct fb_var_screeninfo vinfo;
struct fb_fix_screeninfo finfo;
long int screensize = 0;
fbfd = open("/dev/fb0", O_RDWR); /*´ò¿ªÉ豸Îļþ*/
ioctl(fbfd, FBIOGET_FSCREENINFO, &finfo); /*È¡µÃÆÁÄ»Ïà¹Ø²ÎÊý*/
ioctl(fbfd, FBIOGET_VSCREENINF
Ïà¹ØÎĵµ£º
£¨L2CAPÐÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPÐÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼Á¬½Ó¿ØÖƺÍÊÊÅäÐÒé (L2CAP) ΪÉϲãÐÒéÌṩÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àÐÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãÐÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......
Ò»,Í£Ö¹tomcat ²¢Ö´ÐÐ#netstat -an|grep 80 ²é¿´·¢ÏÖÓÐÐí¶à80¶Ë¿Ú½ø³ÌÔÚÀïÃæ
¶þ,Ö´ÐÐ# lsof -i :80|grep -v "PID"|awk '{print "kill -9",$2}'|sh ɱËÀËùÓÐ80¶Ë¿Ú½ø³Ì
Èý,Æô¶¯tomcat,ÎÊÌâ½â¾ö. ......
1.download UltraEdit
http://www.ultraedit.com/downloads/uex.html
2.install rpm -ivh UltraEdit-1.0-0.13.i386.rpm
3.ÉèÖÃalias,½â³ý30ÌìÏÞÖÆ
alias ue='rm -rf ~/.idm/uex/*.*|rm -rf ~/.idm/uex/.dat |/usr/local/bin/uex &' ......
Èç¹ûÔ¤ÏÈ×°µÄVMware LinuxÐéÄâ»úµÄÓ²ÅÌ¿Õ¼ä¹ýС,ÖØÐÂ×°Ò»¸öÓÖͦÂé·³¡£ËÑË÷ÍøÉϵķ½·¨,¼ò½éÈçÏÂ:
Ò»£ºÓ²ÅÌÀ©Èݵķ½·¨£º
1¡¢vmwareÌṩһ¸öÃüÁîÐй¤¾ß£¬vmware-vdiskmanager.exe£¬Î»ÓÚvmwareµÄ°²×°Ä¿Â¼Ï£¬±ÈÈç
C:\Program Files\VMware\VMware Workstation\vmware-vdiskmanager.exe.
ÔÚwindowsµÄcmd´°¿ÚÖУ¬×ªµ½vm ......
Çý¶¯³ÌÐò±à³ÌÊÇϵͳÈí¼þÉèÖõľ«ËèÖ®Ò»£¬Í¨¹ýÇý¶¯³ÌÐòµÄ±à³ÌѵÁ·£¬¿ÉÒÔ¸ü¼ÓÉîÈëµÄÀí½âÏà¹Ø²Ù×÷ϵͳµÄ¼Ü¹¹£¬²¢¶ÔÓ²¼þÓиü¼ÓÖ±½ÓÉîÈëµÄÀí½â¡£linux¿ªÔ´£¬Îȶ¨£¬Ñ§Ï°×ÊÔ´·á¸»£¬¼«ÊʺÏÈëÊÖÇý¶¯³ÌÐòµÄ¿ª·¢Ñ§Ï°¡£Í¨¹ýlinuxÇý¶¯¿ª·¢Ñ§Ï°£¬´ïµ½ÒÔÏÂÄ¿±ê£º
1. linuxÇý¶¯¿ª·¢·½·¨
2. linuxÇý¶¯Ä£ÐÍ
3. ³£ÓÃÓ²¼þµÄlinuxÇý¶¯Éè¼ÆʵÏÖ ......