Greetings,
I need to make changes to the usr / bin folder from FTP but it is not allowed.
How can I overcome this?
Thanks in advance.
Best regards...
Greetings,
I need to make changes to the usr / bin folder from FTP but it is not allowed.
How can I overcome this?
Thanks in advance.
Best regards...
LibreELEC's system partition is readonly for a reason. Any edits will be wiped away at the next update.
Perhaps what you are attempting does not need system changes?
Greetings,
To change, delete, paste the file.
But how?
Best regards...
To change, delete, paste the file
Yes, I think I worked out that plan for myself already.
What is the grand plan? Why are changes needed?
It is not possible to edit or add files to /usr/bin as that path is inside a read-only squashfs file (that expands into a virtual filesystem on boot). Any changes there need to be made a image compile time; with a small number of exceptions where we support boot-time override of embedded files with content in /storage/.config/
What exact file are you attempting to modify?
ozkaradag It's not impossible to change the read-only: For instance with mount --bind or overlayfs but it's usually not worth the trouble. You can put your binaries anyway in /storage and adding that location to your PATH variable. Following should work but is untested:
mkdir /storage/bin/
cp /etc/profile /storage/.profile
echo "export PATH=/storage/bin/:$PATH" >> /storage/.profile
Then you can drop your bins in /storage/bin
Yes, I think I worked out that plan for myself already.
What is the grand plan? Why are changes needed?
It is not possible to edit or add files to /usr/bin as that path is inside a read-only squashfs file (that expands into a virtual filesystem on boot). Any changes there need to be made a image compile time; with a small number of exceptions where we support boot-time override of embedded files with content in /storage/.config/
What exact file are you attempting to modify?
Some developers have modified the bin file of some extensions (o * s- * m, TVHeadend, etc etc) and pasted it there.
When it's new, I want to take it and put it in another image and test it.
ozkaradag It's not impossible to change the read-only: For instance with mount --bind or overlayfs but it's usually not worth the trouble. You can put your binaries anyway in /storage and adding that location to your PATH variable. Following should work but is untested:
Codemkdir /storage/bin/ cp /etc/profile /storage/.profile echo "export PATH=/storage/bin/:$PATH" >> /storage/.profile
Then you can drop your bins in /storage/bin
I will give it a try at night.
Thanks to everyone.
Best regards...
Copying /etc/profile is not required - I'm using only export PATH on /storage/.profile and all is working.
OK now I get what you want. You don't need to edit anything in /usr/bin
You need to change the bins in . kodi/addons/......
But I doubt your plan will work. ABI/API might change and it depends how your third party bins have been build.
I understand but LE has bin files for the addons there. If you put it in /usr/bin it won't work. But I'm afraid your idea won't work anyway because of ABI/API breakage. I would suggest you compile using LE buildsystem. It's kinda hard for beginners to understand how to work with but it's worth learning.
Copying /etc/profile is not required - I'm using only export PATH on /storage/.profile and all is working.
In my case, /storage/.profile does not exist anymore in LE 9.2.1
Is this normal?