|
|
Programming/Eclipse 2008/03/29 15:11
- JDK 가 설치되어 있지 않으면 JDK 인스톨. JRE 만으로도 괜찮지만 제대로 갖춰보자. ^^
2008/03/28 - [JAVA] - JDK 인스톨
- Eclipse 다운로드
http://www.eclipse.org/downloads
- 다운로드 한 파일을 적당한 곳에 압축풀기
c:\dev\eclipse
Trackback 0
:
Trackback Address :: http://breakpoint.a4box.com/trackback/37
Mobile 2008/03/28 23:36
Trackback 0
:
Trackback Address :: http://breakpoint.a4box.com/trackback/36
JAVA 2008/03/28 23:27
- 사이트로부터 JDK 다운로드
http://java.sun.com
- 다운로드 한 파일을 실행 , 인스톨. 적당한 디렉토리에...
c:\dev\java
- 시스템 환경변수 설정
JAVA_HOME 설정 패스(path) 설정
Trackback 0
:
Trackback Address :: http://breakpoint.a4box.com/trackback/35
雑談 2008/03/27 01:50
Top 5 Reasons It Sucks to Be an Engineering Student제목을 그지같은이라기보다 엿같은 이라고 하는게 나을려나? 짜증스러운 교과서 , 교수진에 대한 불만 , 카운셀링의 결여, 타과의 성적인플레 , 재미없는 숙제 등등.. 공대생이 느끼는 건 어느나라나 다 똑같은건가.
Trackback 0
:
Trackback Address :: http://breakpoint.a4box.com/trackback/33
PHP/Framework 2008/03/27 00:02
Trackback 0
:
Trackback Address :: http://breakpoint.a4box.com/trackback/32
Programming 2008/03/26 13:29
Trackback 0
:
Trackback Address :: http://breakpoint.a4box.com/trackback/31
PHP/Library 2008/03/15 11:49
Trackback 0
:
Trackback Address :: http://breakpoint.a4box.com/trackback/30
Linux/Commands 2008/03/11 22:44
- 쉘 설정파일을 읽어들여 적용
- csh,tcsh,bash 의 내부 커맨드
얼라이어스나 변수등의 설정파일을 변경후 재로그인하지않고 바로 반영시킬때 사용. [root@myspace ~]# source .bash_profile
Trackback 0
:
Trackback Address :: http://breakpoint.a4box.com/trackback/29
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
Trackback 0
:
Trackback Address :: http://breakpoint.a4box.com/trackback/28
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 도 있음.
Trackback 0
:
Trackback Address :: http://breakpoint.a4box.com/trackback/27
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 루트 초기 패스워드 설정
Trackback 0
:
Trackback Address :: http://breakpoint.a4box.com/trackback/26
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)
Trackback 0
:
Trackback Address :: http://breakpoint.a4box.com/trackback/25
Linux 2008/03/08 00:13
yum list , yum install 등등을 실행시키면 다음과 같은 에러가 발생하는 경우가 있다
............................ Parsing primary.xml error: Start tag expected, '<' not found 여기저기 조사, 검색해본 결과 결국 알아낸 원인이
libxml2 설치시 zlib 서포트 옵션을 지정하지 않고 설치시 에러 발생
- zlib Home Site 에서 소스 다운로드
http://zlib.net/ 2008.08.13 현재 1.2.3 이 최신 http://www.zlib.net/zlib-1.2.3.tar.gz
- 다운로드한 파일을 인스톨
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
- libxml2 설치
./configure --prefix=/usr --with-zlib=/usr/local/zlib/
2008.08.13 수정
참조 [PHP/Install] - PHP Source Install
Trackback 0
:
Trackback Address :: http://breakpoint.a4box.com/trackback/24
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
Trackback 0
:
Trackback Address :: http://breakpoint.a4box.com/trackback/22
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
Trackback 0
:
Trackback Address :: http://breakpoint.a4box.com/trackback/21
|