귀차니즘

도메인이름은    .duckdns.org  를 뺀 앞 도메인

토큰은 위쪽에 나온다. (duckdns 접속 후 도메인 관리)



cd /jffs/scripts/

vi ddns-start

(vi 를 사용할 줄 모른다면   a 를 눌러서 insert 상태로 만든 후 아래 내용을 복사하고

ESC 를 누른 다음  :x   (콜론 엑스) 를 입력해 저장하고 나온다.)


#=====아래 내용 복사 =======


#!/bin/sh


SUBDOMAIN="도메인이름"

TOKEN="토큰"


QUERY="https://www.duckdns.org/update?domains=$SUBDOMAIN&token=$TOKEN&ip=$1&verbose=true"


RESULT=`curl --silent "$QUERY"`


if [ "$RESULT" = "KO" ]

then

 /sbin/ddns_custom_updated 0

 LOGFILE=/jffs/scripts/ERROR_`date +%Y%m%d`.log

 date >> ${LOGFILE}

 echo $QUERY >> ${LOGFILE}

 echo $RESULT >> ${LOGFILE}

 echo >> ${LOGFILE}

else

 /sbin/ddns_custom_updated 1

 LOGFILE=/jffs/scripts/result.log

 date >> ${LOGFILE}

 echo $RESULT >> ${LOGFILE}

 echo >> ${LOGFILE}

fi

#=====끝======


chmod a+x ddns-start


현재 위치에서(/jffs/scripts/)


vi init-start


#=== ddns 자동실행 ===

cru a "update-DUCKDNS" "* * * * * /jffs/scripts/ddns-start"

#======끝=========


chmod +x init-start


등록 실패라고 뜬다면

[관리] -> [시스템] 으로 가서 Enable JFFS costom scripts and configs 를 Yes 로 바꿔준다.

'Devices > ASUS RT-AC68P' 카테고리의 다른 글

NEXTCLOUD 설치  (0) 2019.01.27
IPTV 채널 참고자료  (0) 2018.12.30
pydio 설치  (0) 2018.05.07
opkg 로 php5 설치  (0) 2017.05.17
68p 에 tvheadend 설치  (4) 2017.03.24

nextcloud 가 불안정해서 바꿀까 싶은 것



다운로드


wget https://download.pydio.com/pub/core/archives/pydio-core-8.0.2.tar.gz

'Devices > ASUS RT-AC68P' 카테고리의 다른 글

IPTV 채널 참고자료  (0) 2018.12.30
ASUS RT-68P DDNS 설정  (0) 2018.06.24
opkg 로 php5 설치  (0) 2017.05.17
68p 에 tvheadend 설치  (4) 2017.03.24
68p 서비스 시작 중지  (0) 2017.03.22

출처  :   https://www.maison-et-domotique.com/79957-xpenology-hp-n54l-proliant-dsm-6/


1. chipeasy  를 다운받아 갖고 있는 1GB 이상의 USB 의 VID PID 를 확인하고 기록해둔다.


2. 시놀.img 이미지를 usb 에 씌운다.


3. F10 을 눌러 BIOS  에 진입 - advanced 메뉴에서 -  C1E Support 를  비활성화(Disabled)


4. 재부팅후 GRUB 메뉴에서 멈추고 C 누름 (!! 위 아래 키를 눌러서 선택 메뉴 안누르면 부팅되어 버린다.)


5. SN 만들기


https://xpenogen.github.io/serial_generator/index.html


6. C 눌러 나온 창에서 4가지 입력


 GRUB>  vid 0x????

 GRUB>  pid 0x????

 GRUB>  sn ???????????????

 GRUB>  mac1 ????????

 

7.  4가지 입력 후 ESC  를 눌러 메뉴로 돌아간다.


8. 2번째 ~~~~~~ Reinstall  을 선택. (서버쪽 완료)


9. 어시스턴트로 확인.   설치되지 않음.   에서 설치하여 다운받은 PAT 선택(15152 버전)


10. 설치 후 리부팅되면  1번째 메뉴로 부팅되어야 한다. (2번 Reinstall 위 1번)


11. SHR 방식으로 인식하게 하려면


(1) 메뉴에서 ssh  를 활성화.

(2) sudo vi /etc.defaults/synoinfo.conf

