第十季 看Kodi,用OpenELEC
最后更新于:2022-04-01 06:48:21
#### 一、为什么又选择OpenELEC
Raspbmc的体积庞大功能较多,相应的速度和性能要弱;OpenELEC是一个精简版,体积小功能少,相应的速度和性能都有提升。这就要看我们的选择了,如果像我一样用多个sdcard玩树莓派,那么用OpenELEC做家庭媒体中心就最合适不过了。
它的体积很小,请参考如下:
4.0.5版:
OpenELEC-RPi.arm-4.0.5.img.gz 99.7M
OpenELEC-RPi.arm-4.0.5.img 164M
5.0.0版:
-rwxrwxrwx. 2 linc linc 306184192 Dec 28 06:41 OpenELEC-RPi.arm-5.0.0.img
-rwxrwxrwx. 2 linc linc 99263770 Jan 3 17:56 OpenELEC-RPi.arm-5.0.0.img.gz
#### 二、安装
还是从官网下载比较新,[点击这里](http://openelec.tv/index.php/get-openelec)。
安装过程与Raspbmc相似,我直接在原Raspbmc的sdcard上安装,过程如下:
~~~
1 [linc@localhost ~]$ sudo fdisk -l
Disk /dev/sdb: 15.9 GB, 15931539456 bytes
64 heads, 32 sectors/track, 15193 cylinders, total 31116288 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0002db69
Device Boot Start End Blocks Id System
1 /dev/sdb1 * 2048 264192 131072+ c W95 FAT32 (LBA)
/dev/sdb2 266240 331776 32768+ 83 Linux
~~~
~~~
[linc@localhost ~]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_localhost-lv_root
24G 22G 1.3G 95% /
tmpfs 1.3G 480K 1.3G 1% /dev/shm
/dev/sda7 485M 30M 430M 7% /boot
/dev/sdb2 15G 173M 15G 2% /media/db413a9b-4a10-4f3d-ae2a-c34947d04ac8
/dev/sdb1 128M 109M 20M 86% /media/4DBB-CE4E
/dev/sda5 26G 24G 1.5G 95% /media/Work
[linc@localhost ~]$ umount /dev/sdb1
[linc@localhost ~]$ umount /dev/sdb2
~~~
~~~
[linc@localhost ~]$ sudo dd bs=4M if=/media/Work/OpenELEC-RPi.arm-5.0.0.img of=/dev/sdb && sync
[sudo] password for linc:
73+0 records in
73+0 records out
306184192 bytes (306 MB) copied, 29.0638 s, 10.5 MB/s
~~~
#### 三、使用
用法与Raspbmc一样,都是Kodi嘛。
启动
![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/2016-01-05_568b308dc2cdd.jpg)
这里还是乖乖的默认英文,因为选择简体中文后,都是乱码。可以在设置中改成中文,参考Raspbmc。
Host Name
![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/2016-01-05_568b308df02a8.jpg)
SSH很重要,选择上。SMB是默认就选择的。
![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/2016-01-05_568b308e1eec2.jpg)
SSH默认的用户名和密码是什么?
Username: root
Password: openelec
CPU使用率很低,反应速度很快
![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/2016-01-05_568b308e45796.jpg)
网络设置,连接wifi
![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/2016-01-05_568b308e7d56f.jpg)
![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/2016-01-05_568b308ea2293.jpg)
参考:
[http://kodi.wiki/view/Video_library#Adding_videos_to_the_library](http://kodi.wiki/view/Video_library#Adding_videos_to_the_library)
[http://wiki.openelec.tv/index.php/OpenELEC_FAQ](http://wiki.openelec.tv/index.php/OpenELEC_FAQ)
[http://kodi.wiki/view/Raspberry_Pi/FAQ](http://kodi.wiki/view/Raspberry_Pi/FAQ)
[http://wiki.openelec.tv/index.php/Ssh_commands](http://wiki.openelec.tv/index.php/Ssh_commands)