Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How do I install Entware on LibreELEC?

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

1. Modify LibreELEC system image

The LibreELEC system image is read-only and the opt folder cannot be created.

Install brew on mac system, and then brew install squashfs

Insert the SD card and enter it in the terminal as follows:

Cd / Volumes/LIBREELEC mkdir-p new/opt mksquashfs new SYSTEM-all-root rm-rf new

Now the LibreELEC system image will generate an opt folder, which needs to be recreated for each LibreELEC upgrade.

two。 Start the LIbreELEC system and log in to SSH

Open ssh in the system settings of LibreELEC, and then enter ssh root@LibreELEC.local in the terminal

Enter your password and log in to LibreELEC

3. Install Entware

Although the / root directory is still read-only, / storage is read-write, so first create / storage/opt, then mount / opt to / storage/opt, and then install opkg, enter the following in the terminal:

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-expr

The installation script in this needs to be modified according to your device.

You can go to http://bin.entware.net/ to see the supported device types

There are some choices.

[aarch74-k3.10/] (http://bin.entware.net/aarch74-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/))

Modify the startup item to enable LibreELEC to automatically mount / opt to / storage/opt

Enter 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

Start boot and mount automatically

Systemctl enable opt.mount add environment variable nano / storage/.profile export LC_ALL=en_US.UTF-8 export.UTF-8 export LANGUAGE=en_US.UTF-8 export PATH=$PATH:/opt/bin:/opt/sbin

Restart the system, log in to ssh, check whether / opt mounts ls / opt to see if there is a corresponding folder

Enter opkg list to check whether the environment variable is set successfully

4. Set the Entware startup item

Enter 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

Boot self-boot systemctl enable entware.service

Start the service systemctl start entware.service

5. Install the Entware application

Opkg list opkg list | grep package opkg install package opkg uninstall package

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report