'61.Linux'에 해당되는 글 89건

  1. 2020.12.22 CentOS LVM resizing volume - root volume 줄이고 swap 늘이기
  2. 2020.12.22 [CentOS 7] LV(Logical Volume) 리눅스 파티션 줄이기 늘리기
  3. 2020.12.22 리눅스 폴더구조 및 용도
  4. 2020.12.21 jenkins 작업공간 변경
  5. 2020.12.21 CentOS minimal 설치 후 작업들
  6. 2020.12.21 Centos 7 설치시 파티셔닝
  7. 2020.12.21 리눅스 파티션 구분 1
  8. 2014.01.13 centos x window 설치
  9. 2012.10.18 [펌] Ubuntu 기본 설정#
  10. 2012.10.18 [펌] Disable GUI Boot in Ubuntu 11.10
  11. 2012.03.12 USB 메모리를 우분투 Live CD로 만들기 (초간단!)
  12. 2011.07.11 리눅스 시간 않맞을때 설정방법
  13. 2011.02.10 linux java 수동설치, Java Runtime Environment(JRE)에 대한 Linux x64 RPM 다운로드 및 설치 지침
  14. 2011.02.08 virtualbox ubuntu10 해상도 설정
  15. 2010.12.09 jeus Linux 설치
  16. 2010.02.09 damn small linux 패스워드 분실시
  17. 2010.02.09 리눅스 특정 폴더 파일 갯수 찾기
  18. 2010.02.09 리눅스 파일 갯수 확인 하기
  19. 2009.10.31 리눅스 많은 파일 한번에 압축 풀기
  20. 2009.10.09 [Linux] 리눅스에서 압축 풀기/하기
  21. 2009.08.18 linux ftp 폴더가 않보일때
  22. 2009.08.18 Fedora10에 FTP설치하기(vsftpd) 1
  23. 2009.08.17 [Fedora] Network
  24. 2009.08.17 [Fedora9] 네트워크 설정 및 방화벽 설정
  25. 2009.08.14 VirtualBox - Windows의 네트워크 브리지를 사용한 네트워크 구성(NAT 사용)
  26. 2009.08.14 liunx jdk5 설치
  27. 2009.08.14 linux jdk5 다운하는 곳
  28. 2009.08.14 linux java 설치
  29. 2009.08.14 Fedora 10의 X 윈도우 해상도 설정
  30. 2009.08.13 linux java 설치
61.Linux2020. 12. 22. 15:47
반응형

bugcide.blogspot.com/2013/09/centos-lvm-resizing-volume-root-volume.html

 

CentOS LVM resizing volume - root volume 줄이고 swap 늘이기

ebook, information technology, architecture 도서정보, IT소식, 시스템설계

bugcide.blogspot.com

 

Posted by 1010
61.Linux2020. 12. 22. 15:34
61.Linux2020. 12. 22. 15:05
반응형

blackpigstudio.tistory.com/category/%EA%B0%9C%EB%B0%9C/Server

 

'개발/Server' 카테고리의 글 목록

 

blackpigstudio.tistory.com

 

Posted by 1010
61.Linux2020. 12. 21. 16:07
61.Linux2020. 12. 21. 13:28
반응형

wincloud.link/pages/viewpage.action?pageId=7045123

 

CentOS minimal 설치 후 작업들 - Linux - winCloud Link

# Proxy 설정이 필요한 경우 yum proxy 설정부터 가장 먼저 실시한다. $ vi /etc/yum.conf   아래내용 추가 proxy=http:// # yum repository 를 초기화 하고, repolist 를 갱신하면 fastest plugin 이 동작하여 가장 빠른 서

wincloud.link

 

Posted by 1010
61.Linux2020. 12. 21. 13:16
반응형

blog.asamaru.net/2015/10/14/centos-7-install-partitioning/

 

Centos 7 설치시 파티셔닝

Linux 설치 과정에서 고민되는 것 중 하나가 파티션닝이다. 크게 중요하지 않은 상황이라면 자동으로 설정해주는 것을 그대로 사용하는 것이 편하긴하다. 설치 후에도 파티션을 변경할 수 있는

blog.asamaru.net

 

Posted by 1010
61.Linux2020. 12. 21. 12:49
61.Linux2014. 1. 13. 17:11
반응형

CentOS에서 GNOME 설치

1. yum -y groupinstall "X Window System" "GNOME Desktop Environment"

2. startx

------------------------------
X Window 부팅설정

vim /etc/inittab

id:3:initdefault:  3 -> 5 변경

 

Posted by 1010
61.Linux2012. 10. 18. 07:50
반응형

출처 : http://blessedsoft.org/wiki/Wiki.jsp?page=Linux.setup.basic

 

Ubuntu 기본 설정#

Ubuntu 12.04 서버 버전 설치#

컴퓨터 이름 설정 #

    sudo vi /etc/hostname
    sudo hostname __hostname__ 

네트워크 설정#

  • (옵션) mac addr 변경시 ubunt 기존 설정 삭제
   sudo rm /etc/udev/rules.d/70-persistent-net.rules
   (리부팅)

ip address 설정#

  • 고정 ip
$ sudo /etc/network/interfaces

auto eth0
iface eth0 inet static
address 122.199.xxx
netmask 255.255.xxx
gateway 122.199.xxx
dns-nameservers xxxx

File limit 해제#

$sudo gedit /etc/security/limits.conf

* soft nofile 32768
* hard nofile 32768

기본 업데이트#

  sudo apt-get update
  sudo apt-get upgrade

