Construction of UbuntuDLNA Server

Source: Internet
Author: User
Motivation for writing this question: 1. When I build a DLNA server on Ubuntu, I get the benefit of posting this kind of content online. Therefore, I would like to share my experience so that others can refer to it as needed. 2. As the Ubuntu version is updated, a simpler method is available. It is necessary to introduce it. Let's talk less and get down to the truth. The DLNA server mentioned here refers to Mediatomb. Strictly speaking, it is not DLNA (DigitalLivingNetworkAlliance), but UPnP

Motivation for writing this question:

1. When I build a DLNA server on Ubuntu, I get this kind of content posted online. Therefore, I would like to share my experience so that others can refer to it as needed.

2. As the Ubuntu version is updated, a simpler method is available. It is necessary to introduce it.

Let's talk less and get down to the truth.

The DLNA server mentioned here refers to Mediatomb. Strictly speaking, it is not a Digital Living Network Alliance, but an UPnP (Universal Plug and Play) server. The details are left to the experts. Here, DLNA is a certification organization that provides a Logo for machines that meet the requirements of DLNA; UPnP is a network protocol that allows a group of machines to recognize, communicate with each other, and share resources. We need UPnP. It is not important to meet the requirements of DLNA. (Or a TV or Network media player that does not conform to DLNA. I will not discuss it here)

The Ubuntu version I use is 11.10 (Desktop version ). Download see http://www.linuxidc.com/Linux/2011-10/45253.htm

Install Mediatomb ):

Open the Ubuntu software center and search for "Mediatomb. Click "install" to complete the installation of Mediatomb. It's very simple. (This is one of the content to be introduced here, that is, one of my experiences in building a DLNA server. For short, it is installed through the gui (graphical user interface)

Additional instructions:

In the Linux field (Ubuntu is a Distribution of Linux), many people prefer to run command lines at the prompt to Operate machines (such as installing a software ). If you like to install it using command lines, you can open termail (Xterm, etc.) of Ubuntu and install it using the following command at a prompt (this is a common method on other web pages ):

Sudo apt-get install mediatomb

However, using the command line is not the case here. If it is not necessary, no command line operations will be initiated.

Initial settings:

Before starting mediatomb, it is best to confirm/modify the settings under the queue.

Open the setting file/etc/mediatomb/config. xml and find the ui enabled =. If the value of ui enabled = is "no", change it to "yes ". Ui enabled = "yes ". Otherwise, an error message will appear after the Mediatomb is started:

MediaTomb ui is disabled. Check your configuration.

Conversely, if the preceding error message is displayed when you start Mediatomb, change ui enabled = "no" to ui enabled = "yes.

Garbled text:

If the music name or video name does not contain Chinese characters, you can use Mediatomb. However, if there are Chinese characters, the default setting will contain Garbled text. To solve the text garbled problem, you can append two lines related to the text code in the file/etc/mediatomb/config. xml:

UTF-8

CP932

Append in In Below the line.

NOTE: If Mediatomb is started and the Mediatomb database is set, and the text above is set after Garbled text is found, the text Garbled text problem cannot be solved. In this case, after setting the above text code, delete the Mediatomb database, start Mediatomb, and then set the database, which generally solves the problem. (This is the second content to be introduced here, that is, experience 2)

How to remove a mediatomb database:

The mediatomb database is under/var/lib/mediatomb. The database name is mediatomb. db or sqlite3.db. Stop mediatomb first, and then delete the mediatomb database (mediatomb. db or sqlite3.db) under/var/lib/mediatomb ). Then restart mediatomb to solve text garbled characters. (This is also relatively new. Other web pages only refer to sqlite3.db rather than mediatomb. db ).

Automatic Start of the Mediatomb Server:

Because it is a server, it is usually expected to automatically start when the PC starts. Fortunately, Ubuntu11.10 can be automatically started by default if it is installed through the gui described above (at least I have not made any changes to the automatic start settings, ). If you want to explicitly set automatic start, find NO_START = "yes" in the file/etc/default/mediatomb and change it to NO_START = "" (values other than "yes) that's all. By the way, I used the mediatomb installed through the gui described above, and the default setting is already NO_START = "no", so it can be started automatically without modification.

We should be able to build the DLNA server here. As for the usage of Mediatomb (including starting, stopping, and database setting), there are many webpages to be referenced, which are omitted. If necessary, I will explain it later.

Also, building a DLNA server usually requires a file server (otherwise it will be difficult to use ). Next, let's briefly introduce how to build a very simple file server in Ubuntu11.10.

Writing it here suddenly reminds me of the need to use Ubuntu in China? I am so passionate ). However, I believe that Ubuntu is still useful.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.