11.Nas_1


새창 작성 수정 목록 링크 Edit G카랜다 HDD HDD HDD 게시물 주소 복사


u5pvr 리눅스 펌웨어 진행 준비 webdav tvheadend 백업후 복원까지 정상화 하기 20180215

♨ 카랜더 일정 :
  • 링크

  • 첨부

  • 컨텐츠 정보

    본문

    u5pvr 리눅스 펌웨어 진행 준비  webdav tvheadend 백업후 복원까지 정상화 하기 20180215

    3232235521_1518702803.8062.png

    #백업하기


    #/home/hts/.hts/tvheadend/ 백업 /home/hts/.hts/tvheadend/ /mnt/media_rw/sda5/tv006_u5pvr/tvheaded_backup/tvheadend/
    cp -r -v -f -p -a /home/hts/.hts/tvheadend /mnt/media_rw/sda5/tv006_u5pvr/tvheaded_backup
    ----------------------------
    #nano /etc/apache2/sites-available/webdav.conf
    cp -v -f -p -a /etc/apache2/sites-available/webdav.conf /mnt/media_rw/sda5/tv006_u5pvr/tvheaded_backup/tvheadend/webdav_config_file/webdav.conf

    #nano /etc/apache2/mods-enabled/dav_fs.conf
    cp -v -f -p -a /etc/apache2/mods-enabled/dav_fs.conf /mnt/media_rw/sda5/tv006_u5pvr/tvheaded_backup/tvheadend/webdav_config_file/dav_fs.conf

    #nano /etc/apache2/sites-available/listing.conf
    cp -v -f -p -a /etc/apache2/sites-available/listing.conf /mnt/media_rw/sda5/tv006_u5pvr/tvheaded_backup/tvheadend/webdav_config_file/listing.conf

    #nano /etc/apache2/ports.conf
    cp -v -f -p -a /etc/apache2/ports.conf /mnt/media_rw/sda5/tv006_u5pvr/tvheaded_backup/tvheadend/webdav_config_file/ports.conf


    #nano /etc/apache2/sites-available/webdav_basic.conf
    cp -v -f -p -a /etc/apache2/sites-available/webdav_basic.conf /mnt/media_rw/sda5/tv006_u5pvr/tvheaded_backup/tvheadend/webdav_config_file/webdav_basic.conf

    $nano /etc/apache2/ports.conf
    cp -v -f -p -a /etc/apache2/ports.conf /mnt/media_rw/sda5/tv006_u5pvr/tvheaded_backup/tvheadend/webdav_config_file/ports.conf


    ==============

    linux 신규 펌웨어로 업데이트 진행

    root 접속 
    #root passwd 변경
    passwd

    3232235521_1518692383.2627.png
    #/home/hts/.hts/tvheadend/ 복원 /home/hts/.hts/tvheadend/ /mnt/media_rw/sda5/tv006_u5pvr/tvheaded_backup/tvheadend/
    cp -r -v -f -p -a /mnt/media_rw/sda5/tv006_u5pvr/tvheaded_backup/tvheadend /home/hts/.hts
    주) /home/hts/.hts/tvheadend/remote_usr_bin_copy_file/tv_grab_file
    에 파일저장 되었습니다.

    권한은 한번 해 놓으면 유지 및 /usr/bin 폴더에 복사
    cd /home/hts/.hts/tvheadend/remote_usr_bin_copy_file

    cp -v -f -p -a tv_grab_file6 /usr/bin
    cp -v -f -p -a tv_grab_file33 /usr/bin
    cp -v -f -p -a tv_grab_file /usr/bin

    # TVH 를 재시작합니다. http://192.168.0.33/9981
    service tvheadend restart
    정상적으로 
    3232235521_1518693938.4445.png
    3232235521_1518694646.3222.png

    webdav 설치후 


    3232235521_1518695614.0499.png
    3232235521_1518701352.3121.png
    3232235521_1518701380.4927.png
    #U5pvr 리눅스 업데이트 진행전 tvheadend 와 webdav  설정 백업 복원 하기  20180215
    #백업하기

    #/home/hts/.hts/tvheadend/ 백업 /home/hts/.hts/tvheadend/ /mnt/media_rw/sda5/tv006_u5pvr/tvheaded_backup/tvheadend/
    cp -r -v -f -p -a /home/hts/.hts/tvheadend /mnt/media_rw/sda5/tv006_u5pvr/tvheaded_backup
    ----------------------------
    #nano /etc/apache2/sites-available/webdav.conf
    cp -v -f -p -a /etc/apache2/sites-available/webdav.conf /mnt/media_rw/sda5/tv006_u5pvr/tvheaded_backup/tvheadend/webdav_config_file/webdav.conf

    #nano /etc/apache2/mods-enabled/dav_fs.conf
    cp -v -f -p -a /etc/apache2/mods-enabled/dav_fs.conf /mnt/media_rw/sda5/tv006_u5pvr/tvheaded_backup/tvheadend/webdav_config_file/dav_fs.conf

    #nano /etc/apache2/sites-available/listing.conf
    cp -v -f -p -a /etc/apache2/sites-available/listing.conf /mnt/media_rw/sda5/tv006_u5pvr/tvheaded_backup/tvheadend/webdav_config_file/listing.conf

    #nano /etc/apache2/ports.conf
    cp -v -f -p -a /etc/apache2/ports.conf /mnt/media_rw/sda5/tv006_u5pvr/tvheaded_backup/tvheadend/webdav_config_file/ports.conf


    #nano /etc/apache2/sites-available/webdav_basic.conf
    cp -v -f -p -a /etc/apache2/sites-available/webdav_basic.conf /mnt/media_rw/sda5/tv006_u5pvr/tvheaded_backup/tvheadend/webdav_config_file/webdav_basic.conf

    $nano /etc/apache2/ports.conf
    cp -v -f -p -a /etc/apache2/ports.conf /mnt/media_rw/sda5/tv006_u5pvr/tvheaded_backup/tvheadend/webdav_config_file/ports.conf

    # 리눅스 업데이트 진행후 복원하기 

    #******************************************************************
    # 리눅스 업데이트 진행후 복원하기 ********************************************
    #******************************************************************
    # 초기설치후 암호 root androidoverlinux

    #root passwd 변경
    passwd

    #1).tvheadend 복원
    #1.복사 /home/hts/.hts/tvheadend/ 복원 /home/hts/.hts/tvheadend/ /mnt/media_rw/sda5/tv006_u5pvr/tvheaded_backup/tvheadend/
    cp -r -v -f -p -a /mnt/media_rw/sda5/tv006_u5pvr/tvheaded_backup/tvheadend /home/hts/.hts


    #2.권한및 /usr/bin 폴더에 복사
    #/mnt/media_rw/sda5/tv006_u5pvr/tvheaded_backup/tvheadend/remote_usr_bin_copy_file/tv_grab_file6
    cd /home/hts/.hts/tvheadend/remote_usr_bin_copy_file
    #chmod +x tv_grab_file6
    #chmod +x tv_grab_file33
    #chmod +x tv_grab_file
    #상기 명령은 한번 하면 유지
    cp -v -f -p -a tv_grab_file6 /usr/bin
    cp -v -f -p -a tv_grab_file33 /usr/bin
    cp -v -f -p -a tv_grab_file /usr/bin


    #3. TVH 를 재시작합니다. http://192.168.0.33/9981
    service tvheadend restart


    #2).WEBDAV 구동하기    http://cafe.naver.com/mk802/20251


    #리눅스 업데이트 후 설정 복원 발벙


    #1. apache2 설치 및 WebDAV 에 연결하기  http://192.168.0.33/ 설정하기
    apt-get install apache2
    a2enmod dav dav_fs auth_digest
    a2dissite 000-default

    # WebDAV 에 연결하기  http://192.168.0.33/
    # nano /etc/apache2/sites-available/webdav.conf
    # cp -v -f -p -a /etc/apache2/sites-available/webdav.conf /mnt/media_rw/sda5/tv006_u5pvr/tvheaded_backup/tvheadend/webdav_config_file/webdav.conf
    cp -v -f -p -a /mnt/media_rw/sda5/tv006_u5pvr/tvheaded_backup/tvheadend/webdav_config_file/webdav.conf /etc/apache2/sites-available/webdav.conf 

    a2ensite webdav.conf

    #2.다음으로 패스워드 파일을 생성합니다.
    htdigest -c /etc/apache2/passwd.dav WebDAV shimss
    ****
    ****
    service apache2 restart
    adduser www-data aid_sdcard_r
    adduser www-data aid_media_rw

    #3. WebDAV 에 연결하기  http://192.168.0.33/

    # WebDAV 에 연결하기  http://192.168.0.33/
    # 쓰기가 안되시는 분들 참고 부탁드립니다
    # nano /etc/apache2/mods-enabled/dav_fs.conf
    # cp -v -f -p -a /etc/apache2/mods-enabled/dav_fs.conf /mnt/media_rw/sda5/tv006_u5pvr/tvheaded_backup/tvheadend/webdav_config_file/dav_fs.conf
    cp -v -f -p -a /mnt/media_rw/sda5/tv006_u5pvr/tvheaded_backup/tvheadend/webdav_config_file/dav_fs.conf /etc/apache2/mods-enabled/dav_fs.conf

    mkdir /etc/apache2/lock
    chown www-data /etc/apache2/lock

    ========================

    # WebDAV 에 연결하기 no_password http://192.168.0.33:8000
    # 디랙토리지정
    # nano /etc/apache2/sites-available/listing.conf
    # cp -v -f -p -a /etc/apache2/sites-available/listing.conf /mnt/media_rw/sda5/tv006_u5pvr/tvheaded_backup/tvheadend/webdav_config_file/listing.conf
    cp -v -f -p -a /mnt/media_rw/sda5/tv006_u5pvr/tvheaded_backup/tvheadend/webdav_config_file/listing.conf /etc/apache2/sites-available/listing.conf

    # WebDAV 에 연결하기 no_password http://192.168.0.33:8000 
    # 포트지정 
    # nano /etc/apache2/ports.conf
    # cp -v -f -p -a /etc/apache2/ports.conf /mnt/media_rw/sda5/tv006_u5pvr/tvheaded_backup/tvheadend/webdav_config_file/ports.conf
    cp -v -f -p -a /mnt/media_rw/sda5/tv006_u5pvr/tvheaded_backup/tvheadend/webdav_config_file/ports.conf /etc/apache2/ports.conf

    #추가적으로 설정파일을 활성화하고 서버를 reload 합니다.
    a2ensite listing.conf
    service apache2 reload

    #3. WebDAV 8000에 연결하기  http://192.168.0.33/8000

    ====================
    # WebDAV Basic 인증 설정하기 (포트 7000)
    # nano /etc/apache2/sites-available/webdav_basic.conf
    # cp -v -f -p -a /etc/apache2/sites-available/webdav_basic.conf /mnt/media_rw/sda5/tv006_u5pvr/tvheaded_backup/tvheadend/webdav_config_file/webdav_basic.conf
    cp -v -f -p -a /mnt/media_rw/sda5/tv006_u5pvr/tvheaded_backup/tvheadend/webdav_config_file/webdav_basic.conf /etc/apache2/sites-available/webdav_basic.conf

    # WebDAV Basic 인증 설정하기 (포트 7000)
    # nano /etc/apache2/ports.conf
    # cp -v -f -p -a /etc/apache2/ports.conf /mnt/media_rw/sda5/tv006_u5pvr/tvheaded_backup/tvheadend/webdav_config_file/ports.conf
    cp -v -f -p -a /mnt/media_rw/sda5/tv006_u5pvr/tvheaded_backup/tvheadend/webdav_config_file/ports.conf /etc/apache2/ports.conf

    a2ensite webdav_basic.conf
    service apache2 reload

    #다음으로 패스워드 파일을 생성합니다.
    htpasswd -c /etc/apache2/passwd_basic.dav shimss
    ****
    ****

    #4. WebDAV 7000에 연결하기  http://192.168.0.33/7000

    ----------------

    파일 수정 내용

    ===============
    # WebDAV 에 연결하기  http://192.168.0.33/
    # nano /etc/apache2/sites-available/webdav.conf
    # cp -v -f -p -a /etc/apache2/sites-available/webdav.conf /mnt/media_rw/sda5/tv006_u5pvr/tvheaded_backup/tvheadend/webdav_config_file/webdav.conf
    # cp -v -f -p -a /mnt/media_rw/sda5/tv006_u5pvr/tvheaded_backup/tvheadend/webdav_config_file/webdav.conf /etc/apache2/sites-available/webdav.conf

    <VirtualHost *:80>
        DocumentRoot /mnt
        <Directory /mnt>
            Options Indexes MultiViews FollowSymLinks
            AllowOverride none
            Require all granted
        </Directory>
        <Location />
            DAV On
            AuthType Digest
            AuthName "WebDAV"
            AuthDigestDomain /
            AuthDigestProvider file
            AuthUserFile /etc/apache2/passwd.dav
            Require valid-user
        </Location>
    </VirtualHost>
    ======================
    # WebDAV 에 연결하기  http://192.168.0.33/
    # 쓰기가 안되시는 분들 참고
    # nano /etc/apache2/mods-enabled/dav_fs.conf
    # cp -v -f -p -a /etc/apache2/mods-enabled/dav_fs.conf /mnt/media_rw/sda5/tv006_u5pvr/tvheaded_backup/tvheadend/webdav_config_file/dav_fs.conf
    # cp -v -f -p -a /mnt/media_rw/sda5/tv006_u5pvr/tvheaded_backup/tvheadend/webdav_config_file/dav_fs.conf /etc/apache2/mods-enabled/dav_fs.conf
    # DAVLockDB ${APACHE_LOCK_DIR}/DAVLock
    DAVLockDB /etc/apache2/lock/DAVLock
    # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
    ====================
    ====================
    # WebDAV 에 연결하기 no_password http://192.168.0.33:8000
    # 디랙토리지정
    # nano /etc/apache2/sites-available/listing.conf
    # cp -v -f -p -a /etc/apache2/sites-available/listing.conf /mnt/media_rw/sda5/tv006_u5pvr/tvheaded_backup/tvheadend/webdav_config_file/listing.conf
    # cp -v -f -p -a /mnt/media_rw/sda5/tv006_u5pvr/tvheaded_backup/tvheadend/webdav_config_file/listing.conf /etc/apache2/sites-available/listing.conf
    <VirtualHost *:8000>
    # 포트를 여기다 기입합니다.
        DocumentRoot /mnt/media_rw/sda5/11q
    # 경로를 기입합니다.
        <Directory /mnt/media_rw/sda5>
    # 해당 경로에 대한 옵션입니다.
            Options Indexes MultiViews FollowSymLinks
    # 여기서 Indexes 가 파일  $
            AllowOverride none
            Require all granted
        </Directory>
    </VirtualHost>
    ============================
    # WebDAV 에 연결하기 no_password http://192.168.0.33:8000
    # 포트지정
    # nano /etc/apache2/ports.conf
    # cp -v -f -p -a /etc/apache2/ports.conf /mnt/media_rw/sda5/tv006_u5pvr/tvheaded_backup/tvheadend/webdav_config_file/ports.conf
    # cp -v -f -p -a /mnt/media_rw/sda5/tv006_u5pvr/tvheaded_backup/tvheadend/webdav_config_file/ports.conf /etc/apache2/ports.conf
    # If you just change the port or add more ports here, you will likely also
    # have to change the VirtualHost statement in
    # /etc/apache2/sites-enabled/000-default.conf

    Listen 80
    Listen 8000
    #8000번추가
    Listen 7000
    #7000 추가

    <IfModule ssl_module>
            Listen 443
    </IfModule>

    <IfModule mod_gnutls.c>
            Listen 443
    </IfModule>

    # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
    ===========================
    ============================
    # WebDAV Basic 인증 설정하기 (포트 7000)
    # nano /etc/apache2/sites-available/webdav_basic.conf
    # cp -v -f -p -a /etc/apache2/sites-available/webdav_basic.conf /mnt/media_rw/sda5/tv006_u5pvr/tvheaded_backup/tvheadend/webdav_config_file/webdav_basic.conf
    # cp -v -f -p -a /mnt/media_rw/sda5/tv006_u5pvr/tvheaded_backup/tvheadend/webdav_config_file/webdav_basic.conf /etc/apache2/sites-available/webdav_basic.conf
    <VirtualHost *:7000>
    # 포트 번호 : 7000
        DocumentRoot /mnt/media_rw/sda5
    # document root 지정
        <Directory /mnt>
    # 상위 폴더를 지정하여 옵션을 주면 하위폴더도 자동 적용됨
            Options Indexes MultiViews FollowSymLinks
            AllowOverride none
            Require all granted
        </Directory>
        <Location />
            DAV On
            AuthType Basic
            AuthName "WebDAV"
    # <-- realm 값입니다.
            AuthUserFile /etc/apache2/passwd_basic.dav
    # <-- 패스워드 파일 위치
            Require valid-user
        </Location>
    </VirtualHost>
    ============================
    # WebDAV 에 연결하기 password http://192.168.0.33:7000
    # 포트지정
    # nano /etc/apache2/ports.conf
    # cp -v -f -p -a /etc/apache2/ports.conf /mnt/media_rw/sda5/tv006_u5pvr/tvheaded_backup/tvheadend/webdav_config_file/ports.conf
    # cp -v -f -p -a /mnt/media_rw/sda5/tv006_u5pvr/tvheaded_backup/tvheadend/webdav_config_file/ports.conf /etc/apache2/ports.conf
    #
    # WebDAV Basic 인증 설정하기 (포트 7000)
    # nano /etc/apache2/ports.conf
    # cp -v -f -p -a /etc/apache2/ports.conf /mnt/media_rw/sda5/tv006_u5pvr/tvheaded_backup/tvheadend/webdav_config_file/ports.conf
    # cp -v -f -p -a /mnt/media_rw/sda5/tv006_u5pvr/tvheaded_backup/tvheadend/webdav_config_file/ports.conf /etc/apache2/ports.conf
    #
    # If you just change the port or add more ports here, you will likely also
    # have to change the VirtualHost statement in
    # /etc/apache2/sites-enabled/000-default.conf

    Listen 80
    Listen 8000
    #8000번추가
    Listen 7000
    #7000 추가

    <IfModule ssl_module>
            Listen 443
    </IfModule>

    <IfModule mod_gnutls.c>
            Listen 443
    </IfModule>

    # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
    ================================
    3232235521_1518691431.4943.png
    3232235521_1518702531.3915.png


    [ 추가 정보 ... 더보기) ]
    뷰PDF 1,2



    office view

    관련자료

    댓글목록

    profile_image

    shimss11q님의 댓글

    shimss11q 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 아이피 (192.♡.0.1) 작성일

    tvheadend 백업한것 복원하기
    cp -r -v -f -p -a /mnt/media_rw/sda5/tv006_u5pvr/tvheaded_backup/tvheadend /home/hts/.hts
    cd /home/hts/.hts/tvheadend/remote_usr_bin_copy_file
    cp -v -f -p -a tv_grab_file6 /usr/bin
    cp -v -f -p -a tv_grab_file33 /usr/bin
    cp -v -f -p -a tv_grab_file /usr/bin

    profile_image

    둥이파파님의 댓글

    no_profile 둥이파파 쪽지보내기 자기소개 아이디로 검색 전체게시물 아이피 (180.♡.175.216) 작성일

    감사합니다.

    목록

    새창 작성 수정 목록 링크 Edit G카랜다 HDD HDD HDD 게시물 주소 복사




    Total 1,672 / 21 Page
    [ 아미나 스킨 1.5.2 패치 ]

    \r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n아미나 스킨 1.5.2 패치\r\n\r\nAD한별아빠\r\n\r\…

    [ homepage_photo station 슬라이드 삽입 방법 / photo station공유 폴더 만들기 ] 댓글 1

     \r\n\r\n\r\n[이 게시물은 관리자님에 의해 2012-12-30 23:24:44 14.H_banner에서 복사 됨]\r\n사진 관리를…

    [ 테고리 지원하는 상단 자동메뉴 ]

    테고리 지원하는 상단 자동메뉴\r\n\r\n\r\n시하\r\n작성일시2011.10.24 15:36:25\r\n조회7,337\r\n댓글77관련링크…

    [ 배추빌더 update 하기 / 초기 설정후 메인메뉴 설정 ] 댓글 1

    G01, M01, S01 그룹아이디,중메뉴아이디,소그룹 테이블 아이디 등은 수정이 안되구여,모두 삭제하신 후 다시 만들어주셔야 해요. 단, 테이…

    [ pc모드 아미나g4s에 적용 auto menu ]

    ###■ https://11q.kr는 정보를 찾아 공유 합니다..■ https://11q.kr\n[이 게시물은 관리자님에 의해 2013-11-1…

    [ 싸이노래 ezlink ]

    EzLink\r\n\r\n\r\n \r\n 다운로드 파일 목록 \r\n\r\n\r\n \r\n \r\n \r\n 007 싸이 - 강남스타일.mp…

    [ diskstation_filestation 2giga이상 파일 업로드 하기 ]

    \r\n파일 다운로드 2기가 이상 전송이 되지 않는 원도우에서\r\n자바를 재설치 하세요\r\n###■ https://11q.kr는 정보를 찾아…

    [ cloud,크라우드 서비스 설정 ]

    11q.kr 는 네이버/구글에서 검색 찾아오세요\r\n--------------------------------------------------…

    [ 댓글/ 코멘트 comments 에서 html 소스가 모두 보이는것 해결 ] 댓글 4

    .댓글에서는 태그 안먹이나요 ? 진행중 \r\n\r\n\r\n서비꼬 \r\n작성일시 2009.10.20 13:29:24 \r\n조회 474 \r…

    [ [홈피up]아미나 스킨 홈페이지 상단 그림아이콘 변경하기 ]

    ### ■ https://11q.kr는 정보를 찾아 공유 합니다.. ■ https://11q.kr\n[이 게시물은 관리자님에 의해 2013-11…

    [ 첫화면을 전체게시글(new.php)로 접속하는 팁 ] 댓글 1

    모바일접속시 첫화면을 전체게시글(new.php)로 접속하는 팁좀알려주세요??모바일화면은 PC화면과 달라서첫 접속화면에 전체게시글이 기본적으로 보…

    [ 시놀로지 NAS MEMORY DS712PLUS 메모리 HDD 하드 교체 홈피 정상 구동하기(사례) ] 댓글 2

    시놀로지 nas ds712plus hdd교체하기\r\n\r\n필수백업)백업을 web폴더및 mysql data를 백업한다\r\n하드웨어 구성)\r…

    [ 시놀로지 나스 nas vpn 주인장 장비 설정 하기 ]

    ♠vpn 설정 정보 자료링크 VPN 설정 참조 설치 바라며http://studyforus.tistory.com/212http://cafe.nav…

    [ 아미나 빌드 업데이트후 로그인 상단 글씨 로그인 상단글씨 클릭하면 팝업 되지 않을시 ]

    ♠개인적인 문제)로그인 상단 글씨 pc/모바일 모두 모바일 모드에서 로그인 상단글씨 클릭하면 팝업 되지 않을시......> 팝업메뉴가 안되…

    [ 인텔 정품 cpu 팬 높이 치수 / mini-itx 보드에 나스케이스 cpu 팬 (높이) 쿨러 구입 정보… ]

    인텔 정품 cpu 팬 높이 치수 / mini-itx 보드에 나스케이스 cpu 팬 (높이) 쿨러 구입 정보 가격 참조팬 종료별 비교 http://…

    [ [정보] VMware Player를 이용해서 XPEnology/Synology /헤놀로지 윈도우 서버 201… ] 댓글 4

    ♠[정보] VMware Player를 이용해서 XPEnology/Synology\r\n/헤놀로지 윈도우 서버 2016 구축 설치사용기 입니다\r…


    ♥간단_메모글♥


    최근글


    새댓글



    PHP 안에 HTML ☞ 홈페이지 화면갱신 시간은 ♨
    ▶ 2024-06-02 22:58:53

    오늘의 홈 현황


    • 현재 접속자♨ 652 명
    • 오늘 가입자※ 4 명
    • 어제 가입자※ 4 명
    • 주간 가입자※ 7 명
    • 오늘 방문자 2,247 명
    • 어제 방문자 2,099 명
    • 최대 방문자 13,042 명
    • 전체 방문자 4,355,492 명
    • 전체 게시물※ 8,615 개
    • 전체 댓글수※ 24,679 개
    • 전체 회원수 11,008 명

    QR코드


    ☞ QR코드 스캔은 kakao앱 자체 QR코드

    알림 0








    최신글↑