2014년 1월 16일 목요일

IE11 (인터넷익스플로러 11) 호환성 보기 사용 방법

 

아직도 많은 사이트 환경이 웹표준화를 준수하지 않고 있다.
구축된지 오래된 사이트나 각종 active-x를 사용하는 공공기관, 관공서 사이트, 내부 인트라넷 사이트 등
최근에 IE11 버전이 윈도우즈 8.1 업그레이드와 함께 사용이 가능하며 윈도우즈7 의 경우에는 2013-10-17에 출시하였다.

본인의 경우에는 윈도우즈 업데이트 목록에 있길래 설치를 해봤는데, 개발자툴(f12) UI가 달라져서 적응하는 중이다.

그리고 호환성보기 모드가 사라져서 당황스러웠다. 개발자모드에서 변경이 가능하나 툴을 끄면 지속적용이 안되는지라 의아하던 중에 옵션에서 지원하는 것을 보고 공유하고자 포스팅을 한다.

image

에서

image
[추가] 버튼을 누르면 해당 도메인의 페이지는 모드 호환성모드 보기로 확인이 가능하다

 

끝!

2014년 1월 15일 수요일

아웃룩(2010, 2013) 자동 보내기/받기 안될 시

 

사내 마소 오피스 프로그램이 업데이트 되서 이번에 2013을 쓰게 되었다.
그런데 설치하자 자동 보내기/받기가 안되는 것이다 –_ –;

관련해서 각종 정보를 검색해본 결과 얼토당토 안하는 프로필 손상을 제외하고 가능성이 높은 아웃룩 자체 옵션을 조정하는 방법을 공유하고 포스팅 해본다.

1. 보내기/받기 그룹

