reynhout / chrx

Chromebook Unix
419 stars 56 forks source link

Fedora 34 #127

Open thesandman12 opened 3 years ago

thesandman12 commented 3 years ago

Hello I have 2 problems since im using chrx. Im trying to download fedora 34 but it keeps saying unable to download and extract core image file. Im thinking this is perhaps a problem with the mirror being down but I would appreciate any help with this. My second problem is I downloaded ubuntu 20.10 with chrx and it worked but it came without software center or software installer. Is this normal or did I do something wrong?

no185 commented 3 years ago

The reason why the chrx-installer is giving you an error message when attempting to install Fedora is because the link in the script is incorrect. What I did was manually edit the chrx-install file and replace the old Fedora link with the new one. I'm not sure why Ubuntu 20.10 is installing without a software center, but you can simply type this command in a terminal once you have installed the distro and booted into it.: sudo apt install gnome-software center To successfully install Fedora 34, here's what you need to do: First, open up crosh, type in shell, and type the following: sudo mv /usr/local/bin/chrx-install /home/chronos/user/Downloads/ I chose to extract it to the downloads folder since that's the easiest directory to edit it in. Once you have done that, open up the files app, and open the chrx-install file with a text editor. Find this line in the script using ctrl+f (if you can use that shortcut in the app): CHRX_OS_CORE_IMAGE_URL='https://download.fedoraproject.org/pub/fedora/linux/releases/30/Container/x86_64/images/Fedora-Container-Base-30-1.2.x86_64.tar.xz' And replace it with this: CHRX_OS_CORE_IMAGE_URL="https://dl.fedoraproject.org/pub/fedora/linux/releases/${CHRX_OS_VERSION}/Container/x86_64/images/Fedora-Container-Base-${CHRX_OS_VERSION}-1.2.x86_64.tar.xz" After doing that, save the file and close the text editor. Then open up the crosh shell and type: sudo mv /home/chronos/user/Downloads/chrx-install /usr/local/bin Once you do that, the Fedora link should work. Please let me know if you encounter any errors.

thesandman12 commented 3 years ago

The reason why the chrx-installer is giving you an error message when attempting to install Fedora is because the link in the script is incorrect. What I did was manually edit the chrx-install file and replace the old Fedora link with the new one. I'm not sure why Ubuntu 20.10 is installing without a software center, but you can simply type this command in a terminal once you have installed the distro and booted into it.: sudo apt install gnome-software center To successfully install Fedora 34, here's what you need to do: First, open up crosh, type in shell, and type the following: sudo mv /usr/local/bin/chrx-install /home/chronos/user/Downloads/ I chose to extract it to the downloads folder since that's the easiest directory to edit it in. Once you have done that, open up the files app, and open the chrx-install file with a text editor. Find this line in the script using ctrl+f (if you can use that shortcut in the app): CHRX_OS_CORE_IMAGE_URL='https://download.fedoraproject.org/pub/fedora/linux/releases/30/Container/x86_64/images/Fedora-Container-Base-30-1.2.x86_64.tar.xz' And replace it with this: CHRX_OS_CORE_IMAGE_URL="https://dl.fedoraproject.org/pub/fedora/linux/releases/${CHRX_OS_VERSION}/Container/x86_64/images/Fedora-Container-Base-${CHRX_OS_VERSION}-1.2.x86_64.tar.xz" After doing that, save the file and close the text editor. Then open up the crosh shell and type: sudo mv /home/chronos/user/Downloads/chrx-install /usr/local/bin Once you do that, the Fedora link should work. Please let me know if you encounter any errors.

Thank you I managed to install the software center on ubuntu already and will try installing fedora 34 later. Fingers crossed that it works.

RedPCat commented 3 years ago

The reason why the chrx-installer is giving you an error message when attempting to install Fedora is because the link in the script is incorrect. What I did was manually edit the chrx-install file and replace the old Fedora link with the new one. I'm not sure why Ubuntu 20.10 is installing without a software center, but you can simply type this command in a terminal once you have installed the distro and booted into it.: sudo apt install gnome-software center To successfully install Fedora 34, here's what you need to do: First, open up crosh, type in shell, and type the following: sudo mv /usr/local/bin/chrx-install /home/chronos/user/Downloads/ I chose to extract it to the downloads folder since that's the easiest directory to edit it in. Once you have done that, open up the files app, and open the chrx-install file with a text editor. Find this line in the script using ctrl+f (if you can use that shortcut in the app): CHRX_OS_CORE_IMAGE_URL='https://download.fedoraproject.org/pub/fedora/linux/releases/30/Container/x86_64/images/Fedora-Container-Base-30-1.2.x86_64.tar.xz' And replace it with this: CHRX_OS_CORE_IMAGE_URL="https://dl.fedoraproject.org/pub/fedora/linux/releases/${CHRX_OS_VERSION}/Container/x86_64/images/Fedora-Container-Base-${CHRX_OS_VERSION}-1.2.x86_64.tar.xz" After doing that, save the file and close the text editor. Then open up the crosh shell and type: sudo mv /home/chronos/user/Downloads/chrx-install /usr/local/bin Once you do that, the Fedora link should work. Please let me know if you encounter any errors.

