반응형

 

출처 : http://vjetnamnet.com/how-to-setup-vnc-server-on-centos-6-3/

 

간만에 센토스 최신 (이글을 쓰고 있는 6.3 버전임) 버전에서

 

vnc 설치를 할려고 하루종일 헤매였다...

 

참고.

 

1. 기본적으로 centos 5와 달리 6버전에서는 desktop 으로 설치해야만 X Window 화면을 볼수 있다.

    > 난 서버니깐 서버로... X windows 설치가 안된다.. -_-.. 참고 하시라...

 

2. 기본적으로 vnc-server 의 명칭이 변경되었다. tigervnc 이다.

 

========================= 자 시작한다. ================================

 

1 단계 GNOME와 VNC 설치

 

a. root로 로그인 한다.

b. 그룹 GNOME 데스크톱 환경을 install 한다.

   # yum -y groupinstall "GNOME Desktop Environment"

c. 환경, X 윈도우 시스템, 폰트들을 install 한다.

  # yum groupinstall "Desktop Platform" "X Window System" "Fonts"

d. 여타 다른 폰트들을 install 한다.

  # yum install xorg-x11-fonts-Type1

e. 위의 a-d까지의 정상적으로 설치되면 진행한다. / Vnc Server 설치하기(아래는 6.3부터 바뀐 vnc-server => tigervnc-server임)

    # yum install tigervnc-server

 

2 단계 데스크톱의 원격 작업을 위한 VNC 환경 설정 하기

참고로 root 기준으로 한다.(원문에는 없음)

a. root로 로그인 한다.

b. vncpasswd

    패스워드 입력함.(VNC 연결할 때 사용할 password)

c. 다음경로에 파일이 존재하는지 확인

    /root/.vnc/passwd  (패스워드 b를 입력한 경우 생성)

    /root/.vnc/xstartup  (vncserver 정상 설치시 로그인 할때 시작하는 xstartup 스크립트)

    참고 내용(xstartup 내용)

 

 

#!/bin/sh

[ -r /etc/sysconfig/i18n ] && . /etc/sysconfig/i18n
export LANG
export SYSFONT
vncconfig -iconic &
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
OS=`uname -s`
if [ $OS = 'Linux' ]; then
  case "$WINDOWMANAGER" in
    *gnome*)
      if [ -e /etc/SuSE-release ]; then
        PATH=$PATH:/opt/gnome/bin
        export PATH
      fi
      ;;
  esac
fi
if [ -x /etc/X11/xinit/xinitrc ]; then
  exec /etc/X11/xinit/xinitrc
fi
if [ -f /etc/X11/xinit/xinitrc ]; then
  exec sh /etc/X11/xinit/xinitrc
fi
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm &
gnome-session & 

 

d. vncservers 환경 파일 수정

   # vi /etc/sysconfig/vncservers

 

e. 위의 파일에 제일 하단에 추가

VNCSERVERS="1:root"
VNCSERVERARGS[1]="-geometry 1024x768"

3 단계 서비스 재시작

a. root로 로그인

b. 서비스 재시작

   # service vncserver restart

c. 방화벽 설정(끈다)

   # system-config-firewall-tui 명령을 사용하는 방법

   # setup  -> 방화벽 설정

 

  ※ 참고로 아래는 selinux 설정을 off 하는 방법

  /etc/selinux/config 파일에

  SELINUX=enforcing 설정을 SELINUX=disabled 변경함.

 

4 단계 원격(윈도우 PC)에서 접근하기

   VNC 가벼운 버젼은 정상적으로 접근이 안되었다.. 보안...

   접근 가능한 vnc : http://www.tightvnc.com/download.html

반응형
반응형
첨부파일을 실행하여

windows7 iso 파일을 선택 후

클릭 몇번 OK ?

 
반응형
반응형


11버전 설치했는데...

아래와 같이 설치후

부트로더 화면에서 e 키를 눌러 직접 수정해 줘야 했다.. -_-

제길슨...

root 패스워드 변경

sudo passwd root

일케 함..-_-

패키지 설치는...

http://packages.ubuntu.com 

검색하여 설치가능함 ~

출처 :  http://blog.naver.com/PostView.nhn?blogId=hseok74&logNo=120108619514&viewDate=&currentPage=1&listtype=0 


삼성 매직스테이션 (DM-V75)에 우분투 설치하기

 

