Difference between revisions of "Mediatomb"

From OnnoWiki
Jump to navigation Jump to search
 
(22 intermediate revisions by the same user not shown)
Line 1: Line 1:
Setup jaringan
+
MediaTomb adalah sebuah UPnP MediaServer open source (GPL) dengan interface user melalui web. MediaTomb memungkinkan kita untuk men-streaming digital media ke jaringan di rumah untuk mendengarkan / melihatnya di berbagai peralatan yang UPnP compatible.
 +
 
 +
MediaTomb mengimplementasikan spesifikasi UPnP MediaServer V 1.0 yang di publikasikan di http://www.upnp.org/. Implementasi yang ada sesuai dengan spesifikasi yang ada. Usaha sedang dilakukan untuk mengembangkan lebih lanjut.
 +
 
 +
 
 +
==Setup jaringan==
 +
 
 +
Aktifkan multicast address
  
 
  sudo su
 
  sudo su
 
  route add -net 239.0.0.0 netmask 255.0.0.0 eth0
 
  route add -net 239.0.0.0 netmask 255.0.0.0 eth0
 
  ifconfig eth0 allmulti
 
  ifconfig eth0 allmulti
 +
 +
Catatan: Mediatomb akan memonitor Multicast address 239.255.255.250 (atau FF02::C / FF05::C di IPv6) port 1900.
  
 
Instalasi
 
Instalasi
Line 17: Line 26:
 
  /etc/mediatomb/config.xml
 
  /etc/mediatomb/config.xml
  
 +
==Cara Lain==
  
 +
Jalankan
  
4.2. First Time Launch
+
   mediatomb --home=/var/data/media/
 
 
When starting MediaTomb for the first time, a .mediatomb directory will be created in your home. Further, a default server configuration file, called config.xml will be generated in that directory.
 
4.2.1. Using Sqlite Database
 
 
 
If you are using sqlite - you are ready to go, the database file will be created automatically and will be located ~/.mediatomb/mediatomb.db If needed you can adjust the database file name and location in the server configuration file.
 
4.2.2. Using MySQL Database
 
 
 
If MediaTomb was compiled with support for both databases, sqlite will be chosen as default because the initial database can be created and used without any user interaction. If MediaTomb was compiled only with MySQL support, the appropriate config.xml file will be created in the ~/.mediatomb directory, but the server will then terminate, because user interaction is required.
 
 
 
MediaTomb has to be able to connect to the MySQL server and at least the (empty) database has to exist. To create the database and provide MediaTomb with the ability to connect to the MySQL server you need to have the appropriate permissions. Note that user names and passwords in MySQL have nothing to do with UNIX accounts, MySQL has it's own user names/passwords. Connect to the MySQL database as “root” or any other user with the appropriate permissions:
 
 
 
$ mysql [-u <username>] [-p]
 
 
 
