Project

General

Profile

Please help me ! How to autostart tvheadend

Added by Kujtim Leku over 6 years ago

Hi i'm begginer i need to know how to startup my tvheadend autostart on ubuntu i read to many articles, to create file in /etc/init.d/tvheadend i create but is not working, to start tvheadend i need to login with putty and to write tvheadend -C, after i close putty tvheadend not working

Please help me


Replies (37)

RE: Please help me ! How to autostart tvheadend - Added by Kujtim Leku over 6 years ago

saen acro wrote:

Witch distro?

What is distro

RE: Please help me ! How to autostart tvheadend - Added by saen acro over 6 years ago

Kujtim Leku wrote:

saen acro wrote:

Witch distro?

What is distro

https://distrowatch.com :D
(this will be long discussion)

RE: Please help me ! How to autostart tvheadend - Added by Kujtim Leku over 6 years ago

saen acro wrote:

Kujtim Leku wrote:

saen acro wrote:

Witch distro?

What is distro

https://distrowatch.com :D
(this will be long discussion)

Ubuntu 16.04.4 LTS

RE: Please help me ! How to autostart tvheadend - Added by Kujtim Leku over 6 years ago

saen acro wrote:

http://tvheadend.org/boards/4/topics/24116

It is installed, but not autostart, if u need i can give you acces on my server

RE: Please help me ! How to autostart tvheadend - Added by Kujtim Leku over 6 years ago

saen acro wrote:

enable service or use webmin

I'm not expert on this, i don't know to enable service or use webmin

RE: Please help me ! How to autostart tvheadend - Added by saen acro over 6 years ago

service tvheadend start
systemctl show SERVICE
systemctl enable SERVICE

RE: Please help me ! How to autostart tvheadend - Added by Kujtim Leku over 6 years ago

saen acro wrote:

[...]

[...]

root@tvheadent:~# service tvheadend start
Failed to start tvheadend.service: Unit tvheadend.service not found.

RE: Please help me ! How to autostart tvheadend - Added by Kujtim Leku over 6 years ago

saen acro wrote:

[...]

[...]