open ssh 서버 설치#

  sudo apt-get install openssh-server

방화벽 설정#

  netstat -tlnp
  sudo ufw enable
  sudo ufw allow 22/tcp 
  sudo ufw status

VNC 설정(VNC 원격 접속이 필요한 경우)#

vnc 설치#

    sudo apt-get install vnc4server 

사용자 session type을 ubuntu-2d로 변경
(로긴 화면에서 아이디 위의 버튼으로)#

암호 설정#

    $ sudo vncpasswd 

설정 변경#

    
$ vi .vnc/xstartup

#!/bin/sh

# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
gnome-session --session=ubuntu-2d &
# exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &

재시작#

    $ vnc4server -kill :1 (기존 공유 죽이기)
    $ vnc4server -geometry 1024x768

방화벽 풀기 (포트 2 개)#

JDK 설정#

sun jdk 1.6x 설치#

 sun jdk download \\  (scp 로 카피)

압축 해제#

    chmod 755 jdk-6u33-linux-x64.bin
     ./jdk-6u33-linux-x64.bin

이동 (디렉토리 이동임, / 입력 주의)#

    sudo mkdir /usr/lib/jvm
    sudo mv jdk1.6.0_33 /usr/lib/jvm/
    sudo ln -s /usr/lib/jvm/jdk1.6.0_33  /usr/lib/jvm/jdk1.6

jdk 설정#

    sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.6/bin/javac 1
    sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.6/bin/java 1
    sudo update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.6/bin/javaws 1

    sudo update-alternatives --config javac
    sudo update-alternatives --config java
    sudo update-alternatives --config javaws

확인#

    java -version
    rm jdk-6u33-linux-x64.bin
Posted by 1010
61.Linux2012. 10. 18. 05:46
반응형

출처 : http://www.techienote.com/2012/01/disable-gui-boot-in-ubuntu-11-10.html

Is it possible to disable GUI / X at boot time? So many Ubuntu 11.10 Desktop edition users are asking the same question. On my ubuntu machine I have done following steps to disable GUI boot in ubuntu 11.10

Step 1 First update your repository by running

sudo apt-get update

Step 2 There is some bug in old version of lightdm, so we need to upgrade the same. To do so run,

sudo apt-get install lightdm

Step 3 Now we have to modify grub config.
Step 3a Open /etc/default/grub with your faviourite editor and change

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

to

GRUB_CMDLINE_LINUX_DEFAULT="text"

Step 3b Also comment GRUB_HIDDEN_TIMEOUT=0 This line is for unhiding the GRUB menu

Step 4 Now we will upgrade GRUB configuration

sudo update-grub

Step 5 Ubuntu 11.10 Desktop edition use lightdm for GUI. We need to disable the same

sudo update-rc.d -f lightdm remove

Step 6 Now restart your machine. Voilla you will be in console mode

At any time you need after booting your system you want to change to gui mode the run

startx

If you want to restore Ubuntu’s GUI mode then

Open /etc/default/grub with your faviourite editor and change

GRUB_CMDLINE_LINUX_DEFAULT="text"

to

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Update GRUB by running

sudo update-grub

To restore lightdm run

sudo update-rc.d lightdm defaults

That’s it

Posted by 1010
61.Linux2012. 3. 12. 16:16
반응형

예전엔 우분투(ubuntu) 같은 리눅스를 설치하려고 CD를 굽곤 했었는데요, 요즘엔 USB 부팅을 많이 지원하기 때문에 굳이 CD로 구울 필요가 없어졌습니다. "남는 USB 메모리를 우분투 Live CD로 만들기"입니다.

1.우분투 공식 사이트, 혹은 우분투 한국 사용자 모임(www.ubuntu.or.kr)에서 ISO 이미지를 내려받습니다.

2. Universal USB Installer 를 내려받아 실행합니다.

3. ISO 이미지 파일과 USB 드라이브 경로를 선택하고 create 를 누릅니다.


4. 침착하게 기다리면 끝!


이제 이 USB로 다른 PC에서 우분투 Live로 부팅해 우분투를 쓰거나 install 할 수 있습니다.

ps.
Universal USB Installer 대신 UNetbootin를 사용해도 동일합니다.


출처 : http://blog.doortts.com/
Posted by 1010
61.Linux2011. 7. 11. 15:01
반응형
date

rdate -s time.bora.net
Posted by 1010
61.Linux2011. 2. 10. 11:24
반응형

Java Runtime Environment(JRE)에 대한 Linux x64 RPM 다운로드 및 설치 지침


적용 대상::
  • 플랫폼: Red Hat Linux, SUSE Linux
  • 브라우저: Mozilla 1.4+
  • Java 버전: 1.5.0

다음 단계에 따라 Linux용 JRE를 다운로드하여 설치합니다.
  1. 다운로드
  2. 설치


Linux 시스템 요구 사항

플랫폼 버전 메모리 브라우저 디스크 공간
LINUX 32비트
Intel IA32 Red Hat 9.0 64MB Mozilla 1.4+ 58MB
Red Hat Enterprise Linux AS 3.0 64MB
Red Hat Enterprise Linux WS 2.1 64MB
Red Hat Enterprise Linux ES 2.1 64MB
Red Hat Enterprise Linux AS 2.1 64MB
SuSE 8.2 64MB
SLEC 8 64MB
SLES 8 64MB
TurboLinux 8.0 64MB
Sun Java Desktop System, Release 1 64MB
Sun Java Desktop System, Release 2 64MB

