반응형

참고 출처 : http://www.clien.net/cs2/bbs/board.php?bo_table=lecture&wr_id=127394


출처에서 설명한 설명대로 하다 안되면 아래 첨부한 파일을 이용하거나 다른 방법을 사용해 보세요.



http://www.deb-multimedia.org/dists/stable/main/binary-i386/package/deb-multimedia-keyring


deb-multimedia-keyring_2012.05.10-dmo4_all.deb


To install a .deb file, simply double click on it, and then select Install Package

Alternatively, you can also install a .deb file by opening a terminal and typing:

sudo dpkg -i package_file.deb



http://ubuntuforums.org/showthread.php?t=1534829

https://bugs.launchpad.net/ubuntu/+source/xvidcore/+bug/500044

The following packages have unmet dependencies:libxvidcore4-dev: Depends: libxvidcore4 (= 2:1.1.2-0.1ubuntu4) but 2:1.2.2+debian-0ubuntu1 is to be installed

E: Broken packages

The package is called libxvidcore-dev, NOT libxvidcore4-dev.  

// 그냥 단순하게 libxvidcore4-dev에서 4를 빼고 설치..




If you get a message like this:

Found yasm 0.x.x.xxxx
Minimum version is yasm-1.0.0
If you really want to compile without asm, configure with --disable-asm.

that means that you have an old version of yasm on your system, so you should update it. The quickest way to do so is like this:


yasm-1.2.0.tar.gz

$ wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz
$ tar xf yasm-1.2.0.tar.gz
$ cd yasm-1.2.0
$ ./configure
$ make
# make install


x264.tgz


libav.tar.bz2


NanumFont_TTF.tgz


NanumGothicCoding-2.0.tgz


참고로 글꼴 설치 방법을 간단하게 설명하자면 적당한 트루타입 글꼴(나눔고딕 등)을 다운받아서 /usr/share/fonts/truetype/ 폴더에 복사한 후 폰트캐쉬를 업데이트해주면 된다.

$ sudo cp *.ttf /usr/share/fonts/truetype/

$ sudo fc-cache -v

출처 : http://gabrielkim.tistory.com/38



AirVideoServerLinux.jar


상위 버전의 AirVideo*.jar 는 아래에서 받을 수 있는것 같으나 호환 여부는 모르겠습니다.

http://www.inmethod.com/forum/posts/list/1856.page





[PC/모바일]

포고플러그에 에어비디오 서버 설치하기

일단 기본적인 데비안 리눅스 설치법 및 ftp, samba 설정은 comta.kr 강좌를 이용하였습니다. 다른 archlinux나 optware 사용자는 활용 못하는 방법입니다. 여러번의 삽질 끝에 알아낸 실사 가능한 설치법입니다. 다만 기본적인 하드웨어 사양이 딸리는 관계로 h.264 passthrough 가능한 mp4 파일만을 지원합니다.

 

한줄씩 복사해서 putty 창에다 붙여넣는 식으로 하면 됩니다.

시작점은 루트 계정 로그인 직후 root@comta:~# 입니다.

 

 

1. 기본 프로그램 설치하기 (comta 강좌에 포함이 안되는 것만)

 

apt-get install deb-multimedia-keyring


echo deb http://www.deb-multimedia.org squeeze main non-free >> /etc/apt/sources.list


apt-get update && apt-get upgrade

 

apt-get install autoconf build-essential subversion git-core libxvidcore4-dev checkinstall git libfaac-dev libgpac-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev librtmp-dev libtheora-dev libtool libvpx-dev libx11-dev libxfixes-dev libsdl1.2-dev libvorbis-dev pkg-config texi2html yasm zlib1g-dev libx264-dev cron ttf-nanum openjdk-6-jdk
 
 
2. x264 코덱 설치하기

git clone git://git.videolan.org/x264.git

cd x264

./configure

checkinstall --pkgname=x264 --pkgversion "2:0.`grep X264_BUILD x264.h -m1 | cut -d' ' -f3`.`git rev-list HEAD | wc -l`+git`git rev-list HEAD -n 1 | head -c 7`" --backup=no --deldoc=yes --fstrans=no --default
 
 
3. 에어비디오 서버 리눅스용 프로그램 설치
 
