pepoとネットワークを語ろう

40年前からこれまでとこれからのネットワークを語る

Raspberry Pi fedoraにremote-handを移植中(ffmpegをgitでインストール)

2013-03-26 07:19:12 | Linux

少し、fedoraのシステム制御は置いといてremote-hand移植に必要なパッケージをインストールせなあかん

[root@remote-hand ~]# yum install tar lrzsz ncurses-devel git kernel-headers httpd

いよいよgitでffmpegを構築インストールする
[root@remote-hand ~]# git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg
[root@remote-hand ~]# cd /usr/src/ffmpeg/
Raspberry Piにはffmpegをmakeが重い為バックグランドで
[root@remote-hand ~]#  ./configure --extra-version=20130325_rasberry_pi-pepo --prefix=/usr --enable-gpl --enable-postproc --enable-pthreads --enable-shared --enable-swscale --disable-doc && make && make install & 

まー、半日ぐらい経過したとこでffmpegのライセンスを確認
[root@remote-hand ffmpeg]# ffmpeg -L
ffmpeg version N-51240-g644092c-20130325_rasberry_pi-pepo Copyright (c) 2000-2013 the FFmpeg developers
built on Mar 10 2013 09:18:42 with gcc 4.7.2 (GCC) 20121109 (Red Hat 4.7.2-8)
configuration: --extra-version=20130325_rasberry_pi-pepo --prefix=/usr --enable-gpl --enable-postproc --enable-pthreads --enable-shared --enable-swscale --disable-doc
libavutil 52. 22.101 / 52. 22.101
libavcodec 55. 1.100 / 55. 1.100
libavformat 55. 0.100 / 55. 0.100
libavdevice 55. 0.100 / 55. 0.100
libavfilter 3. 48.100 / 3. 48.100
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
ffmpeg is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

ffmpeg is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with ffmpeg; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
[root@remote-hand ffmpeg]#

でインストールが正常に済みましたとさ

pepoと


Raspberry Pi fedoraにremote-handを移植中(systemctlで(>_<))

2013-03-26 05:58:50 | Linux

さて、Raspberry Pi にfedoraインストールできたところで

いよいよ、remote-handを移植に掛かる

あかんわ、Centos5迄の知識ではfedora18のsystem制御がつうじんがな

serviceコマンドの変わりにsystemctlでserviceを制御せなあかん

以前の(Centos5)みたいに、再起動したよみたいな表示がでえへんがな

Centos5の場合
[root@~]# service httpd restart

Stopping httpd: [ OK ]
Starting httpd: [ OK ]

fedora18の場合
[root@remote-hand ~]# systemctl restart httpd.service

なんもでんんがな

[root@remote-hand ~]# systemctl status httpd.service
で一々確認せなあかん 

httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled)
Active: active (running) since Sun 2013-03-10 17:07:20 JST; 4min 11s ago
Process: 32065 ExecStop=/usr/sbin/httpd $OPTIONS -k graceful-stop (code=exited, status=0/SUCCESS)
Main PID: 32068 (httpd)
Status: "Total requests: 0; Current requests/sec: 0; Current traffic: 0 B/sec"
CGroup: name=systemd:/system/httpd.service
├─32068 /usr/sbin/httpd -DFOREGROUND
├─32069 /usr/sbin/httpd -DFOREGROUND
├─32070 /usr/sbin/httpd -DFOREGROUND
├─32071 /usr/sbin/httpd -DFOREGROUND
├─32072 /usr/sbin/httpd -DFOREGROUND
└─32073 /usr/sbin/httpd -DFOREGROUND

Mar 10 17:07:18 remote-hand.local systemd[1]: Starting The Apache HTTP Server...
Mar 10 17:07:20 remote-hand.local systemd[1]: Started The Apache HTTP Server.
[root@remote-hand ~]#

pepoと