[이현철]님이 남기신 글:
>-----------------------------------------
>답변자가 기본적으로 참고할 내용입니다.
>- 배포판(옵션) :
>- 커널버전(옵션)
:
>- 데몬버전(예:apache
1.3.27) :
>- 데몬설치유형(RPM/컴파일/기타)
:
>-----------------------------------------
>리눅스 9.0 을 서버로 사용하고 있는데요..
>이번에 x윈도우가 필요해서.. 기본적으로 x윈도우를
사용치않다가.
>이번에 시디를 이용해서 x윈도우 관련 패키를 업그레이드를
했습니다.
>
>그리고 나서 아래와 같이 startx 를 하니깐 아래같은 에러가
자꾸나는데
>io를 인식치못하는것일까요?
>###############################################################
>[root@test mail]# startx
>Using authority file /root/.Xauthority
>Writing authority file /root/.Xauthority
>Using authority file /root/.Xauthority
>Writing authority file /root/.Xauthority
>
>
>XFree86 Version 4.3.0 (Red Hat Linux release: 4.3.0-2)
>Release Date: 27 February 2003
>X Protocol Version 11, Revision 0, Release 6.6
>Build Operating System: Linux 2.4.20-3bigmem i686 [ELF]
>Build Date: 27 February 2003
>Build Host: porky.devel.redhat.com
>
> Before reporting problems, check http://www.XFree86.Org/
> to make sure that you have the latest version.
>Module Loader present
>OS Kernel: Linux version 2.4.20-8 (bhcompile@porky.devel.redhat.com)
(gcc versio
>n 3.2.2 20030222 (Red Hat Linux 3.2.2-5)) #1 Thu Mar 13 17:54:28 EST
2003
>Markers: (--) probed, (**) from config file, (==) default setting,
> (++) from command line, (!!) notice, (II) informational,
> (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
>(==) Log file: "/var/log/XFree86.0.log", Time: Thu May 27 21:24:10
2004
>(EE) Unable to locate/open config file
>(EE) Error from xf86HandleConfigFile()
>
>Fatal server error:
>no screens found
>
>When reporting a problem related to a server crash, please send
>the full server output, not just the last messages.
>This can be found in the log file "/var/log/XFree86.0.log".
>Please report problems to xfree86@xfree86.org.
>
>XIO: fatal IO error 104 (Connection reset by peer) on X server
":0.0"
> after 0 requests (0 known processed) with 0 events remaining.
>##################################################################
>
이것은 설명하기가 좀 어렵군요.
비디오카드, 모니터, screen 을 설정해줘야 하는데
현재 이런것들이 아직 설정되 있지 않은것 같네요.
xconfigurator 명령어가 있다면 이것으로 한번 설정해 보세요.
>
>하나 더 질문드리겠습니다..
>그전에 산이님 조언으로 tripwire 를 src.rpm형태로 깔았서
>파일무결성 검사를 잘하고 있습니다.
>그런데 이것을 cron을 이용해서 웹페이지에 매일 체크할려고
하는데.
>생성되는 파일이 0바이트형태로 자꾸생겨나네요..
>
>아래같이 파일이 위치하고있고
>###########################################
>[root@test root]# cd /etc/tripwire/
>[root@test tripwire]# pwd
>/etc/tripwire
>[root@test tripwire]# ls -al
>合計 153
>drwxr-xr-x 2 root root 1024 5月 27 20:19 .
>drwxr-xr-x 67 root root 5120 5月 27 19:48 ..
>-rw-r----- 1 root root 931 5月 24 17:32 site.key
>-rw-r----- 1 root root 931 5月 24 17:32
test-local.key
>-rwx------ 1 root root 17 5月 25 16:25 tripwire.sh
>-rwx------ 1 root root 18 5月 27 20:19 tripwire.txt
>-rw-r----- 1 root root 4586 5月 24 18:55 tw.cfg
>-rw-r----- 1 root root 4586 5月 24 17:33
tw.cfg.2792.bak
>-rw-r----- 1 root root 4586 5月 24 17:41
tw.cfg.3285.bak
>-rw-r----- 1 root root 4586 5月 24 18:30
tw.cfg.3542.bak
>-rw-r----- 1 root root 8287 5月 24 18:55 tw.pol
>-rw-r----- 1 root root 8287 5月 24 18:55 tw.pol.bak
>-rw-r--r-- 1 root root 634 5月 24 18:55 twcfg.txt
>-rwxr-xr-x 1 root root 10100 5月 24 17:21 twinstall.sh
>-rw-r--r-- 1 root root 41228 5月 24 17:50 twpol.txt
>-rw-r--r-- 1 root root 51817 5月 24 17:21 twpol.txt_bak
>######################################################
> 위 내용중에
>[root@test tripwire]# cat tripwire.txt
>tripwire --check
>
>위와 같이 간단한 스크립트를 만들었습니다.
>
>[root@test tripwire]# ./tripwire.txt
>Parsing policy file: /etc/tripwire/tw.pol
>*** Processing Unix File System ***
>Performing integrity check...
>#########중략############
>위와같이 스크립트가 파일무결성을 제대로
체크해주고있습니다.
>그리고
>
>cron를 이용해서
>crontab -e 를 하면
>0 5 * * * su - root -c /etc/tripwire/tripwire.txt >
/home/www/test/index.html
>
>위와 같이하고 cron를 리스타트해줬습니다..
>
>그런데 확인해보면 다음날 오전5시에 보면 /home/www/test/에
>
>[root@test tripwire]# ls -al
>合計 10
>drwxr-xr-x 2 root root 112 5月 27 20:34 .
>drwxr-xr-x 4 root root 752 5月 27 21:35 ..
>-rw-r--r-- 1 root root 0 5月 27 21:35 index.html
>이런씩으로 용량이 0 입니다.. 왜이런지요..
>
>
>
>그냥 콘솔에서 직접아래같이 하면 index.html이 제대로
만들어지는데말이죠..
>/etc/tripwire/tripwire.txt > /home/www/test/index.html
스크립트가 txt 라니 좀 T.T
스크립트 파일에 안의 tripwire --check 을 절대경로로
입력해주세요.
crond 의 PATH 문제인것 같네요.
|