삼성 매직스테이션에 리눅스 설치만 하면 부팅이 되다가 입력이 모두 홀드되어 아무것도 할수 없는 상태가 된다.

이것을 해결하기 위해서 다음과 같은 작업을 진행했고, 아래 링크를 참조했다.

 

참조사이트 : http://onthebeginningway.blogspot.com/2009/09/ubuntu-install-on-samsung-desktopdm-v75.html

 

1. 9.10 우분투 CD를 삽입하고 전원을 켠다.

2. "하드디스크 변경없이 우분투 사용" 에 선택 바를 놓고, F6, F8키를 누른다.

3. 부트 옵션 맨 앞쪽에 다음과 같이 추가하고 엔터를 친다.

   'acpi=off noapic pnpbios=off irqpoll'
4. 우분트가 뜨고, 설치를 시작

5. 설치가 끝나면 "계속사용" or "리부팅" 에서 "계속 사용"을 선택한다.

6. 우분트가 설치된 "/" 파티션을 찾아서 마운트 한다.

7. 'sudo vi <ROOT_PARTITION>/boot/grub/grub.cfg'를 하고 아래와 같이 3번 사항을 추가 한다.

<중략>

 ### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
        set quiet=1
        insmod ext2
        set root=(hd0,5)
        search --no-floppy --fs-uuid --set 8fb53ee5-0550-436f-afca-842b73d31ab4
        linux   /boot/vmlinuz-2.6.31-14-generic root=UUID=8fb53ee5-0550-436f-afca-842b73d31ab4 ro acpi=off noapic pnpbios=off irqpoll  quiet splash
        initrd  /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
        recordfail=1
<중략>

8. 루트 파티션 언마운트 후에 재부팅한다.

9. 재 부팅후에 잘 사용한다.(끝)

 

위 4개의 옵션이 모두 필요한지 모르겠다.

몇시간을 삽질한 것인지... 쩝

반응형

'OS > Linux' 카테고리의 다른 글

CENTOS 7에 XRDP 설치하기  (0) 2017.08.26
리눅스 백업 및 복구  (0) 2013.01.25
rkhunter (리눅스 침입 탐지 사용하기)  (1) 2010.10.14
ps auxc 와 ps aux 결과 비교하기  (0) 2010.01.21
AWK & SED chunk_1  (0) 2010.01.21
반응형

우선 업무특성상 인터넷 망 영역에서 WAS 시스템이 있어야 한다는 조건이 발생했다....

보안땜시 그렇다고 하는데....

후우...

* 기타 파일들
  - admin 설치용
  - jdk 1.4 호환용

  - 개발자 설치용
  - 전체 document
    - 윈도우 설치용


1. 아래의 사이트에서 톰켓 SRC 버젼을 받는다.
    - 사실 jsp 를 통한 서블릿 과정을 진행할려고 하여 별도의 apache 연동은 없다 ! (웹 서버가 필요하면 별도의 아파치 연동과정을 찾아볼것!)
    - 단순한 한개의 jsp 페이지의 값을 넘겨 주기만 할것임 !
    - 다운로드 주소 : http://tomcat.apache.org/download-55.cgi#5.5.31
- Core부분의 tar.gz을 클릭

2. 클릭하면 저장을 할 수 있다.


3. 설치할 AIX 시스템에 FTP로 전송한다.
    - 계정 root
    - 경로 /usr/local/

4. root 계정으로 쉘 접속을 한다.
    - 아래의 명령을 실행한다.
 # cd /usr/local/
 # gzip -d apache-tomcat-5.5.31.tar.gz
 # tar xvf apache-tomcat-5.5.31.tar
 # ln -s /usr/local/apache-tomcat-5.5.31 /usr/local/tomcat
 # useradd -d /home/tomcat -g staff tomcat
 # passwd tomcat
 # mkdir /home/tomcat
 # chown -R tomcat:staff /usr/local/apache-tomcat-5.5.31 /usr/local/tomcat
 # chown -R tomcat:staff /home/tomcat

5. tomcat 계정으로 접속 후 .profile 파일을 변경처리 한다.

 if [ -s "$MAIL" ]                  # This is at Shell startup.  In normal
        then echo "$MAILMSG"       # operation, the Shell checks
fi                                 # periodically.


export JAVA_HOME=/usr/java5_64