(You'll probably need to use “-u” to specify a different MySQL user and “-p” to specify a password.)
 
 
 
Create a new database for MediaTomb: (substitute “<database name>” with the name of the database)
 
 
 
mysql> CREATE DATABASE <database name>;
 
 
 
(You can also use “mysqladmin” instead.)
 
 
 
Give MediaTomb the permissions to access the database:
 
 
 
mysql> GRANT ALL ON <database name>.*
 
      TO '<user name>'@'<hostname>'
 
      IDENTIFIED BY '<password>';
 
 
 
If you don't want to set a password, omit “IDENTIFIED BY ..” completely. You could also use the MySQL “root” user with MediaTomb directly, but this is not recommended.
 
 
 
To create a database and a user named “mediatomb” (who is only able to connect via “localhost”) without a password (the defaults) use:
 
 
 
mysql> CREATE DATABASE mediatomb;
 
mysql> GRANT ALL ON mediatomb.* TO 'mediatomb'@'localhost';
 
 
 
If MediaTomb was compiled with database auto creation the tables will be created automatically during the first startup. All table names have a “mt_” prefix, so you can theoretically share the database with a different application. However, this is not recommended.
 
 
 
If database auto creation wasn't compiled in (configure was run with the “--disable-db-autocreate” or zlib.h was not available) you have to create the tables manually:
 
 
 
$ mysql [-u <username>] [-p] \
 
  <database name> < \
 
   <install prefix>/share/mediatomb/mysql.sql
 
 
 
After creating the database and making the appropriate changes in your MediaTomb config file you are ready to go - launch the server, and everything should work.
 
5. Command Line Options
 
 
 
There is a number of options that can be passed via command line upon server start up, for a short summary you can invoke MediaTomb with the following parameter:
 
 
 
$ mediatomb --help
 
 
 
Note:
 
 
 
    the command line options override settings in the configuration file!
 
 
 
5.1. IP Address
 
 
 
--ip or -i
 
 
 
The server will bind to the given IP address, currently we can not bind to multiple interfaces so binding to 0.0.0.0 will not be possible.
 
5.2. Interface
 
 
 
--interface or -e
 
 
 
Interface to bind to, for example eth0, this can be specified instead of the ip address.
 
5.3. Port
 
 
 
--port or -p
 
 
 
Specify the server port that will be used for the web user interface, for serving media and for UPnP requests, minimum allowed value is 49152. If this option is omitted a default port will be chosen, however, in this case it is possible that the port will change upon server restart.
 
5.4. Configuration File
 
 
 
--config or -c
 
 
 
By default MediaTomb will search for a file named “config.xml” in the ~/.mediatomb directory. This option allows you to specify a config file by the name and location of your choice. The file name must be absolute.
 
5.5. Daemon Mode
 
 
 
--daemon or -d
 
 
 
Run the server in background, MediaTomb will shutdown on SIGTERM, SIGINT and restart on SIGHUP.
 
5.6. Home Directory
 
 
 
--home or -m
 
 
 
Specify an alternative home directory. By default MediaTomb will try to retrieve the users home directory from the environment, then it will look for a .mediatomb directory in users home. If .mediatomb was found we will try to find the default configuration file (config.xml), if not found we will create both, the .mediatomb directory and the default config file.
 
 
 
This option is useful in two cases: when the home directory can not be retrieved from the environment (in this case you could also use -c to point MediaTomb to your configuration file or when you want to create a new configuration in a non standard location (for example, when setting up daemon mode). In the latter case you can combine this parameter with the parameter described in Section 5.7, “Config Directory”
 
5.7. Config Directory
 
 
 
--cfgdir or -f
 
 
 
The default configuration directory is combined out of the users home and the default that equals to .mediatomb, this option allows you to override the default directory naming. This is useful when you want to setup the server in a nonstandard location, but want that the default configuration to be written by the server.
 
5.8. Write PID File
 
 
 
--pidfile or -P
 
 
 
Specify a file that will hold the server process ID, the filename must be absolute.
 
5.9. Run Under Different User Name
 
 
 
--user or -u
 
 
 
Run MediaTomb under the specified user n/etc/init.d/mediatomb restartame, this is especially useful in combination with the daemon mode.
 
5.10. Run Under Different Group
 
 
 
--group or -g
 
 
 
Run MediaTomb under the specified group, this is especially useful in combination with the daemon mode.
 
5.11. Add Content
 
 
 
--add or -a
 
 
 
Add the specified directory or file name to the database without UI interaction. The path must be absolute, if path is a directory then it will be added recursively. If path is a file, then only the given file will be imported.
 
5.12. Log To File
 
 
 
--logfile or -l
 
 
 
Do not output log messages to stdout, but redirect everything to a specified file.
 
5.13. Debug Output
 
 
 
--debug or -D
 
 
 
Enable debug log output.
 
5.14. Compile Info
 
 
 
--compile-info
 
 
 
Print the configuration summary (used libraries and enabled features) and exit.
 
5.15. Version Information
 
 
 
--version
 
 
 
Print version information and exit.
 
5.16. Display Command Line Summary
 
 
 
--help or -h
 
 
 
Print a summary about the available command line options.
 
6. Configuration File
 
 
 
MediaTomb is highly configurable and allows the user to set various options and preferences that define the servers behavior. Rather than enforcing certain features upon the user, we prefer to offer a number of choices where possible. The heart of MediaTomb configuration is the config.xml file, which is located in the ~/.mediatomb directory. If the configuration file is not found in the default location and no configuration was specified on the command line, MediaTomb will generate a default config.xml file in the ~/.mediatomb directory. The file is in the XML format and can be edited by a simple text editor, here is the list of all available options:
 
 
 
    *
 
 
 
      "Required" means that the server will not start if the tag is missing in the configuration.
 
    *
 
 
 
      "Optional" means that the tag can be left out of the configuration file.
 
 
 
The root tag of MediaTomb configuration is:
 
 
 
<config>
 
 
 
6.1. Server Settings
 
 
 
These settings define the server configuration, this includes UPnP behavior, selection of database, accounts for the UI as well as installation locations of shared data.
 
 
 
<server>
 
 
 
Required
 
 
 
This section defines the server configuration parameters.
 
 
 
Child tags:
 
 
 
    *
 
 
 
      <port>0</port>
 
 
 
      Optional
 
 
 
      Default: 0 (automatic)
 
 
 
      Specifies the port where the server will be listening for HTTP requests. Note, that because of the implementation in the UPnP SDK only ports above 49152 are supported. The value of zero means, that a port will be automatically selected by the SDK.
 
    *
 
 
 
      <ip>192.168.0.23</ip>
 
 
 
      Optional
 
 
 
      Default: ip of the first available interface.
 
 
 
      Specifies the IP address to bind to, by default one of the available interfaces will be selected.
 
    *
 
 
 
      <interface>eth0</interface>
 
 
 
      Optional
 
 
 
      Default: first available interface.
 
 
 
      Specifies the interface to bind to, by default one of the available interfaces will be selected.
 
    *
 
 
 
      <name>MediaTomb</name>
 
 
 
      Optional
 
 
 
      Default: MediaTomb
 
 
 
      Server friendly name, you will see this on your devices that you use to access the server.
 
    *
 
 
 
      <manufacturerURL>http://mediatomb.org/</manufacturerURL>
 
 
 
      Optional
 
 
 
      Default: http://mediatomb.cc/
 
 
 
      This tag sets the manufacturer URL of a UPnP device, a custom setting may be necessary to trick some renderers in order to enable special features that otherwise are only active with the vendor implemented server.
 
    *
 
 
 
      <modelName>MediaTomb</modelName>
 
 
 
      Optional
 
 
 
      Default: MediaTomb
 
 
 
      This tag sets the model name of a UPnP device, a custom setting may be necessary to trick some renderers in order to enable special features that otherwise are only active with the vendor implemented server.
 
    *
 
 
 
      <modelNumber>0.9.0</modelNumber>
 
 
 
      Optional
 
 
 
      Default: MediaTomb version
 
 
 
      This tag sets the model number of a UPnP device, a custom setting may be necessary to trick some renderers in order to enable special features that otherwise are only active with the vendor implemented server.
 
    *
 
 
 
      <serialNumber>1</serialNumber>
 
 
 
      Optional
 
 
 
      Default: 1
 
 
 
      This tag sets the serial number of a UPnP device.
 
    *
 
 
 
      <presentationURL append-to="ip">80/index.html</presentationURL>
 
 
 
      Optional
 
 
 
      Default: “/”
 
 
 
      The presentation URL defines the location of the servers user interface, usually you do not need to change this however, vendors who want to ship our server along with their NAS devices may want to point to the main configuration page of the device.
 
 
 
      Attributes:
 
          o
 
 
 
            append-to=...
 
 
 
            Optional
 
 
 
            Default: “none”
 
 
 
            The append-to attribute defines how the text in the presentationURL tag should be treated.
 
 
 
            The allowed values are:
 
 
 
            append-to="none"
 
 
 
            Use the string exactly as it appears in the presentationURL tag.
 
 
 
            append-to="ip"
 
 
 
            Append the string specified in the presentationURL tag to the ip address of the server, this is useful in a dynamic ip environment where you do not know the ip but want to point the URL to the port of your web server.
 
 
 
            append-to="port"
 
 
 
            Append the string specified in the presentationURL tag to the server ip and port, this may be useful if you want to serve some static pages using the built in web server.
 
    *
 
 
 
      <udn/>
 
 
 
      Required
 
 
 
      Default: automatically generated if the tag is empty
 
 
 
      Unique Device Name, according to the UPnP spec it must be consistent throughout reboots. You can fill in something yourself, but we suggest that you leave this tag empty - it will be filled out and saved automatically after the first launch of the server.
 
    *
 
 
 
      <home>/home/your_user_name/.mediatomb</home>
 
 
 
      Required
 
 
 
      Default: ~/.mediatomb
 
 
 
      Server home - the server will search for the data that it needs relative to this directory - basically for the sqlite database file. The mediatomb.html bookmark file will also be generated in that directory.
 
    *
 
 
 
      <webroot>/usr/share/mediatomb/web</webroot>
 
 
 
      Required
 
 
 
      Default: depends on the installation prefix that is passed to the configure script.
 
 
 
      Root directory for the web server, this is the location where device description documents, UI html and js files, icons, etc. are stored.
 
    *
 
 
 
      <servedir>/home/myuser/mystuff</servedir>
 
 
 
      Optional
 
 
 
      Default: empty (disabled)
 
 
 
      Files from this directory will be served as from a regular web server. They do not need to be added to the database, but they are also not served via UPnP browse requests. Directory listing is not supported, you have to specify full paths.
 
 
 
      Example:
 
 
 
          the file something.jar is located in /home/myuser/mystuff/javasubdir/something.jar on your filesystem. Your ip address is 192.168.0.23, the server is running on port 50500. Assuming the above configuration you could download it by entering this link in your web browser: http://192.168.0.23:50500/content/serve/javasubdir/something.jar
 
 
 
    *
 
 
 
      <alive>180</alive>
 
 
 
      Optional
 
 
 
      Default: 180, this is according to the UPnP specification.
 
 
 
      Interval for broadcasting SSDP:alive messages
 
    *
 
 
 
      <protocolInfo extend="no"/>
 
 
 
      Optional
 
 
 
      Default: no
 
 
 
      Adds specific tags to the protocolInfo attribute, this is required to enable MP3 and MPEG4 playback on Playstation 3.
 
    *
 
 
 
      <pc-directory upnp-hide="no"/>
 
 
 
      Optional
 
 
 
      Default: no
 
 
 
      Enabling this option will make the PC-Directory container invisible for UPnP devices.
 
 
 
      Note:
 
 
 
          independent of the above setting the container will be always visible in the web UI!
 
 
 
    *
 
 
 
      <tmpdir>/tmp/</tmpdir>
 
 
 
      Optional
 
 
 
      Default: /tmp/
 
 
 
      Selects the temporary directory that will be used by the server.
 
    *
 
 
 
      <bookmark>mediatomb.html</bookmark>
 
 
 
      Optional
 
 
 
      Default: mediatomb.html
 
 
 
      The bookmark file offers an easy way to access the user interface, it is especially helpful when the server is not configured to run on a fixed port. Each time the server is started, the bookmark file will be filled in with a redirect to the servers current IP address and port. To use it, simply bookmark this file in your browser, the default location is ~/.mediatomb/mediatomb.html
 
    *
 
 
 
      <custom-http-headers>
 
 
 
      Optional
 
 
 
      This section holds the user defined HTTP headers that will be added to all HTTP responses that come from the server.
 
 
 
      Child tags:
 
          o
 
 
 
            <add header="..."/>
 
            <add header="..."/>
 
            ...
 
 
 
            Optional
 
 
 
            Specify a header to be added to the response. If you have a DSM-320 use <add header="X-User-Agent: redsonic"/> to fix the .AVI playback problem.
 
    *
 
 
 
      <upnp-string-limit>
 
 
 
      Optional
 
 
 
      Default: disabled
 
 
 
      This will limit title and description length of containers and items in UPnP browse replies, this feature was added a s workaround for the TG100 bug which can only handle titles no longer than 100 characters. A negative value will disable this feature, the minimum allowed value is "4" because three dots will be appended to the string if it has been cut off to indicate that limiting took place.
 
 
 
    *
 
 
 
      <ui enabled="yes" poll-interval="2" poll-when-idle="no"/>
 
 
 
      Optional
 
 
 
      This section defines various user interface settings.
 
      WARNING!
 
 
 
      The server has an integrated filesystem browser, that means that anyone who has access to the UI can browse your filesystem (with user permissions under which the server is running) and also download your data! If you want maximum security - disable the UI completely! Account authentication offers simple protection that might hold back your kids, but it is not secure enough for use in an untrusted environment!
 
 
 
      Note:
 
 
 
          since the server is meant to be used in a home LAN environment the UI is enabled by default and accounts are deactivated, thus allowing anyone on your network to connect to the user interface.
 
 
 
      Attributes:
 
          o
 
 
 
            enabled=...
 
  
            Optional
+
atau
  
            Default: yes
+
  mediatomb --home=/folder/data/anda &
  
            Enables (“yes”) or disables (“no”) the web user interface.
+
Akan keluar kurang lebih
          o
 
  
            show-tooltips=...
+
MediaTomb UPnP Server version 0.12.1 - http://mediatomb.cc/
 +
 +
===============================================================================
 +
Copyright 2005-2010 Gena Batsyan, Sergey Bostandzhyan, Leonhard Wimmer.
 +
MediaTomb is free software, covered by the GNU General Public License version 2
 +
 +
2012-04-19 14:40:29    INFO: Loading configuration from: /mnt/pustaka//.mediatomb/config.xml
 +
2012-04-19 14:40:29    INFO: Checking configuration...
 +
2012-04-19 14:40:29    INFO: Setting filesystem import charset to UTF-8
 +
2012-04-19 14:40:29    INFO: Setting metadata import charset to UTF-8
 +
2012-04-19 14:40:29    INFO: Setting playlist charset to UTF-8
 +
2012-04-19 14:40:29 WARNING: You enabled the YouTube feature, which allows you
 +
                              to watch YouTube videos on your UPnP device!
 +
                              Please check http://www.youtube.com/t/terms
 +
                              By using this feature you may be violating YouTube
 +
                              service terms and conditions!
 +
 +
2012-04-19 14:40:29    INFO: Configuration check succeeded.
 +
2012-04-19 14:40:30 WARNING: Sqlite3 database seems to be corrupt or doesn't exist yet.
 +
2012-04-19 14:40:30    INFO: no sqlite3 backup is available or backup is corrupt. automatically creating database...
 +
2011-05-24 19:54:18    INFO: database created successfully.
 +
2011-05-24 19:54:18    INFO: Initialized port: 49152
 +
2011-05-24 19:54:18    INFO: Server bound to: 192.168.0.2
 +
2011-05-24 19:54:19    INFO: MediaTomb Web UI can be reached by following this link:
 +
2011-05-24 19:54:19    INFO: http://192.168.0.2:49152/
  
            Optional
 
  
            Default: yes
+
==Edit Konfigurasi==
  
            This setting specifies if icon tooltips should be shown in the web UI.
+
Default tempat file media ada di
          o
 
  
            poll-interval=...
+
/var/lib/mediatomb
  
            Optional
+
Isi /var/lib/mediatomb dengan file avi, mp3 dll yang ingin di akses.
 +
Jangan lupa untuk
  
            Default: 2
+
chmod -Rf 777 /var/lib/mediatomb/
 +
chown -Rf nobody.nogroup /var/lib/mediatomb/
  
            The poll-interval is an integer value which specifies how often the UI will poll for tasks. The interval is specified in seconds, only values greater than zero are allowed.
+
Edit file
          o
 
  
            poll-when-idle=...
+
vi /etc/mediatomb/config.xml
  
            Optional
+
Ubah / pastikan ui dan account enable="yes"
  
            Default: no
+
<server>
 +
  <ui enabled="yes" show-tooltips="yes">
 +
    <accounts enabled="yes" session-timeout="30">
 +
        <account user="mediatomb" password="mediatomb"/>
 +
    </accounts>
 +
  </ui>
  
            The poll-when-idle attribute influences the behavior of displaying current tasks: - when the user does something in the UI (i.e. clicks around) we always poll for the current task and will display it - if a task is active, we will continue polling in the background and update the current task view accordingly - when there is no active task (i.e. the server is currently idle) we will stop the background polling and only request updates upon user actions, but not when the user is idle (i.e. does not click around in the UI)
+
==Scan Harddisk==
  
            Setting poll-when-idle to "yes" will do background polling even when there are no current tasks; this may be useful if you defined multiple users and want to see the tasks the other user is queuing on the server while you are actually idle.
+
Scan harddisk / media yang ada hal ini di perlukan agar mediatomb mempunyai database file apa saja yang ada.
 +
Caranya
  
            The tasks that are monitored are:
+
* Masuk ke web (misalnya)
                +
 
  
                  adding files or directories
+
http://192.168.43.102:49152/
                +
+
http://192.168.0.2:49152/
 +
http://192.168.0.3:49152/
 +
http://192.168.0.62:49152/
 +
http://192.168.0.101:49152/
  
                  removing items or containers
+
* Klik Filesystem > path tempat file multimedia berada
                +
+
* Klik sebelah kanan atas "add"
 +
* Klik sebelah kanan atas "add as autoscan dir"
  
                  automatic rescans
+
Set beberapa parameter
  
      Child tags:
+
* Scan Mode: Timed
          o
+
* Recursive
 +
* Set
  
            <accounts enabled="yes" session-timeout="30"/>
+
==Lebih Dalam==
  
            Optional
+
* [[MediaTomb: Reset Database]]
 
 
            This section holds various account settings.
 
 
 
            Attributes:
 
                +
 
 
 
                  enabled=...
 
 
 
                  Optional
 
 
 
                  Default: yes
 
 
 
                  Specifies if accounts are enabled (“yes”) or disabled (“no”).
 
                +
 
 
 
                  session-timeout=...
 
 
 
                  Optional
 
 
 
                  Default: 30
 
 
 
                  The session-timeout attribute specifies the timeout interval in minutes. The server checks every five minutes for sessions that have timed out, therefore in the worst case the session times out after session-timeout + 5 minutes.
 
 
 
            Accounts can be defined as shown below:
 
                +
 
 
 
                  <account user="name" password="password"/>
 
                  <account user="name" password="password"/>
 
                  ....
 
 
 
                  Optional
 
 
 
                  There can be multiple users, however this is mainly a feature for the future. Right now there are no per-user permissions.
 
          o
 
 
 
            <items-per-page default="25">
 
 
 
            Optional
 
 
 
            Default: 25
 
 
 
            This sets the default number of items per page that will be shown when browsing the database in the web UI.
 
 
 
            The values for the items per page drop down menu can be defined in the following manner:
 
                +
 
 
 
                  <option>10</option>
 
                  <option>25</option>
 
                  <option>50</option>
 
                  <option>100</option>
 
 
 
                  Default: 10, 25, 50, 100
 
 
 
                  Note:
 
 
 
                      this list must contain the default value, i.e. if you define a default value of 25, then one of the <option> tags must also list this value.
 
 
 
    *
 
 
 
      <storage caching="yes">
 
 
 
      Required
 
 
 
      Defines the storage section - database selection is done here. Currently sqlite3 and mysql are supported. Each storage driver has it's own configuration parameters.
 
          o
 
 
 
            caching="yes"
 
 
 
            Optional
 
 
 
            Default: yes
 
 
 
            Enables caching, this feature should improve the overall import speed.
 
          o
 
 
 
            <sqlite enabled="yes>
 
 
 
            Required if MySQL is not defined
 
 
 
            Allowed values are “sqlite3” or “mysql”, the available options depend on the selected driver.
 
                +
 
 
 
                  enabled="yes"
 
 
 
                  Optional
 
 
 
                  Default: yes
 
 
 
            Below are the sqlite driver options:
 
                +
 
 
 
                  <database-file>mediatomb.db</database-file>
 
 
 
                  Optional
 
 
 
                  Default: mediatomb.db
 
 
 
                  The database location is relative to the server's home, if the sqlite database does not exist it will be created automatically.
 
                +
 
 
 
                  <synchronous>off</synchronous>
 
 
 
                  Optional
 
 
 
                  Default: off
 
 
 
                  Possible values are “off”, “normal” and ”full”.
 
 
 
                  This option sets the SQLite pragma “synchronous”. This setting will affect the performance of the database write operations. For more information about this option see the SQLite documentation: http://www.sqlite.org/pragma.html#pragma_synchronous
 
                +
 
 
 
                  <on-error>restore</on-error>
 
 
 
                  Optional
 
 
 
                  Default: restore
 
 
 
                  Possible values are “restore” and “fail”.
 
 
 
                  This option tells MediaTomb what to do if an SQLite error occurs (no database or a corrupt database). If it is set to “restore” it will try to restore the database from a backup file (if one exists) or try to recreate a new database from scratch.
 
 
 
                  If the option is set to “fail”, MediaTomb will abort on an SQLite error.
 
                +
 
 
 
                  <backup enabled="no" interval="6000"/>
 
 
 
                  Optional
 
 
 
                  Backup parameters:
 
                      #
 
 
 
                        enabled=...
 
 
 
                        Optional
 
 
 
                        Default: no
 
 
 
                        Enables or disables database backup.
 
                      #
 
 
 
                        interval=...
 
 
 
                        Optional
 
 
 
                        Default: 600
 
 
 
                        Defines the backup interval in seconds.
 
          o
 
 
 
            <mysql enabled="no"/>
 
 
 
            Defines the MySQL storage driver section.
 
                +
 
 
 
                  enabled=...
 
 
 
                  Optional
 
 
 
                  Default: yes
 
 
 
                  Enables or disables the MySQL driver.
 
 
 
            Below are the child tags for MySQL:
 
                +
 
 
 
                  <host>localhost</host>
 
 
 
                  Optional
 
 
 
                  Default: "localhost"
 
 
 
                  This specifies the host where your MySQL database is running.
 
                +
 
 
 
                  <port>0</port>
 
 
 
                  Optional
 
 
 
                  Default: 0
 
 
 
                  This specifies the port where your MySQL database is running.
 
                +
 
 
 
                  <username>root</username>
 
 
 
                  Optional
 
 
 
                  Default: "mediatomb"
 
 
 
                  This option sets the user name that will be used to connect to the database.
 
                +
 
 
 
                  <password></password>
 
 
 
                  Optional
 
 
 
                  Default: no password
 
 
 
                  Defines the password for the MySQL user. If the tag doesn't exist MediaTomb will use no password, if the tag exists, but is empty MediaTomb will use an empty password. MySQL has a distinction between no password and an empty password.
 
                +
 
 
 
                  <database>mediatomb</database>
 
 
 
                  Optional
 
 
 
                  Default: "mediatomb"
 
 
 
                  Name of the database that will be used by MediaTomb.
 
  
  
Line 696: Line 125:
 
==Pranala Menarik==
 
==Pranala Menarik==
  
* [[Multimedia di Linux]]
+
* [[Media Server]]
 +
 
 +
===Media Server di Network Appliance===
 +
* [[Buffalo: Media Server]]
 +
* [[Buffalo: BitTorrent]]
 +
* [[Buffalo: BitTorrent Konfigurasi]]
 +
 
 +
===Media Server di Komputer===
 +
* [[mediatomb]] '''(RECOMMENDED)'''
 +
* [[ushare]]
 +
* [[gmediaserver]]
 +
 
 +
===Mencari Film / Lagu===
 +
* [[ThePirateBay]]
 +
* [[rtorrent]]
 +
* [[rtorrent.rc]]
 +
* [[rtorrent: modifikasi untuk mendukung magnet]]
 +
* [[rtorrent: cara penggunaan]]
 +
* [[rtorrent: menjalankan di background]]
 +
* [[Bittorrent]]

Latest revision as of 19:42, 14 December 2023

MediaTomb adalah sebuah UPnP MediaServer open source (GPL) dengan interface user melalui web. MediaTomb memungkinkan kita untuk men-streaming digital media ke jaringan di rumah untuk mendengarkan / melihatnya di berbagai peralatan yang UPnP compatible.

MediaTomb mengimplementasikan spesifikasi UPnP MediaServer V 1.0 yang di publikasikan di http://www.upnp.org/. Implementasi yang ada sesuai dengan spesifikasi yang ada. Usaha sedang dilakukan untuk mengembangkan lebih lanjut.


Setup jaringan

Aktifkan multicast address

sudo su
route add -net 239.0.0.0 netmask 255.0.0.0 eth0
ifconfig eth0 allmulti

Catatan: Mediatomb akan memonitor Multicast address 239.255.255.250 (atau FF02::C / FF05::C di IPv6) port 1900.

Instalasi

apt-get install sqlite mediatomb

Restart

/etc/init.d/mediatomb restart

File konfigurasi di

/etc/mediatomb/config.xml

Cara Lain

Jalankan

 mediatomb --home=/var/data/media/

atau

 mediatomb --home=/folder/data/anda &

Akan keluar kurang lebih

MediaTomb UPnP Server version 0.12.1 - http://mediatomb.cc/

===============================================================================
Copyright 2005-2010 Gena Batsyan, Sergey Bostandzhyan, Leonhard Wimmer.
MediaTomb is free software, covered by the GNU General Public License version 2 

2012-04-19 14:40:29    INFO: Loading configuration from: /mnt/pustaka//.mediatomb/config.xml
2012-04-19 14:40:29    INFO: Checking configuration...
2012-04-19 14:40:29    INFO: Setting filesystem import charset to UTF-8
2012-04-19 14:40:29    INFO: Setting metadata import charset to UTF-8
2012-04-19 14:40:29    INFO: Setting playlist charset to UTF-8
2012-04-19 14:40:29 WARNING: You enabled the YouTube feature, which allows you
                             to watch YouTube videos on your UPnP device!
                             Please check http://www.youtube.com/t/terms
                             By using this feature you may be violating YouTube
                             service terms and conditions!

2012-04-19 14:40:29    INFO: Configuration check succeeded.
2012-04-19 14:40:30 WARNING: Sqlite3 database seems to be corrupt or doesn't exist yet.
2012-04-19 14:40:30    INFO: no sqlite3 backup is available or backup is corrupt. automatically creating database...
2011-05-24 19:54:18    INFO: database created successfully.
2011-05-24 19:54:18    INFO: Initialized port: 49152
2011-05-24 19:54:18    INFO: Server bound to: 192.168.0.2
2011-05-24 19:54:19    INFO: MediaTomb Web UI can be reached by following this link:
2011-05-24 19:54:19    INFO: http://192.168.0.2:49152/


Edit Konfigurasi

Default tempat file media ada di

/var/lib/mediatomb

Isi /var/lib/mediatomb dengan file avi, mp3 dll yang ingin di akses. Jangan lupa untuk

chmod -Rf 777 /var/lib/mediatomb/
chown -Rf nobody.nogroup /var/lib/mediatomb/

Edit file

vi /etc/mediatomb/config.xml

Ubah / pastikan ui dan account enable="yes"

<server>
  <ui enabled="yes" show-tooltips="yes">
    <accounts enabled="yes" session-timeout="30">
       <account user="mediatomb" password="mediatomb"/>
    </accounts>
  </ui>

Scan Harddisk

Scan harddisk / media yang ada hal ini di perlukan agar mediatomb mempunyai database file apa saja yang ada. Caranya

  • Masuk ke web (misalnya)
http://192.168.43.102:49152/
http://192.168.0.2:49152/
http://192.168.0.3:49152/
http://192.168.0.62:49152/
http://192.168.0.101:49152/
  • Klik Filesystem > path tempat file multimedia berada
  • Klik sebelah kanan atas "add"
  • Klik sebelah kanan atas "add as autoscan dir"

Set beberapa parameter

  • Scan Mode: Timed
  • Recursive
  • Set

Lebih Dalam


Referensi

Pranala Menarik

Media Server di Network Appliance

Media Server di Komputer

Mencari Film / Lagu