supportraidgroup  를 주석처리  (앞에 # 을 붙이면 됨.)

support_syno_hybrid_rais="yes"   추가



이렇게 해준다.


:wq   해서 저장


BTRFS 파일시스템을 권장하는데 왜 그런지 모르겠다.


아마 완전 새로 설치하기 때문인 것으로 생각된다.  ext4 여도 문제 없지 않을라나

/opt/retropie/configs/all/retroarch-joypads/   G~~~  or X~~~ .cfg


input_device = "Xbox Wireless Controller"

input_driver = "udev"

input_r_y_plus_axis = "+4"

input_l3_btn = "8"

input_r_x_minus_axis = "-3"

input_l_btn = "4"

input_load_state_btn = "4"

input_start_btn = "7"

input_exit_emulator_btn = "+5"

input_l_y_minus_axis = "-1"

input_up_btn = "h0up"

input_r_y_minus_axis = "-4"

input_a_btn = "0"

input_b_btn = "1"

input_reset_btn = "1"

input_enable_hotkey_btn = "6"

input_down_btn = "h0down"

input_l_x_plus_axis = "+0"

input_l_y_plus_axis = "+1"

input_r_btn = "5"

input_save_state_btn = "5"

input_r2_axis = "+5"

input_r3_btn = "9"

input_right_btn = "h0right"

input_state_slot_increase_btn = "h0right"

input_x_btn = "2"

input_menu_toggle_btn = "2"

input_select_btn = "6"

input_l_x_minus_axis = "-0"

input_y_btn = "3"

input_left_btn = "h0left"

input_state_slot_decrease_btn = "h0left"

input_r_x_plus_axis = "+3"

input_l2_axis = "+2"



출처 : https://www.youtube.com/watch?v=xMk4umveBzU


retropie 에서 콘솔 모드로 들어간다


sudo nano /opt/retropie/configs/all/autostart.sh


기존에 있는 건 다음 줄로 내리고(enter) 추가한다.


sudo bash -c 'echo 1 > /sys/module/bluetooth/parameters/disable_ertm'


저장하고 나간다.


블루투스로 재연결!



php7 도 있지만 호환성을 위해 php5 로 설치하도록 하자.


opkg update
opkg list php*

을 타이핑하면 opkg 로 설치할 수 있는 php 로 시작하는 것들이 나온다.


opkg install php5 php5-cgi


.php 의 직접 실행이 필요하면


php-cgi  파일명.php  로 하면 된다.


'Devices > ASUS RT-AC68P' 카테고리의 다른 글

ASUS RT-68P DDNS 설정  (0) 2018.06.24
pydio 설치  (0) 2018.05.07
68p 에 tvheadend 설치  (4) 2017.03.24
68p 서비스 시작 중지  (0) 2017.03.22
68p 에 entware 설치하기 (lighttpd , owncloud , mysql )  (0) 2017.03.22

출처 : http://blog.naver.com/PostView.nhn?blogId=sky100301&logNo=220921764967&redirect=Dlog&widgetTypeCall=true


* 스왑 설정 (미설정 시 관리자 페이지 접속 불가)


4번 참조


http://blog.naver.com/sky100301/220921734734



* 공유기 옵션 변경


LAN -> IPTV


멀티캐스트 라우팅 (IGMP Proxy) -> 사용


효과적인 멀티 캐스트 전달 활성화 (IGMP Snooping) -> 사용




1. tvheadend 설치 (4.2.3 버전 첨부)


wget -O tvheadend_4.2.3-1_armv7soft.ipk http://complainforyou.tistory.com/attachment/cfile5.uf@265C7D33597DF84A231C15.ipk 


tvheadend_4.2.3-1_armv7soft.ipk

tvheadend_4.2.2-1_armv7soft.ipk

tvheadend_4.2.1-1_armv7soft.ipk

tvheadend_4.1-1429-ge29df17-jessie-1_armv7soft.ipk



*첨부한 tvheadend 설치 (네트워크 삼바를 이용해 /opt (entware 폴더)로 이동)


opkg install /opt/tvheadend_4.2.3-1_armv7soft.ipk


nano /opt/etc/init.d/S71tvheadend


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


ARGS="-C -f -u username (공유기 접속 아이디) -g root -c /opt/etc/tvheadend --nobackup"


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



* 방화벽 설정


nano /jffs/scripts/firewall-start


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


#!/bin/sh


iptables -I INPUT -p tcp --dport 9981 -j ACCEPT

iptables -I INPUT -p tcp --dport 9982 -j ACCEPT


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

service restart_firewall


* 실행


/opt/etc/init.d/S71tvheadend start


========= 실행하면 에러가 날텐데 ============

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


3월에 entware 업데이트시 openssl 1.1.1 버전이 적용되서 생기는 현상입니다.(https://entware.net/2019/03/23/Changelog.html )

/opt/lib 에 구버전 파일인 libssl.so.1.0.0 과 libcrypto.so.1.0.0 를 넣어주시면 해결됩니다.

/opt/bin  에서  tvheadend  -f --log-debug  해보시면 저 파일들이 없다고 메시지 나올껍니다.


1. libopenssl 1.1.1 삭제 : opkg --force-depends remove libopenssl

2. http://bin.entware.net/  에서 맞는 기기 폴더로 진입 archive 폴더에 보면 구버전의  libopenssl  ipk 를 설치

    (제 기기의 경우는 armv7 2.6 이라 libopenssl_1.0.2p-1a_armv7-2.6.ipk)


3. /opt/lib  에서 위 두 파일을 구해서 다른 곳에 복사

4. 다시 libopenssl 업데이트 : opkg update , opkg upgrade

5. 복사해둔 파일2개를 /opt/lib 으로 복사하고 모든 서비스 재시작 : services restart

================ 하면 해결된다 ======================

libopenssl_1.0.2p-1a_armv7-2.6.ipk


정리...


1. wget -O  libopenssl_1.0.2p-1a_armv7-2.6.ipk  https://complainforyou.tistory.com/attachment/cfile7.uf@99CEAC4A5D4C487A382BD0.ipk


다운받고

2. opkg --force-depends remove libopenssl

      해서 libopenssl 1.1.1 제거

3. opkg install libopenssl_1.0.2p-1a_armv7-2.6.ipk

    설치

4. cd /opt/lib

  로 이동

5. cp libssl.so.1.0.0  /opt/tmp

    등으로 피신(1)

6. cp libcrypto.so.1.0.0  /opt/tmp

    등으로 피신(2)

7. opkg update, opkge upgrade

   다시 업데이트, 업그레이드

8. cp /opt/tmp/libssl.so.1.0.0 /opt/lib

   cp /opt/tmp/libcrypto.so.1.0.0 /opt/lib

9. services restart

끝.


* 접


http://192.168.1.1:9981


 

2. tvheadend 설정

* IP 주소 추출


* 채널 등록


m3u 파일 URL  :  file://opt/example.m3u


3. 시스템 시간 설정

opkg install zoneinfo-asia

ln -sf /opt/share/zoneinfo/Asia/Seoul /etc/localtime

nano /opt/etc/init.d/S00timezone

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

#!/bin/sh

start() {
    ln -sf /opt/share/zoneinfo/Asia/Seoul  /etc/localtime
}

stop() {
    rm -rf /etc/localtime
}

case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    restart)
        stop
        start
    ;;
    *)
    echo "Usage: $0 {start|stop}"
    ;;
