지풍@blog

지풍@blog RSS

tftp 서버가 CentOS나 RHEL에서는 기본으로 설치되지 않아 별도로 설치해야 하죠

yum으로 간단히 설치 할 수 있는데 아래와 같이 설치 할 수 있습니다

# yum update tftp-server

Loaded plugins: downloadonly, fastestmirror

Loading mirror speeds from cached hostfile

 * base: data.nicehosting.co.kr

 * extras: data.nicehosting.co.kr

 * updates: data.nicehosting.co.kr

addons                                                   |  951 B     00:00

base                                                     | 1.1 kB     00:00

extras                                                   | 2.1 kB     00:00

updates                                                  | 1.9 kB     00:00

Setting up Update Process

Package(s) tftp-server available, but not installed.

No Packages marked for Update

[root@w03 ~]# yum install tftp-server

Loaded plugins: downloadonly, fastestmirror

Loading mirror speeds from cached hostfile

 * base: data.nicehosting.co.kr

 * extras: data.nicehosting.co.kr

 * updates: data.nicehosting.co.kr

Setting up Install Process

Resolving Dependencies

--> Running transaction check

---> Package tftp-server.x86_64 0:0.49-2.el5.centos set to be updated

--> Finished Dependency Resolution


Dependencies Resolved


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

 Package            Arch          Version                     Repository   Size

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

Installing:

 tftp-server        x86_64        0.49-2.el5.centos           base         32 k


Transaction Summary

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

Install      1 Package(s)

Update       0 Package(s)

Remove       0 Package(s)


Total download size: 32 k

Is this ok [y/N]: y

Downloading Packages:

tftp-server-0.49-2.el5.centos.x86_64.rpm                 |  32 kB     00:27

Running rpm_check_debug

Running Transaction Test

Finished Transaction Test

Transaction Test Succeeded

Running Transaction

  Installing     : tftp-server                                              1/1


Installed:

  tftp-server.x86_64 0:0.49-2.el5.centos


Complete!


위와 같이 yum으로 간단히 설치할 수 있고 rpm 명령어로 아래와 같이 설치 되었는지 확인할 수 있죠

# rpm -qa | grep tftp

tftp-server-0.49-2.el5.centos


이제 제대로 실행이 되는지 확인해야 하는데 설치가 되면 기본적으로 tftp 서버가 실행되어 있지도 않고 설정상 내려져 있죠

tftp 서버가 올라 가도록 설정을 해야 하는데 /etc/xinetd.d/tftp 파일을 열어 disable = yes를 disable = no로 바꿔 줘야 합니다

# default: off

# description: The tftp server serves files using the trivial file transfer \

#       protocol.  The tftp protocol is often used to boot diskless \

#       workstations, download configuration files to network-aware printers, \

#       and to start the installation process for some operating systems.

service tftp

{

        socket_type             = dgram

        protocol                = udp

        wait                    = yes

        user                    = root

        server                  = /usr/sbin/in.tftpd

        server_args             = -s /tftpboot

        disable                 = yes -> no

        per_source              = 11

        cps                     = 100 2

        flags                   = IPv4

}


그리고 tftp 서버가 xinetd에 속하기 때문에 xinetd를 재가동하면 tftp 서버가 실행이 될껍니다

# service xinetd restart

Stopping xinetd:                                           [  OK  ]

Starting xinetd:                                           [  OK  ]


xinetd가 재가동 되면 아래와 같이 제대로 tftp 서버가 실행이 되었는지 알 수가 있습니다

# netstat -a | grep tftp

udp        0      0 *:tftp                      *:*  


CentOS 5.x에서 git 설치

백과사전/리눅스 2011. 10. 19. 11:17 by 지풍
CentOS 5.x에서 yum으로 git가 설치가 안 되는 것 같더군요

CentOS 5.x 기본 패키지에 git가 포함이 안 되어서 yum으로 설치가 안 되는 것 같고

