前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >在LibreELEC上安装Entware

在LibreELEC上安装Entware

作者头像
用户8705050
修改2021-06-08 11:03:43
1.5K0
修改2021-06-08 11:03:43
举报
文章被收录于专栏:linux百科小宇宙

1.修改LibreELEC系统镜像

LibreELEC系统镜像为只读,无法创建opt文件夹。

mac系统下安装brew,然后brew install squashfs

插入SD卡在终端中输入如下:

cd /Volumes/LIBREELEC

mkdir -p new/opt

mksquashfs new SYSTEM -all-root

rm -rf new

现在LibreELEC系统镜像就会生成一个opt文件夹,每次LibreELEC升级都需要重新创建这个opt文件夹。

2.启动LIbreELEC系统并登入SSH

在LibreELEC的系统设置中开启ssh,然后在终端中输入ssh root@LibreELEC.local

输入密码后登入LibreELEC

3.安装Entware

尽管/根目录还是只读,但是/storage是可读写的,所以先创建/storage/opt,然后把/opt挂载到/storage/opt,然后安装opkg,在终端中输入如下:

mkdir -p /storage/opt

mount -o bind /storage/opt /opt

wget -O - http://bin.entware.net/armv7sf-k3.2/installer/generic.sh | sh

export PATH=$PATH:/opt/bin:/opt/sbin

opkg update

opkg install coreutils-exp

这里面的安装脚本需要根据你的设备来修改

 可以到http://bin.entware.net/来查看支持的设备类型

 可以选择的有

[aarch64-k3.10/](http://bin.entware.net/aarch64-k3.10/)

[armv5sf-k3.2/](http://bin.entware.net/armv5sf-k3.2/) 

[armv7sf-k2.6/](http://bin.entware.net/armv7sf-k2.6/) 

[armv7sf-k3.2/](http://bin.entware.net/armv7sf-k3.2/)

[mipselsf-k3.4/](http://bin.entware.net/mipselsf-k3.4/)   

[mipssf-k3.4/](http://bin.entware.net/mipssf-k3.4/) 

[x64-k3.2/](http://bin.entware.net/x64-k3.2/) 

修改启动项,LibreELEC启动自动挂载/opt到/storage/opt

输入nano -w /storage/.config/system.d/opt.mount

[Unit]

DefaultDependencies=no

Conflicts=umount.target

Before=local-fs.target umount.target

[Mount]

What=/storage/opt

Where=/opt

Type=none

Options=bind

[Install]

WantedBy=local-fs.target

启动开机自动挂载

systemctl enable opt.mount

添加环境变量nano /storage/.profile

export LC_ALL=en_US.UTF-8

export LANG=en_US.UTF-8

export LANGUAGE=en_US.UTF-8

export PATH=$PATH:/opt/bin:/opt/sbin

重启系统,ssh登入,检查/opt是否挂载ls /opt看是否有相应文件夹

 输入opkg list检测环境变量是否设置成功

4.设置Entware启动项

输入nano -w /storage/.config/system.d/entware.service

[Unit]

Requires=network-online.service

[Service]

Type=oneshot

ExecStart=/opt/etc/init.d/rc.unslung start

ExecStop=/opt/etc/init.d/rc.unslung stop

RemainAfterExit=yes

[Install]

WantedBy=multi-user.target

开机自启动systemctl enable entware.service

启动服务systemctl start entware.service

5.安装Entware应用

opkg list

opkg list | grep package

opkg install package

opkg uninstall package

LibreELEC 9.0 发布,基于Kodi 18.0开发的Linux发行版

  https://www.linuxidc.com/Linux/2019-02/156687.htm

本文系转载,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文系转载前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档