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.upnpCode: 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 0Code: 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
Code: Select all
rnas:~# jexec 2 csh
You have mail.
root@upnp:/ #
Code: Select all
setenv PACKAGESITE ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9-current/Latest/now you can install kissdx:
Code: Select all
pkg_add -r kissdxCode: 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)Code: Select all
ee /etc/rc.confnote: you can do in a easy way:
Code: Select all
echo 'kissdx_enable="YES"' >> /etc/rc.confCode: Select all
ee /usr/local/etc/kissdx.confCode: 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/kissdxCode: Select all
ln /usr/local/etc/rc.d/kissdx /etc/rc.d/kissdxCode: Select all
/usr/local/etc/rc.d/kissdx startCode: Select all
/usr/local/etc/rc.d/kissdx stopCode: Select all
/usr/local/etc/rc.d/kissdx statusPD: 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