CentOS 6.x부터는 기본 패키지에 포함되어 있는 것 같아서 간단히 yum으로 설치가 될 것 같습니다

일단 git를 설치하기 위해 필요한 패키지들을 먼저 yum으로 설치 해 줍니다

# yum install zlib-devel

# yum install openssl-devel

# yum install perl

# yum install cpio

# yum install expat-devel

# yum install gettext-devel
# yum install curl 

 
필요한 패키지를 다 받았으면 git를 wget으로 다운 받고 설치합니다

# wget http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz

# tar xzvf git-latest.tar.gz

# cd git-{date}

# autoconf

# ./configure --with-curl=/usr/local

# make

# make install


위와 같은 과정을 거치면 git를 CentOS 5.x에서 사용 가능합니다

CentOS 5.x에서 가능하기 때문에 자연스레 RHEL 5.x에서도 가능하답니다

출처 : http://angry-fly.com/2009/03/installing-git-on-centos-5/
 
레드헷 계열(RHEL, fedora, CentOS 등등...)에서 yum으로 쉽게 패키지 관리를 할 수 있죠

보통 설치와 업데이트를 yum으로 하는데 거기에 yum으로 관리하는 패키지의 RPM을 다운 받을 수 있답니다

yum으로 RPM을 다운 받기 위해서는 yum-downloadonly이란 패키지를 yum으로 설치 해야 합니다

# yum search yumdownloader

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

 * base: mirror.khlug.org

 * extras: mirror.khlug.org

 * updates: mirror.khlug.org

============================ Matched: yumdownloader ============================

yum-utils.noarch : Utilities based around the yum package manager

# yum install yum-downloadonly

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

 * base: centos.ustc.edu.cn

 * extras: centos.ustc.edu.cn

 * updates: centos.ustc.edu.cn

Setting up Install Process

Resolving Dependencies

--> Running transaction check

---> Package yum-downloadonly.noarch 0:1.1.16-16.el5.centos set to be updated

--> Finished Dependency Resolution


Dependencies Resolved


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

 Package               Arch        Version                      Repository

                                                                           Size

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

Installing:

 yum-downloadonly      noarch      1.1.16-16.el5.centos         base       12 k


Transaction Summary

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

Install      1 Package(s)

Update       0 Package(s)

Remove       0 Package(s)


Total download size: 12 k

Is this ok [y/N]: y

Downloading Packages:

yum-downloadonly-1.1.16-16.el5.centos.noarch.rpm         |  12 kB     00:00

warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID e8562897

base/gpgkey                                              | 1.5 kB     00:00

Importing GPG key 0xE8562897 "CentOS-5 Key (CentOS 5 Official Signing Key) <centos-5-key@centos.org>" from /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

Is this ok [y/N]: y

Running rpm_check_debug

Running Transaction Test

Finished Transaction Test

Transaction Test Succeeded

Running Transaction

  Installing     : yum-downloadonly                                         1/1


Installed:

  yum-downloadonly.noarch 0:1.1.16-16.el5.centos


Complete!


yum-downloadonly 패키지가 설치가 되면 그 때부터 yum으로 RPM을 다운 받을 수 있습니다

# yum install <패키지 이름> --downloadonly --downloaddir=<다운 받을 위치>


예를 들어 OpenIPMI 같은 경우는 아래와 같습니다

# yum install OpenIPMI --downloadonly --downloaddir=/root

Loaded plugins: downloadonly, fastestmirror

Loading mirror speeds from cached hostfile

 * base: centos.mirror.cdnetworks.com

 * extras: centos.mirror.cdnetworks.com

 * updates: mirror.khlug.org

Setting up Install Process

Resolving Dependencies

--> Running transaction check

---> Package OpenIPMI.x86_64 0:2.0.16-11.el5_7.2 set to be updated

