'2008/03'에 해당되는 글 25건

  1. 2008/03/29 Eclipse 인스톨
  2. 2008/03/28 ANDROID SDK 인스톨 (윈도우즈 환경)
  3. 2008/03/28 JDK 인스톨
  4. 2008/03/27 공대생이어서 그지같은 이유 5가지?
  5. 2008/03/27 PHP Framework 종류
  6. 2008/03/26 코드 리딩 (Code Reading)
  7. 2008/03/15 PHP 테스트 , 디버그툴
  8. 2008/03/11 [Linux Command] source 쉘 설정파일을 읽어들임
  9. 2008/03/11 [Linux Command] su , sudo
  10. 2008/03/11 어드레스 클래스
  11. 2008/03/10 MySQL 유저 어카운트 관리
  12. 2008/03/08 [Linux Command] ldd
  13. 2008/03/08 yum 실행시 에러
  14. 2008/03/05 SELINUX 무효화/ 유효화 설정
  15. 2008/03/04 [Linux Command] id 유저 정보 표시

Eclipse 인스톨

Programming/Eclipse 2008/03/29 15:11
  1. JDK 가 설치되어 있지 않으면 JDK 인스톨. JRE 만으로도 괜찮지만 제대로 갖춰보자. ^^
    2008/03/28 - [JAVA] - JDK 인스톨

  2. Eclipse 다운로드
    http://www.eclipse.org/downloads

  3. 다운로드 한 파일을 적당한 곳에 압축풀기
    c:\dev\eclipse


'Programming > Eclipse' 카테고리의 다른 글

Eclipse 인스톨  (0) 2008/03/29
tags : Eclipse, install, Java
Trackback 0 : Comment 0

ANDROID SDK 인스톨 (윈도우즈 환경)

Mobile 2008/03/28 23:36
사용자 삽입 이미지



  1. JDK 인스톨
    2008/03/28 - [JAVA] - JDK 인스톨


  2. Android 다운로드
    http://code.google.com/android/download.html

    사용자 삽입 이미지

    사용자 삽입 이미지



  3. 다운로드한 파일을 적당한 디렉토리에 압축풀기
    c:\dev\java\android

  4. 환경변수 설정
    ANDROID_HOME 설정
    패스 설정

  5. eclipse 인스톨
    2008/03/29 - [JAVA] - Eclipse 인스톨


  6. android 용 이클립스 플러그인 인스톨
    2008/04/14 - [JAVA] - android 용 이클립스 플러그인 인스톨






tags : Android, install, Java
Trackback 0 : Comment 0

JDK 인스톨

JAVA 2008/03/28 23:27
  1. 사이트로부터 JDK 다운로드
    http://java.sun.com



  2. 다운로드 한 파일을 실행 , 인스톨. 적당한 디렉토리에...
    c:\dev\java

  3. 시스템 환경변수 설정
    JAVA_HOME 설정
    패스(path) 설정

'JAVA' 카테고리의 다른 글

JDK 인스톨  (0) 2008/03/28
tags : install, Java, jdk
Trackback 0 : Comment 0

공대생이어서 그지같은 이유 5가지?

雑談 2008/03/27 01:50
Top 5 Reasons It Sucks to Be an Engineering Student

제목을 그지같은이라기보다 엿같은 이라고 하는게 나을려나?

짜증스러운 교과서 , 교수진에 대한 불만 , 카운셀링의 결여, 타과의 성적인플레 , 재미없는 숙제  등등..

공대생이 느끼는  건 어느나라나 다 똑같은건가.



Trackback 0 : Comment 0

PHP Framework 종류

PHP/Framework 2008/03/27 00:02

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

PHP Framework 종류  (0) 2008/03/27
Trackback 0 : Comment 0

코드 리딩 (Code Reading)

Programming 2008/03/26 13:29

http://i.loveruby.net/ja/misc/readingcode.html


http://www.jiniya.net/tt/609