AMD Opteron 32비트 Red Hat Enterprise Linux AS 3.0
SLES 8

LINUX 64비트
AMD Opteron 64비트 Red Hat Enterprise Linux AS 3.0
Mozilla 1.4+ 56MB
SLES 8




I. 다운로드
  1. http://java.com 으로 이동합니다.
  2. Java 소프트웨어 다운로드 버튼을 누릅니다.

    주: Linux RPM(Redhat Package Manager)은 RPM을 사용하여 JRE를 설치합니다. 이 방법을 사용하려면 시스템에서 RPM을 사용할 수 있어야 합니다.

    주: 다음은 JRE 1.5.0_02 설치를 위한 지침입니다. 다른 버전을 설치하는 경우에는 터미널에 명령을 입력할 때 버전 번호를 적절하게 변경하십시오.
RPM Linux x64 다운로드 버튼을 누릅니다.
  1. Linux RPM x64 패키지 옆에 있는 다운로드 버튼을 누릅니다.
  2. 다운로드한 후 다음을 확인합니다.
  3. Linux RPM x64 패키지의 경우
    • 파일 이름이 jre-1_5_0_02-linux-amd64-rpm.bin입니다.
    • 크기가 약 14.91MB입니다.
II. Linux RPM x64 파일을 설치하려면

다음 지침을 따릅니다.
  1. 터미널에 다음을 입력합니다.
    su
  2. 루트 암호를 입력합니다.
  3. 설치할 디렉토리로 변경합니다. 다음을 입력합니다.
    cd
    예를 들어 소프트웨어를 /usr/java/ 디렉토리에 설치하는 경우 다음과 같이 입력합니다.
    cd /usr/java

    루트 액세스에 대한 참고 사항: JRE를 /usr/local과 같은 시스템 차원의 위치에 설치하려는 경우 필요한 권한을 얻으려면 루트 사용자로 로그인해야 합니다. 루트 액세스 권한이 없으면 JRE를 홈 디렉토리나 쓰기 권한이 있는 하위 디렉토리에 설치합니다.
  4. 다운로드한 파일을 실행할 수 있도록 권한을 변경합니다. 다음을 입력합니다.
    chmod a+x jre-1_5_0_02-linux-amd64-rpm.bin
  5. 파일을 실행할 권한이 있는지 확인합니다. 다음을 입력합니다.
    ls -l
설치 파일에 대한 권한 변경
  1. 설치 프로세스를 시작하려면 다음을 입력합니다.
    ./jre-1_5_0_02-linux-amd64-rpm.bin
    주: 파일이 현재 디렉토리에 들어 있는 경우는 파일 앞에 './'를 추가해야 합니다.

    이진 라이센스 계약서가 표시됩니다. 계약서를 자세히 읽어보십시오. 스페이스바를 누르면 다음 페이지가 표시됩니다. 계약서 끝에서 yes를 입력하여 설치를 계속합니다.
Yes를 입력하여 라이센스 계약에 동의
  1. 설치 파일이 현재 디렉토리에 jre-1_5_0_02-linux-amd64.rpm 파일을 만듭니다.
  2. 터미널에서 RPM 명령을 실행하여 패키지를 설치합니다. 다음을 입력합니다.
    rpm -iv jre-1_5_0_02-linux-amd64.rpm
RPM 압축 풀림 완료
  1. JRE가 현재 디렉토리의 1.5.0_(버전 번호) 하위 디렉토리에 설치됩니다. 여기서는 /usr/java 디렉토리에 설치됩니다. jre1.5.0_02 하위 디렉토리가 현재 디렉토리 아래에 나열되는지 확인합니다. 다음을 입력합니다.
    ls
설치 확인
  1. 디스크 공간을 절약하려면 bin 파일과 rpm 파일을 삭제합니다.
  2. 루트 셸을 끝냅니다.
Posted by 1010
61.Linux2011. 2. 8. 14:53
반응형
#sudo apt-get install virtualbox-ose-guest-x11
#sudo reboot
Posted by 1010
61.Linux2010. 12. 9. 13:29
반응형

[tmax@test ~]$ ./jeus50-unix-vm.bin

Preparing to install...

Extracting the JRE from the installer archive...

Unpacking the JRE...

Extracting the installation resources from the installer archive...

Configuring the installer for this system's environment...


Launching installer...


Preparing CONSOLE Mode Installation...


===============================================================================

JEUS5.0                           (created with InstallAnywhere by Macrovision)

-------------------------------------------------------------------------------





===============================================================================

Introduction

------------


InstallAnywhere will guide you through the installation of JEUS5.0.


It is strongly recommended that you quit all programs before continuing with

this installation.


Respond to each prompt to proceed to the next step in the installation.  If you

want to change something on a previous step, type 'back'.


You may cancel this installation at any time by typing 'quit'.


PRESS <ENTER> TO CONTINUE:




===============================================================================

License Agreement

-----------------


Installation and use of JEUS5.0 requires acceptance of the following License

Agreement:


JEUS (Java Enterprise User Solution) Release JEUS5.x

TmaxSoft Co., Ltd. (hereafter, TmaxSoft) End-User License Agreement


Product : JEUS


This is a legal agreement between you (either an individual or an company) and

TmaxSoft, Incorporated.  By opening the sealed software package and/or by using

the software, you agree to be bound by the terms of this agreement.


TmaxSoft License

1.  Grant of License:  This TmaxSoft License Agreement ("License") permits you

to use one copy of the TmaxSoft product JEUS, on any single computer, provided

the software is in use on only one computer at any one time.  If this package

