Difference between revisions of "Wizd on Gentoo"

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search
m (Run Wizd)
Line 1: Line 1:
 
This article is based on the original ''Wizd for the Kuro Box'' page at http://jhue.users.sonic.net/.
 
This article is based on the original ''Wizd for the Kuro Box'' page at http://jhue.users.sonic.net/.
 +
 +
Wizd is a server daemon originally designed for MediaWiz, but is compatible with other popular media players such as the [http://www.buffalotech.com/products/multimedia.php Buffalo LinkTheater] and the [http://www.iodata.com/usa/products/products.php?cat=HNP&sc=AVEL&ts=2&tsc=&sc=AVEL&pId=AVLP2%2FDVDLA06 I-O DATA AVeL LinkPlayer2].
  
 
== Preparing for Build ==
 
== Preparing for Build ==
Line 98: Line 100:
 
  # /etc/init.d/wizd restart
 
  # /etc/init.d/wizd restart
 
You can test that Wizd is working properly by pointing your webbrowser to http://''your_kurobox_ip'':8004/ and you should be able to see the Wizd media selection screen.
 
You can test that Wizd is working properly by pointing your webbrowser to http://''your_kurobox_ip'':8004/ and you should be able to see the Wizd media selection screen.
 +
 +
== External links ==
 +
* [http://www.geocities.com/flipflop7146/wizd.html Wizd for LinkPlayer2]
 +
* [http://jhue.users.sonic.net/ Wizd for the Kuro Box]
 +
* [http://www.geocities.co.jp/SiliconValley-SanJose/3271/ wizd -- MediaWiz Server Daemon for Linux] (Japanese)
 +
* [http://www.vertexlink.co.jp/home/mediawiz/index.html VertexLink MediaWiz] (Japanese)
 +
* [http://www.iodata.com/usa/forum/forumdisplay.php?f=110]Wizd Forum on I-O DATA USA FORUM
  
 
[[Category:Gentoo]]
 
[[Category:Gentoo]]

Revision as of 06:08, 7 May 2006

This article is based on the original Wizd for the Kuro Box page at http://jhue.users.sonic.net/.

Wizd is a server daemon originally designed for MediaWiz, but is compatible with other popular media players such as the Buffalo LinkTheater and the I-O DATA AVeL LinkPlayer2.

Contents

Preparing for Build

First download the version of wizd you would like to install. In this example, we are going to use version 0_12h_pvb_19 from http://www.geocities.com/flipflop7146/wizd.html. Unzip this file. If you don't have unzip, you will need to emerge app-arch/unzip.

# unzip wizd_0_12h_pvb_19.zip

Since this was originally built for Cygwin under Windows, let's reorganize the directory structure and delete unnecessary files.

# rm -f wizd_0_12h_pvb_19/wizd.exe wizd_0_12h_pvb_19/cygwin1.dll
# mkdir /usr/local/src/wizd_0_12h_pvb_19
# mv wizd_0_12h_pvb_19/source/* /usr/local/src/wizd_0_12h_pvb_19
# rmdir wizd_0_12h_pvb_19/source
# mkdir /usr/local/bin/wizd
# mv wizd_0_12h_pvb_19/* /usr/local/bin/wizd

Wizd requires the jpeg library, and the libdvdread library in order to compile properly. We can download and install these through portage.

# emerge media-libs/jpeg media-libs/libdvdread

Modify the Makefile

We will need to make some small changes to the original Makefile in order to compile properly.

# cd /usr/local/src/wizd_0_12h_pvb_19/
# nano Makefile
replace
  LDFLAGS += -static -L/usr/local/lib -ljpeg -ldvdread
with
  LDFLAGS += -L/usr/local/lib -Wl,-rpath,/usr/local/lib -ljpeg -ldvdread -ldl -lm

Compile Wizd

Now that we've created the appropriate directories, and updated our Makefile, we can go ahead and compile Wizd.

# make
  .
  .
  .
# mv wizd /usr/local/bin/wizd

Modify the Configuration File

You will need to update your configuration file to tell Wizd where to find your media files, etc.

# cd /usr/local/bin/wizd
# nano wizd.conf

Add Wizd to Runlevel Default

If you want Wizd to start automatically after boot, you will need to add Wizd to your default runlevel. Here is a sample script written by a member of the I-O DATA USA FORUM, with a few modifications (Original post: http://www.iodata.com/usa/forum/showthread.php?t=422#post2398)

# cd /etc/init.d
# nano wizd
#! /bin/sh
#
# Start/stop the Wizd daemon.
#

cd /usr/local/bin/wizd;

start()
{
  /sbin/killall -s KILL "/usr/local/bin/wizd/wizd" > /dev/null 2>&1
  echo -n "Starting Wizd: "
  /usr/local/bin/wizd/wizd
}

#
# Stop the Wizd server processe.
#

stop()
{
  echo 'Stop services: wizd'
  /bin/killall "/usr/local/bin/wizd/wizd" > /dev/null 2>&1
}

#
# Usage statement.
#

case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
*)
echo "usage: $0 {start|stop|restart}"
exit 1
;;
esac
# chmod 755 wizd
# rc-update add wizd default
 * wizd added to runlevel default
 * rc-update complete.

Run Wizd

You can reboot your system to make sure Wizd starts at runlevel default, or you can start it manually.

# /etc/init.d/wizd start

Any time you make any changes to the wizd.conf configuration file, Wizd will need to be restarted.

# /etc/init.d/wizd restart

You can test that Wizd is working properly by pointing your webbrowser to http://your_kurobox_ip:8004/ and you should be able to see the Wizd media selection screen.

External links