'개발환경/ubuntu'에 해당되는 글 7건

  1. 2014.12.19 HLS 개발환경 구축
  2. 2014.12.16 ubuntu 14.04
  3. 2013.06.09 ubuntu 12.04 NFS 설정
  4. 2013.06.09 ubuntu 12.04 TFTP 설정
  5. 2013.06.03 ubuntu 12.04 후 추가 작업
  6. 2013.06.03 ssh install
  7. 2013.06.03 samba 설정 - ubuntu 12.04

HLS 개발환경 구축

개발환경/ubuntu 2014. 12. 19. 13:45

1. ffmpeg 설치 


ubuntu 14.04에서 아래와 같이 하면 빌드 안하고 간단히 설치할 수 있음. 


#sudo apt-add-repository ppa:mc3man/trusty-media

#sudo apt-get update

#sudo apt-get install ffmpeg gstreamer0.10-ffmpeg


2. ffmpeg segment muxer를 이용한 HLS 파일 생성


ffmpeg -i [소스파일] [m3u8 파일]

#ffmpeg - test.ts playlist.m3u8


2.1. ffmpeg segment muxer option


 hls_time seconds

 segment length, default 2 second

 hls_list_size size

 playlist 최대 갯수, default 5, 한파일에 모든 playlist 넣기위해서는 '0'을 설정

 hls_ts_options options_list

 이해 안됨

 hls_wrap wrap

 이해 안됨 

 start_number number

 playlist 중에 어떤 값부터 시작할 것인지 설정

 hls_allow_cache allowcache

 쓸일 없어 보임. 

 hls_base_url baseurl

 playlist 파일명 앞에 붙을 url값 

 hls_segment_filename filename

 segment 파일의 이름을 지정

 hls_flags single_file

 segment별로 별도 파일 생성하지 않고 하나의 파일에 모두 집어 넣음. 

 hls_flags delete_segments

 실제 play할 시간에 해당하지 않는 segment 파일은 삭제한다. 


2.2. option example


#ffmpeg -i test.ts -hls_time 1 playlist.m3u8             (segment 파일 길이를 1초로 하겠다. 1초는 안먹는 듯)

#ffmpeg -i test.ts -hls_list_size 0 playlist.m3u8         (옵션 사용하지 않으면 playlist에 5개 밖에 없음)


3. VLC 설치 및 Local에서 확인


#sudo apt-get install vlc

#vlc playlist.m3u8                                                         


3.1. Apache2 Server를 이용해서 Play 확인


#mv playlist*.ts playlist.m3u8 ~$HOME/public_html       (public_html은 Apache 폴더)

#vlc http://localhost/~hskim/playlist.m3u8


위 http://localhost/~hskim 으로 ~hskim이 들어간 이유는 아래 reference에서 개인 폴더에서 Apache2 서비스를 

수행가능하도록 작업을 하였기 때문에 가능하다. 

그렇지 않으면 default 폴더는 /var/www/html 이다. 물론 여기에 넣어도 되는데 여기에 파일을 넣으면 

vlc http://localhost/playlist.m3u8이 될 것이다. 


4. ffmpeg build 시 필요한 resources


위의 1. ~ 3.까지 과정은 ffmpeg가 별도 필요없이 진행하고자 할 경우에 해당하고 아래는 빌드 원하면 

추가적으로 필요한 내용들이다. 


4.1. yasm 설치


#sudo apt-get install yasm


4.2. ffmpeg get and build


#wget http://ffmpeg.org/releases/ffmpeg-2.5.1.tar.bz2

#./configure --prefix=$HOME/ffmpeg_build

#make

#make install


git을 이용해서 받을 수 있지만 그냥 최신 release파일을 받는다. 

기본적으로 unbuntu에서 필요한 library들을 설치해서 configuration이 그냥 되지만 다른 library에 대한 

소스를 받고 싶으면 해당 사이트에 방문해서 받으면 됨. 


5. reference


https://www.ffmpeg.org/ffmpeg-formats.html


* Ubuntu Apache 서버를 개인 HOME으로 설정하기 위해서 필요한 정보가 아래 Link에 존재