root@tvheadent:~# systemctl show SERVICE
Restart=no
NotifyAccess=none
RestartUSec=100ms
TimeoutStartUSec=1min 30s
TimeoutStopUSec=1min 30s
RuntimeMaxUSec=infinity
WatchdogUSec=0
WatchdogTimestampMonotonic=0
FailureAction=none
PermissionsStartOnly=no
RootDirectoryStartOnly=no
RemainAfterExit=no
GuessMainPID=yes
MainPID=0
ControlPID=0
FileDescriptorStoreMax=0
NFileDescriptorStore=0
StatusErrno=0
Result=success
ExecMainStartTimestampMonotonic=0
ExecMainExitTimestampMonotonic=0
ExecMainPID=0
ExecMainCode=0
ExecMainStatus=0
MemoryCurrent=18446744073709551615
CPUUsageNSec=18446744073709551615
TasksCurrent=18446744073709551615
Delegate=no
CPUAccounting=no
CPUShares=18446744073709551615
StartupCPUShares=18446744073709551615
CPUQuotaPerSecUSec=infinity
BlockIOAccounting=no
BlockIOWeight=18446744073709551615
StartupBlockIOWeight=18446744073709551615
MemoryAccounting=no
MemoryLimit=18446744073709551615
DevicePolicy=auto
TasksAccounting=no
TasksMax=18446744073709551615
UMask=0022
LimitCPU=18446744073709551615
LimitCPUSoft=18446744073709551615
LimitFSIZE=18446744073709551615
LimitFSIZESoft=18446744073709551615
LimitDATA=18446744073709551615
LimitDATASoft=18446744073709551615
LimitSTACK=18446744073709551615
LimitSTACKSoft=8388608
LimitCORE=18446744073709551615
LimitCORESoft=0
LimitRSS=18446744073709551615
LimitRSSSoft=18446744073709551615
LimitNOFILE=1048576
LimitNOFILESoft=1048576
LimitAS=18446744073709551615
LimitASSoft=18446744073709551615
LimitNPROC=15594
LimitNPROCSoft=15594
LimitMEMLOCK=65536
LimitMEMLOCKSoft=65536
LimitLOCKS=18446744073709551615
LimitLOCKSSoft=18446744073709551615
LimitSIGPENDING=15594
LimitSIGPENDINGSoft=15594
LimitMSGQUEUE=819200
LimitMSGQUEUESoft=819200
LimitNICE=0
LimitNICESoft=0
LimitRTPRIO=0
LimitRTPRIOSoft=0
LimitRTTIME=18446744073709551615
LimitRTTIMESoft=18446744073709551615
OOMScoreAdjust=0
Nice=0
IOScheduling=0
CPUSchedulingPolicy=0
CPUSchedulingPriority=0
TimerSlackNSec=50000
CPUSchedulingResetOnFork=no
NonBlocking=no
StandardInput=null
StandardOutput=inherit
Nice=0
IOScheduling=0
CPUSchedulingPolicy=0
CPUSchedulingPriority=0
TimerSlackNSec=50000
CPUSchedulingResetOnFork=no
NonBlocking=no
StandardInput=null
StandardOutput=inherit
StandardError=inherit
TTYReset=no
TTYVHangup=no
TTYVTDisallocate=no
SyslogPriority=30
SyslogLevelPrefix=yes
SyslogLevel=6
SyslogFacility=3
SecureBits=0
CapabilityBoundingSet=18446744073709551615
AmbientCapabilities=0
MountFlags=0
PrivateTmp=no
PrivateNetwork=no
PrivateDevices=no
ProtectHome=no
ProtectSystem=no
SameProcessGroup=no
UtmpMode=init
IgnoreSIGPIPE=yes
NoNewPrivileges=no
SystemCallErrorNumber=0
RuntimeDirectoryMode=0755
KillMode=control-group
KillSignal=15
SendSIGKILL=yes
SendSIGHUP=no
Id=SERVICE.service
Names=SERVICE.service
Description=SERVICE.service
LoadState=not-found
ActiveState=inactive
SubState=dead
StateChangeTimestampMonotonic=0
InactiveExitTimestampMonotonic=0
ActiveEnterTimestampMonotonic=0
ActiveExitTimestampMonotonic=0
InactiveEnterTimestampMonotonic=0
CanStart=no
CanStop=no
CanReload=no
CanIsolate=no
StopWhenUnneeded=no
RefuseManualStart=no
RefuseManualStop=no
AllowIsolate=no
DefaultDependencies=yes
OnFailureJobMode=replace
IgnoreOnIsolate=no
NeedDaemonReload=no
JobTimeoutUSec=infinity
JobTimeoutAction=none
ConditionResult=no
AssertResult=no
ConditionTimestampMonotonic=0
AssertTimestampMonotonic=0
LoadError=org.freedesktop.DBus.Error.FileNotFound "No such file or directory"
Transient=no
StartLimitInterval=10000000
StartLimitBurst=5
StartLimitAction=none

RE: Please help me ! How to autostart tvheadend - Added by saen acro over 6 years ago

Only if you replace "service" with "tvheadend" ...

but you dont install correctly package

RE: Please help me ! How to autostart tvheadend - Added by Kujtim Leku over 6 years ago

saen acro wrote:

Only if you replace "service" with "tvheadend" ...

but you dont install correctly package

IF I WRITE
"tvheadend -C"

tvheadend started

RE: Please help me ! How to autostart tvheadend - Added by saen acro over 6 years ago

It start as current user not as service.

How you install it?

RE: Please help me ! How to autostart tvheadend - Added by Kujtim Leku over 6 years ago

saen acro wrote:

It start as current user not as service.

How you install it?

cd tvheadend_new/
ls
rm -rf tvheadend/
wget https://www.tbsiptv.com/download/moipro-amd/tvheadend_ubuntu_support_CI.zip
ls
unzip tvheadend_ubuntu_support_CI.zip
apt-get instal unzip
apt-get install unzip
apt-get instal unzip
unzip tvheadend_ubuntu_support_CI.zip
ls
chmod +x installtv.sh
ls
./installtv.sh
cd /usr/bin/
chmod +x tvheadend
cd ~

AND Install.sh have this

#!/bin/sh

rm -rf /usr/bin/tvheadend /usr/local/bin/tvheadend
rm -rf /usr/share/tvheadend /usr/local/share/tvheadend
rm -rf ~/.hts

cp bin/tvheadend /usr/bin/
cp lib/lib* /usr/lib
cp share/tvheadend /usr/share/ -r
cp share/tvheadend /usr/local/share/ -r

