기초 Linux 서버관리2014. 3. 18. 18:45

쉘에서 time dig naver.com했을 때 출력되는 값 이것을 저장하고 싶을 때,

real    0m0.012s
user    0m0.000s
sys     0m0.004s


( time dig naver.com ) 2> /tmp/output.txt


만약 위에 명령어가 실패하면


{ time dig naver.com ; } 2> /tmp/output.txt


※ 2> 붙여주어야 한다.
    2 > 띄우면 -bash: syntax error near unexpected token `2' 라는 에러가 출력이 된다.


Posted by 박물지
기초 Linux 서버관리2014. 2. 21. 17:42

yum 패키지설치에러 중


cdefs.h 헤더파일이 없어서 확인해 보니 /usr/include/ 디렉토리에 해당 파일이 없었다.

그래서 yum으로 glibc-headers 패키지를 설치 진행하다가

ERROR with rpm_check_debug vs depsolve

에러 문구가 표시 되었다.


Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Updating:
 glibc                   x86_64     2.5-118.el5_10.2  updates           4.8 M
 glibc                   i686       2.5-118.el5_10.2  updates           5.4 M
 glibc-common            x86_64     2.5-118.el5_10.2  updates            16 M
 glibc-headers           x86_64     2.5-118.el5_10.2  updates           602 k
Updating for dependencies:
 glibc-devel             x86_64     2.5-118.el5_10.2  updates           2.4 M
 nscd                    x86_64     2.5-118.el5_10.2  updates           177 k

Transaction Summary
=============================================================================
Install      0 Package(s)
Update       6 Package(s)
Remove       0 Package(s)

Total download size: 30 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
ERROR with rpm_check_debug vs depsolve:
Package glibc-devel needs glibc-headers = 2.5-49.el5_5.7, this is not available.
Package glibc-devel needs glibc-headers = 2.5-49.el5_5.7, this is not available.
Package glibc-devel needs glibc = 2.5-49.el5_5.7, this is not available.
Package glibc-devel needs glibc = 2.5-49.el5_5.7, this is not available.
Complete!


필자는 맨 마지막 complete 단어만 보고 설치되었는 줄 알았는데 더 자세치 보니 설치 실패였다.


해결 방법

1) yum clean all

2) yum update yum

3) yum install glibc-headers

4) 설치 완료


Posted by 박물지
기초 Linux 서버관리2014. 2. 18. 12:00

리눅스 서버에 외장하드 Mount하여 파일 복사하기
기본적으로 외장하드 파일시스템은 NTFS이기 때문에 바로 mount가 안 된다.

그래서, 아래와 같은 방법으로 처리하였다.



아래 URL 사이트에서 최신 파일 다운로드

http://www.tuxera.com/community/ntfs-3g-download/



설치 방법
기본적으로 리눅스 development tools 패키지가 설치되어 있어야 한다.
(gcc compiler, libc-dev libraries)

./configure
make
make install


사용 방법

mount -t ntfs-3g /dev/sdc1 /mnt/windows


이상으로 리눅스 서버에 외장하드(NTFS) 파일시스템 Mount 방법 이었습니다.

Posted by 박물지