2019년 3월 11일 월요일

omvp, 시놀로지(synology)

omvp를 라즈베리파이(raspberry)에 설치하는건 저번에 해봤다.
https://kimchki.blogspot.com/2019/03/omvp-raspberry.html

이번에는 omvp를 시놀로지(synology)에 설치해 보자.

방법은 2가지가 있다.
(1) 시놀로지(synology)에 직접 패키지를 사용해서 설치
(2) docker를 사용해서 설치

2번째 방법을 사용하기로 했다.
docker를 사용하다니...... 뭔가 있어 보이니까.

먼저, omvp를 다운로드 하자.
http://ohhara.sarang.net/omvp/bin

이곳에서 "omvp_v0.9_omvs_v0.4_for_ubuntu_14.04_64bit.tgz"를 다운로드 하고,
docker 폴더에 넣자.

다른 어떤 인터넷 글들을 보면,
압축을 해제하고, setup.sh를 수정하는 글이 있다.
근데, 귀찮아서 그냥 했는데, 잘 되었다.

docker를 설정하자.


시놀로지(synology)에서 docker를 실행한다.
(설치 방법은 너무 간단해서 생략)


레지스트리에서 "ubuntu"를 검색한다.
맨 위에 나오는 "ubuntu"를 더블클릭한다.
이 ubuntu에 omvp를 설치할 것이다.


태그는 14.04 중에서 제일 높은걸 사용하면 된다.
이 글을 쓰고 있는 현재는 14.04.5가 제일 높다.


이미지에서 실행을 클릭한다.


고급 설정을 클릭한다.


네트워크에서 "Docker 호스트와 동일한 네트워크 사용"을 클릭한다.


시놀로지(synology)와 docker가 서로 자료를 공유할 수 있도록 하자.
볼륨에서 시놀로지(synology)의 "docker" 폴더를 docker의 "/omvp"에 마운드 하자.
완료 후, 적용을 클릭한다.


적용을 클릭한다.


비디오 형식에서 실행중인 docker ubuntu를 확인할 수 있다.

여기에서 docker ubuntu에 접속해도 되고,
putty를 사용해서 접속해도 된다.

putty를 사용해서 접속하는 방법은,
"docker ps" 해서 ID를 확인한 후에,
"docker exec -it ID /bin/bash" 이런식으로 접속하면 된다.

docker ubuntu에 접속 후, 아래 작업을 진행하면 된다.

% cd /omvp
% tar xzf omvp_v0.9_omvs_v0.4_for_ubuntu_14.04_64bit.tgz
% cd omvp
% ./setup.sh

꽤 오래 걸린다.

