「Jinzora」の版間の差分

提供: ArchWiki
ナビゲーションに移動 検索に移動
(→‎インストール: 一部飜訳)
5行目: 5行目:
   
 
Jinzora は ''ストリーミング'' と ''mpd'' を使った 2 つのモードで動作させることができます。MPDをまだインストールしていない場合は、[[mpd]] を参照してください(ストリーミングモードの動作に必要なものではありません)。
 
Jinzora は ''ストリーミング'' と ''mpd'' を使った 2 つのモードで動作させることができます。MPDをまだインストールしていない場合は、[[mpd]] を参照してください(ストリーミングモードの動作に必要なものではありません)。
 
Jinzora can run in two modes, ''streaming'' and using ''mpd''. If you have not installed MPD already, see [[mpd]] (it is not required for the streaming mode to operate).
 
   
 
=== ウェブサーバーのセットアップ ===
 
=== ウェブサーバーのセットアップ ===

2022年10月28日 (金) 13:05時点における版

Jinzora は GPL のウェブベースのマルチメディアアプリケーションです。ストリーミングサーバとして、また、メディア管理プラットフォームとして機能します。この記事では、Jinzora のインストールと設定方法について説明します。

インストール

Jinzora は ストリーミングmpd を使った 2 つのモードで動作させることができます。MPDをまだインストールしていない場合は、mpd を参照してください(ストリーミングモードの動作に必要なものではありません)。

ウェブサーバーのセットアップ

Apache、PHP、MySQL のインストールは、LAMPを参照してください。

(Note: 上記のガイドにある phpMyAdmin のインストールは任意です。PHP と MySQL を使用するウェブサイトを自分で作る可能性がある場合、インストールすることをお勧めします。そうでなければ、おそらく必要ないでしょう。)

PHP の設定

Jinzora は、GD と iconv ライブラリを利用することができます。これらを有効にすることをお勧めします。/etc/php/php.ini の以下の行をアンコメントします。

extension=gd
extension=iconv

PHP の gd 拡張モジュールは、gd ライブラリである php-gdインストールされていることが必要です。

また、open_basedir の設定も見てみましょう。メディアディレクトリは、このディレクトリで指定されたパスの中か、それ中である必要があります。

Jinzora のダウンロードと展開

Download the latest version of Jinzora2 from https://sourceforge.net/projects/jinzora/ and extract the contents using tar:

# tar -xvf jz2current.tar.gz

Jinzora の設定

In the ~/httpd/html/jinzora2 directory, run configure.sh:

# sh configure.sh

Run the installer

The installer will automatically configure Jinzora and create the database. Open up your web browser, go to http://localhost/jinzora2/index.php and follow the instructions.

  • Pay attention to these setup steps:
    • Page 4 - Installation Type : Change from 'Streaming' to 'Streaming & Jukebox' if you wish to listen to the music on the computer you are installing Jinzora2 on (it is primarily a streaming application to allow remote access to, and control of, a streaming server running it).
    • Page 5 - Main Settings : If you hover over the boxes here they explain the settings, so choose whatever you want. It is best to choose 'Database' for Backend Type. Also consider using the 'Tag Data' option for 'Data Structure', unless your music is organized on your filesystem exactly the way you want it to be.
    • Page 6 - Backend Setup : Unless you have used Jinzora before, or for some reason wish to manually create a MySQL database for it to use, then select 'True' under 'Create Database'.
    • Page 7 - Import Media : This step may take a few minutes if you have got a few gigs of music; simply enter into the box the directory where your music is stored. When the installer is finished importing the music from this directory, you will have the option to import as many other directories as you want, one after the other.

You can also import more files from the Settings interface when Jinzora is up and running. You do not have to do it while installing.

Note: While Jinzora was importing my music collection, I had the following error appear twice on the page:

Warning: strpos() [function.strpos]: Offset not contained in string. in /home/httpd/html/jinzora2/services/services/tagdata/getid3/module.tag.id3v2.php
on line 1542

This seemed to have no adverse effect on the installation though, so if something similar happens to you, do not worry!

設定の保存

When you have finished importing your music, click Proceed to save config, then Proceed to launch Jinzora.

Setting up MPD to play your music

Edit ~/httpd/html/jinzora2/jukebox/settings.php: under 'Description', change 'Winamp Media Player' to 'Music Player Daemon' (or whatever you want), and under 'type' change 'winamp3' to 'mpd'.

Change 'password' to be empty (so it just reads '' rather than 'jinzora'), or change this to whatever password you have set in /etc/mpd.conf.

Also in this file, change the port from '4800' to '6600', or whatever port you have set MPD to accept connections on in /etc/mpd.conf.

If you wish to use Jinzora's streaming functionality, simply go back to your web browser, click refresh, select 'Music Player Daemon' from the 'Playback To' drop-down menu and Voila! Your own working copy of Jinzora!

トラブルシューティング

  • If you cannot get any sound despite all of the above, try testing mpd with another GUI client. If you have no sound in this either, you need to further edit /etc/mpd.conf. Try uncommenting some of the ALSA settings in this file (assuming you use ALSA).
  • If you know that MPD is working, then try to match up the settings in Jinzora as closely to those in /etc/mpd.conf as possible (the settings in Jinzora are accessed from the 4th small green button on the upper left of the 'Slick' interface).
  • If changes to your playlist are ignored, go to System Tools > Settings Manager > Main Settings/Playlist and set use_ext_playlists to false.
  • If when you click on the PLAY button of any song / album you are offered a 'playlist.m3u' download, then you have not changed the Playback To option to Music Player Daemon.