--> Processing Dependency: OpenIPMI-libs = 2.0.16-11.el5_7.2 for package: OpenIPMI

--> Running transaction check

---> Package OpenIPMI-libs.x86_64 0:2.0.16-11.el5_7.2 set to be updated

--> Finished Dependency Resolution


Dependencies Resolved


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

 Package             Arch         Version                   Repository     Size

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

Updating:

 OpenIPMI            x86_64       2.0.16-11.el5_7.2         updates       162 k

Updating for dependencies:

 OpenIPMI-libs       x86_64       2.0.16-11.el5_7.2         updates       571 k


Transaction Summary

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

Install      0 Package(s)

Update       2 Package(s)

Remove       0 Package(s)


Total download size: 733 k

Is this ok [y/N]: y

Downloading Packages:

(1/2): OpenIPMI-2.0.16-11.el5_7.2.x86_64.rpm             | 162 kB     00:00

(2/2): OpenIPMI-libs-2.0.16-11.el5_7.2.x86_64.rpm        | 571 kB     00:02

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

Total                                           196 kB/s | 733 kB     00:03



exiting because --downloadonly specified

mantis에서 파일 업로드 할 때 최대 크기가 분명 5메가라고 나와 있는데 4메가 정도 파일을 업로드 할 경우 APPLICATION ERROR #401 이라는 오류가 뜰 때가 있습니다

이럴 때는 php와 mysql의 설정 문제 때문에 발생하는 것 같더군요

php나 mysql의 초기 설정이 작은 파일만 업로드 하도록 되어 있어서 이런 문제가 발생하는 것 같더군요

php 설정(/etc/php.ini)은 아래 항목을 수정하면 됩니다

file_uploads = On
upload_max_filesize = <업로드 파일 용량>M
post_max_size = <업로드 파일 용량>M
max_execution_time = <업로드 시 대기 시간, 초>


그리고 mysql 설정(/etc/my.cnf)는 아래 항목을 수정하면 됩니다

max_allowed_packet = <업로드 파일 용량>M


그리고 mysqld와 httpd를 재시작하면 그런 오류가 없어질 껍니다
 

저의 쌀 보관법

백과사전/이것저것 2011. 9. 4. 19:30 by 지풍

저의 쌀 보관법입니다

저렇게 해서 그늘 혹은 냉장고에 넣어 두는데 쌀벌레도 안 생기고 나름 좋은 것 같네요

그리고 밥 해 먹을 때도 컵에 쉽게 따를 수도 있고 말이죠~

좋은 방법인 것 같습니닷! 
리눅스 상에서 svn의 변경된 파일 목록을 조회하는 방법입니다

svn diff -r<조회하고 싶은 시작 revision>:<조회하고 싶은 끝 revision> --summarize | sort | awk '{print $NF}'


실제로 이렇게 쓸 수 있죠

svn diff -r50:60 --summarize | sort | awk '{print $NF}'



 
rpm으로 heartbeat를 설치하다가 아래와 같이 오류 메시지를 내면서 설치가 안 되더군요

# rpm -Uvh ftp://ftp.sayclub.com/pub/linux/centos/5.6/extras/x86_64/RPMS/heartbeat-pils-2.1.3-3.el5.centos.x86_64.rpm

Retrieving ftp://ftp.sayclub.com/pub/linux/centos/5.6/extras/x86_64/RPMS/heartbeat-pils-2.1.3-3.el5.centos.x86_64.rpm

Preparing...                ########################################### [100%]

        installing package heartbeat-pils-2.1.3-3.el5.centos.x86_64 needs 244KB on the / filesystem


오류가 발생한 이유는 root filesystem에 남은 공간이 없어서 발생하더군요

root filesystem을 정리하고 다시 시도하면 오류 없이 설치 가능할 겁니다 
요즘 장안의 화제인 "나는 꼼수다"는 팟케스트로 들을 수 있죠