is a license pack, you may make and use additional copies of the software up to

the number of licensed copies authorized.  If you have multiple licenses for

the software, then at any time you may have as many copies of the software in

use as you have licenses.

  The software is "in use" on a computer when it is loaded into the temporary

memory (i.e., RAM) or installed into the permanent memory (e.g., hard disk,

CD-ROM, or other storage devices) of that computer, except that a copy

installed on a network server for the sole purpose of distribution to other

computers is not "in use".  If the anticipated number of users of the software

will exceed the number of applicable licenses, then you must have a reasonable


PRESS <ENTER> TO CONTINUE:


mechanism or process in place to ensure that the number of persons using the

software concurrently does not exceed the number of licenses.


2.  Copyright:  The software (including any images, "applets," photographs,

animations, video, audio, music and text incorporated into the software) is

owned by TmaxSoft or its suppliers and international treaty provisions.

Therefore, you must treat the software like any other copyrighted materials

(e.g., a book or musical recording) except that you may either (a) make one

copy of the software solely for backup or archival purposes, or (b) transfer

the software to a single hard disk provided you keep the original solely for

backup or archival purposes.  You may not copy the printed materials

accompanying the software, nor print copies of any user documentation provided

in "online" or electronic form.


3.  Other restrictions: This license is your proof of license to exercise the

rights granted herein and must be retained by you. You may not rent, lease, or

transfer your rights under this license on a permanent basis provided you

transfer this license, the software, and all accompanying printed materials,

retain no copies, and the recipient agrees to the terms of this license. You

may not reverse engine, decompile, or disassemble the software, except to the

extent that the foregoing restriction is expressly prohibited by applicable

law.


PRESS <ENTER> TO CONTINUE:




DO YOU ACCEPT THE TERMS OF THIS LICENSE AGREEMENT? (Y/N): Y




===============================================================================

Choose Platform

---------------


Choose current system ( OS - architectures  )

1)HP-UX PA-RISC

2)Solaris Ultra-Sparc

3)AIX Power PC

4)Linux i386

Quit) Quit Installer


Choose Current System (DEFAULT: 4): 4





===============================================================================

Choose Install Folder

---------------------


Where would you like to install?


  Default Install Folder: /home/tmax/jeus5


ENTER AN ABSOLUTE PATH, OR PRESS <ENTER> TO ACCEPT THE DEFAULT

      :




===============================================================================

Choose Install Set

------------------


Please choose the Install Set to be installed by this installer.


  ->1- Full Install

    2- Typical


ENTER THE NUMBER FOR THE INSTALL SET, OR PRESS <ENTER> TO ACCEPT THE DEFAULT

   : 1




===============================================================================

Choose JDK Folder

-----------------


Please Choose a Folder:


Input User JDK Folder (DEFAULT: /usr):





===============================================================================

Password Input

--------------


Enter the Password for the administrator account.

This password will be registered in JEUS as the first user.


Input Password::


--------------------------

 This is a Wrong Password

--------------------------

    Above 7 characters


    a ~ z  A ~ Z  0 ~ 9


Input Password::


Corfirm Password::




===============================================================================

Pre-Installation Summary

------------------------


Please Review the Following Before Continuing:


Product Name:

    JEUS5.0


Install Folder:

    /home/tmax/jeus5


Install Set

    Full Install


Disk Space Information (for Installation Target):

    Required:  253,712,462 bytes

    Available: 94,800,117,760 bytes


PRESS <ENTER> TO CONTINUE:




===============================================================================

Installing...

-------------


 [==================|==================|==================|==================]

 [------------------|------------------|------------------|------------------]




===============================================================================

Installation Complete

---------------------


Congratulations! JEUS5.0 has been successfully installed to:


/home/tmax/jeus5


Press Done to quit the installer.


PRESS <ENTER> TO EXIT THE INSTALLER:

[tmax@test ~]$

Posted by 1010
61.Linux2010. 2. 9. 17:42
반응형
damn small linux 패스워드 분실시

1. sudo su

2. passwd root.

3. 원하는 패스워드 입력
Posted by 1010
61.Linux2010. 2. 9. 16:36
반응형
find . -name *.jsp | wc -l
Posted by 1010
61.Linux2010. 2. 9. 16:32
반응형

find . -name "*.jsp" > list.txt
wc -l list.txt

Posted by 1010
61.Linux2009. 10. 31. 23:24
반응형
find . -name "*.tar.gz" -exec tar xvzf{}\;
Posted by 1010
61.Linux2009. 10. 9. 20:53
반응형
 [압축하기]

# tar -cvf filename.tar /directory                          // 한개의 파일로 묶는다.

# gzip -f filename.tar                                           // 압축한다.

# split -b 600m filename.tar.gz filename.tar.gz_   // 분할한다.

 [압축풀기]

# cat filename.tar.gz_* > filename.tar.gz             // 합치기

# gunzip filename.tar.gz                                      // 압축풀기

# tar -xvf filename.tar                                         // 묶음풀기


Posted by 1010
61.Linux2009. 8. 18. 17:34
반응형
ftp 실행시 폴더가 보이지 않을때

setsebool -P ftp_home_dir=1
Posted by 1010
61.Linux2009. 8. 18. 11:51
반응형
출처 : http://anglehun.tistory.com/129

1. 설치되어 있나 확인하기
rpm -qa | grep vsftpd

2. 설치하기
yum install vsftpd

