one does your provider support more than one connection? Second, when you select the buffer option set it to 0.5 MB also the good thing about buffer is that you can play the same channel on other devices and it counts as one connection for your provider. Now in order to get VLC to work, I installed it pkg vlc install. Then you have to find the path where the vlc application is and insert it in your setting in xteve /usr/local/bin/vlc.
View attachment 44443
I have my xteve running as a user not root, so you have to give that user permissions to that vlc location. I hope this awnsers your questions.
Hi,
Thank you so much for your answer, I'm in hard work time during this period sorry for my too late replay.
I'm agree with you when you talk you running as no root user, my logs show problems about root user I used when I begin xteve.
Now I take the time to make it work, and I try to install xteve with no root user, where I have problem when trying to start xteve message say
Code:
root@xteve-server:/etc/rc.d # service xteve start
starting xteve...
root@xteve-server:/etc/rc.d # /home/xteve/xteve: Permission
I thing you had do something at user creation I don't understood right now.
To have better visibility and not long explanation I will recreate new jail and past my raw step-by-step installation of xteve, probably you will see something I don't saw or don't know yet.
Code:
pkg upgrade #Upgrade jail
pkg install wget vlc nano #Install some dependences
adduser -s xteve #Add new user
here the resultat user create( be carful here because I fell my problem is somewhere here )
Code:
root@xteve-server:~# adduser -s xteve
Username: xteve
Full name:
Uid (Leave empty for default):
Login group [xteve]:
Login group is xteve. Invite xteve into other groups? []:
Login class [default]:
adduser: INFO: The shell () does not exist or is not executable.
usage: basename string [suffix]
basename [-a] [-s suffix] string [...]
Shell (sh csh tcsh nologin) []:
Home directory [/home/xteve]:
Home directory permissions (Leave empty for default):
Use password-based authentication? [yes]: no
Lock out the account after creation? [no]:
Username : xteve
Password : <disabled>
Full Name :
Uid : 1001
Class :
Groups : xteve
Home : /home/xteve
Home Mode :
Shell :
Locked : no
OK? (yes/no): yes
adduser: INFO: Successfully added (xteve) to the user database.
Add another user? (yes/no): no
Goodbye!
Now I enter in xteve user
Code:
root@xteve-server:~ # su xteve #Login in xteve user
$ cd ~ #Go to home of xteve user
$ ls -la #Proof of where I'm
total 45
drwxr-xr-x 2 xteve xteve 10 Jan 28 18:13 .
drwxr-xr-x 3 root wheel 3 Jan 28 18:13 ..
-rw-r--r-- 1 xteve xteve 1055 Jan 28 18:13 .cshrc
-rw-r--r-- 1 xteve xteve 392 Jan 28 18:13 .login
-rw-r--r-- 1 xteve xteve 163 Jan 28 18:13 .login_conf
-rw------- 1 xteve xteve 379 Jan 28 18:13 .mail_aliases
-rw-r--r-- 1 xteve xteve 336 Jan 28 18:13 .mailrc
-rw-r--r-- 1 xteve xteve 952 Jan 28 18:13 .profile
-rw------- 1 xteve xteve 281 Jan 28 18:13 .rhosts
-rw-r--r-- 1 xteve xteve 851 Jan 28 18:13 .shrc
Code:
#actually in /home/xteve and login with xteve user, I download last version of xteve from github.
wget https://github.com/xteve-project/xTeVe/archive/2.1.2.0120.tar.gz
$ ls #proof of downloaded xteve package
2.1.2.0120.tar.gz
tar -xzvf 2.1.2.0120.tar.gz #extract files
$ ls #proof of extracted files
2.1.2.0120.tar.gz xTeVe-2.1.2.0120
mv -r xTeVe-2.1.2.0120 xteve #change name of extracted folder to more simply name (xteve)
rm 2.1.2.0120.tar.gz #remove old archive
$ ls -l #Proof of renamed folder and permissions
drwxr-xr-x 6 xteve xteve 12 Feb 15 2020 xteve
$ cd xteve #go in folder renamed for extra infos
$ ls -l
total 44
-rw-r--r-- 1 xteve xteve 2196 Feb 15 2020 changelog-beta.md
drwxr-xr-x 7 xteve xteve 12 Feb 15 2020 html
-rw-r--r-- 1 xteve xteve 1077 Feb 15 2020 LICENSE
-rw-r--r-- 1 xteve xteve 47 Feb 15 2020 README-DEV.md
-rw-r--r-- 1 xteve xteve 4380 Feb 15 2020 README.md
drwxr-xr-x 3 xteve xteve 29 Feb 15 2020 src
drwxr-xr-x 2 xteve xteve 10 Feb 15 2020 ts
-rw-r--r-- 1 xteve xteve 4735 Feb 15 2020 xteve.go
Code:
chmod +x xteve #make xteve folder executable
#execute xteve programme login with xteve user, and can see I've permission problem, probably the problem is above it, I think the problem is locale in adduser registration.
./xteve
su: ./xteve: Permission denied
exit #exit from xteve user
root@xteve-server:~ # nano /etc/rc.d/xteve #Now from root user I create startup script
startup script in /etc/rc.d/
Code:
#!/bin/sh
# PROVIDE: xteve
# REQUIRE: DAEMON
. /etc/rc.subr
name=xteve
user="xteve"
path="/home/xteve/xteve"
config_path="/home/${user}"
rcvar=xteve_enable
start_cmd="start_cmd"
stop_cmd="stop_cmd"
start_cmd()
{
export HOME="${config_path}"
echo "starting $name..."
su -m "$user" -c "$path" &
}
stop_cmd()
{
pids=$(pgrep "$name")
pkill -9 "$name"
echo "stop $name PID: $pids"
}
xteve_enable=${xteve_enable-"YES"}
pidfile=${xteve_pidfile-"/var/run/${name}.pid"}
run_rc_command "$@"
Code:
chmod +x /etc/rc.d/xteve #make startup script executable
nano /etc/rc.conf #add the lines above
# xTeVe
xteve_enable="YES"
service xteve start #And to finish the last try to start xteve
root@xteve-server:~ # service xteve start
starting xteve...
root@xteve-server:~ # /home/xteve/xteve: Permission denied.