cd ..
 
cd ..
 

tar -xjvf libav.tar.bz2

cd libav

./configure --enable-pthreads --disable-shared --enable-static --enable-gpl --enable-libx264 --enable-libmp3lame --enable-nonfree --enable-encoder=libfaac

make

cd ..

mkdir /etc/airvideo
 
mv libav /etc/airvideo
 
cd /etc/airvideo
 
 
4. 설정파일 만들기
 
기본 nano 프로그램 사용하거나 윈도우에서 메모장으로 다음 내용의 properties.conf 파일을 만들어서 /etc/airvideo 위치로 ftp 전송합니다.

folders = Movies:/ntfs_disk                                                                                 
subtitles.encoding = EUC-KR
subtitles.font = NanumGothic
subtitles.size = 130
password =
path.ffmpeg = /etc/airvideo/libav/avconv
 
 
5. 자동 실행을 위한 crontab 설정
 
crontab -e

@reboot java -jar /etc/airvideo/AirVideoServerLinux.jar /etc/airvideo/properties.conf 2&>1 /dev/null &
 
 
한줄도 빠짐없이 정확하게만 입력하면 문제없이 설치될 것입니다. 자막을 활용할 수 없고 미리 mp4로 변환해야 해서 활용도는 조금 떨어지지만 어느정도는 쓸만하네요. 저는 dos 세대이지만 리눅스는 난생처음 만져봐서 삽질 많이 했지만 comta 강좌가 워낙 정확해서 도움이 많이 되었습니다.


반응형