3. 설정하기
FTP서비스 시작 : /etc/rc.d/init.d/vsftpd start
FTP서비스 종료 : /etc/rc.d/init.d/vsftpd stop
FTP서비스 재시작 : /etc/rc.d/init.d/vsftpd restart
부팅시 자동실행 : chkconfig vsftpd on
설정파일 : /etc/vsftpd/vsftpd.conf

1) home디렉토리 상위로 이동금지
    chroot_list_enable=YES
    chroot_local_user=YES
    설정후 접속할 때 /etc/vsftpd.chroot_list 파일이 없다는 오류가 발생하게 되면,
    해당파일을 생성해줍니다.
제외계정명을 해당파일에 넣어줍니다.
2) 동시 접속자수 제한
    max_clients=10  (숫자만큼 제한)
3) IP당 접속자수 제한
    max_per_ip=2 (수자만큼 제한)

4. 시스템->관리->방화벽->신뢰하는 서비스->FTP 체크 후 적용

5. 사용자 추가하기
#useradd -M ID : ID를 추가
#mkdir /ftpdata
#mkdir /ftpdata/ID : 사용자 디렉토리 생성(사용자 로그인 디렉토리)
#usermod -d /ftpdata/ID ID : 사용자 디렉토리 연결
#chown -R ID:ID /ftpdata : ID에 대한 권한 변경(읽기/쓰기/실행 가능)
#passwd ID : ID에 대한 패스워드 부여

6. 사용자 폴더를 제외한 폴더 접근 제한
#vi /etc/vsftpd/vsftpd.conf

맨 아래에 다음과 같이 코드를 추가해준다.
chroot_local_user=YES

#/etc/rc.d/init.d/vsftpd restart : vsftpd 서비스 재시작
Posted by 1010
61.Linux2009. 8. 17. 20:27
반응형
출처 : http://anaron.egloos.com/73366

※ 리눅스에서의 네트워크 장치 이름

    랜카드 장착시 -> '/dev/eth0'  ,  '/dev/eth1'  ,  ...




☆ IP 주소

- 각 컴퓨터 랜카드에 부여되는 고유한 주소

예) 255 . 255 . 255 . 255




☆ 네트워크 주소

- 같은 네트워크에 있는 공통된 주소.

- 각 IP에 서브넷 마스크( C클래스의 경우 : 255 . 255 . 255 . 0 ) 를 XOR하면 나오는 주소.


예)  리눅스 서버 IP          : 192 . 168 . 184 . 100

      리눅스 클라이언트 IP : 192 . 168 . 184 . 200

      윈도우 클라이언트 IP : 192 . 168 . 184 . 201


      >> 굵은 부분이 네트워크 주소

      >> 밑줄 부분이 사설 네트워크 주소

           : 외부와 분리된 별도의 네트워크 공인 IP가 부족할때 사용함.




☆ Broadcast

- 내부 네트워크의 모든 컴퓨터가 듣게되는 주소.

- 네트워크 주소 + 255

   예)  ( C클래스 )  192 . 168 . 184 . 255




☆ Gateway , Router

- 게이트웨이 = 라우터

- 네트워크 간에 데이터를 전송하는 장비 또는 컴퓨터.

- 외부 네트워크로 나가기 위한 통로.

- 게이트웨이 주소 마지막 숫자는 관리자가 정하기 나름.

※ 게이트웨이 를 별도로 추가시

    # route  add  default  gw  <게이트웨이 주소>  dev  <장치 이름>

    예)  # route  add  default  gw  192.168.184.254  dev  eth0




☆ Net Mask  &  Class


- 넷마스크 : 네트워크의 규모를 등급별로 결정함.

- C 클래스 : 256개의 IP주소 사용가능

                 예)  네트워크 주소 : 192 . 168 . 184 . 0
                       넷마스크 주소 : 255 . 255 . 255 . 0

- B 클래스 : 65536개의 IP주소 사용가능 ( 2^16 )

                 예)  네트워크 주소 : 192 . 168 . 0 . 0
                       넷마스크 주소 : 255 . 255 . 0 . 0

- A 클래스 : 2^24 개의 IP주소 사용가능

                 예)  네트워크 주소 : 192 . 0 . 0 . 0
                       넷마스크 주소 : 255 . 0 . 0 . 0


※ 설치 가능한 컴퓨터 갯수

    네트워크 주소, 브로드 캐스트 주소, 게이트 웨이 주소 3개를 제외한

    갯수의 컴퓨터를 네트워크 내부에 설치할 수 있다. (C클래스의 경우 256-3 = 253대)




☆ DNS 서버 주소

- URL을 해당 컴퓨터의 IP주소로 변환해주는 서버 컴퓨터의 주소

- 설정 파일  :  /etc/resolv.conf

                    ------------------------------------
                    ........

                    Default  Server : *****                       // DNS 제공자

                    nameserver < ***.***.***.*** >         // 해당 DNS 서버 IP
                    ........

                    ------------------------------------




☆ 네트워크 관련 명령어


ⓐ # system-config-network

    - 네트워크 연결방식을 DHCP 클라이언트 또는 고정 IP 주소를 사용할지 결정

    - IP 주소 , 서브넷 마스크 , 게이트웨이 정보

    - DNS 정보

    - 네트워크 카드 드라이버 설정 , 장치 (eth0) 설정


ⓑ # system-config-network-tui

    - Text User Interface  :  네트워크 설정의 텍스트 모드


ⓒ # service  network  restart

    - 네트워크 설정 변경후 변경 내용을 시스템에 적용 (네트워크 서비스 재시작)


ⓓ # ifconfig < 장치 이름 >

    - 해당 장치의 IP 주소 설정 정보를 출력


ⓔ # nslookup

    - DNS 서버작동 테스트


ⓕ # ping

    - 네트워크에 응답 테스트




☆ 네트워크 설정 변경 관련 파일

 /etc/sysconfig/network                                 // 기본 정보

 /etc/sysconfig/network-scripts/ifcfg-eth0       // eth0 에대한 정보 몽창..

/etc/resolv.conf                                            // DNS 서버정보 및 호스트 이름 정보




☆ 네트워크 카드 교체

- 실제로 네트워크 카드에 문제가 발생시 적용시킬수 있다.


1. 네트워크 카드를 제거.

2. 네트워크 카드를 새로 장착.

3. root 로 부팅~

4. # system-config-network

5. "하드웨어" 탭  →  'eth0' 지우기

                       [새로만들기]  →  하드웨어 타입 'Ethernet' 선택

                       →  <네트워크 아답터 설정 창>  →  아답터 'AMD PCnet32' 선택

6. "장치" 탭  →  [새로만들기]  →  '이더넷 연결' 선택  →  'AMD PCnet32' 선택

                       →  <네트워크 셋팅 설정 창>  →  '정적으로 설정된 IP 주소들' 선택

                       →  네트워크 정보 입력

7. "DNS" 탭  →  DNS 주소 확인

8. 완료 (창닫기 or  메뉴 [파일]-[끝내기] 선택)

9. # service  network  restart            // 서비스 재시작

10. # ping  www.google.co.kr          //  응답확인

11. # ifconfig  eth0                          //  네트워크 설정 확인




☆ 네트워크 설정 - Text Mode

# vi  /etc/sysconfig/network         // 확인

# vi /etc/sysconfig/network-scripts/ifcfg-eth0

   다음 사항을 수정한다.

   ----------------------------------------------------

   ..............

   NETMASK = *** . *** . *** . ***              // 넷마스크

   IPADDR = *** . *** . *** . ***                  // IP 주소
   ..............

   GATEWAY = *** . *** . *** . ***             // 게이트 웨이 주소
   ..............

   ----------------------------------------------------

# service  network  restart




☆ 네트워크 설정 - Command Mode

# ifconfig  eth0  <IP 주소>  netmask  <넷마스크>  broadcast  <브로드캐스트 주소>  up

# route  add  -net  <네트워크 주소>  netmask  <넷마스크>  eth0

# route  add  default  gw  <게이트웨이 주소>  dev  eth0

# vi /etc/resolv.conf          // DNS 설정

# service  network  restart





※  인터넷이 잘 안될때 , DNS 서버 고장을 의심해보자

ⓐ DNS 서버 작동 확인하기

    # nslookup

    > server                     // 사용중인 DNS 서버 주소확인,  "Default server :" 이후에 나오는 주소가 DNS주소

    > www.google.co.kr

       ;; connection timed out; no servers could be reached

        위와 같은 에러 메시지가 나온다면 DNS 서버가 고장나거나, DNS 서버의 주소가 잘못된것.


ⓑ 다른 컴퓨터에서 DNS 주소 따오기

     windows 인경우 : cmd 창에서 'nslookup' 명령으로 DNS 주소 획득~

     linux 인 경우 :  위 ⓐ방법으로 확인


ⓒ 가져온 DNS 주소 확인하기

    # nslookup

    > server  <새로운 DNS 주소>

    > www.google.co.kr               // DNS 서버 작동 확인


ⓓ 정상 작동하는 DNS 주소 적용하기

    # vi  /etc/resolv.conf               // 'nameserver' 부분 수정
Posted by 1010
61.Linux2009. 8. 17. 20:08
반응형

출처 : http://wiz.pe.kr/451

0. 들어가기 전에

이 글은 [Fedora 9] 간단하게 리눅스 서버 만들기의 일부로 작성된 글입니다.
개별 기능들에 대한 내용은 전체적인 흐름과 환경에 영향을 받을 수 있다는 점을 참고하세요.
목표 시스템은 아래와 같습니다.

1차 목표 시스템 (Fedora Core 9 + Apache + PHP + MySQL + fastCGI + Textcube)
Linux : Linux reds 2.6.25.14 (Fedora Core 9)
Apache : httpd-2.2.9-1
PHP : php-5.2.6-2
MySQL : mysql-5.0.51

1. 네트워크 설정

// 네트워크와 호스트 명 설정
# vi /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=fedora.wiz.pe.kr

// 네트워크 인터페이스 설정
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
NM_CONTROLLED=yes
IPADDR=[IP주소]
NETMASK=255.255.255.0
GATEWAY=[Gateway 주소]
DNS1=168.126.63.1
TYPE=Ethernet
USERCTL=no
IPV6INIT=no

// 기본 DNS 설정
# vi /etc/resolv.conf
nameserver 168.126.63.1
// 네트워크서비스 자동 시작 해제
# chkconfig NetworkManager off
// 네트워크서비스 중지
# service NetworkManager stop
// 네트워크 자동 시작 등록
# chkconfig network on
// 네트워크 시작
# service network start

IP와 게이트웨이 설정 등에 대한 이야기는 그냥 넘어가겠습니다. 가장 중요한 부분은 "설치 후 기본환경 설정"에서 이야기 했던 것처럼 networkservice 를 죽이고, network 만 설정을 해야 합니다. NetworkManager는 무선랜 환경 등 동적인 네트워크 환경을 지원하기 위한 부분인데 서버에서 약간의 문제가 있어서 나타나는 현상이라고 합니다. 관련 내용은 Personal Fedora 9 Installation GuideNetworkManager를 참고하세요.

