This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

[HOWTO] Install kissdx on a jail

Jails with XigmaNAS
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

[HOWTO] Install kissdx on a jail

Post by raulfg3 »

Here's how I got kissdx running in a jail on NAS4free If you don't know it, kiss are and ancient old multimedia player, this install is for all kiss DP players that work with kissdx

Create a new jail called upnp by following the jail guide in wiki: http://wiki.nas4free.org/doku.php?id=do ... owto:jails

Prerequisites: a working jail, in example upnp

1 -edit fstab.upnp to mount your shares

this is my case of example, yours could be diferent:

Code: Select all

nano /jail/conf/fstab.upnp

Code: Select all

/mnt/NAS-A/Video /jail/upnp/mnt/Video nullfs ro 0 0
/mnt/NAS-A/Musica /jail/upnp/mnt/Musica nullfs ro 0 0
/mnt/NAS-A/Fotos /jail/upnp/mnt/Fotos nullfs ro 0 0
do a jls to know your jail number:

Code: Select all

rnas:~# jls
   JID  IP Address      Hostname                      Path
     1  192.168.1.201   proto                         /jail/proto
     2  192.168.1.202   upnp                          /jail/upnp
rnas:~# rnas:~# jls
enter into the jail (in my case 2, your could be diferent):

Code: Select all

rnas:~# jexec 2 csh
You have mail.
root@upnp:/ #
if your Nas4Free is in RC state ( RC3 when I write this howto), you need to define path to packages:

Code: Select all

setenv PACKAGESITE ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9-current/Latest/
Note. if you use TheBrig to create jails, and create a jail named "kissdx", start from here to install kissdx:



now you can install kissdx:

Code: Select all

pkg_add -r kissdx
and you have this output:

Code: Select all

Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-7.3-release/Latest/kissdx.tbz... Done.
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9-current/All/libdvdread-4.1.3_2.tbz... Done.
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9-current/All/png-1.2.42.tbz... Done.
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9-current/All/jpeg-8.tbz... Done.
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9-current/All/pkg-config-0.23_1.tbz... Done.
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9-current/All/freetype2-2.3.11.tbz... Done.
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9-current/All/gd-2.0.35_3,1.tbz... Done.
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9-current/All/libiconv-1.13.1_1.tbz... Done.

The following line needs to be added to /etc/rc.conf in order to start the
deamon at boot time.

      kissdx_enable="YES" (or kissdx="YES" for NetBSD)
now you need to edit /etc/rc.conf to add kissdx_enable="YES"

Code: Select all

ee /etc/rc.conf
and paste kissdx_enable="YES", save the file.

note: you can do in a easy way:

Code: Select all

echo 'kissdx_enable="YES"' >> /etc/rc.conf
now you need to edit yor kissdx conf:

Code: Select all

ee /usr/local/etc/kissdx.conf
this is an example of my config for compare purpouse:

Code: Select all

# kissdx config file

# paths for the media files
audiopath	=	/mnt/Musica
videopath	=	/mnt/Video
picturepath	=	/mnt/Fotos

# Path for persistent storage of info by kissdx.
# The [Recently used] feature and the picture caching feature will store data here.
# If option is omitted, kissdx will use picturepath, etc. for such storage.
persistentstoragepath	= /var/kissdx

# Allowed extensions for media files (comma separated, no spaces, case insensitive)
# Omit a setting to send ALL files to the player in the corresponding directory listing.
audiofileextensions		= mp3,ogg,wma,wav
videofileextensions		= mpg,mpeg,vob,avi,wmv,ts,mp4
picturefileextensions	= jpg,jpeg,png,bmp

# Allowed extensions for ISO image files (comma separated, no spaces, case insensitive)
# Without setting, only files with the .iso extension will be interpreted as ISO images.
isofileextensions		= iso,img

# URL to redirect to
kmlurl		=	http://tinystocks.com/k/kiss.php

# pre and post triggers, called before and after a GET or SIZE.
# Those scripts take the filename as an argument and must 
# return the new filename on stdout and a exit status of 0 to proceed.
# An non zero exit status cause the GET/SIZE to fail.
#pretrigger	=	/usr/local/bin/kissd-pretrigger
#posttrigger	=	/usr/local/bin/kissd-posttrigger

# Subtitle file mapping
# kissdx will send up to 7 subtitle files that match the pattern after the colon.
# Pattern may contain variables that will be substituted with parts of the
# video filename/path:
#   {name} = filename without extension (most likely to be used)
#   {ext}  = extension (not likely to be used)
#   {path} = path (to the left of filename, no trailing slash.)
#            If used in pattern, pattern must describe entire path.
#            If not used, the path of the video file will be inserted before pattern.
# If this setting is omitted, a value of "*:{name}*.*" is assumed.
subtitlefilemapping		= *:{name}*.*

# Maximum number of entires in recent list (30 is default, set to 0 to disable feature)
max_recent_files = 10

# Character sets for conversion between server and client
# (specify both, or no conversion will take place)
# NOTE:  To get additional character sets on an NSLU2:  ipkg install gconv-modules
#server_character_set	= CP850
#client_character_set	= ISO-8859-1

# Picture scaling options (Screen width / height in pixels and optional zoom percentage)
# Specify both picturetargetwidth and picturetargetheight to enable picture scaling.
picturetargetwidth		= 1280
picturetargetheight		= 720
picturemaxzoompercent	= 20

# Maximum size of scaled picture cache (max. no. of pictures in cache).
# Omit option or set = 0 to disable caching.
# Set to -1 for no limit.
picturecachesize = -1

# Minimum interval (in minutes) between each time the size of the scaled picture
# cache will be trimmed down to the maximum size defined by picturecachesize.
# Default is 5 minutes.  Higher number = better performance.
# If set to 0, maximum cache size will be enforced every time a picture is viewed,
# potentially giving very bad performance if combined with a large picturecachesize.
#picturecachetrimminginterval = 5

# A timeout period (seconds) can be configured to clean up waiting processes.
# Only needed if the KiSS player doesn't close all connections properly (which seems
# to happen when playing ogg Vorbis audio files on a DP-600 with 3.0.34 firmware.)
# No option or a value of 0 or less will disable timeout checking.
#networktimeoutinterval = 3600

# Specifying enablehiddenfilestext = gui-text will make available a pseudo-file in
# the Pictures root folder with this name:  "gui-text.jpeg"
# When selecting this file on the player, the ability to view hidden content will be
# toggled on/off, and a picture describing the new state (on or off) displayed.
enablehiddenfilestext = Toggle all files status

# If enablehiddenfilestext is specified, then enablehiddenfilesminutes can be
# specified to set a timeout period of n.  Then n minutes after the viewing
# of hidden content was turned on, it will be automatically turned back off.
enablehiddenfilesminutes = 1

# end of file

now you need to create temp folder fot kissdx

Code: Select all

mkdir /var/kissdx
create a simbolik link:

Code: Select all

ln /usr/local/etc/rc.d/kissdx /etc/rc.d/kissdx
and you are ready to test kissdx:

Code: Select all

/usr/local/etc/rc.d/kissdx start
, you can also stop :

Code: Select all

/usr/local/etc/rc.d/kissdx stop
, and see status:

Code: Select all

/usr/local/etc/rc.d/kissdx status


PD: if your kiss DP do not show your kissdx into your jail, enter the server IP in kiss DP ( in my example 192.168.1.202) and try to add security.jail.allow_raw_sockets=1 in /etc/rc.conf
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

Post Reply

Return to “Jails”