root@ubuntu1:/omvp/omvp# ./setup.sh
sudo: unable to resolve host ubuntu1
Ign http://archive.ubuntu.com trusty InRelease
Get:1 http://archive.ubuntu.com trusty-updates InRelease [65.9 kB]
Get:2 http://archive.ubuntu.com trusty-security InRelease [65.9 kB]
Get:3 http://archive.ubuntu.com trusty Release.gpg [933 B]
Get:4 http://archive.ubuntu.com trusty-updates/main Sources [528 kB]
Get:5 http://archive.ubuntu.com trusty-updates/restricted Sources [6449 B]
Get:6 http://archive.ubuntu.com trusty-updates/universe Sources [288 kB]
Get:7 http://archive.ubuntu.com trusty-updates/main amd64 Packages [1425 kB]
Get:8 http://archive.ubuntu.com trusty-updates/restricted amd64 Packages [21.4 kB]
Get:9 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [661 kB]
Get:10 http://archive.ubuntu.com trusty Release [58.5 kB]
Get:11 http://archive.ubuntu.com trusty-security/main Sources [217 kB]
Get:12 http://archive.ubuntu.com trusty-security/restricted Sources [5050 B]
Get:13 http://archive.ubuntu.com trusty-security/universe Sources [125 kB]
Get:14 http://archive.ubuntu.com trusty-security/main amd64 Packages [1004 kB]
Get:15 http://archive.ubuntu.com trusty-security/restricted amd64 Packages [18.1 kB]
Get:16 http://archive.ubuntu.com trusty-security/universe amd64 Packages [368 kB]
Get:17 http://archive.ubuntu.com trusty/main Sources [1335 kB]
Get:18 http://archive.ubuntu.com trusty/restricted Sources [5335 B]
Get:19 http://archive.ubuntu.com trusty/universe Sources [7926 kB]
Get:20 http://archive.ubuntu.com trusty/main amd64 Packages [1743 kB]
Get:21 http://archive.ubuntu.com trusty/restricted amd64 Packages [16.0 kB]
Get:22 http://archive.ubuntu.com trusty/universe amd64 Packages [7589 kB]
Fetched 23.5 MB in 14s (1673 kB/s)
Reading package lists... Done
sudo: unable to resolve host ubuntu1
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  acl at-spi2-core ca-certificates colord dbus dconf-gsettings-backend
  dconf-service fontconfig fontconfig-config fonts-dejavu-core freepats
  gcc-4.8-base glib-networking glib-networking-common glib-networking-services
  gsettings-desktop-schemas gstreamer1.0-plugins-bad-faad
  gstreamer1.0-plugins-bad-videoparsers gstreamer1.0-plugins-base
  gstreamer1.0-x hicolor-icon-theme iso-codes krb5-locales liba52-0.7.4 libaa1
  libapparmor1 libasn1-8-heimdal libasound2 libasound2-data libass4
  libasyncns0 libatk-bridge2.0-0 libatk1.0-0 libatk1.0-data libatspi2.0-0
  libavahi-client3 libavahi-common-data libavahi-common3 libavc1394-0
  libavcodec54 libavformat54 libavutil52 libcaca0 libcairo-gobject2 libcairo2
  libcdio13 libcdparanoia0 libchromaprint0 libclutter-1.0-0
  libclutter-1.0-common libcogl-common libcogl-pango15 libcogl15 libcolord1
  libcolorhug1 libcroco3 libcups2 libcurl3-gnutls libdatrie1 libdc1394-22
  libdca0 libdconf1 libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libdv4
  libdvdnav4 libdvdread4 libegl1-mesa libegl1-mesa-drivers libelf1 libenca0
  libexif12 libfaad2 libfftw3-double3 libflac8 libflite1 libfluidsynth1
  libfontconfig1 libfreetype6 libgbm1 libgd3 libgdk-pixbuf2.0-0
  libgdk-pixbuf2.0-common libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa
  libgles2-mesa libglib2.0-0 libglib2.0-data libglu1-mesa libgme0 libgomp1
  libgphoto2-6 libgphoto2-l10n libgphoto2-port10 libgpm2 libgraphite2-3
  libgsm1 libgssapi-krb5-2 libgssapi3-heimdal libgstreamer-plugins-bad1.0-0
  libgstreamer-plugins-base1.0-0 libgstreamer-plugins-good1.0-0 libgtk-3-0
  libgtk-3-bin libgtk-3-common libgtk2.0-0 libgtk2.0-bin libgtk2.0-common
  libgtkglext1 libgudev-1.0-0 libgusb2 libharfbuzz0b libhcrypto4-heimdal
  libheimbase1-heimdal libheimntlm0-heimdal libhx509-5-heimdal libice6
  libidn11 libiec61883-0 libieee1284-3 libilmbase6 libjack-jackd2-0 libjasper1
  libjbig0 libjpeg-turbo8 libjpeg8 libjson-glib-1.0-0 libjson-glib-1.0-common
  libk5crypto3 libkate1 libkeyutils1 libkrb5-26-heimdal libkrb5-3
  libkrb5support0 liblcms2-2 libldap-2.4-2 libllvm3.4 libltdl7 libmad0
  libmimic0 libmms0 libmodplug1 libmp3lame0 libmpeg2-4 libmpg123-0 libofa0
  libogg0 libopenal-data libopenal1 libopencore-amrnb0 libopencore-amrwb0
  libopencv-calib3d2.4 libopencv-contrib2.4 libopencv-core2.4
  libopencv-features2d2.4 libopencv-flann2.4 libopencv-highgui2.4
  libopencv-imgproc2.4 libopencv-legacy2.4 libopencv-ml2.4
  libopencv-objdetect2.4 libopencv-video2.4 libopenexr6 libopenjpeg2
  libopenvg1-mesa libopus0 liborc-0.4-0 libpam-systemd libpango-1.0-0
  libpangocairo-1.0-0 libpangoft2-1.0-0 libpangox-1.0-0 libpciaccess0
  libpixman-1-0 libpolkit-agent-1-0 libpolkit-backend-1-0
  libpolkit-gobject-1-0 libproxy1 libpulse0 libraw1394-11 libroken18-heimdal
  librsvg2-2 librsvg2-common librtmp0 libsamplerate0 libsane libsane-common
  libsasl2-2 libsasl2-modules libsasl2-modules-db libsbc1
  libschroedinger-1.0-0 libshout3 libsidplay1 libsm6 libsndfile1
  libsoundtouch0 libsoup2.4-1 libspandsp2 libspeex1 libsrtp0 libstdc++6
  libswscale2 libsystemd-daemon0 libsystemd-login0 libtag1-vanilla libtag1c2a
  libtbb2 libthai-data libthai0 libtheora0 libtiff5 libtwolame0
  libtxc-dxtn-s2tc0 libusb-1.0-0 libv4l-0 libv4lconvert0 libva1
  libvisual-0.4-0 libvisual-0.4-plugins libvo-aacenc0 libvo-amrwbenc0
  libvorbis0a libvorbisenc2 libvpx1 libwavpack1 libwayland-client0
  libwayland-cursor0 libwayland-egl1-mesa libwayland-server0 libwebp5
  libwildmidi-config libwildmidi1 libwind0-heimdal libwrap0 libx11-6
  libx11-data libx11-xcb1 libx264-142 libxau6 libxcb-dri2-0 libxcb-dri3-0
  libxcb-glx0 libxcb-present0 libxcb-render0 libxcb-shm0 libxcb-sync1
  libxcb-xfixes0 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxdmcp6
  libxext6 libxfixes3 libxi6 libxinerama1 libxkbcommon0 libxml2 libxmu6
  libxpm4 libxrandr2 libxrender1 libxshmfence1 libxt6 libxtst6 libxv1
  libxvidcore4 libxxf86vm1 libzbar0 openssl policykit-1 sgml-base
  shared-mime-info systemd-services systemd-shim tcpd x11-common xml-core
