2018년 10월 7일 일요일

tvheadend 에서 muxes config 한방에 바꾸기

ubuntu 16.04 LTS 부턴 이더넷 이름이 eth0 방식이 아니고 enp3s0 방식이다

tvheadend 에서 muxes config 바꾸는일이 여간 짜증나는 일이 아니다.

sudo -s
su - hts
cd ~/.hts/tvheadend/input/iptv/networks/.../muxes/

$ find . -type f -exec sed -i 's/eth0/enp3s0/g' {} \;

또한 muxes 에 등록된 채널들이 압축되어잇는 경우가 있다.
이런경우 웹에서 한방에 바꾸면 된다
https://tvheadend.org/issues/4086

또한 예전 eth0 방식으로 ubuntu 를 돌릴려면

$ vi /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT=""
to
GRUB_CMDLINE_LINUX_DEFAULT="net.ifnames=0 biosdevname=0"

$ sudo update-grub

그리고
/etc/network/interfaces 도 손봐야 한다 (dhcp 의 예제)
auto enp3s0
iface enp3s0 inet dhcp

to
auto eth0
iface eth0 inet dhcp