Didn't work, tried that and it keeps giving me errors

no185 commented 3 years ago

The reason why the chrx-installer is giving you an error message when attempting to install Fedora is because the link in the script is incorrect. What I did was manually edit the chrx-install file and replace the old Fedora link with the new one. I'm not sure why Ubuntu 20.10 is installing without a software center, but you can simply type this command in a terminal once you have installed the distro and booted into it.: sudo apt install gnome-software center To successfully install Fedora 34, here's what you need to do: First, open up crosh, type in shell, and type the following: sudo mv /usr/local/bin/chrx-install /home/chronos/user/Downloads/ I chose to extract it to the downloads folder since that's the easiest directory to edit it in. Once you have done that, open up the files app, and open the chrx-install file with a text editor. Find this line in the script using ctrl+f (if you can use that shortcut in the app): CHRX_OS_CORE_IMAGE_URL='https://download.fedoraproject.org/pub/fedora/linux/releases/30/Container/x86_64/images/Fedora-Container-Base-30-1.2.x86_64.tar.xz' And replace it with this: CHRX_OS_CORE_IMAGE_URL="https://dl.fedoraproject.org/pub/fedora/linux/releases/${CHRX_OS_VERSION}/Container/x86_64/images/Fedora-Container-Base-${CHRX_OS_VERSION}-1.2.x86_64.tar.xz" After doing that, save the file and close the text editor. Then open up the crosh shell and type: sudo mv /home/chronos/user/Downloads/chrx-install /usr/local/bin Once you do that, the Fedora link should work. Please let me know if you encounter any errors.

Didn't work, tried that and it keeps giving me errors

Where exactly did you encounter it and what was the error?

thesandman12 commented 3 years ago

The reason why the chrx-installer is giving you an error message when attempting to install Fedora is because the link in the script is incorrect. What I did was manually edit the chrx-install file and replace the old Fedora link with the new one. I'm not sure why Ubuntu 20.10 is installing without a software center, but you can simply type this command in a terminal once you have installed the distro and booted into it.: sudo apt install gnome-software center To successfully install Fedora 34, here's what you need to do: First, open up crosh, type in shell, and type the following: sudo mv /usr/local/bin/chrx-install /home/chronos/user/Downloads/ I chose to extract it to the downloads folder since that's the easiest directory to edit it in. Once you have done that, open up the files app, and open the chrx-install file with a text editor. Find this line in the script using ctrl+f (if you can use that shortcut in the app): CHRX_OS_CORE_IMAGE_URL='https://download.fedoraproject.org/pub/fedora/linux/releases/30/Container/x86_64/images/Fedora-Container-Base-30-1.2.x86_64.tar.xz' And replace it with this: CHRX_OS_CORE_IMAGE_URL="https://dl.fedoraproject.org/pub/fedora/linux/releases/${CHRX_OS_VERSION}/Container/x86_64/images/Fedora-Container-Base-${CHRX_OS_VERSION}-1.2.x86_64.tar.xz" After doing that, save the file and close the text editor. Then open up the crosh shell and type: sudo mv /home/chronos/user/Downloads/chrx-install /usr/local/bin Once you do that, the Fedora link should work. Please let me know if you encounter any errors.

Didn't work, tried that and it keeps giving me errors

Where exactly did you encounter it and what was the error?

I just tried this also and it did not seem to work it keeps giving me the fatal error. Not sure if I did anything wrong but I tried it twice.

mtropls commented 3 years ago

The reason why the chrx-installer is giving you an error message when attempting to install Fedora is because the link in the script is incorrect. What I did was manually edit the chrx-install file and replace the old Fedora link with the new one. I'm not sure why Ubuntu 20.10 is installing without a software center, but you can simply type this command in a terminal once you have installed the distro and booted into it.: sudo apt install gnome-software center To successfully install Fedora 34, here's what you need to do: First, open up crosh, type in shell, and type the following: sudo mv /usr/local/bin/chrx-install /home/chronos/user/Downloads/ I chose to extract it to the downloads folder since that's the easiest directory to edit it in. Once you have done that, open up the files app, and open the chrx-install file with a text editor. Find this line in the script using ctrl+f (if you can use that shortcut in the app): CHRX_OS_CORE_IMAGE_URL='https://download.fedoraproject.org/pub/fedora/linux/releases/30/Container/x86_64/images/Fedora-Container-Base-30-1.2.x86_64.tar.xz' And replace it with this: CHRX_OS_CORE_IMAGE_URL="https://dl.fedoraproject.org/pub/fedora/linux/releases/${CHRX_OS_VERSION}/Container/x86_64/images/Fedora-Container-Base-${CHRX_OS_VERSION}-1.2.x86_64.tar.xz" After doing that, save the file and close the text editor. Then open up the crosh shell and type: sudo mv /home/chronos/user/Downloads/chrx-install /usr/local/bin Once you do that, the Fedora link should work. Please let me know if you encounter any errors.