image
위 스샷에서 “예정된 보내기/받기 실행 안 함” 옵션이 V로 체크되어 있는 경우 해제하기 (위 스샷은 해제된 상태

위 스샷의 보내기/받기 그룹 정의를 선택하면,
image
위와 같은 창이 뜬다. 여기에서 “매 ? 분마다 자동 보내기/받기” 체크하기. 분은 알아서 설정하자 (5분이 좋은듯)

그리고 [모든 계정]이 선택된 상태에서 우측의 “편집” 버튼을 누르면
image
위와 같은 창이 뜬다 여기에서 모든 메일 계정에 대해서

  • 다음 그룹에 선택한 계정 포함
  • 메일 항목 보내기
  • 메일 항목 받기

가 체크되어 있어야 한다.

아마 대부분의 경우에는 위의 설정만 해줘도 자동 보내기/받기가 문제없이 실행될 것이다.
만약 안될 경우 상황에 따라서 하단을 참조하자.

예외상황

  1. 타프로그램과 충돌 :
  2. 메일(outlook) 프로필 손상 – 결론은 새로 프로필 만드라는 내용 : http://answers.microsoft.com/ko-kr/office/forum/office_2003-outlook/%EC%95%84%EC%9B%83%EB%A3%A9-2013/3a113380-6959-4aeb-a049-3dea7a12e944

2014년 1월 14일 화요일

Windows Live Writer에 Blogger(blogspot) 연동해서 게시물 작성하기

 

글을 항상 웹 환경에서 쓰는 것이 간단한 일은 아니다.

일반적으로는 웹브라우저 환경에서 쓰는 것이 일상적이나 윈도우즈에서 기본으로 제공해 주는 Windows Live Writer을 이용해서 한 번 편한게 작성해 보자.

우선 Windows Live Writer을 설치해야한다.

http://www.microsoft.com/ko-kr/download/details.aspx?id=8621 로 접근해서 Writer을 설치한다.
보통은 라이브 팩으로 기타 등등이 깔리게 되어 있으니 직접 선택을 선택하는 센스를 보여주자.

 

image
기타 서비스 선택

 

image

  • 블로그 웹주소 주소 : http://www.blogger.com
  • 사용자이름 : 구글이메일계정
  • 암호 : 해당비밀번호

image

  • 현재 사용하고 있는 블로그 종류 : Blogger
  • 자동완성

 

후 다음을 누르면 해당 계정 정보가 등록된다.

그러면 새로 만들기를 하시고 포스팅을 하면 된다. 매우 간단간단!!!
자! 이제부터 각종 플러그인도 가져다 쓰고 강력하게 윈도우즈 어플리케이션 환경에서 간단에게 포스팅을 해보자

끝!

2014년 1월 8일 수요일

centos 6 에 mysql 을 yum으로 설치하기


 
## Remi Dependency on CentOS 6 and Red Hat (RHEL) 6 ##
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm




yum --enablerepo=remi,remi-test list mysql mysql-server






yum --enablerepo=remi,remi-test install mysql mysql-server





service mysqld start ## use restart after update
chkconfig --levels 235
mysqld on



service mysqld start ## use restart after update
chkconfig --levels 235
mysqld on






/usr/bin/mysql_secure_installation


 

 
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!
In order to log into MySQL to secure it, we\'ll need the current
password for the root user.  If you\'ve just installed MySQL, and
you haven\'t set the root password yet, the password will be blank,
so you should just press enter here.
Enter current password for root (enter for none):
OK, successfully used password, moving on...
Setting the root password ensures that nobody can log into the MySQL
root user without the proper authorisation.
Set root password? [Y/n] Y
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
... Success!
By default, a MySQL installation has an anonymous user, allowing anyone
to log into MySQL without having to have a user account created for
them.  This is intended only for testing, and to make the installation
go a bit smoother.  You should remove them before moving into a
production environment.
Remove anonymous users? [Y/n] Y
... Success!
Normally, root should only be allowed to connect from 'localhost'.  This
ensures that someone cannot guess at the root password from the network.
Disallow root login remotely? [Y/n] Y
... Success!
By default, MySQL comes with a database named 'test' that anyone can
access.  This is also intended only for testing, and should be removed
before moving into a production environment.
Remove test database and access to it? [Y/n] Y
- Dropping test database...
... Success!
- Removing privileges on test database...
... Success!
Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.
Reload privilege tables now? [Y/n] Y
... Success!
Cleaning up...
All done!  If you\'ve completed all of the above steps, your MySQL
installation should now be secure.
Thanks for using MySQL!








mysqladmin -u root password [your_password_here]





mysql -u root -p






## CREATE DATABASE ##
mysql> CREATE DATABASE webdb;

## CREATE USER
##
mysql> CREATE USER 'webdb_user'@'1.1.1.1' IDENTIFIED BY
'password123';

## GRANT PERMISSIONS ##
mysql> GRANT ALL ON webdb.*
TO 'webdb_user'@'1.1.1.1.';

## FLUSH PRIVILEGES, Tell the server TO
reload the GRANT TABLES ##
mysql> FLUSH PRIVILEGES;





방화벽 해제




#Edit /etc/sysconfig/iptables
file:
vi/etc/sysconfig/iptables

#아래 문자열 iptables 파일에 추가
# -A INPUT -m state --state NEW -m tcp
-p tcp --dport 3306 -j ACCEPT

# 방화벽 재시작
service iptables restart

# 커넥션 테스트
mysql -h dbserver_name_or_ip_address -u webdb_user -p
webdb



 

2014년 1월 3일 금요일

jetty9 에 jenkins 설치 시 오류 해결(HTTP ERROR: 503 Problem accessing /jenkins. Reason: Service Unavailable)


http://localhost:8080/jenkins 에 접근하면 아래와 같은 오류가 발생할 것입니다.

- HTTP ERROR: 503 Problem accessing /jenkins. Reason: Service Unavailable
java.lang.IllegalStateException: No LoginService for org.eclipse.jetty.security.authentication.FormAuthenticator in org.eclipse.jetty.security.ConstraintSecurityHandler
     
at org.eclipse.jetty.security.authentication.LoginAuthenticator.setConfiguration(LoginAuthenticator.java:44)
인증과 관련해서 발생하는 문제인데,
  1. jenkins.xml 파일을 추가하고
  2. realm.properties 를 추가하면 됩니다.


하단 예제를 보시기 전에 테스트 환경을 간략하게 알려드립니다.
  • JETTY_HOME = /srv/jetty
  • JETTY_PORT = 8081
  • JETTY_USER = jetty

권한 설정을 위해서 jenkins.xml 파일을 webapps에 생성합니다.
* jetty 9 부터는 contexts 폴더가 사라지고 관련 설정을 webapps 폴더에서 합니다.
# vi /srv/jetty/webapps/jenkins.xml
<?xml version="1.0"  encoding="ISO-8859-1"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">

<!-- ==================================================================
Configure and deploy the jenkins web application in $(jetty.home)/webapps/jenkins

Note. If this file did not exist or used a context path other that /jenkins
then the default configuration of jetty.xml would discover the jenkins
webapplication with a WebAppDeployer.  By specifying a context in this
directory, additional configuration may be specified and hot deployments 
detected.
===================================================================== -->

<Configure class="org.eclipse.jetty.webapp.WebAppContext">


  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <!-- Required minimal context configuration :                        -->
  <!--  + contextPath                                                  -->
  <!--  + war OR resourceBase                                          -->
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <Set name="contextPath">/jenkins</Set>
  <Set name="war"><SystemProperty name="jetty.home" default="."/>/webapps/jenkins.war</Set>

  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <!-- Optional context configuration                                  -->
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <Set name="extractWAR">true</Set>
  <Set name="copyWebDir">false</Set>
  <Set name="defaultsDescriptor"><SystemProperty name="jetty.home" default="."/>/etc/webdefault.xml</Set>
  <!--<Set name="overrideDescriptor"><SystemProperty name="jetty.home" default="."/>/webapps/jenkins.d/override-web.xml</Set>-->

  <Get name="securityHandler">
    <Set name="loginService">
      <New class="org.eclipse.jetty.security.HashLoginService">
        <Set name="name">Jenkins Realm</Set>
        <Set name="config"><SystemProperty name="jetty.home" default="."/>/etc/realm.properties</Set>
            <!-- To enable reload of realm when properties change, uncomment the following lines -->
            <!-- changing refreshInterval (in seconds) as desired                                -->
            <!-- 
           <Set name="refreshInterval">5</Set>
           <Call name="start"></Call>
           -->
      </New>
    </Set>
    <Set name="authenticator">
      <New class="org.eclipse.jetty.security.authentication.FormAuthenticator">
        <Set name="alwaysSaveUri">true</Set>
      </New>
    </Set>
    <Set name="checkWelcomeFiles">true</Set>
  </Get>

  <!-- Add context specific logger
 <Set name="handler">
   <New id="RequestLog" class="org.eclipse.jetty.server.handler.RequestLogHandler">
     <Set name="requestLog">
    <New id="RequestLogImpl" class="org.eclipse.jetty.server.NCSARequestLog">
      <Set name="filename"><Property name="jetty.logs" default="./logs"/>/jenkins-yyyy_mm_dd.request.log</Set>
      <Set name="filenameDateFormat">yyyy_MM_dd</Set>
      <Set name="append">true</Set>
      <Set name="LogTimeZone">GMT</Set>
    </New>
     </Set>
   </New>
 </Set>
 -->

</Configure>

만약 $JETTY_HOME/etc/realm.properties 파일이 존재하지 않으면 생성시켜줍니다.
  1. demo 에서 복사
# cp /srv/jetty/demo-base/etc/realm.properties /srv/jetty/etc
  2. 직접생성
# vi /srv/jetty/etc/realm.properties
#
# This file defines users passwords and roles for a HashUserRealm
#
# The format is
#  <username>: <password>[,<rolename> ...]
#
# Passwords may be clear text, obfuscated or checksummed.  The class
# org.eclipse.util.Password should be used to generate obfuscated
# passwords or password checksums
#
# If DIGEST Authentication is used, the password must be in a recoverable
# format, either plain text or OBF:.
#
jetty: MD5:164c88b302622e17050af52c89945d44,user
admin: CRYPT:adpexzg3FUZAk,server-administrator,content-administrator,admin,user
other: OBF:1xmk1w261u9r1w1c1xmq,user
plain: plain,user
user: password,user

# This entry is for digest auth.  The credential is a MD5 hash of username:realmname:password
digest: MD5:6e120743ad67abfbc385bc2bb754e297,user


마지막으로 다시 추가된 파일들을 위해서 권한 설정을 하고 재시작을 합니다.
# chown -R jetty:jetty /srv/jetty/webapps
chown -R jetty:jetty /srv/jetty/etc
# service jetty restart
curl http://localhost:8081/jenkins

CentOS 6 에서 jetty 9 설치하기 + jenkins

jetty 9 (현재 최신 버전)을 설치하는 하고 거기에 jenkins 까지 올려보겠습니다

STEP1 : jetty 설치

rpm이나 yum을 이용하고 싶으나 공식적인 저장소가 없으므로 기본적인 방법을 이용해보겠습니다.

먼저 jetty 9의 경우 JDK 1.7 버전이 요구됩니다.
# yum install java-1.7.0-openjdk
우선 tmp 폴더에 jetty를 다운로드 받습니다.(http://download.eclipse.org/jetty/stable-9/dist/ 에서 최신 버전을 확인합니다.)
# cd /tmp
# wget wget http://download.eclipse.org/jetty/9.1.0.v20131115/dist/jetty-distribution-9.1.0.v20131115.tar.gz -O jetty.tar.gz
tar -xf jetty.tar.gz

jetty라는 사용자를 생성하고 jetty를 /srv/jetty 경로로 이동시킵니다. 이제 /srv/jetty 가 jetty 홈경로입니다. 그리고 권한까지 생성합니다.
# useradd jetty
# mv jetty /srv
# chown -R jetty:jetty /srv/jetty
서비스에 등록한다.
# ln -s /srv/jetty/bin/jetty.sh /etc/init.d/jetty
# chkconfig --add jetty
# chkconfig jetty on
등록된 서비스를 수정한다. 최초 주석 아래쪽에 하단 내용을 추가한다. (본인의 경우 8081을 작동포트로 하였다.)
# vi /etc/init.d/jetty

# jetty에 추가할 내용
JETTY_HOME=/srv/jetty
JETTY_USER=jetty
JETTY_ARGS=jetty.port=8081
JETTY_LOGS=/srv/jetty/logs

8081 방화벽을 해제한다.
# vi /etc/sysconfig/iptables

# 방화벽에 추가할 내용
-A INPUT -m state --state NEW -m tcp -p tcp --dport 8081 -j ACCEPT
jetty를 기동하고 내용을 확인한다.
# service jetty start

# curl http://localhost:8081


1차적으로 jetty 가동까지는 확인하였습니다.


STEP2 : jenkins 설치


jetty 기본 webapps 경로에 jenkins.war 최신 버전을 다운로드합니다.
# cd /srv/jetty/webapps
# wget http://mirrors.jenkins-ci.org/war/latests/jenkins.war


권한 설정을 위해서 jenkins.xml 파일을 webapps에 생성합니다.
* jetty 9 부터는 contexts 폴더가 사라지고 관련 설정을 webapps 폴더에서 합니다.
#  /srv/jetty/webapps/jenkins.xml
<?xml version="1.0"  encoding="ISO-8859-1"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">

<!-- ==================================================================
Configure and deploy the jenkins web application in $(jetty.home)/webapps/jenkins

Note. If this file did not exist or used a context path other that /jenkins
then the default configuration of jetty.xml would discover the jenkins
webapplication with a WebAppDeployer.  By specifying a context in this
directory, additional configuration may be specified and hot deployments 
detected.
===================================================================== -->

<Configure class="org.eclipse.jetty.webapp.WebAppContext">


  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <!-- Required minimal context configuration :                        -->
  <!--  + contextPath                                                  -->
  <!--  + war OR resourceBase                                          -->
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <Set name="contextPath">/jenkins</Set>
  <Set name="war"><SystemProperty name="jetty.home" default="."/>/webapps/jenkins.war</Set>

  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <!-- Optional context configuration                                  -->
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <Set name="extractWAR">true</Set>
  <Set name="copyWebDir">false</Set>
  <Set name="defaultsDescriptor"><SystemProperty name="jetty.home" default="."/>/etc/webdefault.xml</Set>
  <!--<Set name="overrideDescriptor"><SystemProperty name="jetty.home" default="."/>/webapps/jenkins.d/override-web.xml</Set>-->

  <Get name="securityHandler">
    <Set name="loginService">
      <New class="org.eclipse.jetty.security.HashLoginService">
        <Set name="name">Jenkins Realm</Set>
        <Set name="config"><SystemProperty name="jetty.home" default="."/>/etc/realm.properties</Set>
            <!-- To enable reload of realm when properties change, uncomment the following lines -->
            <!-- changing refreshInterval (in seconds) as desired                                -->
            <!-- 
           <Set name="refreshInterval">5</Set>
           <Call name="start"></Call>
           -->
      </New>
    </Set>
    <Set name="authenticator">
      <New class="org.eclipse.jetty.security.authentication.FormAuthenticator">
        <Set name="alwaysSaveUri">true</Set>
      </New>
    </Set>
    <Set name="checkWelcomeFiles">true</Set>
  </Get>
 
  <!-- Add context specific logger
 <Set name="handler">
   <New id="RequestLog" class="org.eclipse.jetty.server.handler.RequestLogHandler">
     <Set name="requestLog">
    <New id="RequestLogImpl" class="org.eclipse.jetty.server.NCSARequestLog">
      <Set name="filename"><Property name="jetty.logs" default="./logs"/>/jenkins-yyyy_mm_dd.request.log</Set>
      <Set name="filenameDateFormat">yyyy_MM_dd</Set>
      <Set name="append">true</Set>
      <Set name="LogTimeZone">GMT</Set>
    </New>
     </Set>
   </New>
 </Set>
 -->

</Configure>

만약 $JETTY_HOME/etc/realm.properties 파일이 존재하지 않으면 생성시켜줍니다.
  1. demo 에서 복사
# cp /srv/jetty/demo-base/etc/realm.properties /srv/jetty/etc
  2. 직접생성
# vi /srv/jetty/etc/realm.properties
#
# This file defines users passwords and roles for a HashUserRealm
#
# The format is
#  <username>: <password>[,<rolename> ...]
#
# Passwords may be clear text, obfuscated or checksummed.  The class
# org.eclipse.util.Password should be used to generate obfuscated
# passwords or password checksums
#
# If DIGEST Authentication is used, the password must be in a recoverable
# format, either plain text or OBF:.
#
jetty: MD5:164c88b302622e17050af52c89945d44,user
admin: CRYPT:adpexzg3FUZAk,server-administrator,content-administrator,admin,user
other: OBF:1xmk1w261u9r1w1c1xmq,user
plain: plain,user
user: password,user

# This entry is for digest auth.  The credential is a MD5 hash of username:realmname:password
digest: MD5:6e120743ad67abfbc385bc2bb754e297,user


마지막으로 다시 추가된 파일들을 위해서 권한 설정을 하고 재시작을 합니다.
# chown -R jetty:jetty /srv/jetty/webapps
chown -R jetty:jetty /srv/jetty/etc
# service jetty restart
curl http://localhost:8081

확인하시면 됩니다.!!!!!!!!!!!!!!!!!!!!!