Suggested packages:
  dbus-x11 frei0r-plugins gvfs isoquery libasound2-plugins alsa-utils
  libchromaprint-tools python-acoustid cups-common libdv-bin oss-compat
  libdvdcss2 build-essential debhelper fakeroot libfftw3-bin libfftw3-dev
  alsa-base libgd-tools libglide3 gphoto2 gtkam gpm krb5-doc krb5-user
  gstreamer-codec-install gnome-codec-install gstreamer1.0-tools jackd2
  libjasper-runtime liblcms2-utils libportaudio2 libroar-compat2 opus-tools
  ttf-baekmuk ttf-arphic-gbsn00lp ttf-arphic-bsmi00lp ttf-arphic-gkai00mp
  ttf-arphic-bkai00mp pciutils pulseaudio libraw1394-doc librsvg2-bin
  avahi-daemon hplip hpoj libsane-extras sane-utils libsasl2-modules-otp
  libsasl2-modules-ldap libsasl2-modules-sql libsasl2-modules-gssapi-mit
  libsasl2-modules-gssapi-heimdal sidplay-base xsidplay speex srtp-utils
  sgml-base-doc cgmanager pm-utils
The following NEW packages will be installed:
  acl at-spi2-core ca-certificates colord dbus dconf-gsettings-backend
  dconf-service fontconfig fontconfig-config fonts-dejavu-core freepats
  glib-networking glib-networking-common glib-networking-services
  gsettings-desktop-schemas gstreamer1.0-libav gstreamer1.0-plugins-bad
  gstreamer1.0-plugins-bad-faad gstreamer1.0-plugins-bad-videoparsers
  gstreamer1.0-plugins-base gstreamer1.0-plugins-good
  gstreamer1.0-plugins-ugly gstreamer1.0-x hicolor-icon-theme iso-codes
  krb5-locales liba52-0.7.4 libaa1 libapparmor1 libasn1-8-heimdal libasound2
  libasound2-data libass4 libasyncns0 libatk-bridge2.0-0 libatk1.0-0
  libatk1.0-data libatspi2.0-0 libavahi-client3 libavahi-common-data
  libavahi-common3 libavc1394-0 libavcodec54 libavformat54 libavutil52
  libcaca0 libcairo-gobject2 libcairo2 libcdio13 libcdparanoia0
  libchromaprint0 libclutter-1.0-0 libclutter-1.0-common libclutter-gst-2.0-0
  libcogl-common libcogl-pango15 libcogl15 libcolord1 libcolorhug1 libcroco3
  libcups2 libcurl3-gnutls libdatrie1 libdc1394-22 libdca0 libdconf1
  libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libdv4 libdvdnav4 libdvdread4
  libegl1-mesa libegl1-mesa-drivers libelf1 libenca0 libexif12 libfaad2
  libfftw3-double3 libflac8 libflite1 libfluidsynth1 libfontconfig1
  libfreetype6 libgbm1 libgd3 libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-common
  libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa libgles2-mesa libglib2.0-0
  libglib2.0-data libglu1-mesa libgme0 libgomp1 libgphoto2-6 libgphoto2-l10n
  libgphoto2-port10 libgpm2 libgraphite2-3 libgsm1 libgssapi-krb5-2
  libgssapi3-heimdal libgstreamer-plugins-bad1.0-0
  libgstreamer-plugins-base1.0-0 libgstreamer-plugins-good1.0-0
  libgstreamer1.0-0 libgtk-3-0 libgtk-3-bin libgtk-3-common libgtk2.0-0
  libgtk2.0-bin libgtk2.0-common libgtkglext1 libgudev-1.0-0 libgusb2
  libharfbuzz0b libhcrypto4-heimdal libheimbase1-heimdal libheimntlm0-heimdal
  libhx509-5-heimdal libice6 libidn11 libiec61883-0 libieee1284-3 libilmbase6
  libjack-jackd2-0 libjasper1 libjbig0 libjpeg-turbo8 libjpeg8
  libjson-glib-1.0-0 libjson-glib-1.0-common libk5crypto3 libkate1
  libkeyutils1 libkrb5-26-heimdal libkrb5-3 libkrb5support0 liblcms2-2
  libldap-2.4-2 libllvm3.4 libltdl7 libmad0 libmimic0 libmms0 libmodplug1
  libmp3lame0 libmpeg2-4 libmpg123-0 libofa0 libogg0 libopenal-data libopenal1
  libopencore-amrnb0 libopencore-amrwb0 libopencv-calib3d2.4
  libopencv-contrib2.4 libopencv-core2.4 libopencv-features2d2.4
  libopencv-flann2.4 libopencv-highgui2.4 libopencv-imgproc2.4
  libopencv-legacy2.4 libopencv-ml2.4 libopencv-objdetect2.4
  libopencv-video2.4 libopenexr6 libopenjpeg2 libopenvg1-mesa libopus0
  liborc-0.4-0 libpam-systemd libpango-1.0-0 libpangocairo-1.0-0
  libpangoft2-1.0-0 libpangox-1.0-0 libpcap0.8 libpciaccess0 libpixman-1-0
  libpolkit-agent-1-0 libpolkit-backend-1-0 libpolkit-gobject-1-0 libproxy1
  libpulse0 libraw1394-11 libroken18-heimdal librsvg2-2 librsvg2-common
  librtmp0 libsamplerate0 libsane libsane-common libsasl2-2 libsasl2-modules
  libsasl2-modules-db libsbc1 libschroedinger-1.0-0 libshout3 libsidplay1
  libsm6 libsndfile1 libsoundtouch0 libsoup2.4-1 libspandsp2 libspeex1
  libsrtp0 libswscale2 libsystemd-daemon0 libsystemd-login0 libtag1-vanilla
  libtag1c2a libtbb2 libthai-data libthai0 libtheora0 libtiff5 libtwolame0
  libtxc-dxtn-s2tc0 libusb-1.0-0 libv4l-0 libv4lconvert0 libva1
  libvisual-0.4-0 libvisual-0.4-plugins libvo-aacenc0 libvo-amrwbenc0
  libvorbis0a libvorbisenc2 libvpx1 libwavpack1 libwayland-client0
  libwayland-cursor0 libwayland-egl1-mesa libwayland-server0 libwebp5
  libwildmidi-config libwildmidi1 libwind0-heimdal libwrap0 libx11-6
  libx11-data libx11-xcb1 libx264-142 libxau6 libxcb-dri2-0 libxcb-dri3-0
  libxcb-glx0 libxcb-present0 libxcb-render0 libxcb-shm0 libxcb-sync1
  libxcb-xfixes0 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxdmcp6
  libxext6 libxfixes3 libxi6 libxinerama1 libxkbcommon0 libxml2 libxmu6
  libxpm4 libxrandr2 libxrender1 libxshmfence1 libxt6 libxtst6 libxv1
  libxvidcore4 libxxf86vm1 libzbar0 openssl policykit-1 sgml-base
  shared-mime-info systemd-services systemd-shim tcpd x11-common xml-core
The following packages will be upgraded:
  gcc-4.8-base libstdc++6
2 upgraded, 286 newly installed, 0 to remove and 57 not upgraded.
Need to get 99.6 MB of archives.
After this operation, 307 MB of additional disk space will be used.

다 끝나면, 랜카드 번호를 알아내야 한다.
eth0 로 나오는걸 찾으면 된다.
% ./omvs -l

이제 스켄(scan)을 진행하면 된다.
% ./omvs -i 0 -j 4 XXX.XX.XXX.0/24

출처
https://www.clien.net/service/board/cm_nas/12494711

댓글 없음:

댓글 쓰기

화곡 어쩌라고, 굴사냥

석화찜(굴찜)을 먹으러 여의도로 갔다 그런데 재료가 모두 소진되었다고 마감이라고 한다 응? 다들 굴에 미쳤나? 굴을 찾아 헤매다 보니, 화곡까지 가게 되었다. 화곡은 처음 가본다. 첫인상은 "술집 겁네 많네" 피똥쌀때까지 마실 수 있...