LibreELEC is an OS whose purpose is to run Kodi, an open-source app to turn any computer into a media center. It works great on all kinds of Raspberry Pi. However, it was a pain to install on a regular computer. Here is how I finally got it to work.
You should try that before going for the other way.
Go to https://libreelec.tv/downloads/ and create your bootable USB stick manually or using the provided tool. Boot from it on the target computer, select install and you should be fine.
If your computer refuses to boot on your USB stick, check that it works with an other one that is known to work (for instance, the Live CD of a big Linux distribution).
If it works with other USB sticks but not with the one from LibreELEC, you are in the same situation as I was. Luckily, there is an other way!
.imgfile for the archive:
gunzip LibreELEC-Generic.x86_64-*.img.gz. Put it on a USB stick (the standard way, by copying it). In the following, I will just call it the USB stick.
.imgfile into the computer.
fdisk -lfor instance) three devices: the Live CD itself, the USB stick and the target HDD on which we want to install LibreELEC. Find the device number of the HDD (and of the USB stick if you need to mount it).
Get access to the
.img file. You may have to mount the USB stick by
hand (I assume that it is
/dev/sdX and has only one partition):
mkdir /mnt/usb mount /dev/sdX1 /mnt/usb
.img on the HDD (I assume that it is
dd if=/path/to/LibreELEC-Generic.x86_64-*.img of=/dev/sdY bs=4M && sync
Once this is done, you have LibreELEC on your disk! We will still change a few things to make it nicer.
Mount the boot partition of the HDD:
mkdir -p /mnt/hdd/boot mount /dev/sdY1 /mnt/hdd/boot
(the next points should be re-written)