Didn't work, tried that and it keeps giving me errors

Where exactly did you encounter it and what was the error?

I just tried this also and it did not seem to work it keeps giving me the fatal error. Not sure if I did anything wrong but I tried it twice.

It seems that Fedora has done some shuffling around with its files and servers. There is no longer a file actually located at the link given by no185. Try replacing the link with CHRX_OS_CORE_IMAGE_URL:"https://download.fedoraproject.org/pub/fedora/linux/releases/34/Container/x86_64/images/Fedora-Container-Base-34-1.2.x86_64.tar.xz" Note that this will only work with x86_64 architectures, and will install Fedora 34 only. I have not been able to find other versions for this file.

thesandman12 commented 2 years ago

The reason why the chrx-installer is giving you an error message when attempting to install Fedora is because the link in the script is incorrect. What I did was manually edit the chrx-install file and replace the old Fedora link with the new one. I'm not sure why Ubuntu 20.10 is installing without a software center, but you can simply type this command in a terminal once you have installed the distro and booted into it.: sudo apt install gnome-software center To successfully install Fedora 34, here's what you need to do: First, open up crosh, type in shell, and type the following: sudo mv /usr/local/bin/chrx-install /home/chronos/user/Downloads/ I chose to extract it to the downloads folder since that's the easiest directory to edit it in. Once you have done that, open up the files app, and open the chrx-install file with a text editor. Find this line in the script using ctrl+f (if you can use that shortcut in the app): CHRX_OS_CORE_IMAGE_URL='https://download.fedoraproject.org/pub/fedora/linux/releases/30/Container/x86_64/images/Fedora-Container-Base-30-1.2.x86_64.tar.xz' And replace it with this: CHRX_OS_CORE_IMAGE_URL="https://dl.fedoraproject.org/pub/fedora/linux/releases/${CHRX_OS_VERSION}/Container/x86_64/images/Fedora-Container-Base-${CHRX_OS_VERSION}-1.2.x86_64.tar.xz" After doing that, save the file and close the text editor. Then open up the crosh shell and type: sudo mv /home/chronos/user/Downloads/chrx-install /usr/local/bin Once you do that, the Fedora link should work. Please let me know if you encounter any errors.

Didn't work, tried that and it keeps giving me errors

Where exactly did you encounter it and what was the error?

I just tried this also and it did not seem to work it keeps giving me the fatal error. Not sure if I did anything wrong but I tried it twice.

It seems that Fedora has done some shuffling around with its files and servers. There is no longer a file actually located at the link given by no185. Try replacing the link with CHRX_OS_CORE_IMAGE_URL:"https://download.fedoraproject.org/pub/fedora/linux/releases/34/Container/x86_64/images/Fedora-Container-Base-34-1.2.x86_64.tar.xz" Note that this will only work with x86_64 architectures, and will install Fedora 34 only. I have not been able to find other versions for this file.

this is still not working did you try it out yourself?

DaveStrickland commented 1 year ago

So this works for me with Fedora 37, with just one change to @no185 's instructions. When edittng the chrx-install file that was copied to the Downloads directory the permissions are such that you are not permitted to save over the original file, but the text editing app won't tell you that.

Instead, save the modified file as something else, e.g. chrx-install.new and then modify the subsequent mv command to sudo cp /home/chronos/user/Downloads/chrx-install.new /usr/local/bin. You can use grep to verify that the /usr/local/bin/chrx-install file Fedora-Container statement has been modified.

After that the normal chrx install commands should work.

jlariviere1 commented 2 months ago

Unfortunately, this guide doesn't quite help me. the [snip] -Base-${CHRX_OS_VERSION}-1.2.x86_64.tar.xz" doesn't quite work; different releases have a different number there. Release 39 is Fedora-Container-Base-39-1.5.x86_64.tar.xz (currently), and Release 40 is Fedora-Container-Base-Generic.x86_64-40-1.14.oci.tar.xz

I edited for the 39 exactly the way it is, and the install appears to be working, fingers crossed...