Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

show latest image number when fetching an image #71

Closed
lsandov1 opened this issue Dec 18, 2017 · 4 comments
Closed

show latest image number when fetching an image #71

lsandov1 opened this issue Dec 18, 2017 · 4 comments
Assignees

Comments

@lsandov1
Copy link

This is a feature, not a bug. There are several places on the documentation that the user is asked to download a image from [1] and then unxz it. IMO, it would be great if the fetch step is also shown as a wget command including the full url of the most recent image, this way we make it easier for the user and avoid wrong image selection from user.

For example, on the kvm steps:

  1. Download the latest pre-built Clear Linux KVM image file from the image directory. Look for clear--kvm.img.xz.

wget https://download.clearlinux.org/image/clear-19720-kvm.img.xz <-- this is the new piece of text that needs to be dynamically populated

[1] https://download.clearlinux.org/image/

@lsandov1
Copy link
Author

Perhaps the title needs to change, but we should include full command lines when downloading stuff, like OVMF.fd or the start_qemu.sh. Leaving the title as it is for the moment.

@bktan8
Copy link
Contributor

bktan8 commented Apr 17, 2018

@lsandoval - The "image" directory in https://download.clearlinux.org/image always has the latest. there aren't multiple versions.

That said, we can add a command-line code-block to each one of the document where we ask the user to download the latest. It will download the latest. @Michael-Vincerra - Here are the changes to make:

  1. On https://clearlinux.org/documentation/clear-linux/get-started/bare-metal-install

“Download the latest Clear Linux installer image
Get the latest Clear Linux installer image from the image directory. Look for the clear-[version number]-installer.img.xz file. Once you have downloaded the image, verify and uncompress the file.”
 
Add a code-block:: bash
$ curl -O  https://download.clearlinux.org/image/clear-$(curl https://download.clearlinux.org/latest)-installer.img.xz
 
2. On https://clearlinux.org/documentation/clear-linux/get-started/virtual-machine-install/kvm
“Download and launch the virtual machine
1.   Download the latest pre-built Clear Linux KVM image file from the image directory. Look for clear--kvm.img.xz.”
 
Add a code-block:: bash
$ curl -O  https://download.clearlinux.org/image/clear-$(curl https://download.clearlinux.org/latest)-kvm.img.xz
 
3. On https://clearlinux.org/documentation/clear-linux/get-started/virtual-machine-install/virtualbox
“Create a virtual machine in VirtualBox
1.    Download the latest live version (clear-XXXX-live.img.xz) from https://download.clearlinux.org/image/ .”
Add a code-block:: bash
$ curl -O  https://download.clearlinux.org/image/clear-$(curl https://download.clearlinux.org/latest)-live.img.xz
 
4. On https://clearlinux.org/documentation/clear-linux/get-started/virtual-machine-install/vmware-esxi-preconfigured-cl-image and https://clearlinux.org/documentation/clear-linux/get-started/virtual-machine-install/vmw-player-preconf
“Download the latest Clear Linux VMware image
Get the latest Clear Linux VMware image from the image repository. Look for clear-[version number]-vmware.vmdk.xz.

Add a code-block:: bash
$ curl -O  https://download.clearlinux.org/image/clear-$(curl https://download.clearlinux.org/latest)-vmware-vmdk.xz

@mvincerx
Copy link
Contributor

Will do so as soon as we meet to resolve minor issues in commands.

@mvincerx
Copy link
Contributor

We've added the curl command in these URLs. This issue is closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants