내일은 대한입니다.
sun's longitude:299 31 19.40 
· 자유게시판 · 묻고답하기 · 알파문서 · RPMS list
· 사용자문서 · 팁/FAQ모음 · 리눅스Links · 자료실
· 서버정보 · 운영자 · Books/FAQ · FreeBSD
/board/read.php:소스보기  

질문과 답변 게시판입니다.

현재 실시간으로 이곳 서버의 설정파일(몇개)를 보여주고 있습니다.
서버의 설정내용에 관한 질문은 먼저 이곳 서버의 설정내용을 참고하시길 바랍니다.

[*** 쓰기 금지단어 패턴 ***]
글 본문 중간에 업로드할 이미지를 추가하는 방법 : @@이미지이름@@
ex) @@foo.gif@@
2067 번 글: x윈도우 에대해서..요..
글쓴이: 이현철 글쓴날: 2004년 05월 27일 21:41:18 목(저녁) 조회: 1257
-----------------------------------------
답변자가 기본적으로 참고할 내용입니다.
- 배포판(옵션)    : 
- 커널버전(옵션)
  : 
- 데몬버전(예: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.
##################################################################


하나 더 질문드리겠습니다..

그전에 산이님 조언으로 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

 
이전글 : Re: openssl 및 opessh에 대한 궁금 사항입니다.
다음글 : Re: x윈도우 에대해서..요..  
 from 210.238.198.62
JS(Redhands)Board 0.4 +@

Re: openssl 및 opessh에 대한 궁금 사항입니다. Re: x윈도우 에대해서..요..
인쇄용 


apache lighttpd linuxchannel.net 
Copyright 1997-2026. linuxchannel.net. All rights reserved.

Page loading: 0.02(server) + (network) + (browser) seconds