# ffmpeg -i input.avi -b 1024k -s 352×264 -r 25 -acodec copy movie_1024_352_25_.flv
Archive for the ‘Linux’ Category
리눅스에 관련된 문서
How to encode an AVI movie to FLV movie in *nix / AVI를 FLV로 변환하기
Posted by Digital Angel Master on April 13, 2009
Posted in Linux | Leave a Comment »
How to mount an ISO image in *nix / iso 파일 마운트하기
Posted by Digital Angel Master on April 13, 2009
# mount myiso.iso /mnt/iso/ -t iso9660 -o loop=/dev/loop0
Posted in Linux | Leave a Comment »
FreeBSD 에서 IP 재 설정, 및 가상 IP 추가
Posted by Digital Angel Master on December 4, 2008
/etc/rc.conf 에서 IP 변경한후 sh /etc/netstart 하면 IP가 변경됩니다.
한개 인터페이스에 여러 IP를 할당시에는 alias 로 추가 하시면됩니다.
ifconfig em0 alias 10.0.0.1 netmask 255.0.0.0
제거는 -alias
ifconfig em0 -alias 10.0.0.1
## /etc/netstart 스크립트 내용
. /etc/rc.subr
load_rc_config ‘XXX’
/etc/rc.d/pccard start
/etc/rc.d/devd start
/etc/rc.d/hostname start
/etc/rc.d/ipmon start
/etc/rc.d/ipfilter start
/etc/rc.d/ipnat start
/etc/rc.d/ipfs start
/etc/rc.d/sppp start
# /etc/rc.d/atm1 start
# . /etc/rc.d/atm2.sh start
# . /etc/rc.d/atm3.sh start
/etc/rc.d/netif start
/etc/rc.d/ipsec start
/etc/rc.d/dhclient start
/etc/rc.d/isdnd start
/etc/rc.d/ppp start
/etc/rc.d/ipfw start
/etc/rc.d/ip6fw start
/etc/rc.d/network_ipv6 start
/etc/rc.d/routing start
/etc/rc.d/mroute6d start
/etc/rc.d/route6d start
/etc/rc.d/mrouted start
/etc/rc.d/routed start
/etc/rc.d/nisdomain start
exit 0
Posted in Linux | Leave a Comment »
glibc 버전을 확인하고 싶을때
Posted by Digital Angel Master on August 2, 2008
웬지 간단하면서 고수틱한 팁? ㅋ (웬지 재수없어)
binutils 패키지가, 보통 yum이나 apt-get으로 설치들 하시는데.. 설치된 버전을 까먹었다거나 할때 한번 써먹을 수 있을듯 합니다.
머 그냥 컴파일하고 바로 실행하면 되지요.
glibc 버전을 확인하려는 분들이 gcc 설치안되어 있을리는 없으니..
명령어는 gcc –o glibc_ver glibc_ver.c 이렇게 하면 되는건 당연히 아시죠? ㅋ
#include <stdio.h>
#include <gnu/libc-version.h>
int main (void)
{ puts (gnu_get_libc_version ()); return 0; }
Posted in Linux | Leave a Comment »
우분투 호스트 네임 설정
Posted by Digital Angel Master on June 15, 2008
Source : http://servermaster.pe.kr
1. 자신의 hostname 을 확인해 봅니다.
초기에 설정을 안하고 기본값으로 설치 하신분들은 ubuntu로 되어 있을 겁니다.
windpyj@ubuntu:~$ hostname
ubuntu
2. /etc/hostname 파일을 열어보시면 다음과 같이 되어 있을 겁니다.
windpyj@ubuntu:~$ sudo vi /etc/hostname
ubuntu
3. 변경하고자 하는 hostname을 넣어주고 저장하시면 됩니다.
#ubuntu 기존것은 주석처리 하였습니다.
servermaster.pe.kr
4. servermaster.pe.kr 로 변경을 하였습니다.
다음 명령을 수행한 후 다시 로그인을 하면 변경된 것을 확인 할 수 있습니다.
windpyj@ubuntu:~$ sudo /bin/hostname -F /etc/hostname
5. 다시 로그인 하면 프롬프트에 다음과 같이 나옵니다.
windpyj@servermaster:~$
windpyj@servermaster:~$ hostname
servermaster.pe.kr
Posted in Linux | Leave a Comment »