http://s2junn.tistory.com/56


'개발환경 > ubuntu' 카테고리의 다른 글

ubuntu 14.04  (0) 2014.12.16
ubuntu 12.04 NFS 설정  (0) 2013.06.09
ubuntu 12.04 TFTP 설정  (0) 2013.06.09
ubuntu 12.04 후 추가 작업  (0) 2013.06.03
ssh install  (0) 2013.06.03
:

ubuntu 14.04

개발환경/ubuntu 2014. 12. 16. 20:28

1. root 권한에 password 설정

 

$hskim@hskim-VirtualBox: sudo su

root@hskim-VirtualBox: passwd

Enter new UNIX password:

Retype new UNIX password:


2. 일반 user sudo 권한 주기


/etc/sudoers 파일에서 아래 빨강색 부분 추가 

$vim /etc/sudoers

# User privilege specification

root    ALL=(ALL:ALL) ALL


# Members of the admin group may gain root privileges

%admin ALL=(ALL) ALL


# Allow members of group sudo to execute any command

%sudo   ALL=(ALL:ALL) ALL

%hskim  ALL=(ALL:ALL) ALL


# See sudoers(5) for more information on "#include" directives:


#includedir /etc/sudoers.d



3. eclipse, eclipse cdt 및 g++ 설치 



#sudo apt-get install eclipse

#sudo apt-get install eclipse-cdt g++


4. display resolution solution 

 

#sudo apt-get install virtualbox-guest-dkms

 

'개발환경 > ubuntu' 카테고리의 다른 글

HLS 개발환경 구축  (0) 2014.12.19
ubuntu 12.04 NFS 설정  (0) 2013.06.09
ubuntu 12.04 TFTP 설정  (0) 2013.06.09
ubuntu 12.04 후 추가 작업  (0) 2013.06.03
ssh install  (0) 2013.06.03
:

ubuntu 12.04 NFS 설정

개발환경/ubuntu 2013. 6. 9. 23:26

1. 패키지 설치

 

$ sudo apt-get install nfs-common nfs-kernel-server portmap

 

2. 환경 설정

 

# /etc/exports
/[directory] [Access IP adress](option)
e.g.
/home 192.168.0.11(rw,sync,no_root_squash,no_subtree_check)

 

 It says 'I would like to share /home folder with 192.168.0.11'
* Options
rw: read-write
no_root_squash: set server and client to be same

 

3. Restart server

 

$ sudo /etc/init.d/nfs-kernel-server restart
$ sudo /etc/init.d/portmap restart

 

4. 기타

 

1) Make directory used for NFS in client

 

$ sudo mkdir /export
$ sudo mkdir /export/test
$ sudo chmod 777 /export
$ sudo chmod 777 /export/test


2) Edit /etc/fstab in client

# /etc/fstab
[IP address]:/home /export/test
e.g.
192.168.0.11:/home /export/test nfs rsize=8192,wsize=8192,timeo=14,intr

 

'개발환경 > ubuntu' 카테고리의 다른 글

HLS 개발환경 구축  (0) 2014.12.19
ubuntu 14.04  (0) 2014.12.16
ubuntu 12.04 TFTP 설정  (0) 2013.06.09
ubuntu 12.04 후 추가 작업  (0) 2013.06.03
ssh install  (0) 2013.06.03
:

ubuntu 12.04 TFTP 설정

개발환경/ubuntu 2013. 6. 9. 23:16

1. Package 설치

 

$ sudo apt-get install tftp tftpd
xinetd가 인스톨 되어 있지 않을 경우 xinetd를 인스톨 한다.
$ sudo apt-get install xinetd

 

2. xinetd 설정

 

$ sudo vi /etc/xinetd.d/tftp

 

/etc/xinetd.d/tftp에 이하의 내용을 추가합니다.(있을 경우 수정, 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         = no
}

 

3. xinet 서비스 재 가동

 

$ sudo service xinetd restart
or
$ sudo /etc/init.d/xinetd restart

 

'개발환경 > ubuntu' 카테고리의 다른 글