그런데 팟케스트는 애플 아이폰 유저에 맞도록 나오고 있죠

안드로이드폰을 쓰거나 아이폰을 안 쓰시거나 아이튠즈는 없이는 쉽게 들을 수 없죠

그래서 아이튠즈 없이 아이폰 없이 안드로이드에서도 맥이 아닌 윈도우나 리눅스에서 나는 꼼수다를 쉽게 들을 수 있는 방법을 정리 해봅니다

일단 구글 리더를 이용해 나는 꼼수다를 들을 수 있습니다

구글 리더를 이용하면 별도의 프로그램 없이 웹브라우저만으로 들을 수 있는 장점이 있죠

그러니 일단 구글 리더로 들어 가야 겠죠??

주소는 http://www.google.co.kr/reader 입니다


제가 크롬을 써서 위처럼 나오는데 익스플로러나 파이어폭스도 비슷하게 나올껍니다

그럼 왼쪽 상단에 구독 추가 라는 버튼이 있습니다

그걸 클릭 해주세요 


그럼 작은 창이 하나 뜨고 주소를 넣게 되어 있죠??

주소는

http://old.ddanzi.com/appstream/ddradio.xml

을 넣어 주고 추가 버튼을 클릭합니다

 
그럼 딴지라디오가 구독이 되었다고 나오고 가운데에 나는 꼼수다가 보이시죠??

저기에 플레이 버튼을 클릭하면 바로 들을 수 있고 원본(20110811.mp3)를 클릭하면 파일도 다운 받을 수 있습니다

파일은 아래와 같이 다운 받을 수 있습니다


 크롬에서는 오른쪽 버튼 클릭하고 다른 이름으로 링크 저장(K)를 하면 받을 수 있구요

 
익스플로러에서는 다른 이름으로 대상 저장(A)을 하면 다운 받을 수 있죠

이렇게 하면 쉽게 나는 꼼수다를 들울 수 있습니다

다만 팟케스트 랭킹에는 산정되지 않는 단점이 있습니다


참고로 아래 몇가지 팟케스트 주소를 더 올려 드립니다

김어준의 뉴욕타임즈
http://vod.hani.co.kr/podcast/cctv_audio.xml.rss

박경철의 경제포커스
http://tune.kbs.co.kr/rss/34.xml

손석희의 시선집중
http://minicast.imbc.com/PodCast/pod.aspx?code=1000674100000100000

유희열의 라디오천국
http://danpod-podcast.appspot.com/kbs2fm/heaven
 
윈도우에서 시작 혹은 종료한 시간을 이벤트로 남기기 때문에 이벤트 뷰어에서 시작 혹은 종료한 시간을 확인 할 수 있죠

실행(윈도우키 + R) - eventvwr 를 입력해서 이벤트 뷰어를 실행합니다

 
이벤트 뷰어 - Windows 로그 - 보안에 들어 가면 시작 혹은 종료에 대한 로그가 아래 처럼 나오죠


작업범주가 로그인이면 시작 혹은 원격 데스크탑으로 로그인한 기록이고 로그오프는 시스템 종료 및 로그오프 혹은 원격 데스크탑에서 로그오프 한 것입니다
아래 명령처럼 특정 파일의 절대경로을 포함한 파일이름을 써주게 되면

그 파일이 어떤 RPM에 포함되어 있는지 알아 낼 수 있답니다

# rpm -qf /bin/ls

coreutils-5.97-23.el5_6.4 


출처 : http://sinun.tistory.com/84
1 2 3 4 5 6 ··· 9 
분류 전체보기 (202)
내가 사는 이야기 (2)
백과사전 (89)
듣고 보는 것 (0)
세상 이야기 (1)
맛집 투어 & 여행 (0)
컴퓨터 이야기 (110)
게임 이야기 (0)
위시리스트 (0)
스포츠 이야기 (0)
영화 이야기 (0)
우하하하하 (0)

공지사항

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백