'Programming' 카테고리의 다른 글

Sorting 알고리즘 애니메이션  (0) 2009/04/10
Canvas 태그 관련 링크  (0) 2008/05/13
Beautiful Code  (0) 2008/04/10
코드 리딩 (Code Reading)  (0) 2008/03/26
565 바이트의 테트리스 프로그래밍.  (0) 2007/11/22
tags : Code, reading
Trackback 0 : Comment 0

PHP 테스트 , 디버그툴

PHP/Library 2008/03/15 11:49
테스트 툴
디버그툴

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

PHP 디버그 툴 소개 Debuglib  (0) 2009/02/23
PHP 디버그 툴 소개 dBug  (0) 2009/02/23
PHP 개발자를 위한 10가지 유용한 소스  (0) 2008/11/04
태그클라우드  (0) 2008/07/01
PHP 테스트 , 디버그툴  (0) 2008/03/15
tags : Debug, php, test, tool
Trackback 0 : Comment 0

[Linux Command] source 쉘 설정파일을 읽어들임

Linux/Commands 2008/03/11 22:44
  • 쉘 설정파일을 읽어들여 적용
  • csh,tcsh,bash 의 내부 커맨드


얼라이어스나 변수등의 설정파일을 변경후 재로그인하지않고 바로 반영시킬때 사용.
[root@myspace ~]# source .bash_profile


tags : command, Linux
Trackback 0 : Comment 0

[Linux Command] su , sudo

Linux/Commands 2008/03/11 15:33
일반 유저로 로그인후 관리자 권한의 작업을 할경우 사용

su
  • 관리자가 소수일 경우

[root@myspace ~]# su --help
Usage: su [OPTION]... [-] [USER [ARG]...]
Change the effective user id and group id to that of USER.

  -, -l, --login               make the shell a login shell
  -g --group=group             specify the primary group
  -G --supp-group=group        specify a supplemental group
  -c, --commmand=COMMAND       pass a single COMMAND to the shell with -c
  --session-command=COMMAND    pass a single COMMAND to the shell with -c
                               and do not create a new session
  -f, --fast                   pass -f to the shell (for csh or tcsh)
  -m, --preserve-environment   do not reset environment variables
  -p                           same as -m
  -s, --shell=SHELL            run SHELL if /etc/shells allows it
  - 만 지정할 경우 -l 지정과 같은 의미.
  USER 를 지정하지 않으면 디폴트로 root 지정이 됨.

 

[admin@myspace ~]$ su
Password:               -> root 패스워드 입력
[root@myspace admin]#
 whoami
root                   

루트 패스워드만으로 루트권한을 가질수 있는 보안상의 불안함을 없애기 위해
밑의 sudo 를 사용하거나 특정그룹(wheel)멤버에게만 이용가능하도록 설정가능.


su 를 사용 금지 하도록 설정하는 방법

[root@myspace admin]# vi /etc/pam.d/su
#%PAM-1.0
auth            sufficient      pam_rootok.so
# Uncomment the following line to implicitly trust users in the "wheel" group.
#auth           sufficient      pam_wheel.so trust use_uid
# Uncomment the following line to require a user to be in the "wheel" group.

#auth           required        pam_wheel.so use_uid
->
auth           required        pam_wheel.so    -> 코멘트 없애고 use_uid 삭제

auth            include         system-auth
account         sufficient      pam_succeed_if.so uid = 0 use_uid quiet
account         include         system-auth
password        include         system-auth
session         include         system-auth
session         optional        pam_xauth.so
 