esac

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

chmod +x /opt/etc/init.d/S00timezone


4. EPG 설정



Configuration -> Channel / EPG -> EPG Grabber Modules -> External: XMLTV -> Enabled 체크 -> Save
(옵션이 안보이면 Configuration -> General -> User interface level -> Expert -> Save)

opkg install python3-light python3-pip python3-requests python3-lxml
pip3 install beautifulsoup4

* EPG 실행
epg2xml.py, epg2xml.json, Channel.json 파일을 윈도우 네트워크 삼바를 이용해 /opt/ (entware 폴더)로 이동

epg2xml.json 수정.
tv_grab_file  은  수정 후 /opt/bin 로 이동


5. 녹화 설정

Configuration -> Recording

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

Recording system path: /mnt/sda1/movie (외장 SSD/HDD 경로) 
Filename character set: UTF-8
Format string: $t.$e.%F.HDTV.TS.1080p.$x
Use Windows-compatible filenames: check

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


6. 클라이언트 설정


KODI or tvhclient 클라이언트 사용



'Devices > ASUS RT-AC68P' 카테고리의 다른 글

pydio 설치  (0) 2018.05.07
opkg 로 php5 설치  (0) 2017.05.17
68p 서비스 시작 중지  (0) 2017.03.22
68p 에 entware 설치하기 (lighttpd , owncloud , mysql )  (0) 2017.03.22
68P 에 HDD 연결 후  (0) 2017.03.22

[] 트랜스미션 시작, 중지


/opt/etc/init.d/S88transmission start   or  stop


[] 트랜스미션 설정


nano -w /opt/etc/transmission/settings.json


[] Restart Lighttpd


/opt/etc/init.d/S80lighttpd restart


'Devices > ASUS RT-AC68P' 카테고리의 다른 글