2. 방화벽 설정

2.1 방화벽 해제

// 방화벽 설정 해제
# lokkit
- disable 설정

외부에서 접근이 가능하도록 방화벽은 관리 기능을 이용해 해제를 해줍니다

2.2 selinux 해제

fedora는 selinux를 통해 보안 정책을 관리 하도록 되어 있습니다. 방화벽을 해제해도 selinux 때문에 외부에서 접근이 불가능 하게 됩니다. 그래서 우선 selinux를 해제 시켜줍니다. 두 가지 방법이 있지만 첫 번째 방법을 추천합니다.

// 방법1 : selinux config 설정 변경
# vi /etc/selinux/config
▷ SELINUXTYPE=
▶ SELINUXTYPE=disabled // 상태확인
# sestatus ?v
SELinux status: disabled
// 방법2 : system 보안 설정 변경
# vi /etc/sysconfig/system-config-securitylevel
// 아래 내용을 추가
▶ setenforce 0
// 상태확인
# sestatus ?v
SELinux status: disabled

3. 관련글

* 간단하게 리눅스 서버 만들기
  - 설치 후 기본 환경 설정
  - 계정관리
  - 콘솔 해상도 조절하기
  - 네트워크 설정 및 방화벽과 selinux 설정
  - 한글 터미널 설정 및 yum 설정
외부참고 링크
* Linux 네트워크 설정
* [Fedora] Network
* NetworkManager
* Fedora 방화벽 설정
* SELinux 제어 방법
* 국내 DNS 서버 목록
* Fedora Core Project 의 SELINUX에 대한 이해

Posted by 1010
61.Linux2009. 8. 14. 13:41
반응형
Posted by 1010
61.Linux2009. 8. 14. 11:46
반응형
출처 : http://huikyun.tistory.com/201

Java JDK 6.0이 나온지도 꽤나 긴 시간이 흘럿건만 필자는 아직도 5.0을 고집한다.
고객쪽 서버에 설치하였을때 구버전의 JRE가 설치된 경우가 대다수이므로 최신버전으로 개발을 할 수가 없기 때문에
1.4.2에서 5.0으로 올라온 것도 겨우 얼마전 이야기이다. 그것도 아무 허락없이... ㅋㅋㅋ

뭐, 거두절미하고 일단 JDK 5.0 을 받으러 가보자.
예전엔 이런저런 정보 넣는 것이 없었는데 다운을 하려고 하면 정보를 입력하고 입력된 메일로 주소가 온다.-_-'
메일로 보내주는 주소가 바로 이것이다.

JDK 1.4.2 >> http://java.sun.com/javase/downloads/jdk/142/
JDK 5.0 >> http://java.sun.com/javase/downloads/5/jdk

두 링크중에 반드시 아래의 5.0으로 받는다.

글 작성 시점을 기준으로 최신 업데이트 버전은 18이다.

플랫폼은 리눅스, 언어는 멀랭, 라이센스 동의에 체크하고 "Continue" 버튼을 클릭...


아래 이미지의 빨간 박스처럼 rpm 이라는 단어가 없는 파일의 파일명을 클릭하면 바로 다운로드 할 수 있다.


다운 받은 파일을 /usr/local 으로 이동시키고 그 경로로 가서 파일의 권한을 바꿔준후 실행시킨다.

[root@localhost ~]# mv jdk-1_5_0_18-linux-i586.bin /usr/local
[root@localhost ~]# cd /usr/local
[root@localhost local]# chmod 755 jdk-1_5_0_18-linux-i586.bin
[root@localhost local]# ./jdk-1_5_0_18-linux-i586.bin

아래처럼 알 수 없는 언어로 도배가 되면 "yes" 입력후 엔터.


그러면 자동으로 설치가 시작이 되고 현재 폴더에 jdk1.5.0_18 이라는 폴더가 생긴 것을 아래 이미지에서 확인할 수 있다.
폴더명이 긴 관계로 java라는 이름으로 심볼릭 링크를 만들어 준다.


파일들이 설치가 되면 /etc/profile 파일을 열어서 아래의 이미지와 같이 환경 변수들을 설정해준다.


저장을 하고 나와서 적용을 위해서 아래와 같이 입력 후, 엔터.

[root@localhost local]# source /etc/profile

그리고 나서 env 명령을 사용하여 환경변수를 확인하니 아래처럼 적용된 환경변수가 보인다.


그리고 마지막으로... 역시나 JDK 설치 인증샷의 진짜배기는 바로 이것...

저작자 표시 비영리 변경 금지
Posted by 1010
61.Linux2009. 8. 14. 11:42
반응형
Posted by 1010
61.Linux2009. 8. 14. 11:27
반응형

linux 에서 자바를 설치할려면 우선 설치파일이 윈도우랑 틀리다는건 다 아실겁니다.

 

http://java.sun.com 에서 최신의 jdk 를 다운받습니다.

현재 최신버전은 http://java.sun.com/javase/downloads/index.jsp 이곳에서

JDK6 을 다운받을 수 있습니다.

 

다운받는 파일은

Linux RPM in self-extraction file 인 jdk-6-linux-i586-rpm.bin 을 다운받습니다.

 

 

/usr/local/src 디렉토리에 다운받은 파일을 옮겨넣으시고

#chmod 755 jdk-6-linux-i586-rpm.bin

#./jdk-6-linux-i586-rpm.bin

 