출처 : https://gist.github.com/fernandoaleman/2172388


    PUBLIC
    Last updated 

    How To Configure Static IP On CentOS 6

    Linux Static IP
    123456789101112131415161718192021222324252627282930313233343536
    ## Configure eth0
    #
    # vi /etc/sysconfig/network-scripts/ifcfg-eth0
     
    DEVICE="eth0"
    NM_CONTROLLED="yes"
    ONBOOT=yes
    HWADDR=A4:BA:DB:37:F1:04
    TYPE=Ethernet
    BOOTPROTO=static
    NAME="System eth0"
    UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03
    IPADDR=192.168.1.44
    NETMASK=255.255.255.0
     
     
    ## Configure Default Gateway
    #
    # vi /etc/sysconfig/network
     
    NETWORKING=yes
    HOSTNAME=centos6
    GATEWAY=192.168.1.1
     
     
    ## Restart Network Interface
    #
     
    /etc/init.d/network restart
     
    ## Configure DNS Server
    #
    # vi /etc/resolv.conf
     
    nameserver 8.8.8.8 # Replace with your nameserver ip
    nameserver 192.168.1.1 # Replace with your nameserver ip

    Nice overview.

    You can also run dhclient (once off) to automatically update the /etc/resolv.conf file.

    excellent! thanks this was helpful :)

    Just downloaded centos 6.4 and was stunned that it does not detect my onboard nic. Thank you so much :)

     Please sign in to comment on this gist.


    반응형

    I just need to get how much bandwidth is used in 3 or 4 days. Do you have any application in the terminal to do it?

    I'd prefer if it didn't use SNMP.

    I found iptraf, wireshark, cacti, but they were not what I am looking for.

    Of course I need to save my results; for a single computer, not a network.

    It's very important that I can see the total size of inbound and outboud traffic. What solutions are there for me?



    sudo apt-get install iptraf

    반응형

    리눅스 커널 업데이트 방법



    Install Linux Kernel 3.9.7 in Ubuntu 13.04, 12.10, 12.04

    http://handytutorial.com/install-linux-kernel-3-9-7-in-ubuntu-13-04-12-10-12-04/


    This simple tutorial is going to show you how to install or upgrade to Kernel 3.9.7 in Ubuntu 13.04 Raring, 

    12.10 Quantal, 12.04 Precise and also Linux Mint 15, 14, 13.

    Linux kernel 3.9.7 brings just a few fixes, a few driver updates, and a few other minor fixes. All in all, this is one of the smallest updates in the 3.9.x branch, and it follows a trend set by the previous versions. Users of the Linux kernel 3.9.x branch have been urged to update to the new version as soon as possible.

    Kernel3.9.7


    To install or upgrade to Kernel 3.9.6, press Ctrl+Alt+T to open terminal, 

    then run following commands one by one. 

    You may check 32-bit or 64-bit first by System Settings -> Details


    아래는 32비트 시스템, 현재 안정화 마지막 최신 커널이 3.9.7 인데 이걸 배포판에서

    더 최신판이 나오면 아래 내용을 수정해서 사용하면 된다.


    For 32-bit system, run following 3 commands one by one:

    wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.9.7-saucy/linux-headers-3.9.7-030907-generic_3.9.7-030907.201306201628_i386.deb http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.9.7-saucy/linux-headers-3.9.7-030907_3.9.7-030907.201306201628_all.deb http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.9.7-saucy/linux-image-3.9.7-030907-generic_3.9.7-030907.201306201628_i386.deb
    
    sudo dpkg -i linux-image-3.9.7-*.deb linux-headers-3.9.7-*.deb
    
    sudo update-grub


    아래는 64비트 시스템, 현재 안정화 마지막 최신 커널이 3.9.7 인데 이걸 배포판에서

    더 최신판이 나오면 아래 내용을 수정해서 사용하면 된다.



    For 64-bit system, run following commands instead:

    wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.9.7-saucy/linux-headers-3.9.7-030907-generic_3.9.7-030907.201306201628_amd64.deb http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.9.7-saucy/linux-headers-3.9.7-030907_3.9.7-030907.201306201628_all.deb http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.9.7-saucy/linux-image-3.9.7-030907-generic_3.9.7-030907.201306201628_amd64.deb
    

    
    sudo dpkg -i linux-image-3.9.7-*.deb linux-headers-3.9.7-*.deb
    
    sudo update-grub



    After that, restart your computer.


    아래 명령어는 기존 커널 파일을 지우는 것인데 일단 보류하기를 권장한다. 

    최신 커널을 몇일 써보고 잘 작동한다면 그 때 지워도 늦지 않다. 


    To remove the kernel 3.9.6, run command:

    sudo apt-get purge linux-image-3.9.7*



    반응형

    cpuburn을 이용하면 되었다.

    설치는 

    sudo apt-get install cpuburn

    필자는 8개의 코어(물리4/HT적용 8개)를 이용 중 이기 때문에 아래와 같이 8개의 데몬을 실행했다.

    burnP6 & burnP6 & burnP6 & burnP6 & burnP6 & burnP6 & burnP6 & burnP6 &

    종료는

    killall burnP6






    출처 : http://superuser.com/questions/443406/how-can-i-produce-high-cpu-load-on-a-linux-server

    I usually take the cpuburn suite:

    sudo apt-get install cpuburn
    for i in {1..4}; do burnK7 & done
    

    Replace 4 with the number of cores / HT-threads you have or want to stress.

    Note: This stresses as much chip area as possible at the same time, it's programmed to generate maximum power dissipation. I had to write this post a second time, somehow my machine didn't like it :-(

    You could also do cpuburn in sequences:

    burnP6 & burnP6 & burnP6 & burnP6 & 
    [1] 28520
    [2] 28521
    [3] 28522
    [4] 28523
    

    And when you want to stop them:

    killall burnP6
    

    You could also multiply burnP6 & to match the number of CPU cores on your system.





    http://superuser.com/questions/443406/how-can-i-produce-high-cpu-load-on-a-linux-server

    반응형

     Apt-get는 흔히 데미안 계열에서 사용하는 패키지 관리도구입니다. redhat 계열에서 사용하는 yum과 동일한 기능을합니다.

     

     먼저 package Index = /etc/apt/sources.list라는 파일이 있는데,  update는 바로 이 list파일에 설정된 위치에서 업데이트 합니다. upgrade는 이 파일에 있는 내용을 업그레이드 하는것이지요. yum에서 /etc/yum.repos.d/디렉토리 안의 repositories파일들과 같은 역할을 하는거 같습니다.


    옵션을 살펴보자면 아래와 같습니다.

     

    update : sources.list에 설정된 위치에서 업데이트 정보 받아오기
    upgrade : 받아온 정보로 부터, 현재 시스템에 설치된 패키지를 최신버전 업데이트
    dist-upgrade : 의존성을 생각하며 업데이트 하기
    install package name : 패키지 설치
    --reinstall installed package name : 패키지 재설치
    remove package name : 패키지 삭제. 설정파일은 지우지 않음
    --purge remove package name : 패키지 삭제 설정파일까지 모두 지움
    source package name : 패키지 소스코드 다운로드
    build-dep package name : 내려받은 소스코드 의존성 있게 빌드
    search package name : 패키지 검색
    apt-cashe show package name : 패키지 정보 보기

     

    LPIC 시험 문제는 apt의 업데이트 기능에대해서 묻는 질문이 나왔습니다. apt-get에대해 생소한 사람들로서는 난해한 문제였습니다. update는 실제로 패키지를 업데이트 하는것이 아니라 업데이트 할 list파일을 갱신하는 명령어 입니다. 실제 업데이트는 이 갱신한 list파일을 가지고 upgrade명령어가 수행합니다. 이 차이점이 포인트!

     

     Yum은 RadHat 계열의 RPM Packge의 관리 프로그램입니다. 데미안 계열에서 많이 쓰는apt-get하고 같은 기능을 합니다.

     Yum의 기본 설정파일은 /etc/yum.conf에 정의되어 있고, 이 설정파일에서 /etc/yum.repos.d/디렉토리 안에 repositories 파일들에서 url을 읽어와 패키지 확인 업데이트등의 작업을 합니다. 문제는 바로 이 디렉토리를 묻는 거였습니다 .
    아래는 옵션입니다.

     

    list : repositorise에 정의된 url에서 rpm 목록을 확인
    list installed : 현재 서버에 설치된 rpm목록을 확인
    check-update : 현재 인스톨된 rpm중 업데이트 가능한 rpm을 나열
    install PackageName1 [PackageName2...PackageNameN] : 현재 서버에 인스톨 되지 않은 rpm설치
    update [PackageName1 PackageName2...PackageNameN] : 나열된 패키지을( 없을경우 전부를) 업데이트함 
    remove PackageName1 [PackageName2...PackageNameN] : 나열한 패키지 삭제
    grouplist : 패키지 그룹 리스트
    groupinstall PackageGroupName : 패키지 그룹을 설치
    groupupdate PackageGroupName : 패키지 그룹을 업데이트
    groupremove PackageGroupName : 패키지 그룹을 삭제

     

    yum은 repositories 파일으 경로 (디렉토리)를 아느냐는 질문이 나왔었습니다. repository 디렉토리는 rpm 이 실제로 올라온 mirror 사이트들이 정의된 설정파일입니다. yum.conf에서 이 파일에 정의된 url을 찾아 업데이트 목록을 갱신하는거 지요.

    이 위치를 아느냐 모르느냐가 포인트!

     

    문제와 해설은 블로그에 올리려는데 작업하는데 상당한 시간이 소모되네요. 거의 모두 옮겨왓지만 자세한 내용을 보고싶으면

    제 블로그를 방문해주세요 ㅎㅎ http://slmujy.tistory.com

    그럼 ㅇㅅㅇ


    출처 : http://cafe.naver.com/securitya/1009

    반응형


    해결 방법

    아래 파일을 블럭블럭설정한 내용으로 변경합니다. LANG만 저는 변경 했습니다.


    /etc/default/locale

    LC_ALL="en_US.UTF-8"


    'unsupported locale setting' fault by command-not-found

    I recently installed Ubuntu 12.10 by keeping the home folders from Linux Mint 13 distribution. The system installed fine, but at the beginning everything was in Chinese (even the text in the Terminal). I managed to solve that by editing some files, but I still get an error whenever a command is not found in Terminal. Here it is:

    Sorry, command-not-found has crashed! Please file a bug report at:
    https://bugs.launchpad.net/command-not-found/+filebug
    Please include the following information with the report:
    
    command-not-found version: 0.3
    Python version: 3.2.3 final 0
    Distributor ID: Ubuntu
    Description:    Ubuntu 12.10
    Release:    12.10
    Codename:   quantal
    Exception information:
    
    unsupported locale setting
    Traceback (most recent call last):
      File "/usr/lib/python3/dist-packages/CommandNotFound/util.py", line 24, in crash_guard
    callback()
      File "/usr/lib/command-not-found", line 69, in main
    enable_i18n()
      File "/usr/lib/command-not-found", line 40, in enable_i18n
    locale.setlocale(locale.LC_ALL, '')
      File "/usr/lib/python3.2/locale.py", line 541, in setlocale
    return _setlocale(category, locale)
    locale.Error: unsupported locale setting
    

    How can I get rid of this error. It says that it is a locale error, so I guess it might be related to the initial language problem, but I'm not an expert in linux stuff. What is your opinion?

     


    반응형

    http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1022525


    Ubuntu or Ubuntu Server with a Graphical User Interface

    To mount the CD image and extract the contents:

    1. Power on the virtual machine.
    2. Log into the virtual machine using an account with administrator or root privileges.
    3. Go to Virtual Machine > Install VMware Tools (or VM > Install VMware Tools).. 

      Note: If you are running the light version of Fusion, a version of Workstation without VMware Tools, or VMware Player, you are prompted to download Tools before they can be installed. Click Download Now to begin the download.

    4. Open the VMware Tools CD mounted on the Ubuntu desktop.
    5. Right-click the file name that is similar to VMwareTools.x.x.x-xxxx.tar.gz, click Extract to, and select the Ubuntu Desktop to save the extracted contents.

      The vmware-tools-distrib folder is extracted to the Ubuntu Desktop.

    To install VMware Tools in Ubuntu:

    1. Open a Terminal windows. For more information see,  Opening a command or shell prompt (1003892)
    2. In Terminal, run this command to navigate to the vmware-tools-distrib folder:

      cd Desktop/vmware-tools-distrib

    3. Run this command to install VMware Tools:

      sudo ./vmware-install.pl -d

      Note: The -d switch assumes that you want to accept the defaults. If you do not use -d, press Return to accept the defaults or supply your own answers.

    4. Enter your Ubuntu password.
    5. Restart the Ubuntu virtual machine after the VMware Tools installation completes.

    Ubuntu Server with only a Command Line Interface

    1. Go to Virtual Machine > Install VMware Tools (or VM > Install VMware Tools). 

      Note: If you are running the light version of Fusion, or a version of Workstation without VMware Tools, or VMware Player, you are prompted to download the Tools before they can be installed. Click Download Now to begin the download.


    2. In the Ubuntu guest, run these commands:

      1. sudo mkdir /mnt/cdrom

        When prompted for a password, enter your Ubuntu admin user password.

        Note: For security reasons, the typed password is not displayed. You do not need to enter your password again for the next five minutes. 

      2. sudo mount /dev/cdrom /mnt/cdrom or sudo mount /dev/sr0 /mnt/cdrom

        The file name of the VMware Tools bundle varies depending on your version of the VMware product. Run this command to find the exact name:

      3. ls /mnt/cdrom

      4. tar xzvf /mnt/cdrom/VMwareTools-x.x.x-xxxx.tar.gz -C /tmp/

        Notex.x.x-xxxx is the version discovered in the previous step.

      5. cd /tmp/vmware-tools-distrib/
      6. sudo ./vmware-install.pl -d

        Note: The -d switch assumes that you want to accept the defaults. If you do not use -d, press Return to accept each default or supply your own answers.

    3. Run this command to reboot the virtual machine after the installation completes:

      sudo reboot


    + Recent posts