copy expr or bc binary compatible with libreelec from other linux system.
Posts by tokul
-
-
NVidia Quadro T400 ? Why put LibreElec on it?
It might be economy version of Quadro card, but it is still from Quadro product line and new Nvidia cards tend to require binary/proprietary drivers from Nvidia.
-
RPi 4 model B 4GB. Booted libreelec 10.0.2 fine both with old firmware version and with latest firmware that got installed after loading raspberry pi os updates on it.
-
Why will not boot from SD card? Religious reasons?
Basic RPi setup is main board and sd card. Hardware fault diagnostics start with reducing number of components. Get LibreElec booting on basic setup and start adding extra components until it fails or works in your desired configuration.
-
Which image is for USB stick boot? First one looks like disk failure or rpi is not giving enough power for argon one addon over USB. Second one is trying to mount device that does not exist in the system.
some SD card writers come in "USB stick" form. If you could create image in USB stick, you can create image on SD card. Have you tried booting from SD card? Logical way for running LibreELec on RPi would be to install it on SD card and use SSD or NAS for storage.
-
Sure, the NUCs are faster but as I stated in my initial post, top performance isn't really the goal. Also:
* NUCs just don't hold up well to 24/7 usage. NUCs were my goto choice for media PCs but I have had two fail in the last couple of years and they are too expensive to be disposable. We also use them at work as SBCs at small remote sites and see high failure rates there too.
* I am looking for a low power, passively cooled solution.
there are many ways to interpret "don't hold up well". I was consider suggesting mini-itx based fanless mobo, but did not do that after checking NUC specs. You did sound like NUC was not powerful enough for you.
-
I ended up getting a passively cooled mini PC based on the Celeron N5105 which is a quad core 10w CPU.
Intel NUC 11 comes with Core i3-i7
Celeron N5105 - 4 cores, 2.0 GHz, L2 cache1.5 MB, L3 cache 4 MB, UHD Graphics (24 EUs) 450-800 MHz, 2 × DDR4/LPDDR4X-293, 10 W
Even I3 1115 got more cache and faster graphics support than that Celeron. i5 or i7 will outdo Celeron N5105 in cores.
You just got yourself more options in case selection (if you went with mini-itx mobo and custom case), lower wattage and little less performance than NUC11.
The only 5105 option that I see in local store is essentially non-Intel version of slower NUC at the Gen7 NUC price range.
-
Hi tokul, thanks for your help.
I imagined the problem was that when the swap file is created at startup the drive is not yet mounted and is mounted later.
I want to try to create an external swap because randomly the system freezes and reboots by itself, the probable symptom is that the RAM memory is full.
Trying the free command I see that about 100MB is left available and I think this is causing the random reboots.
I will try the method you recommended as soon as possible, but I did not understand only one thing.
Do I still have to create the /storage/.config/swap.conf file or not?
If so, what should I enter in it?
Thanks a lot!
swap.conf is for making persistent configuration change which survives reboot.
If you continue to use swap.conf, you would have to select swap file location which is accessible at the time when script is executed or change swap.service priorities. I am not the fan of debugging systemd and not the fan of using swap files, if it is not obvious at this point.
-
Hello.
I have a problem creating a swap file on an external drive, on a similar board, OrangePi Lite with 512MB of RAM.
Following the guide I tried all ways to replace the swap file location by editing /storage/.config/swap.conf without success.
I don't know how to change the SWAPFILE="$HOME/.cache/swapfile" entry so that it creates the file on a USB drive connected to the board.
If I try for example "SWAPFILE="$HOME/var/media/DISK_LABEL/swapfile", which is the location where the USB drive is mounted from LE, actually the swapfile is created in a new folder on the SD card and not on the external drive.
Can anyone help me find where I'm wrong?
You describe situation with USB media not mounted when swap file is created.
Disk IO performance is about 100 times slower than memory performance. You would not want to have any memory read or write operations in file based swap.
Please note that you are not running out of memory if free column in Linux free command has very small number. Your actual free memory is in last 'available' column. You will be running out of memory only when Linux starts killing running processes.
Original poster was almost right about the way to activate swap manually. They only missed mkswap command and did not realize that swapon can activate individual swaps.
1. dd to create file in writable location. Preferably not on SD card or SSD with limited write counters.
dd if=/dev/zero of=/var/media/DISK_LABEL/swapfile bs=1M count=256
2. format that file with mkswap
mkswap /var/media/DISK_LABEL/swapfile
3. swapon that file
swapon /var/media/DISK_LABEL/swapfile
those are main steps from LibreElec code responsible for stuff in swap.conf. Other steps only ensure that parent directory exists and secure swap file permissions.
-
tokul pi zero has fixed ram memory..
Swapping on SD card will kill your card. If you are running out of memory (and not that you think that you are out of memory cause memory is full), get better hardware.
-
SWAPFILESIZE value is a number. If you put "other", you would just make swap creation command to error out.
If you need more memory on your box, get more memory. Don't treat swap as "temporally" memory that you will be using permanently by ignoring performance hit that you get there.
Instructions that you linked tell you where that swap file is. Technically they are probably for older LibreElec as current swapfile location is configurable. Remember that LibreElec is not regular Linux, you can't use Ubuntu instructions on LibreElec without understanding what they do and you can't put random stuff in its root file system.
If 256MB swap is improvement over 128MB, remember how much memory your cell phone has and find some dimes in your couch for real memory.
-
If you point TLS client at plain text service port or closed port, it will attempt to negotiate down to last version it is allowed to talk to. Fallback from TLSv1 is SSLv3.
User error is not a bug.
-
ftps:// is FTP over SSL and you are trying to connect to ftp server with starttls extension support.
if you select to use FTP with Starttls, nothing stops you from providing FTP over SSL to maximize client base. Those services do not conflict with each other.
If you want to secure and keep it simple, use SFTP. It needs just one port.
-
Can I put libreelec image on usb drive and connect it to raspberry pi with SD card in it and the installation process will start?
No. Installation will not start.
SD-card reader is 5 bucks. Raspberry PI is 30 bucks or more and you normally get RPi with os on sd card.
-
This would work fine on CoreELEC and the system will boot with "storage" on the external drive:
systemctl stop kodi
e2label /dev/sda1 "STORAGE"
e2label /dev/mmcblk1p2 "EXT-STORAGE"
reboot
I don't know if it will work in LE.
/storage got .config and .kodi directories. replace it with random file system and you are screwed.
-
Consider mounting external ssd on locations that store media instead of taking all /storage
-
How can i fix that? How can i run echo in the same way as on every other linux?
Change your command practices and stop using useless "-exec echo {} \;" argument in find. That's default find output and it does not need -exec echo.
I won't argue about busybox find not supporting -ls, cause I understand that not all environments are equal and I accept it.
-
you are not using gnu find or regular shell and you do not have coreutils installed. your echo comes from busybox shell and is not available as executable.
Technically 'find /input/path -type f -name "*.mkv" -exec echo {} \;' is the same as 'find /input/path -type f -name "*.mkv"'