LinuxÏ´®¿Ú±à³ÌÎÊÌâ
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <termios.h>
#include <errno.h>
#include <string.h>
#define TRUE 1
//³õʼ»¯´®¿ÚÑ¡Ï
void setTermios(struct termios * pNewtio, int uBaudRate)
{
bzero(pNewtio, sizeof(struct termios)); /* clear struct for new port settings */
//8N1
pNewtio->c_cflag = uBaudRate | CS8 | CREAD | CLOCAL;
pNewtio->c_iflag = IGNPAR;
pNewtio->c_oflag = 0;
pNewtio->c_lflag = 0; //non ICANON
/*
initialize all control characters
default values can be found in /usr/include/termios.h, and
are given in the comments, but we don't need them here
*/
pNewtio->c_cc[VINTR] = 0; /* Ctrl-c */
pNewtio->c_cc[VQUIT] = 0; /* Ctrl-\ */
pNewtio->c_cc[VERASE] = 0; /* del */
pNewtio->c_cc[VKILL] = 0; /* @ */
pNewtio->c_cc[VEOF] = 4; /* Ctrl-d */
pNewtio->c_cc[VTIME] = 5; /* inter-character timer, timeout VTIME*0.1 */
pNewtio->c_cc[VMIN] = 0; /* blocking read unt
Ïà¹ØÎÊ´ð£º
ÎÒÖ®Ç°ÖÆ×÷µÄlinux×Ô¶¯°²×°isoÒѾ³É¹¦ÁË£¬ÏÖÔÚÏë¶ÔÆä½øÐÐһЩ¶¨ÖÆÐ޸쬱ÈÈ磬¸ü¸ÄgrubͼƬµÈ¡£
ÎÒÔÚks.cfgµÄ%post¶ÎÀïÃæÊÇÕâÑùдµÄ£º
%post --nochroot
# Move the contents of the tar into their new locati ......
¸Õ²Å·¢ÏÖÓÐ×îеÄlinux kernel·¢²¼ÁË£¬ÎÒÒ²ÊǸölinux°®ºÃÕߣ¬Ö»²»¹ýÊǸöÐÂÊÖ£¬Ê²Ã´¶¼²»¶®£¬ÎÒÏëÎÊһϣ¬Èç¹ûÎÒÓÐkernelµÄ»°£¬ÎÒÄܱàÒë³É×Ô¼ºµÄϵͳÂð£¿ÊDz»ÊÇÓÃkernelÔÙÅäÉϸö×ÀÃæ»·¾³¾Í¿ÉÒÔ×ö³É×Ô¼ºµÄ²Ù×÷ÏµÍ³ÄØ£¿Î ......
ÎʸöÎÊÌâ ½ñÌì·¢Ïֺܶà³ÌÐòËÀÔÚlinux ·þÎñ½øÖÐ
ÒѾËÀÁ˺öàÌìÁË¡£ÓÃcrontab ¶¼¶¨ÔÚ Á賿0µãÅÜ¡£
ÏëÖªµÀÈçºÎ²é¿´ ·þÎñÆ÷ÄÄ·½ÃæµÄ×ÊÔ´Ì«ÉÙµ¼Ö½ø³ÌËÀÔÚÀïÃæ£¿
³ÌÐò±¾ÉíÊÇ·ñ¾Í´æÔÚÎÊÌâ
ÒýÓÃ
ÎʸöÎÊÌâ ½ñÌ ......
linux /etc/rc.d/Ŀ¼ÏÂÕÒ²»µ½rc3.dÎļþ¼Ð£¿
Çë½Ì¸÷λ´óϺָ½Ì£¿
ÃüÁîÐÐÀsetup·þÎñÑ¡ÏîĪ·¨Óã¬Çë½ÌÏÂÈçºÎ½â¾ö£¿
лл
ŪÄÄÈ¥ÁË£¿
²»Ð¡ÐÄɾ³ýÁË£¿
ÄǿɲÒÁË£¬copy¸örc.5ÓÃÓðɡ£ ......
ÇëÎÊËÓÐÔÚlinuxϰ²×°oracleµÄÖ¸µ¼Îĵµ×îºÃÊÇ11gµÄ£¬°²×°Á˺ü¸´Î¶¼Ê§°ÜÁË£¬ÓôÃÆ¡¡
10gµÄÎĵµ£¬¹©²Î¿¼.
linuxƽ̨ÏÂoracleÊý¾Ý¿â°²×°
http://blog.csdn.net/tianlesoftware/archive/2009/10/24/47 ......