<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>2021/01/24 on Yano&#39;s digital garage</title>
    <link>https://www.bravotouring.com/~yano/archives/2021/01/24/</link>
    <description>Recent content in 2021/01/24 on Yano&#39;s digital garage</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Sun, 24 Jan 2021 17:12:19 +0900</lastBuildDate>
    <atom:link href="https://www.bravotouring.com/~yano/archives/2021/01/24/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Ubuntu20.04</title>
      <link>https://www.bravotouring.com/~yano/diary/it/20210124_ubuntu20.htm</link>
      <pubDate>Sun, 24 Jan 2021 17:12:19 +0900</pubDate>
      <guid>https://www.bravotouring.com/~yano/diary/it/20210124_ubuntu20.htm</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://www.bravotouring.com/~yano/diary/it/20140606vps.htm&#34;&gt;2014年6月&lt;/a&gt;にUbuntu 14.04 (Trusty)にアップデートしたbravotouring.comのサーバ。&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://www.bravotouring.com/~yano/diary/it/20190423_hugo.htm&#34;&gt;Hugo乗り換え&lt;/a&gt;を大義名分に先送りにしていたアップデートを、気の迷いで1月13日未明にうっかり実施。大胆にもdo-release-upgradeを3回繰り返し、LTS最新版のUbuntu 20.04 （Focal Fossa）という荒業にチャレンジしたメモ。&lt;/p&gt;&#xA;&lt;p&gt;まず、&lt;span class=&#34;Software&#34;&gt;spamassassin&lt;/span&gt;が起動に失敗。うん、&lt;span class=&#34;Software&#34;&gt;CPAN&lt;/span&gt;が追いついてないので無理だよね、というわけでひとまずuninstallして首絞め。&lt;/p&gt;&#xA;&lt;p&gt;続いて、&lt;a href=&#34;https://www.bravotouring.com/~yano/diary/it/20201003_opendkim.htm&#34;&gt;DKIM&lt;/a&gt;と&lt;a href=&#34;https://www.bravotouring.com/~yano/diary/it/20160905_nsd4.htm&#34;&gt;NSD&lt;/a&gt;も起動に失敗していて、メールが送受信できない事に気づいて軽く慌てはじめる。&lt;span class=&#34;Path&#34;&gt;/var/log/syslog&lt;/span&gt;の&lt;blockquote class=&#34;Log&#34;&gt;Jan 13 03:59:56 vps nsd[2349728]: Error in SSL_CTX use_certificate_file &lt;br/&gt;    crypto error:140AB18F:SSL routines:SSL_CTX_use_certificate:&lt;span class=&#34;Warning&#34;&gt;ee key too small&lt;/span&gt;&lt;/blockquote&gt;という&lt;span class=&#34;Error&#34;&gt;エラー&lt;/span&gt;に気づいた。ググってみると&lt;a href=&#34;https://www.openssl.org/news/changelog.html#openssl-111&#34;&gt;OpenSSL 1.1.1/changelog&lt;/a&gt;[28 May 2019]で&#xA;&lt;blockquote cite=&#34;https://www.openssl.org/news/changelog.html#openssl-111&#34;&gt;Change the default RSA, DSA and DH size to 2048 bit instead of 1024. This changes the size when using the genpkey command when no size is given. It fixes an omission in earlier changes that changed all RSA, DSA and DH generation commands to use 2048 bits by default.&lt;/blockquote&gt;と、鍵長が2048ビット以上でないとダメになったようなので、&lt;span class=&#34;Path&#34;&gt;nsd-control-setup&lt;/span&gt;で鍵を作り直してみた。&lt;blockquote class=&#34;Log&#34;&gt;root@vps:/etc/nsd# nsd-control-setup&lt;br/&gt;setup in directory /etc/nsd&lt;br/&gt;&lt;span class=&#34;Warning&#34;&gt;nsd_server.key exists&lt;/span&gt;&lt;br/&gt;nsd_control.key exists&lt;/blockquote&gt;&lt;br/&gt;create nsd_server.pem (self signed certificate)&lt;br/&gt;create nsd_control.pem (signed client certificate)&lt;br/&gt;Signature ok&lt;br/&gt;subject=CN = nsd-control&lt;br/&gt;Getting CA Private Key&lt;br/&gt;Setup success. Certificates created.&lt;br/&gt;root@vps:/etc/nsd# &lt;/p&gt;</description>
    </item>
    <item>
      <title>VAAPIとffmpeg</title>
      <link>https://www.bravotouring.com/~yano/diary/it/20210124_vaapi.htm</link>
      <pubDate>Sun, 24 Jan 2021 17:12:19 +0900</pubDate>
      <guid>https://www.bravotouring.com/~yano/diary/it/20210124_vaapi.htm</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://www.bravotouring.com/~yano/diary/it/20201209_vaapi.htm&#34;&gt;昨年12月&lt;/a&gt;に続いて&lt;a href=&#34;https://www.bravotouring.com/~yano/diary/it/20181030_e3_1265.htm&#34;&gt;ASRock H97 Pro4にXeon E3-1265L v3&lt;/a&gt;を載せた&lt;span class=&#34;Host&#34;&gt;Haswell&lt;/span&gt;でのQSVなハードウェアエンコードの続き。&lt;/p&gt;&#xA;&lt;p&gt;&lt;span class=&#34;Software&#34;&gt;h264_vaapi&lt;/span&gt;な&lt;span class=&#34;Software&#34;&gt;ffmpeg&lt;/span&gt;の準備。&lt;a href=&#34;https://www.bravotouring.com/~yano/diary/it/20170112_vaapi.htm&#34;&gt;2017年&lt;/a&gt;に倣ってbuildしないとなぁ…と思ってたんだけれども、&#xA;&lt;blockquote class=&#34;Log&#34;&gt;&#xA;ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers&lt;br/&gt;&#xA;  built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)&lt;br/&gt;&#xA;  configuration: --extra-libs=&#39;-lpthread -lm&#39; --enable-libmfx --enable-gpl --enable-libaom --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libx264 --enable-libx265 --enable-nonfree&lt;br/&gt;&#xA;  libavutil      56. 51.100 / 56. 51.100&lt;br/&gt;&#xA;  libavcodec     58. 91.100 / 58. 91.100&lt;br/&gt;&#xA;  libavformat    58. 45.100 / 58. 45.100&lt;br/&gt;&#xA;  libavdevice    58. 10.100 / 58. 10.100&lt;br/&gt;&#xA;  libavfilter     7. 85.100 /  7. 85.100&lt;br/&gt;&#xA;  libswscale      5.  7.100 /  5.  7.100&lt;br/&gt;&#xA;  libswresample   3.  7.100 /  3.  7.100&lt;br/&gt;&#xA;  libpostproc    55.  7.100 / 55.  7.100&lt;br/&gt;&#xA;Hyper fast Audio and Video encoder&lt;br/&gt;&#xA;usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...&lt;br/&gt;&#xA;&lt;br/&gt;&#xA;Use -h to get full help or, even better, run &#39;man ffmpeg&#39;&lt;br/&gt;&#xA;root@haswell:~# ffmpeg -encoders 2&gt;/dev/null | grep vaapi&lt;br/&gt;&#xA; V..... h264_vaapi           H.264/AVC (VAAPI) (codec h264)&lt;br/&gt;&#xA; V..... hevc_vaapi           H.265/HEVC (VAAPI) (codec hevc)&lt;br/&gt;&#xA; V..... mjpeg_vaapi          MJPEG (VAAPI) (codec mjpeg)&lt;br/&gt;&#xA; V..... mpeg2_vaapi          MPEG-2 (VAAPI) (codec mpeg2video)&lt;br/&gt;&#xA; V..... vp8_vaapi            VP8 (VAAPI) (codec vp8)&lt;br/&gt;&#xA; V..... vp9_vaapi            VP9 (VAAPI) (codec vp9)&lt;br/&gt;&#xA;root@haswell:~# &lt;/blockquote&gt;&#xA;aptで導入されたffmpegでもVAAPI対応しているみたいだ。&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
