linux tuxedo ÈëÃÅ
ÕÛÌÚÁË´ó°ëÌ춼ÖÕ°Ñtuxedo°²×°£¬²¢Ð´ºÃµÚÒ»¸öÀý×Ó£¬¼´È»°²×°¿ÉÒÔʹÓÃUIµÄ·½Ê½½øÐа²×°£¬°²×°Íê³ÉºóÒª½øÐл·¾³±äÁ¿µÄÅäÖ㬰ÑtuxedoĿ¼ÖеÄtux.envµÄÅäÖã¬Ìí¼Óµ½/home/oracle/.bash_profile£¬ÒòΪÎÒÊÇÒÔoracleÓû§À´°²×°oracle ºÍtuxedo µÄ¡£
·þÎñÆ÷¶Ë´úÂësimpserv.c:
#include <stdio.h>
#include <ctype.h>
#include <atmi.h>
#include <userlog.h>
#if defined(_STDC_)||defined(_cplusplus)
tpsvrinit(int argc,char *argv[])
#else
tpsvrinit(argc,argv)
int argc;
char **argv;
#endif
{
argc=argc;
argv=argv;
userlog("Welcome to the simple server");
return(0);
}
#ifdef _cplusplus
extern "C"
#endif
#if defined(_STDC_)||defined(_cplusplus)
void TOUPPER(TPSVCINFO *rqst)
#else
void TOUPPER(rqst)
TPSVCINFO *rqst;
#endif
{
int i;
for(i=0;i<rqst->len-1;i++)
rqst->data[i]=toupper(rqst->data[i]);
tpreturn(TPSUCCESS,0,rqst->data,0L,0);
}
±àÒë·½·¨Ö¸Ábuildserver -o simpserv -f simpserv.c -s TOUPPER
¿Í»§¶Ë´úÂësimpcl.c£º
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "atmi.h"
#if defined(_STDC_)||defined(_cplusplus)
main(int argc,char *argv[])
#else
main(argc,argv)
int argc;
char *argv[];
#endif
{
char *sendbuf,*rcvbuf,*ptr;
char *msg="Tuxedo is powerful.";
long sendlen,rcvlen;
int ret;
/*¿ªÊ¼Á¬½Ó*/
if(tpinit((TPINIT *)NULL)==-1 ){
(void)fprintf(stderr,"Tpinit failed\n");
exit(1)
Ïà¹ØÎĵµ£º
Writing Linux LCD drivers
×÷ÕߣºJimSheng
Writing Linux LCD drivers
Abstract
1 LCD Module\Driver\Controller
2 Linux Frame Buffer Driver
2.1 Why Frame Buffer?
2.2 What is Frame Buffer Devices?
2.3 How to Write Frame Buffer Device Drivers?
3 Analysis of Linux Frame Buffer Driver Source ......
ÎҴ󲿷Öʱ¼äʹÓÃLinux²Ù×÷ϵͳ(Debian
Lenny)£¬²»¹ýºÜ¶àʱ¼ä»¹ÊÇÒªWindowsµÄ£¨±È·½ËµÍøÉÏÒøÐС¢¿´docÎĵµ¡¢¿´WindowsרÓõÄÍøÕ¾¡¢war3£©£¬Ë«ÏµÍ³ÊÇÒ»¸ö½â¾ö·½°¸£¬²»
¹ýÀÏÇÐÀ´ÇÐÈ¥ÕæÀÛ¡£½ñÌìÖÕÓÚ±¬·¢ÁË£¬Åܵ½Ì«Æ½Ñó2Â¥ÂòÁËÌõ2GµÄÄڴ棬¼ÓÉÏ×Ô¼ºµÄ1GÄڴ棬¿ªÊ¼ÕÛÌÚÐéÄâ»ú¡£Ò»¿ªÊ¼ÏÈÊÔÁËKVM£¬·¢ÏÖÎÒµÄCPU²»Ö§³Ö£¬
Ö»ÄÜ×÷°Õ ......
·½·¨Ò»£ºsingle mode
[code]1. ÔÚ GRUB 選單畫ÃæµÄ時ºò£¬°´ e
2. ÕÒµ½這Ò»ÐС¾kernel /vmlinuz-2.xxxxxxx ro root=/dev/hda2¡¿°´ e
3. ÔÚ這Ò»ÐÐ×îáá¼ÓÉÏ single£¨ÒªÁôÒ»個¿Õ¸ñÔÙ¼Ó sing ......
# ifconfig # ²é¿´ËùÓÐÍøÂç½Ó¿ÚµÄÊôÐÔ
# iptables -L # ²é¿´·À»ðǽÉèÖÃ
# route -n   ......
ÎÄÕÂÀ´Ô´£ºhttp://blog.chinaunix.net/u3/94284/showart_1970946.html
¿éÉ豸Çý¶¯£¨Ò»£©
¸ÅÀ¨£º
¿éÉ豸Çý¶¯µÚÒ»¸ö¹¤×÷ͨ³£ÊÇ×¢²á×Ô¼ºµ½Äںˣ¬ÊÇͨ¹ýregister_blkdevÍê³ÉµÄ£¬ËäÈ»register_blkdev¿ÉÓÃÀ´»ñµÃÒ»¸öÖ÷É豸ºÅ£¬µ«ÊÇËü²»Ê¹´ÅÅÌÇý¶¯Æ÷¶Ôϵͳ¿ÉÓã¬ÓÐÒ»¸ö·Ö¿ªµÄ×¢²á½Ó¿ÚÄã±ØÐëʹÓÃÀ´¹ÜÀíµ¥¶ÀµÄÇý¶¯Æ÷£¬Ê¹ÓÃÕâÒ»½Ó¿ ......