하면 license 에 대해서 글들이 나오고..엔터키를 누르면서 맨 밑으로 내리면 머라고 물어봅니다.

yes 라고 입력하시고 엔터 하시면 이제 설치가 시작됩니다.

 

설치가 완료도면 java 의 설치위치는 /usr/java 가 되있을겁니다.

만약에 어디있는지 모르신다면 최상위 디렉토리(루트 디렉토리)로 이동하신후 find . -name jdk* -print 하면 자바파일이 어디에

있는지 알 수 있습니다.

 

디렉토리가 좀 길고 그러면 나중에 찾는거 힘드니까 /usr/java 가 아니라

폴더이름이 jdk-6-linux-i586  이렇다면 이름을 java 로 변경해주세요

 

설치가 완료되면 이제 PATH 를 잡아주셔야하는데

여기서 중요한것이 잘못하면 로그인이 안될 수 있습니다. 터미널 창을 하나 더 띄워서 로그인해주세요

source 실행한 후 로그인이 안된다면 미리 띄워놓았던 터미널에서 원상복구를 해야합니다.

 

#vi /etc/profile

맨 밑에

 

JAVA_HOME=/usr/java  #자바가 설치된 위치입니다.
export JAVA_HOME
PATH=$PATH:$JAVA_HOME/bin
CLASSPATH=$CLASSPATH:$JAVA_HOME/lib

 

이렇게 추가한 후 저장하시고 나오세요

 

그리고

#source /etc/profile

하면 끝납니다.

 

이제

#java

#javac

했을 때 명령어 옵션이 제대로 나오나 확인하시면 끝

Posted by 1010
61.Linux2009. 8. 14. 11:03
반응형
Fedora 10의 X 윈도우 해상도 설정
Fedora 10에서는 xorg.conf가 없이 작동하는 경우가 많다.

Fedora 10에 설치된 Xorg 7은 auto detection 기능을 이용해서 장치나 해상도를 결정할 수 있기 때문에, 잘 나오는 경우라면 그냥 무난하게 사용하면 된다. 하지만 VGA의 최대 해상도가 잘 나오지 않거나, Virtualbox, VMware같은 장치를 사용하면 모니터를 auto detection 하지 못해서 해상도가 제대로 잡히지 않는다.

이럴땐 /etc/X11/xorg.conf를 설정해주면 된다.

그러나 간혹 이 파일이 없는 경우가 있다. 바로 자동 감지로 Xorg가 작동한 경우이다. 그래서 먼저 기본 설정의 xorg.conf를 생성해야 한다. (아래 방법이 귀찮으신 분들은 system-config-display 패키지를 설치해도 된다. 이 패키지를 설치하고 실행하면 즉시 xorg.conf를 생성한다)

[root@localhost X11]# Xorg -configure :1

X.Org X Server 1.5.3
Release Date: 5 November 2008
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.18-92.1.18.el5 i686
Current Operating System: Linux localhost.localdomain 2.6.27.9-159.fc10.i686 #1 SMP Tue Dec 16 15:12:04 EST 2008 i686
Build Date: 11 December 2008  05:27:37PM
Build ID: xorg-x11-server 1.5.3-6.fc10
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
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/Xorg.1.log", Time: Fri Feb 20 18:45:34 2009
...생략...
(++) Using config file: "/root/xorg.conf.new"

Xorg detected your mouse at device /dev/input/mice.
Please check your config if the mouse is still not
operational, as by default Xorg tries to autodetect
the protocol.

Your xorg.conf file is /root/xorg.conf.new

To test the server, run 'X -config /root/xorg.conf.new'


이제 /root/xorg.conf.new에 생성된 파일을 /etc/X11/xorg.conf로 복사해온 뒤에 파일을 열어보자. 아랫 부분에 Section "Screen"이 있는데 여기서 24bit 색상 부분인 SubSection의 Depth가 24인 부분을 수정한다. (24bit 는 트루컬러를 의미한다)

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection



방법은 위 Depth 24라인 아래에 Modes 다음에 해상도를 넣어주면 된다.

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
...생략...
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1280x1024" "1280x960"
EndSubSection
EndSection


위의 예는 1280x1024와 1280x960의 해상도를 지원하도록 넣어둔 것이다. 설정이 끝났으면 X 윈도우를 재시작하면 된다. 재시작 방법은 여러가지가 있으나 제일 편한 것은 <CTRL-ALT-DELETE>로 강제 종료시켜버리는 것이다. 그러나 초보자라서 X 윈도우 재시작을 잘 모른다면 그냥 재부팅하는게 편하다.
Posted by 1010
61.Linux2009. 8. 13. 18:04
반응형

mv jdk-1_5_0_08-linux-i586.bin /usr/local

cd /usr/local

chmod 755 jdk-1_5_0_08-linux-i586.bin

./jdk-1_5_0_08-linux-i586.bin

알수없는 내용들이 많이 나옴.

"yes" 입력후 엔터

자동 설치

ln -s jdk1.5.0_18 java

vi /etc/profile

----------추가----------

#Java Setting
export JAVA_HOME=/usr/local/java
export PATH=$PATH:$JAVA_HOME/bin
export CLASSPATH=$JAVA_HOME/jre/lib/ext:$JAVA_HOME/lib/tools.jar

-------------------------

source /etc/profile

env

-----------내용확인-----------

JAVA_HOME=/usr/local/java

CLASSPATH=/usr/local/java/jre/lib/ext:/usr/local/java/lib/tools.jar

------------------------------

java -version

java

javac

끝-

Posted by 1010