linuxµÄ´¥ÃþÆÁÖ®Èý£º½âÎöandroidƽ̨ÉϵÄtslib¹ý³Ì
£¨1£©ÔÚtslibĿ¼ÏÂÓÐÉèÖû·¾³±äÁ¿µÄÎı¾Îļþ£ºsettsenv.sh£¬ÄÚÈÝ£º
export T_ROOT=/system
export LD_LIBRARY_PATH=$T_ROOT/lib
export TSLIB_CONSOLEDEVICE=
export TSLIB_FBDEVICE=/dev/graphics/fb0
export TSLIB_TSDEVICE=/dev/input/event1
export TSLIB_PLUGINDIR=$T_ROOT/lib/ts
export TSLIB_CONFFILE=$T_ROOT/etc/tslib/ts.conf
export TSLIB_CALIBFILE=/data/data/pointercal
É趨µÄTSLIBµÄTSÉ豸£¬FBÉ豸£¬ÅäÖÃÎļþ£¬¶¯Ì¬¿âÎļþµÄ·¾¶¡£µ±È»£¬¾ßÌåµÄÒªÓõĿÉÒÔÔÚ³ÌÐò´úÂëÖÐÖØÐÂÉ趨¡£
£¨2£©tslibĿ¼ÏµÄetcĿ¼ts.confÊÇÅäÖÃÎļþ£¬ÄÚÈÝ£º
# Uncomment if you wish to use the linux input layer event interface
module_raw input1
# Uncomment if you're using a Sharp Zaurus SL-5500/SL-5000d
# module_raw collie
# Uncomment if you're using a Sharp Zaurus SL-C700/C750/C760/C860
# module_raw corgi
# Uncomment if you're using a device with a UCB1200/1300/1400 TS interface
# module_raw ucb1x00
# Uncomment if you're using an HP iPaq h3600 or similar
# module_raw h3600
# Uncomment if you're using a Hitachi Webpad
# module_raw mk712
# Uncomment if you're using an IBM Arctic II
# module_raw arctic2
module pthres pmin=1
module variance delta=30
module dejitter delta=100
module linear
¿É¼û£¬ÉÏÃæÓкܶàÄ£¿é¿ÉÒÔµ÷Óã¬×îÖÕÊÇÑ¡ÔñÁËinput1£¬Ò²¼´ÊÇlinuxµÄinput»ñÈ¡·½Ê½¡£ÕâЩģ¿éµÄÔ´´úÂëÔÚpluginsĿ¼Ï¶¼Óж¨Òå¡£
£¨3£©·ÖÎöÁ÷³Ì£¬½Ó´¥ÃþÆÁ·ÖÎöÖ®Ò»£¬ÔÚts_mainÖУº
void get_sample (struct tsdev *ts, calibration *cal, int index, int x, int y, char *name)
{
put_cross(x, y, 2 | XORMODE); //»Ê®×Ö×ù±ê
getxy (ts, &cal->x [index], &cal->y [index]); //È¡µÃx,yµÄLCD×ø±êÖµ
put_cross(x, y, 2 | XORMODE);
last_x = cal->xfb [index] = x;
last_y = cal->yfb [index] = y; //¸³ÖµcalµÄ´¥ÃþÆÁ×ø±ê
}
£¨4£©½âÎögetxy
struct ts_sample {
Ïà¹ØÎĵµ£º
´´½¨×ÀÃæÍ¼±ê
Ŀǰ½«ÍøÂçÓ¦ÓÃÀ©Õ¹µ½×ÀÃæÊÇÒ»¸öÇ÷ÊÆ£¬´æÔÚןܶà½â¾ö·½°¸£¬±¾ÎÄÒÔ Mozilla Prism ΪÀý£¬ÀàËÆµÄ·½·¨Í¬ÑùÊÊÓÃÓÚ Google Chrome ¡£
1. µ½ Mozilla Prism µÄÍøÕ¾ÉÏÏÂÔØ Prism£¬µã»÷ Download Now Ö®ºó»áÌáʾÓÐÁ½ÖÖ£¬Ò»ÖÖÊÇÒÔ Mozilla Firefox À©Õ¹µÄ·½Ê½£¬ÊʺÏÒѾ°²×°ÓÐ Firefox µÄÅóÓÑ£»Ò»Ö ......
ssh connect to Linux
1,¼ì²éÍøÂçÁ¬½ÓÊÇ·ñÕý³£,¿´¿´ÄãµÄ»úÆ÷ÊÇ·ñ¿ªÁË22ºÅ¶Ë¿Ú,½ø³ÌÊÇ·ñÔËÐÐÕý³£..
2,¿ÉÒÔÔÚ±¾»úÉÏÓÃSSHÃüÁîµÇ½±¾»ú.
#ssh -l yourloginname xxx.xxx.xxx.xxx
ÆäÖÐyourloginnameΪÄã±¾»ú¿ÉÔ¶³ÌµÇ¼Óû§Ãû,xxx.xxx.xxx.xxxΪÄãµÄ»úÆ÷IP,
Èç¹ûµÇ¼Ìáʾ:
Are you sure you want to continue connecting ( ......
4¡¢alarmºÍ setitimerϵͳµ÷ÓÃ
ϵͳµ÷ÓÃalarmµÄ¹¦ÄÜÊÇÉèÖÃÒ»¸ö¶¨Ê±Æ÷£¬µ±¶¨Ê±Æ÷¼ÆÊ±µ½´ïʱ£¬½«·¢³öÒ»¸öÐźŸø½ø³Ì¡£¸Ãµ÷ÓõÄÉùÃ÷¸ñʽÈçÏ£º
unsigned int alarm(unsigned int seconds);
&n ......
[root@localhost root]# ls -l
»áÏÔʾĿ¼»òÎļþÐÅÏ¢£ºdrwxr-xr-x 2 root root 4096 06-29 14:30 Test
-rwxr--r-- 2 root roo ......
ÎÒ°ÑÎÒÕûºÏapache£«tomcat£«mod_webapp.soµÄ¹ý³Ì·¢ÉÏÀ´¡£ÆäÖаüÀ¨ÁËÐí¶àǰÈ˵ÄÐĵÃÓë¾Ñé
1.ËùÐèµÄÈí¼þ°ü
¡¡¡¡j2sdk-1_4_1_02-linux-i586.bin(jdk1.4.1)
¡¡¡¡Apache2.0.40 (Red Hat Linux8.0×Ô´ø)   ......