sudo
[root@myspace admin]# sudo
usage: sudo -K | -L | -V | -h | -k | -l | -v
usage: sudo [-HPSb] [-p prompt] [-u username|#uid]
            { -e file [...] | -i | -s | <command> }


설정
/etc/sudoers 파일에 설정.
sudoers 파일의 설정 , 편집은 visudo 커맨드로 행함.

[root@myspace ~]# visudo

## Sudoers allows particular users to run various commands as
## the root user, without needing the root password.
##
## Examples are provided at the bottom of the file for collections## of related commands, which can then be delegated out to particular
## users or groups.
##
## This file must be edited with the 'visudo' command.
## Host Aliases
## Groups of machines. You may prefer to use hostnames (perhap using
## wildcards for entire domains) or IP addresses instead.
# Host_Alias     FILESERVERS = fs1, fs2
# Host_Alias     MAILSERVERS = smtp, smtp2
## User Aliases
## These aren't often necessary, as you can use regular groups
## (ie, from files, LDAP, NIS, etc) in this file - just use %groupname
## rather than USERALIAS
# User_Alias ADMINS = jsmith, mikem
## Command Aliases
## These are groups of related commands...
## Networking
Cmnd_Alias NETWORKING = /sbin/route, /sbin/ifconfig, /bin/ping, /sbin/dhclient, /usr/bin/net, /sbin/iptables, /usr/bin/rfcomm, /usr/bin/wvdial, /sbin/iwconfig, /sbin/mii-tool## Installation and management of software
Cmnd_Alias SOFTWARE = /bin/rpm, /usr/bin/up2date, /usr/bin/yum
## Services
Cmnd_Alias SERVICES = /sbin/service, /sbin/chkconfig
## Updating the locate database
Cmnd_Alias LOCATE = /usr/sbin/updatedb
## Storage
Cmnd_Alias STORAGE = /sbin/fdisk, /sbin/sfdisk, /sbin/parted, /sbin/partprobe, /bin/mount, /bin
/umount

## Delegating permissions
Cmnd_Alias DELEGATING = /usr/sbin/visudo, /bin/chown, /bin/chmod, /bin/chgrp

## Processes
Cmnd_Alias PROCESSES = /bin/nice, /bin/kill, /usr/bin/kill, /usr/bin/killall

## Drivers
Cmnd_Alias DRIVERS = /sbin/modprobe

# Defaults specification

#
# Disable "ssh hostname sudo <cmd>", because it will show the password in clear.
#         You have to run "ssh -t hostname sudo <cmd>".
#
Defaults    requiretty

Defaults    env_reset
Defaults    env_keep = "COLORS DISPLAY HOSTNAME HISTSIZE INPUTRC KDEDIR \
                        LS_COLORS MAIL PS1 PS2 QTDIR USERNAME \
                        LANG LC_ADDRESS LC_CTYPE LC_COLLATE LC_IDENTIFICATION \
                        LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC \
                        LC_PAPER LC_TELEPHONE LC_TIME LC_ALL LANGUAGE LINGUAS \
                        _XKB_CHARSET XAUTHORITY"

## Next comes the main part: which users can run what software on
## which machines (the sudoers file can be shared between multiple
## systems).
## Syntax:
##
##      user    MACHINE=COMMANDS
##
## The COMMANDS section may have other options added to it.
##
## Allow root to run any commands anywhere
root    ALL=(ALL)       ALL

## Allows members of the 'sys' group to run networking, software,
## service management apps and more.
# %sys ALL = NETWORKING, SOFTWARE, SERVICES, STORAGE, DELEGATING, PROCESSES, LOCATE, DRIVERS

## Allows people in group wheel to run all commands
# %wheel        ALL=(ALL)       ALL

## Same thing without a password
# %wheel        ALL=(ALL)       NOPASSWD: ALL

## Allows members of the users group to mount and unmount the
## cdrom as root
# %users  ALL=/sbin/mount /mnt/cdrom, /sbin/umount /mnt/cdrom

## Allows members of the users group to shutdown this system
# %users  localhost=/sbin/shutdown -h now


 sudo 의 실행

 [root@myspace ~]# sudo more /etc/sudoers
tags : command, Linux, Su, sudo
Trackback 0 : Comment 0

어드레스 클래스

Network/TCP/IP 2008/03/11 00:59
IP어드레스 어드레스 클래스
 클래스 A  0 x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
 클래스 B  1 0 x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
 클래스 C  1 1 0 x x x x x x x x x x x x x x x x x x x x x x x x x x x x x


클래스 A
  • 최상위 1비트가 0.
  • 0.0.0.0 ~ 127.255.255.255 가 해당.
  • 넷마스크 값은 255.0.0.0
  • 네트워크 부분은 1바이트 , 호스트부분은 3바이트
  • 하나의 네트워크 어드레스가 가질수있는 최대의 호스트수가 각각 약 1600만대 정도(0.0.0 ~255.255.255)

클래스 B
  • 최상위 2비트가 1 , 0
  • 128.0.0.0 ~ 191.255.255.255
  • 넷마스크 값은 255.255.0.0

클래스 C
  • 최상위 3비트가 1,1,0
  • 192.0.0.0 ~ 223.255.255.255
  • 넷마스크 값은 255.255.255.0

이외에도 클래스 D , 클래스 E 도 있음.

'Network > TCP/IP' 카테고리의 다른 글

어드레스 클래스  (0) 2008/03/11
Trackback 0 : Comment 0

MySQL 유저 어카운트 관리

Database/MySQL 2008/03/10 02:39
MySQL 유저 추가
mysql> GRANT ALL ON *.* TO admin@localhost IDENTIFIED BY "xxxxxx";
Query OK, 0 rows affected (0.00 sec)
-> MySQL서버가 가동되고 있는 서버로부터 억세스하는 , 모든 데이터베이스의 모든 권한을 가지는 admin 어카운트, xxxxxx 패스워드로 작성

mysql> GRANT SELECT , DELETE ON sampleDB.* TO admin@192.168.1.55 IDENTIFIED BY "xxxxxx";
-> 리모트 호스트 192.168.1.55 로부터 억세스하는 , sampleDB의 SELECT , DELETE 권한을 가지는 admin 어카운트, xxxxxx 패스워드로 작성


MySQL 유저 패스워드 변경

[root@myspace bin]# ./mysqladmin -u  user1 -p password "xxxxxx"
Enter password:


참고 : 루트 패스워드 설정
-> 2008/03/02 - [Database/MySQL] - mysql 루트 초기 패스워드 설정


tags : MySQL, password, ROOT
Trackback 0 : Comment 0

[Linux Command] ldd

Linux/Commands 2008/03/08 02:21

특정 커맨드가 의존하고 있는 라이브러리 표시

[root@myspace mysql]# ldd --help
Usage: ldd [OPTION]... FILE...
      --help              print this help and exit
      --version           print version information and exit
  -d, --data-relocs       process data relocations
  -r, --function-relocs   process data and function relocations
  -u, --unused            print unused direct dependencies
  -v, --verbose           print all information


실행 예 .

[root@myspace mysql]# ldd /bin/bash
        linux-gate.so.1 =>  (0x00ddf000)
        libtermcap.so.2 => /lib/libtermcap.so.2 (0x00766000)
        libdl.so.2 => /lib/libdl.so.2 (0x00757000)
        libc.so.6 => /lib/libc.so.6 (0x00615000)
        /lib/ld-linux.so.2 (0x005f3000)
tags : Linux
Trackback 0 : Comment 0

yum 실행시 에러

Linux 2008/03/08 00:13
yum list , yum install 등등을 실행시키면
다음과 같은 에러가 발생하는 경우가 있다

............................
Parsing primary.xml error: Start tag expected, '<' not found

여기저기 조사, 검색해본 결과
결국 알아낸 원인이

libxml2 설치시 zlib 서포트 옵션을 지정하지 않고 설치시 에러 발생

  1. zlib Home Site 에서 소스 다운로드
    http://zlib.net/
    2008.08.13 현재 1.2.3 이 최신
    http://www.zlib.net/zlib-1.2.3.tar.gz
  2. 다운로드한 파일을 인스톨
    wget http://www.zlib.net/zlib-1.2.3.tar.gz
    tar zxvf zlib-1.2.3.tar.gz
    cd zlib-1.2.3
    ./configure --prefix=/usr/local/zlib
    make
    make install

  3. libxml2 설치
    ./configure --prefix=/usr --with-zlib=/usr/local/zlib/
2008.08.13 수정

참조
[PHP/Install] - PHP Source Install

'Linux' 카테고리의 다른 글

WINSCP 에서 업로드시 퍼미션 에러 메시지  (0) 2009/05/11
무료 Best Free Linux 북 20  (0) 2009/04/10
SSH 설정 - 루트(root) 로 로그인 금지  (0) 2008/08/13
yum 실행시 에러  (0) 2008/03/08
SELINUX 무효화/ 유효화 설정  (0) 2008/03/05
/etc/passwd 유저 정보 설정파일  (0) 2008/03/04
SELinux(Security-Enhanced Linux)  (0) 2008/03/02
Linux 참고 자료  (0) 2008/03/01
crontab 메모  (1) 2008/01/15
tags : libxml2, Linux, yum, zlib
Trackback 0 : Comment 0

SELINUX 무효화/ 유효화 설정

Linux 2008/03/05 00:45
[root@myspace ]# getenforce
Enforcing      --> selinux 유효화상태

[root@myspace ]# setenforce 0        --> selinux 무효화 상태

[root@myspace ]# getenforce
Permissive      --> selinux 무효화 상태

[root@myspace ]# vi /etc/sysconfig/selinux  
                     --> /etc/sysconfig/selinux 편집으로 시스템 기동시 무효화/유효화 설정

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#       enforcing - SELinux security policy is enforced.
#       permissive - SELinux prints warnings instead of enforcing.
#       disabled - SELinux is fully disabled.

SELINUX=disabled

# SELINUXTYPE= type of policy in use. Possible values are:
#       targeted - Only targeted network daemons are protected.
#       strict - Full SELinux protection.
SELINUXTYPE=targeted


 

'Linux' 카테고리의 다른 글

WINSCP 에서 업로드시 퍼미션 에러 메시지  (0) 2009/05/11
무료 Best Free Linux 북 20  (0) 2009/04/10
SSH 설정 - 루트(root) 로 로그인 금지  (0) 2008/08/13
yum 실행시 에러  (0) 2008/03/08
SELINUX 무효화/ 유효화 설정  (0) 2008/03/05
/etc/passwd 유저 정보 설정파일  (0) 2008/03/04
SELinux(Security-Enhanced Linux)  (0) 2008/03/02
Linux 참고 자료  (0) 2008/03/01
crontab 메모  (1) 2008/01/15
tags : Linux, SeLinux
Trackback 0 : Comment 0

[Linux Command] id 유저 정보 표시

Linux/Commands 2008/03/04 18:26

[root@myspace ~]# id --help
Usage: id [OPTION]... [USERNAME]
Print information for USERNAME, or the current user.

  -a              ignore, for compatibility with other versions
  -Z, --context   print only the context of the current process
  -g, --group     print only the effective group ID
  -G, --groups    print all group IDs
  -n, --name      print a name instead of a number, for -ugG
  -r, --real      print the real ID instead of the effective ID, with -ugG
  -u, --user      print only the effective user ID
      --help     사용법표시
      --version  버젼 정보 표시


[root@myspace ~]# id
uid=0(root) gid=0(root) 소속그룹=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk), 10(wheel) context=root:system_r:unconfined_t:SystemLow-SystemHigh

[root@myspace ~]# id mysql
uid=502(mysql) gid=502(mysql) 소속그룹=502(mysql) context=root:system_r:unconfined_t: SystemLow-SystemHigh


tags : Linux
Trackback 0 : Comment 0