NTFS 파티션을 마운트 했을때 unicode 문자들이 제대로 안나올때

$ emerge -pv fuse ntfs3g 두개의 패키지가 설치되었는지 확인하고, 중요한것은 ntfs3g가 unicode 문자를 인식시키게 해준다는 것이다. 아래의 내용은 설치하고 나서의 마운트 되는 파일형식의 차이를 보여준다. webterror ~ # mount rootfs on / type rootfs (rw) proc on /proc type proc (rw,nosuid,nodev,noexec,relatime) sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) udev on /dev type tmpfs (rw,nosuid,relatime,size=10240k,mode=755) devpts on […]

vsftp서버에서 anonymous 계정 설정하기

먼저 vsftpd.conf 파일의 주요 설정내용! # Allow anonymous FTP? (Beware – allowed by default if you comment this out). anonymous_enable=YES # # Uncomment this to allow local users to log in. local_enable=YES # # Uncomment this to enable any form of FTP write command. write_enable=YES # # Default umask for local users is 077. You […]

ldd 명령어 사용법

ldd – 프로그램이 필요로하는 공유 라이브러리를 보여준다. plsgg@test:/bin> ldd ping linux-gate.so.1 => (0xb7f8e000) libresolv.so.2 => /lib/libresolv.so.2 (0xb7f46000) libc.so.6 => /lib/libc.so.6 (0xb7e13000) /lib/ld-linux.so.2 (0x0087d000) 라이브러리가 없다면 “=> not found” 를 출력한다. not found라고 되어 있는게 1개라도 있다면 당연히 올바르게 실행되지 않을 것이다. not found 라고 되어 있는 라이브러리만 찾아서 LD_LIBRARY_PATH 에 복사해 두면 실행이 된다.

curlftpfs를 이용한 ftp 마운트

curlftpfs 패키지를 설치한다. webterror ~ # emerge –search ftpfs Searching… [ Results for search key : ftpfs ] [ Applications found : 1 ] * net-fs/curlftpfs Latest version available: 0.9.2-r1 Latest version installed: [ Not Installed ] Size of files: 356 kB Homepage: http://curlftpfs.sourceforge.net/ Description: File system for accessing ftp hosts based on FUSE License: […]

Gentoo에서 sudoers 사용방법

아주 간단하게 해결할수 있다. ## sudoreplay and reboot. Use sudoreplay to play back logged sessions. # Defaults log_output # Defaults!/usr/bin/sudoreplay !log_output # Defaults!/usr/local/bin/sudoreplay !log_output # Defaults!/sbin/reboot !log_output ## ## Runas alias specification ## ## ## User privilege specification ## root ALL=(ALL) ALL ## Uncomment to allow members of group wheel to execute any command %wheel […]

리눅스 터미널에서 파이프를 사용하여 vim으로 파일명을 보낼때(xargs vi) 터미널이 깨졌을 경우

화면처럼 터미널에 입력한 내용이 제대로 나오지 않고 화면이 깨졌을때 복구하는 방법은? $ reset reset 명령어로 해결하면 된다.! 이걸 알아내려고 한참을 검색하고 검색했다. 결국 간단한 reset … OTL 정확한 방법은 다음과 같다. 만약 하위디렉토리에 있는 파일중에 php 함수명을 검색해서 해당 함수명을 포함한 파일을 바로 vim으로 편집하기 위해서는 이렇게 입력해야 한다. # vi `find ./ -name "*.php" […]