ubuntu 14.04  (0) 2014.12.16
ubuntu 12.04 NFS 설정  (0) 2013.06.09
ubuntu 12.04 후 추가 작업  (0) 2013.06.03
ssh install  (0) 2013.06.03
samba 설정 - ubuntu 12.04  (0) 2013.06.03
:

ubuntu 12.04 후 추가 작업

개발환경/ubuntu 2013. 6. 3. 11:42

1. Network Interface 설정

 

# sudo vim /etc/network/interface

auto eth0

iface eth0 inet static

address 192.168.0.2

netmask 255.255.255.0

gateway 192.168.0.1

dns-nameservers 156.147.69.133

 

위에서 dns 설정을 해주었는데도 dns 응답이 없다면 아래와 같이 설정

 

# sudo vim /etc/resolv.conf

 nameserver 156.147.69.133

 

2. Software Package List Update & Upgrade

 

# sudo apt-get update & apt-get upgrade

 

3.SSH Server Installation for Remote Connection

 

# dpkg -l | grep ssh

<! -- ssh server package installation --> 

# sudo apt-get install openssh-server

<! -- ssh configuration -->

#sudo vim /etc/ssh/ssh_config

Port 10000

Protocol 2

PermitRootLogin no

 

4. ethtool 및 기타 Network Package Installation

 

# sudo apt-get install ethtool

 

5. Synaptic Package Installastion 

 

# sudo apt-get install synaptic

 

6. 기타

 

언어팩이 정상적으로 설치되지 않는 경우, kr.archive.ubuntu.com 한글 언어팩이 정상적으로 다운되지 않는 것이다.

시냅틱에서 설정>저장소를 실행한 후 다운로드 위치를 ftp.daum.net으로 설정한다.

설정 후, language-pakc-ko를 설치

 

마우스 오른쪽 메뉴에 터미널 나타내기

 

# sudo apt-get install nautilus-open-terminal

 

7. Referenc Site

 

http://blog.boanhack.com/54

 

 

'개발환경 > ubuntu' 카테고리의 다른 글

ubuntu 14.04  (0) 2014.12.16
ubuntu 12.04 NFS 설정  (0) 2013.06.09
ubuntu 12.04 TFTP 설정  (0) 2013.06.09
ssh install  (0) 2013.06.03
samba 설정 - ubuntu 12.04  (0) 2013.06.03
:

ssh install

개발환경/ubuntu 2013. 6. 3. 10:19

1. Package 설치

 

  - sudo apt-get install ssh

 

or

 

  - sudo apt-get install openssh-server

 

 

2. 설정 파일 변경

 

  - sudo leafpad /etc/ssh/sshd_config

 

 

3. Damon Restart

 

  - sudo /etc/init.d/ssh restart

 

or

 

  - sudo service ssh restart

 

4. Referenc Site

 

http://www.liberiangeek.net/2012/03/enable-ssh-secure-shell-in-ubuntu-12-04-precise-pangolin/

 

 

'개발환경 > ubuntu' 카테고리의 다른 글

ubuntu 14.04  (0) 2014.12.16
ubuntu 12.04 NFS 설정  (0) 2013.06.09
ubuntu 12.04 TFTP 설정  (0) 2013.06.09
ubuntu 12.04 후 추가 작업  (0) 2013.06.03
samba 설정 - ubuntu 12.04  (0) 2013.06.03
:

samba 설정 - ubuntu 12.04

개발환경/ubuntu 2013. 6. 3. 09:44

1. pakage 설정

 

    - sudo apt-get install samba smbfs

 

2. 환경 설정 파일

 

   - etc/samba/smb.conf

 

3. Share Folder 설정

 

 [share]

comment = samba directory

path = /home/hskim/share

writable = yes

guest ok = yes

browseable = yes

 

4. Samba 재 시작

 

   - service smbd restart

 

'개발환경 > ubuntu' 카테고리의 다른 글

ubuntu 14.04  (0) 2014.12.16
ubuntu 12.04 NFS 설정  (0) 2013.06.09
ubuntu 12.04 TFTP 설정  (0) 2013.06.09
ubuntu 12.04 후 추가 작업  (0) 2013.06.03
ssh install  (0) 2013.06.03
: