如何通过 OpenELEC 创建你自己的媒体中心
OpenELEC Kodi
![](/data/attachment/album/201705/12/194428wnqplhp0p70wwpl4.jpg)


你是否曾经想要创建你自己的家庭影院系统？如果是的话，这里有一个为你准备的指南！在本篇文章中，我们将会介绍如何设置一个由 OpenELEC 以及 Kodi 驱动的家庭娱乐系统。我们将会介绍如何制作安装介质，哪些设备可以运行该软件，如何安装它，以及其他一切需要知道的事情等等。


### 选择一个设备


在开始设定媒体中心的软件前，你需要选择一个设备。OpenELEC 支持一系列设备。从一般的桌面设备到树莓派 2/3 等等。选择好设备以后，考虑一下你怎么访问 OpenELEC 系统中的媒体并让其就绪。


\**注意: \**OpenELEC 基于 Kodi，有许多方式加载一个可播放的媒体（比如 Samba 网络分享，外设，等等）。


### 制作安装磁盘


OpenELEC 安装磁盘需要一个 USB 存储器，且其至少有 1GB 的容量。这是安装该软件的唯一方式，因为开发者没有发布 ISO 文件。取而代之的是需要创建一个 IMG 原始文件。选择与你设备相关的链接并且[下载](http://openelec.tv/get-openelec/category/1-openelec-stable-releases)原始磁盘镜像。当磁盘镜像下载完毕，打开一个终端，并且使用命令将数据从压缩包中解压出来。


**在Linux/macOS上**



```
cd ~/Downloads
gunzip -d OpenELEC*.img.gz

```

**在Windows上**


下载 [7zip](http://www.7-zip.org/)，安装它，然后解压压缩文件。


当原始的 .IMG 文件被解压后，下载 [Etcher USB creation tool](https://etcher.io/)，并且依据在界面上的指示来安装它并创建 USB 磁盘。


**注意:** 对于树莓派用户，Etcher 也支持将文件写入到 SD 卡中。


### 安装 OpenELEC


OpenELEC 安装进程可能是安装流程最简单的操作系统之一了。将 USB 设备加入，然后配置设备使其以 USB 方式启动。同样，这个过程也可以通过按 DEL 或者 F2 来替代。然而并不是所有的 BIOS 都是一样的，所以最好的方式就是看看手册什么的。


![](/data/attachment/album/201705/12/194634l5w65kasoowb5s1e.png)


一旦进入 BIOS，修改设置使其从 USB 磁盘中直接加载。这将会允许电脑从 USB 磁盘中启动，这将会使你进入到 Syslinux 引导屏幕。在提示符中，键入 `installer`，然后按下回车键。


![](/data/attachment/album/201705/12/194649vq55hooarrr5er86.png)


默认情况下，快速安装选项已经是选中的。按回车键来开始安装。这将会使安装器跳转到磁盘选择界面。选择 OpenELEC 要被安装到的地方，然后按下回车键来开始安装过程。


![](/data/attachment/album/201705/12/194709ixfk1efil2zlipkr.png)


一旦完成安装，重启系统并加载 OpenELEC。


### 配置 OpenELEC


![](/data/attachment/album/201705/12/194730deenflz0l06lm3lg.jpg)


在第一次启动时，用户必须配置一些东西。如果你的媒体中心拥有一个无线网卡，OpenELEC 将会提示用户将其连接到一个热点上。选择一个列表中的网络并且输入密码。


![](/data/attachment/album/201705/12/194752qwklz30dqdkesiwf.jpg)


在下一步“<ruby> 欢迎来到 OpenELEC <rt>  Welcome to OpenELEC </rt></ruby>”屏上，用户必须配置不同的分享设置（SSH 以及 Samba）。建议你把这些设置开启，因为可以用命令行访问，这将会使得远程传输媒体文件变得很简单。


### 增加媒体


在 OpenELEC（Kodi）中增加媒体，首先选择你希望添加的媒体到的部分。以同样的流程，为照片、音乐等添加媒体。在这个指南中，我们将着重讲解添加视频。


![](/data/attachment/album/201705/12/194813ohtc8ricrgw5fzft.jpg)


点击在主页的“<ruby> 视频 <rt>  Video </rt></ruby>”选项来进入视频页面。选择“<ruby> 文件 <rt>  Files </rt></ruby>”选项，在下一个页面点击“<ruby> 添加视频... <rt>  Add videos… </rt></ruby>”，这将会使得用户进入Kodi 的添加媒体页面。在这个页面，你可以随意的添加媒体源了（包括内部和外部的）。


![](/data/attachment/album/201705/12/194846k0z6sb2vsm05vfvm.jpg)


OpenELEC 会自动挂载外部的设备（像是 USB，DVD 碟片，等等），并且它可以通过浏览文件挂载点来挂载。一般情况下，这些设备都会被放在“/run”下，或者，返回你点击“<ruby> 添加视频... <rt>  Add videos… </rt></ruby>”的页面，在那里选择设备。任何外部设备，包括 DVD/CD，将会直接展示在那里，并可以直接访问。这是一个很好的选择——对于那些不懂如何找到挂载点的用户。


![](/data/attachment/album/201705/12/194920gzev8e298t2io7w8.jpg)


现在这个设备在 Kodi 中被选中了，界面将会询问用户去浏览设备上私人文件夹，里面有私人文件——这一切都是在媒体中心文件浏览器工具下执行的。一旦找到了放置文件的文件夹，添加它，给予文件夹一个名字，然后按下 OK 按钮来保存它。


![](/data/attachment/album/201705/12/194942ze5rpuez7g5btb76.jpg)


当一个用户浏览“<ruby> 视频 <rt>  Videos </rt></ruby>”，他们将会看到可以点击的文件夹，这个文件夹中带有从外部设备添加的媒体。这些文件夹可以很容易地在系统上播放。


### 使用 OpenELec


当用户登录他们将会看见一个“主界面”，这个主界面有许多部分，用户可以点击它们并且进入，包括：图片，视频，音乐，程序等等。当悬停在这些部分的时候，子部分就会出现。例如，当悬停在“图片”上时，子部分”文件“以及”插件”就会出现。


![](/data/attachment/album/201705/12/195001zeyww6hwn0u2e4kc.jpg)


如果一个用户点击了一个部分中的子部分，例如“插件”，Kodi 插件选择就会出现。这个安装器将会允许用户浏览新的插件内容，来安装到这个子部分（像是图片关联插件，等等）或者启动一个已经存在的图片关联插件，当然，这个插件应该已经安装到系统上了。


此外，点击任何部分的文件子部分（例如视频）将会直接给显示用户该部分可用的文件。


### 系统设置


![](/data/attachment/album/201705/12/195021e3cwwsbbswh3szsj.jpg)


Kodi 有丰富的设置区域。为了找到这些设置，使鼠标在右方悬停，目录选择器将会滚动右方并且显示”<ruby> 系统 <rt>  System </rt></ruby>“。点击来打开全局系统设定区。


用户可以修改任何设置，从安装 Kodi 仓库的插件，到激活各种服务，到改变主题，甚至天气。如果想要退出设定区域并且返回主页面，点击右下方角落中的“home”图标。


### 结论


通过 OpenELEC 的安装和配置，你现在可以随意体验使用你自己的 Linux 支持的家庭影院系统。在所有的家庭影院系统 Linux 发行版中，这个是最用户友好的。请记住，尽管这个系统是以“OpenELEC”为名，但它运行着的是 Kodi ，并兼容任何 Kodi 的插件，工具以及程序。




---


via: <https://www.maketecheasier.com/build-media-center-with-openelec/>


作者：[Derrik Diener](https://www.maketecheasier.com/author/derrikdiener/) 译者：[svtter](https://github.com/svtter) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
![](https://www.maketecheasier.com/assets/uploads/2017/03/openelec-feature-image.jpg)

Have you ever wanted to make your own home theater system? If so, this is the guide for you! In this article we’ll go over how to set up a home entertainment system powered by OpenELEC and Kodi. We’ll go over how to make the installation medium, what devices can run the software, how to install it and everything else there is to know!

## Choosing a device

Before setting up the software in the media center, you’ll need to choose a device. OpenELEC supports a multitude of devices. From regular desktops and laptops to the Raspberry Pi 2/3, etc. With a device chosen, think about how you’ll access the media on the OpenELEC system and get it ready to use.

**Note:** as OpenELEC is based on Kodi, there are many ways to load playable media (Samba network shares, external devices, etc.).

## Making the installation disk

The OpenELEC installation disk requires a USB flash drive of at least 1 GB. This is the only way to install the software, as the developers do not currently distribute an ISO file. A raw IMG file needs to be created instead. Choose the link that corresponds with your device and [download](https://openelec.tv/get-openelec/category/1-openelec-stable-releases) the raw disk image. With the image downloaded, open a terminal and use the command to extract the data from the archive.

**On Linux/macOS**

cd ~/Downloads gunzip -d OpenELEC*.img.gz

**On Windows**

Download [7zip](https://www.7-zip.org/), install it, and then extract the archive.

With the raw .IMG file extracted, download the Etcher USB creation tool and follow the instructions on the page to install it and create the USB disk.

**Note:** for Raspberry Pi users, Etcher supports burning to SD cards as well.

## Installing OpenELEC

The OpenELEC installation process is probably one of the easiest operating systems to install. To start, plug in the USB device and configure your device to boot from the USB drive. For some, this can be accomplished by pressing the DEL key or F2. However, as all BIOS are different, it is best to look into the manual and find out.

Once in the BIOS, configure it to load the USB stick directly. This will allow the computer to boot the drive, which will bring you to the Syslinux boot screen. Enter “installer” in the prompt, then press the Enter key.

By default, the quick installation option is selected. Press Enter to start the install. This will move the installer onto the drive selection page. Select the hard drive where OpenELEC should be installed, then press the Enter key to start the installation process.

Once done, reboot the system and load OpenELEC.

## Configuring OpenELEC

On first boot, the user must configure a few things. If your media center device has a wireless network card, OpenELEC will prompt the user to connect it to a wireless access point. Select a network from the list and enter the access code.

On the next “Welcome to OpenELEC” screen, the user must configure various sharing settings (SSH and Samba). It is advised that you turn these settings on, as this will make it easier to remotely transfer media files as well as gain command-line access.

## Adding Media

To add media to OpenElec (Kodi), first select the section that you want to add media to. Adding media for Photos, Music, etc., is the same process. In this guide we’ll focus on adding videos.

Click the “Video” option on the home screen to go to the videos area. Select the “Files” option. On the next page click “Add videos…” This will take the user to the Kodi add-media screen. From here it is possible to add new media sources (both internal and external).

OpenELEC automatically mounts external devices (like USB, DVD data discs, etc.), and it can be added by browsing for the folder’s mount point. Usually these devices are placed in “/run.” Alternatively, go back to the page where you clicked on “Add videos…” and click on the device there. Any external device, including DVDs/CDs, will show up there and can be accessed directly. This is a good option for those who don’t understand how to find mount points.

Now that the device is selected within Kodi, the interface will ask the user to browse for the individual directory on the device with the media files using the media center’s file browser tool. Once the directory that holds the files is found, add it, give the directory a name and press the OK button to save it.

When a user browses “Videos,” they’ll see a clickable folder which brings up the media added from an external device. These folders can easily be played on the system.

## Using OpenElec

When the user logs in they’ll see a “home screen.” This home screen has several sections the user is able to click on and go to: Pictures, Videos, Music, Programs, etc. When hovering over any of these sections, subsections appear. For example, when hovering over “Pictures,” the subsections “files” and “Add-ons” appear.

If a user clicks on one of the subsections under a section, like “add-ons,” the Kodi add-on chooser appears. This installer will allow users to either browse for new add-ons to install in relation to this subsection (like Picture-related add-ons, etc.) or to launch existing picture-related ones that are already on the system.

Additionally, clicking the files subsection of any section (e.g. Videos) takes the user directly to any available files in that section.

## System Settings

Kodi has an extensive settings area. To get to the Settings, hover the mouse to the right, and the menu selector will scroll right and reveal “System.” Click on it to open the global system settings area.

Any setting can be modified and changed by the user, from installing add-ons from the Kodi-repository, to activating various services, to changing the theme, and even the weather. To exit the settings area and return to the home screen, press the “home” icon in the bottom-right corner.

## Conclusion

With the OpenELEC installed and configured, you are now free to go and use your very own Linux-powered home-theater system. Out of all of the home-theater-based Linux distributions, this one is the most user-friendly. Do keep in mind that although this operating system is known as “OpenELEC,” it runs Kodi and is compatible with all of the different Kodi add-ons, tools, and programs.

Our latest tutorials delivered straight to your inbox