RE: Please help me ! How to autostart tvheadend - Added by saen acro over 6 years ago

uname -a
lscpu
lsb_release -a

this is not a correct way to install wherever it is in Linux

https://www.tbsiptv.com/index.php?route=product/download/drivers&path=0_1&id=7
read manuals MOI Pro AMD Get StartedGuide V1.0.0.6

RE: Please help me ! How to autostart tvheadend - Added by Kujtim Leku over 6 years ago

saen acro wrote:

[...]
this is not a correct way to install wherever it is in Linux

root@tvheadent:~# uname -a
Linux tvheadent 4.4.0-119-generic #143-Ubuntu SMP Mon Apr 2 16:08:24 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
root@tvheadent:~# lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU: 4
On-line CPU list: 0-3
Thread(s) per core: 1
Core(s) per socket: 4
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 23
Model name: Intel(R) Core(TM)2 Quad CPU Q9550 @ 2.83GHz
Stepping: 10
CPU MHz: 1998.000
CPU max MHz: 2833.0000
CPU min MHz: 1998.0000
BogoMIPS: 5666.71
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 6144K
NUMA node0 CPU: 0-3
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm retpoline kaiser tpr_shadow vnmi flexpriority dtherm
root@tvheadent:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.4 LTS
Release: 16.04
Codename: xenial
root@tvheadent:~#

RE: Please help me ! How to autostart tvheadend - Added by saen acro over 6 years ago

Where you try to do this experiments on MOI or on you PC?

RE: Please help me ! How to autostart tvheadend - Added by Kujtim Leku over 6 years ago

saen acro wrote:

Where you try to do this experiments on MOI or on you PC?

On Pc with tbs tunner's

RE: Please help me ! How to autostart tvheadend - Added by Kujtim Leku over 6 years ago

saen acro wrote:

OMG
http://tvheadend.org/boards/4/topics/24116

i try with following this command but is not working

root@tvheadent:~/tvheadend# ./configure
Checking support/features
checking for cc execinfo.h ... ok
checking for cc -mmmx ... ok
checking for cc -msse2 ... ok
checking for cc -Wunused-result ... ok
checking for cc getloadavg ... ok
checking for cc atomic32 ... ok
checking for cc atomic64 ... ok
checking for cc atomic_time_t ... ok
checking for cc atomic_ptr ... ok
checking for cc bitops64 ... ok
checking for cc lockowner ... ok
checking for cc qsort_r ... ok
checking for cc stime ... ok
checking for cc gmtoff ... ok
checking for cc recvmmsg ... ok
checking for cc sendmmsg ... ok
checking for cc libiconv ... fail
^ using build-in glibc iconv routines
checking for cc ifnames ... ok
checking for cc cclang_threadsan ... fail
checking for py module gzip ... ok
checking for pkg-config ... ok
checking for xgettext ... ok
checking for msgmerge ... ok
checking for gzip ... ok
checking for bzip2 ... ok
checking for pkg openssl ... ok (detected 1.0.2g)
checking for cc linux/dvb/version.h ... ok
checking for pkg zlib ... ok (detected 1.2.8)
checking for pkg libpcre2-8 ... fail (detected <none>)
checking for pkg libpcre ... fail (detected <none>)
checking for pkg liburiparser ... fail (detected <none>)
checking for pkg avahi-client ... ok (detected 0.6.32-rc)
checking for cmake ... ok
checking for cc -lstdc++ ... ok
checking for pkg libva >=0.38.0 ... fail (detected <none>)
checking for cc sys/inotify.h ... ok
checking for cc inotify_init1 ... ok
checking for cc dvbcsa/dvbcsa.h ... fail
ERROR: Failed to find dvbcsa library

RE: Please help me ! How to autostart tvheadend - Added by saen acro over 6 years ago

apt install libdvbcsa-dev

read complete manual

RE: Please help me ! How to autostart tvheadend - Added by Kujtim Leku over 6 years ago

saen acro wrote:

[...]