opkg 로 php5 설치  (0) 2017.05.17
68p 에 tvheadend 설치  (4) 2017.03.24
68p 에 entware 설치하기 (lighttpd , owncloud , mysql )  (0) 2017.03.22
68P 에 HDD 연결 후  (0) 2017.03.22
ASUS RT-AC68P 구입!  (0) 2017.03.21

[1]  Entware 설치


https://www.hqt.ro/how-to-install-new-generation-entware/


8번의  opkg install nano  까지 하도록 하자. (nano 는 text 편집기이다. vi 에 익숙하지 않다면 사용해보자)


[2] Lighttpd 설치 방법


https://www.hqt.ro/lighttpd-web-server-with-php-support-through-entware-ng/


13번까지 쭉~ 해주자. 그럼 Lighttpd running 메시지와 php 메시지를 볼 수 있을 것 이다.


/opt/share/www/           <=== 요기가 html 디렉토리


[4] owncloud 설치 방법

* owncloud 보다 nextcloud 를 추천한다 *


https://www.hqt.ro/owncloud-through-lighttpd-entware-ng/


[5] transmission 설치 방법


https://github.com/RMerl/asuswrt-merlin/wiki/Installing-Transmission-through-Entware



winscp 로 편하게 작업하려면 설치


opkg install openssh-sftp-server


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

[*] mysql 설치방법


https://www.hqt.ro/how-to-install-mysql-server-phpmyadmin-through-entware-ng/

패스워드에 특수문자를 넣으면 로그인이 안되는 버그가 있다!)


/opt/etc/my.cnf 에서


datadir = /opt/etc/mysql/


로 수정


mysql 은 그누보드를 사용해보려고 설치했는데

소켓 연결이 안된다... 111번 에러가 난다.

구글링 결과 심볼 링크가 안돼서 그렇다길래 해줬지만 안된다.

그누보드4 버전은 에러조차 안나와서 어떤지 모르겠고

그누보드5 버전은 111 에러가 난다.

내가 해결해볼까 했지만...귀찮다 누군가 해결해주면 할까 싶다

2017.03.22...

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

'Devices > ASUS RT-AC68P' 카테고리의 다른 글

opkg 로 php5 설치  (0) 2017.05.17
68p 에 tvheadend 설치  (4) 2017.03.24
68p 서비스 시작 중지  (0) 2017.03.22
68P 에 HDD 연결 후  (0) 2017.03.22
ASUS RT-AC68P 구입!  (0) 2017.03.21

HDD 를 사용하던 걸 연결하면 아마도 NTFS 환경일 것이다. (윈도우에서 쓰던)


68P 는 리눅스 환경이니 바꿔주는게 다른 작업을 하기 좋겠다.


윈도우or파티션 툴에서 파티션을 날리고 HDD 를 68P 에 연결한다.


fdisk -l  을 타이핑하면


Disk  /dev/sda  혹은 Disk  /dev/sdb  이 보일 것이다.


연결된 HDD 이다.


fdisk /dev/sd?    <== ? 는 a or b 인데 위에서 확인한 것으로 한다.


한 후 파티션을 Linux 타입으로 생성한다.


파티션을 날리고 연결했다면 p  를 타이핑했을 때 아무것도 안나와야 정상이다.


뭔가 나왔다면... 다른 장치일 수도 있다. 확인해보고 작업하자. 데이터 다 날린다.


p 로 확인했는데 파티션 정보가 나왔고 연결한 장치가 맞는데 데이터가 필요없다면


d 로 파티션을 삭제하자.


n 으로 파티션을 생성한다.  ( p  => 1 => enter => enter => w )


그럼 linux 파티션이 되었다.


mkfs.ext4 /dev/sd?1  하면 ext4 타입으로 포맷이 된다.


포맷 후 아마 자동연결 될 것이다.


df -h  를 타이핑해서 확인해보자. mount 가 안되었다면


cd /mnt   를 타이핑하고


mkdir ?????      ???? 는 연결할 장치명이다.  잘 모르겠으면  sd?1  과 같이 해준다.


mount -t ext4 /dev/sd?1  /mnt/sd?1   을 타이핑하면 마운트 된다.


이제 entware 를 설치하자.

'Devices > ASUS RT-AC68P' 카테고리의 다른 글

opkg 로 php5 설치  (0) 2017.05.17
68p 에 tvheadend 설치  (4) 2017.03.24
68p 서비스 시작 중지  (0) 2017.03.22
68p 에 entware 설치하기 (lighttpd , owncloud , mysql )  (0) 2017.03.22
ASUS RT-AC68P 구입!  (0) 2017.03.21