set -o vi

PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:${JAVA_HOME}/jre/bin:${JAVA_HOME}/bin:/usr/local/bin:/usr/local/tomcat/bin:.

stty erase ^?

export LANG=ko_KR

export PS1=[`hostname`:\$PWD]

umask 022


######### Tomcat 환경 변수 등록 #############

export CATALINA_HOME=/usr/local/tomcat


6. 다시 tomcat 계정으로 접속한다.
$> startup.sh 실행 후 (기동 명령)
$> ps -ef | grep startup.sh 조회시 프로세서가 조회되면 정상작동
$> shutdown.sh 실행 후 (종료 명령)
$> ps -ef | grep startup.sh 조회시 프로세서가 조회되지 않아야 정상 종료

위의 startup.sh 실행후 http://서버IP:8080/ 조회하면 노란 고양이를 만날수 있다.

포트 변경은 /usr/local/tomcat/conf/server.xml 파일내의 8080 포트를 검색하여 수정하면 된다(다른 포트와 충돌시 가동하지 않음)

※ 만약 기본 webapps 폴더이외의 홈 경로를 변경하고 싶다면...

/usr/local/tomcat/conf/Catalina/localhost/ROOT.xml 파일 생성

아래의 docBase 내용의 /home/myweb 디렉토리가 홈 디렉토리로 설정된다.

ROOT.xml 파일 내용
 <?xml version="1.0" encoding="UTF-8"?>
<Context path="" docBase="/home/myweb" debug="0" privileged="true" reloadable="true">
<Logger className="org.apache.catalina.logger.FileLogger" directory="logs"  prefix="localhost_log." suffix=".txt" timestamp="true"/>
</Context>



** 보안 취약 사항 수정 방법
telnet 호스트주소 8080
OPTIONS * HTTP/1.0

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Allow: GET, HEAD, POST, PUT, DELETE, OPTIONS
Content-Length: 0
Date: Thu, 23 Jun 2011 08:25:16 GMT
Connection: close

위의 PUT과 DELETE의 불필요한 메소드가 활성화 되어 위험함

제거 방법