root@tvheadent:~/tvheadend# ./configure
Checking support/features
checking for cc execinfo.h ... ok
checking for cc -mmmx ... ok
checking for cc -msse2 ... ok
checking for cc -Wunused-result ... ok
checking for cc getloadavg ... ok
checking for cc atomic32 ... ok
checking for cc atomic64 ... ok
checking for cc atomic_time_t ... ok
checking for cc atomic_ptr ... ok
checking for cc bitops64 ... ok
checking for cc lockowner ... ok
checking for cc qsort_r ... ok
checking for cc stime ... ok
checking for cc gmtoff ... ok
checking for cc recvmmsg ... ok
checking for cc sendmmsg ... ok
checking for cc libiconv ... fail
^ using build-in glibc iconv routines
checking for cc ifnames ... ok
checking for cc cclang_threadsan ... fail
checking for py module gzip ... ok
checking for pkg-config ... ok
checking for xgettext ... ok
checking for msgmerge ... ok
checking for gzip ... ok
checking for bzip2 ... ok
checking for pkg openssl ... ok (detected 1.0.2g)
checking for cc linux/dvb/version.h ... ok
checking for pkg zlib ... ok (detected 1.2.8)
checking for pkg libpcre2-8 ... fail (detected <none>)
checking for pkg libpcre ... fail (detected <none>)
checking for pkg liburiparser ... fail (detected <none>)
checking for pkg avahi-client ... ok (detected 0.6.32-rc)
checking for cmake ... ok
checking for cc -lstdc++ ... ok
checking for pkg libva >=0.38.0 ... fail (detected <none>)
checking for cc sys/inotify.h ... ok
checking for cc inotify_init1 ... ok
checking for cc dvbcsa/dvbcsa.h ... ok
checking for cc -ldvbcsa ... ok
fetching dvb-scan files ... ok
checking for cc epoll_create1 ... ok
checking for pkg dbus-1 ... ok (detected 1.10.6)

Compiler:
Using C compiler: cc
Using LD flags: -ldvbcsa
Build for arch: x86_64

Binaries:
Using PYTHON: python
Using GZIP: gzip
Using BZIP2: bzip2

Options:
pie yes
ccdebug no
cardclient yes
cwc yes
cccam yes
capmt yes
constcw yes
linuxdvb yes
satip_server yes
satip_client yes
hdhomerun_client yes
hdhomerun_static yes
iptv yes
tsfile yes
dvbscan yes
timeshift yes
trace yes
imagecache yes
avahi yes
zlib yes
libav yes
ffmpeg_static yes
libx264 yes
libx264_static yes
libx265 yes
libx265_static yes
libvpx yes
libvpx_static yes
libtheora yes
libtheora_static yes
libvorbis yes
libvorbis_static yes
libfdkaac no
libfdkaac_static no
libopus yes
libopus_static yes
nvenc no
vaapi no
mmal no
omx no
inotify yes
epoll yes
pcre no
pcre2 no
uriparser no
ccache no
tvhcsa yes
bundle no
pngquant no
kqueue no
dbus_1 yes
android no
gtimer_check no
slow_memoryinfo no
libsystemd_daemon no
bintray_cache yes
ddci yes
cclang_threadsan no
gperftools no
execinfo yes
mmx yes
sse2 yes
W_unused_result yes
getloadavg yes
atomic32 yes
atomic64 yes
atomic_time_t yes
atomic_ptr yes
bitops64 yes
lockowner yes
qsort_r yes
stime yes
gmtoff yes
recvmmsg yes
sendmmsg yes
ifnames yes
py_gzip yes
bin_pkg_config yes
bin_xgettext yes
bin_msgmerge yes
bin_gzip yes
bin_bzip2 yes
ssl yes
linuxdvbapi yes
linuxdvb_ca yes
upnp yes
bin_cmake yes
stdcpp yes
libogg_static yes
inotify_h yes
inotify_init1 yes
dvbcsa yes
epoll_create1 yes
mpegts yes
mpegts_dvb yes

Packages:
openssl 1.0.2g
zlib 1.2.8
avahi-client 0.6.32-rc
dbus-1 1.10.6

Installation paths:
Prefix: /usr/local
Binaries: ${prefix}/bin
Libraries: ${prefix}/lib
Data files: ${prefix}/share
Man pages: ${datadir}/man

Final Binary:
/root/tvheadend/build.linux/tvheadend

Tvheadend Data Directory:
/usr/local/share/tvheadend

RE: Please help me ! How to autostart tvheadend - Added by Kujtim Leku over 6 years ago

saen acro wrote:

[...]

root@tvheadent:~/tvheadend# ./Autobuild.sh.
-bash: ./Autobuild.sh.: No such file or directory

(1-25/37)