linuxµÄ´¥ÃþÆÁÖ®Î壺֡»º³åÉ豸ÉϽÏ×¼½çÃæµÄÅäÖÃ
£¨1£©Ö¡»º³åÉ豸¸úTTYµÄ¹Øϵ¡£ÐèÒª¹Ø×¢tty¸úÖ¡»º³åÉ豸µÄ¹Øϵ£¬Ò»°ãÇé¿öÏÂÖ¡»º³åÉ豸ÊÇ¿ÉÒÔ¶ÀÁ¢²Ù×÷µÄ£¬µ«ÊÇÈç¹ûΪÁ˱£Ö¤µ¥¶ÀÕ¼Óò»±»ÇÀÕ¼£¬Ëƺõ»¹Òª¹ØÁªÒ»¸öttyÖնˡ£ÕâÀïÓõÄÊÇÐéÖÕ¶ËVT¡£
ÐéÖնˣ¬Ò²½ÐÐéÆÁ£¬ËüµÄÓ¢ÎÄÃû×ÖΪvirtual terminal,ËõдΪVT»òvt¡£ÔÚUnixϵͳÓû§ÖУ¬ÐéÖÕ¶ËÓÐ׏㷺µÄÓ¦Óá£Ëü½â¾öÁËÖ÷¿Ø̨µ¥Ò»½»»¥½çÃæµÄÏÞÖÆ£¬Ê¹Óû§¿ÉÔÚ±£»¤µ±Ç°½çÃæµÄÇé¿öÏÂÆôÓÃÁíÒ»½çÃæÈ¥×öÁíÒ»¹¤×÷¡£ÎÒÃÇ¿ÉÀûÓÃUnixϵͳÌṩµÄϵͳµ÷ÓÃÀ´±àÖÆÐéÖն˳ÌÐò£¬²¢¿É°ÑËü¼ÓÈëµ½ÎÒÃǵÄÓ¦ÓóÌÐòÖÐÈ¥¡£
ÎÒÃÇ¿ÉÀûÓÃioctlº¯Êý²Ù×ÝÐéÖÕ¶ËÉ豸Îļþ£¬ÊµÏÖÓëUnixϵͳÄں˵Ľ»»¥£¬µÃµ½ÎÒÃÇËùÐèÒªµÄ·þÎñ¡£Ê¹ÓÃioctlµÄ¾ßÌåÐÎʽÈçÏ£º
int ioct1(int filedes,int request,…/£ª²ÎÊý£ª/¡£requestΪÇëÇóµÄ·þÎñ£¬ËæºóµÄ²ÎÊý¿ÉΪ¸÷ÖÖÊý¾ÝÀàÐÍ£¬ÊÓ¾ßÌåÇé¿ö¶ø¶¨¡£
VT_OPENQRY¡¡²éÕÒÒ»¸ö¿ÉÀûÓõÄÐéÖնˡ£
VT_SETMODE¡¡ÉèÖÃÐéÖÕ¶Ëģʽ(×Ô¶¯»ò½ø³Ì¿ØÖÆ)¡£
VT_GETSTATE »ñÈ¡È«²¿ÐéÖն˵Ä״̬ÐÅÏ¢¡£
VT_ACTIVATE¡¡Ê¹ÔÚ²ÎÊýÖÐÖ¸¶¨µÄÐéÖն˺ÅΪ»î¶¯ÐéÖնˡ£Èç¹ûÖ¸¶¨µÄÐéÖն˲»´¦ÓÚ´ò¿ª×´Ì¬»òÕß²»´æÔÚ£¬µ÷Óý«Ê§°Ü¡£
VT_WAITACTIVE¡¡µÈ´ýÐéÖն˱»¼¤»î£¬²»ÐèÒª²ÎÊý¡£
ÓÐÁËÉÏÃæµÄ½éÉÜ£¬ÏÖÔÚÎÒÃǾͿÉÒÔʵÏÖÐéÖÕ¶ËÁË£º
1£¬²éÕÒÊÇ·ñÓпÉÀûÓõÄÐéÖնˣ¬ÈçûÓУ¬Ôò½áÊø¡£
2£¬´ò¿ª¿ÉÀûÓÃÐéÖÕ¶ËÉ豸Îļþ£¬ÒÔ±ã½øÐС£
3£¬ÀûÓÃioctlµÄTCSETSW¹¦ÄÜÉèÖÃÐéÖն˲ÎÊý¡£
4£¬ÀûÓÃioctlµÄVT_ACTIVATE¹¦Äܼ¤»îÐéÖնˣ¬²¢ÀûÓÃVT_WAITACTIVE¹¦ÄܵȴýÆä¿ÉÓá£
5£¬ÓÃputenvº¯ÊýÉèÖû·¾³±äÁ¿¡£
¡¡¡¡ÖÁ´Ë£¬Ò»¸öÐéÖն˳ÌÐò¾ÍʵÏÖÁË¡£
£¨2£©open_framebuffer
static int con_fd, fb_fd, last_vt = -1;
static struct fb_fix_screeninfo fix;
static struct fb_var_screeninfo var;
static unsigned char *fbuffer;
static unsigned char **line_addr;
static int fb_fd=0;
static int bytes_per_pixel;
static unsigned colormap [256];
__u32 xres, yres;
#define TSLIB_FBDEVICE "/dev/graphics/fb0"
static char *defaultfbdevice = "/dev/graphics/fb0";
static char *defaultconsoledevice = "/dev/tty";
static char *fbdevice = NULL;
static char *consoledevice = NULL;
int open_framebuffer(void)
{
&nb
Ïà¹ØÎĵµ£º
´´½¨×ÀÃæͼ±ê
Ä¿Ç°½«ÍøÂçÓ¦ÓÃÀ©Õ¹µ½×ÀÃæÊÇÒ»¸öÇ÷ÊÆ£¬´æÔÚןܶà½â¾ö·½°¸£¬±¾ÎÄÒÔ Mozilla Prism ΪÀý£¬ÀàËƵķ½·¨Í¬ÑùÊÊÓÃÓÚ Google Chrome ¡£
1. µ½ Mozilla Prism µÄÍøÕ¾ÉÏÏÂÔØ Prism£¬µã»÷ Download Now Ö®ºó»áÌáʾÓÐÁ½ÖÖ£¬Ò»ÖÖÊÇÒÔ Mozilla Firefox À©Õ¹µÄ·½Ê½£¬ÊʺÏÒѾ°²×°ÓÐ Firefox µÄÅóÓÑ£»Ò»Ö ......
ÖÚËùÖÜÖª£¬ÏÖÔڵķÖʱ²Ù×÷ϵͳÄܹ»ÔÚÒ»¸öCPUÉÏÔËÐжà¸ö³ÌÐò£¬ÈÃÕâЩ³ÌÐò±íÃæÉÏ¿´ÆðÀ´ÊÇÔÚͬʱÔËÐеġ£linux¾ÍÊÇÕâÑùµÄÒ»¸ö²Ù×÷ϵͳ¡£
¡¡¡¡ÔÚlinuxϵͳÖУ¬Ã¿¸ö±»ÔËÐеijÌÐòʵÀý¶ÔÓ¦Ò»¸ö»ò¶à¸ö½ø³Ì¡£linuxÄÚºËÐèÒª¶ÔÕâЩ½ø³Ì½øÐйÜÀí£¬ÒÔʹËüÃÇÔÚϵͳÖГͬʱ”ÔËÐС£
linuxÄں˶Խø³ÌµÄÕâÖÖ¹ÜÀí·ÖÁ½¸ö·½Ã棺½ø ......
red hat linux Ï°²×° oracle 10g
racle¿¼×ÊÁÏ:
Oracle¹Ù·½ÍøÕ¾: http://download.oracle.com/docs/html/B10813_01/toc.htm
Ò»¡¢ÒÔrootÓû§µÇ¼, ½øÐÐÈçϲÙ×÷£º
1 ¼ì²éÓ²¼þÒªÇó
* Ö÷Òª°üÀ¨£º
********************************************************************
* ÄÚ´æ: & ......
ÔÚlinuxÏÂʹÓù²ÏíÄÚ´æʱ£¬ÕÕ×ÅÊéÉÏ»òÕßÍøÉϵķ½·¨£¬Ê¹ÓÃshmatº¯Êýʱ£¬ÀÏÊÇ»áÅöµ½Ò»¸öÎÊÌâ
Ìáʾ:
shmat error
permission denied
ÿ´ÎÐèÒªsudoһϲÅÄܹ»Õý³£ÔËÐУ¬²¢ÇÒÈç¹ûÆÕͨÓû§Ê¹ÓÃipcs²é¿´µÄ»°£¬ÊÇ¿´²»¼ûÒѾ·ÖÅäµÄ¹²ÏíÄÚ´æµÄ£¬ÐèÒªÔÚrootÓû§Ï²ÅÄÜ¿´¼û£¬ ×ʼÒÔΪÊÇshmatÐèÒªrootÓû§µÄȨÏÞ£¬ºóÀ´·¢ÏÖ²»ÊÇÕâÑ ......