/usr/local/tomcat/conf/web.xml 파일 제일 하단부에 붉은 색 표기와 같은 형태로 입력하면 됨

     <welcome-file-list>
        <welcome-file>index.html</welcome-file>
        <welcome-file>index.htm</welcome-file>
        <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>


 <security-constraint>
 <web-resource-collection>
  <web-resource-name>Protected Context</web-resource-name>
  <url-pattern>/*</url-pattern>
    <http-method>HEAD</http-method>
    <http-method>TRACE</http-method>
    <http-method>OPTIONS</http-method>
 </web-resource-collection>
 <auth-constraint />
 </security-constraint>

   <security-constraint>
     <web-resource-collection>
        <web-resource-name>Protected Context</web-resource-name>
         <url-pattern>/servlet/org.apache.catalina.servlets.DefaultServlet/*</url-pattern>
      </web-resource-collection>
      <!-- auth-constraint goes here if you requre authentication -->
      <user-data-constraint>
         <transport-guarantee>CONFIDENTIAL</transport-guarantee>
      </user-data-constraint>
   </security-constraint>

</web-app>

 




조치 결과
telnet 호스트주소 8080
OPTIONS * HTTP/1.0

HTTP/1.1 403 Forbidden
Server: Apache-Coyote/1.1
Pragma: No-cache
Cache-Control: no-cache
Expires: Thu, 01 Jan 1970 09:00:00 KST
Content-Type: text/html;charset=utf-8
Content-Length: 1108
Date: Thu, 23 Jun 2011 11:07:09 GMT
Connection: close

<html><head><title>Apache Tomcat/5.5.31 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 403 - Access to the requested resource has been denied</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>Access to the requested resource has been denied</u></p><p><b>description</b> <u>Access to the specified resource (Access to the requested resource has been denied) has been forbidden.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/5.5.31</h3></body></html>Connection closed by foreign host.


반응형

'OS > AIX' 카테고리의 다른 글

bff 파일 설치 (AIX)  (0) 2010.12.08
IBM AIX 용 JAVA 다운로드 주소  (0) 2010.12.07
AIX 시스템 점검 쉘  (0) 2010.06.04
Xmanager on AIX 5.3  (1) 2010.02.09
How to install/start/restart the X11 server under AIX  (0) 2010.02.05
반응형

Now, this one was pretty frustrating, especially with a DBA demanding X11 access to an AIX server so that he could install on it...

Here is how to do it:

1. Check that the X11 server is installed

This can be done with the following command:

# lslpp -l | grep -i X11.Dt

If X11 is installed on an AIX machine, the above command should return (more or less):

andre@galactus$ lslpp -l | grep -i x11.dt
  X11.Dt.ToolTalk           5.3.0.60  COMMITTED     AIX CDE ToolTalk Support
  X11.Dt.bitmaps             5.3.0.0  COMMITTED     AIX CDE Bitmaps
  X11.Dt.helpmin             5.3.0.0  COMMITTED     AIX CDE Minimum Help Files
  X11.Dt.helprun             5.3.0.0  COMMITTED     AIX CDE Runtime Help
  X11.Dt.lib                5.3.0.60  COMMITTED     AIX CDE Runtime Libraries
  X11.Dt.rte                5.3.0.60  COMMITTED     AIX Common Desktop Environment
  X11.Dt.ToolTalk           5.3.0.60  COMMITTED     AIX CDE ToolTalk Support
  X11.Dt.bitmaps             5.3.0.0  COMMITTED     AIX CDE Bitmaps
  X11.Dt.helpmin             5.3.0.0  COMMITTED     AIX CDE Minimum Help Files
  X11.Dt.rte                5.3.0.60  COMMITTED     AIX Common Desktop Environment

If not, you need to install the X11 server. See below.

2. Installing the X11 server on an AIX machine

The X11 packages are on the #2 AIX installation CD, in the /installp/ppc/ directory.

To search for the proper package, once the CD has been installed in the CD-ROM drive of your AIX machine, you can issue the following commands:

# find /cdrom1 -name *dt* /cdrom1/installp/ppc/X11.adt /cdrom1/usr/sys/inst.images/X11.adt

Here, of course, the CD-ROM drive is mounted under /cdrom1.

If we list this directory, here is the content:

# cd /cdrom1/installp/ppc/
# ls
.toc                     X11.help.en_US           csm.gui.dcem_1.6.0.10
Java14.license           X11.loc.en_US            invscout.websm
Java14.sdk               X11.man.en_US            sysmgt.help.en_US
Java5.sdk                X11.motif                sysmgt.help.msg.en_US
X11.Dt                   X11.msg.en_US            sysmgt.msg.en_US.sguide
X11.Dt.other             X11.samples              sysmgt.msg.en_US.websm
X11.adt                  X11.vfb                  sysmgt.sguide
X11.apps                 X11.vsm                  sysmgt.websm
X11.base                 bos.aixpert              sysmgt.websm.diskarray
X11.compat.X11R5         bos.ecc_client           sysmgtlib.framework
X11.compat.other         bos.installers           sysmgtlib.libraries
X11.fnt                  csm.gui.dcem

Now, to install with smitty, type smitty as root, and go to "Software installation > Install software".

Next, select your CD-ROM device, and check the following configuration is correct:

                                Install Software

Type or select values in entry fields.       
Press Enter AFTER making all desired changes.

                                                        [Entry Fields]
* INPUT device / directory for software               /dev/cd1
* SOFTWARE to install                                [+ 5.3.0.60  AIX CDE A> +
  PREVIEW only? (install operation will NOT occur)    no                     +
  COMMIT software updates?                            yes                    +
  SAVE replaced files?                                no                     +
  AUTOMATICALLY install requisite software?           yes                    +
  EXTEND file systems if space needed?                yes                    +
  OVERWRITE same or newer versions?                   no                     +
  VERIFY install and check file sizes?                yes                    +
  Include corresponding LANGUAGE filesets?            yes                    +
  DETAILED output?                                    yes                    +
  Process multiple volumes?                           yes                    +
  ACCEPT new license agreements?                      yes                    + 
  PREVIEW new LICENSE agreements?                     no                     +

F1=Help             F2=Refresh          F3=Cancel           F4=List
F5=Reset            F6=Command          F7=Edit             F8=Image
F9=Shell            F10=Exit            Enter=Do                    

In the SOFTWARE to install, press "F4" (=List) and select all the CDE packages, using the list of packages above as a guide.

Next, press ENTER and the installation should proceed correctly.

3. How to start the X11 server

There are several possibilities here. Please keep in mind that I was trying to have a minimal X11 server, to allow one user to connect. I was not so much interested in correctness...

Two possibilities:

  • Use the dtlogin command as shown below:
# /usr/dt/bin/dtlogin -daemon
  • Use the /etc/rc.dt script as shown below:
# /etc/rc.dt

This script has the advantage of launching a full X11 environment, including a login prompt on the console.

In both cases, you can check the X11 server is running correctly with the following command:

andre@galactus$ ps -fe | grep -i dtlogin | grep -v grep root 94310 1 0 26 sep - 0:00 /usr/dt/bin/dtlogin -daemon root 147544 94310 0 26 sep - 0:00 dtlogin <:0> -daemon

4. Restart X11 in case of a crash or a misbehaving server

Please make sure you go through the entire list. This is a bit tedious, but it works very well, so make sure you go through all the steps and don't try to skip one...

  • Stop all "rc.bootx" processes:
# ps -fe | grep -i rc.bootx # kill -9 <rc.bootx PIDs>

WARNING: If there are ANY "rc.bootx" processes, they MUST be stopped before anything else!

  • Stop all "dtlogin" processes:
# ps -fe | grep -i dtlogin # kill -9 <dtlogin PIDs>

WARNING: Make sure there are no processes attached to the "dtlogin" processes...

  • Delete all temporary files:
cd /var/dt rm Xerrors rm Xpid

Sometimes, it could be interesting to keep a copy of the Xerrors file...

  • Check available space under /var and /tmp:

For instance:

-bash-3.00$ df -g /var /tmp Filesystem GB blocks Free %Used Iused %Iused Mounted on /dev/hd9var 1.02 0.29 72% 556 1% /var /dev/hd3 3.05 2.28 26% 1726 1% /tmp

This space-checking stage is optional, but you never know... :-)

  • Check that the "dtsrc" service is inoperative:

Do this with the following command:

$ lssrc -s dtsrc Subsystem Group PID Status dtsrc inoperative
  • Restart the service with "/etc/rc.dt" :
# /etc/rc.dt
  • Check that the "dtlogin" service is running:
bash-2.05b$ ps -fe | grep -i dtlogin | grep -v grep root 65704 1 0 Sep 09 - 0:00 /usr/dt/bin/dtlogin -daemon root 74118 65704 0 Sep 09 - 0:00 dtlogin <:0> -daemon
  • Check that the service is marked as "active":
bash-2.05b$ lssrc -s dtsrc Subsystem Group PID Status dtsrc active

See Also:


 출처 : http://www.gilandre.net/cgi-bin/wiki.cgi/AIXServerX11

반응형
반응형
  1. 설치 언어 선택

  • 영어로 선택하고 OK 클릭

 

Next > 클릭

  1. 설치 위치 선택

    기본적으로 c:\xampp 하는 것이 좋음(vista 일때 권한문제 포함)

Next > 클릭

  1. 선택 옵션

    Create a XAMPP desktop icon 체크 (기본 아이콘에 나오도록 설정)

    Create an Apache Friends XAMPP folder in the start menu 체크 (윈도우 시작메뉴에 나오도록 체크)

    SERVICE SECTION

    서비스를 수행하는 Apache 설치

    Install 클릭

    데이터 베이스 서비스를 수행하는 MySQL 설치

     

  2. 설치 완료 화면

    Finish 클릭

 

  1. 서비스 설치가 완료된 화면

  1. XAMPP 환경 설정 부분 (Y) 클릭

 

  1. 서비스를 Start(시작) / Stop(멈춤) 설정을 하는 콘트롤 패널 입니다.

    쉽게 말해서 서비스를 할려면 apache 시작되어야 하고

    데이터 베이스를 사용하기 위해서는 Mysql 시작되어야 합니다.

    Running 정상적으로 서비스 가동중이라는 뜻입니다.

   

 

반응형

'Language > PHP' 카테고리의 다른 글

플레쉬 차트 (OFC2JS) - Table2Chart  (0) 2010.01.19
정규표현식 테스트 필요할 때 보조 프로그램  (0) 2010.01.19
PHP 정규표현식  (0) 2010.01.18
eclipse 설정: Xdebug로 디버깅하기 with XAMPP 서버  (2) 2009.12.28
xampp  (0) 2009.12.28

+ Recent posts