Wiki Ubuntu-it

Indice
Partecipa
FAQ
Wiki Blog
------------------
Ubuntu-it.org
Forum
Chiedi
Chat
Cerca
Planet
  • Pagina non alterabile
  • Informazioni
  • Allegati
  • Differenze per "jeremie2/Prove14"
Differenze tra le versioni 1 e 26 (in 25 versioni)
Versione 1 del 03/10/2017 17.52.14
Dimensione: 6526
Autore: jeremie2
Commento:
Versione 26 del 29/09/2024 20.22.32
Dimensione: 5291
Autore: jeremie2
Commento:
Le cancellazioni sono segnalate in questo modo. Le aggiunte sono segnalate in questo modo.
Linea 1: Linea 1:
#format wiki
#LANGUAGE it
## page was renamed from GruppoDocumentazione/NuovoRilascio/ScriptHashSHA256Sum
#page created by wilecoyote
<<Indice(depth=2)>>
Linea 4: Linea 5:
<<Indice(depth=1)>> <<Informazioni(forum=http://forum.ubuntu-it.org/viewtopic.php?t=641900; rilasci="22.04 20.04 24.04 24.10")>>
Linea 8: Linea 9:
In questa pagina viene mostrato l'elenco completo di tutte le versioni di Ubuntu rilasciate negli anni, comprese le versioni che hanno concluso il loro ciclo di sviluppo e che non ricevono più alcun tipo di aggiornamento. Nelle pagine di download di Ubuntu, oltre alle immagini '''iso''' del sistema operativo, è regolarmente presente il file '''SHA256SUM''' con l'elenco delle impronte SHA256Sum di ciascun file `iso`.
Linea 10: Linea 11:
<<Anchor(lista_rilasci)>>
= Elenco completo dei rilasci =
In questa pagina viene mostrato l'utilizzo di uno '''script''' in grado di rilevare dalle pagine di download tutte le impronte SHA256Sum di Ubuntu e derivate a seconda del numero di versione (22.04, 24.04, ecc..).<<BR>>
Per ogni versione verrà creato un file con l'elenco delle hash per le `iso` di Ubuntu e derivate.
Linea 13: Linea 14:
||<tablestyle="width:100%;text-align:center;" rowstyle="background-color: #cccccc;">'''Versione'''||<20%>'''Nome in codice'''||<20%>'''Rilascio'''||<20%>'''Fine supporto'''||<12%>'''Note rilascio'''||'''Download'''||
||<#f7f7f7>'''4.10'''|| Warty Warthog|| Ottobre 2004|| Aprile 2006|| || [[http://old-releases.ubuntu.com/releases/warty/|Download]]||
||<#f7f7f7>'''5.04'''|| [[https://wiki.ubuntu.com/HoaryReleaseSchedule|Hoary Hedgehog]]|| Aprile 2005|| Ottobre 2006|| || [[http://old-releases.ubuntu.com/releases/hoary/|Download]]||
||<#f7f7f7>'''5.10'''|| [[https://wiki.ubuntu.com/BreezyReleaseSchedule|Breezy Badger]]|| Ottobre 2005|| Aprile 2007|| || [[http://old-releases.ubuntu.com/releases/breezy/|Download]]||
||<#f7f7f7>'''6.06 LTS'''|| [[https://wiki.ubuntu.com/DapperReleaseSchedule|Dapper Drake]]|| Giugno 2006|| Giugno 2009 (2011 server)|| [[DapperNoteDiRilascio|Link]]|| [[http://old-releases.ubuntu.com/releases/dapper/|Download]]||
||<#f7f7f7>'''6.10 '''|| [[https://wiki.ubuntu.com/EdgyReleaseSchedule|Edgy Eft]]|| Ottobre 2006 || Aprile 2008|| [[EdgyNoteDiRilascio|Link]]|| [[http://old-releases.ubuntu.com/releases/edgy/|Download]]||
||<#f7f7f7>'''7.04'''|| [[https://wiki.ubuntu.com/FeistyReleaseSchedule|Feisty Fawn]]|| Aprile 2007|| Ottobre 2008|| [[FeistyNoteDiRilascio|Link]]|| [[http://old-releases.ubuntu.com/releases/feisty/|Download]]||
||<#f7f7f7>'''7.10'''|| [[Rilasci/GutsyGibbon|Gutsy Gibbon]]|| Ottobre 2007|| Aprile 2009|| [[GutsyNoteDiRilascio|Link]]|| [[http://old-releases.ubuntu.com/releases/gutsy/|Download]]||
||<#f7f7f7>'''8.04 LTS'''|| [[Rilasci/HardyHeron|Hardy Heron]]|| Aprile 2008|| Aprile 2011 (2013 server)|| [[HardyNoteDiRilascio|Link]]|| [[http://old-releases.ubuntu.com/releases/hardy/|Download]]||
||<#f7f7f7>'''8.10'''|| [[Rilasci/IntrepidIbex|Intrepid Ibex]]|| Ottobre 2008|| Aprile 2010|| [[IntrepidNoteDiRilascio|Link]]|| [[http://old-releases.ubuntu.com/releases/intrepid/|Download]]||
||<#f7f7f7>'''9.04'''|| [[Rilasci/JauntyJackalope|Jaunty Jackalope]]|| Aprile 2009|| Ottobre 2010|| [[JauntyNoteDiRilascio|Link]]|| [[http://old-releases.ubuntu.com/releases/jaunty/|Download]]||
||<#f7f7f7>'''9.10'''|| [[Rilasci/KarmicKoala|Karmic Koala]]|| Ottobre 2009|| Aprile 2011|| [[https://wiki.ubuntu.com/KarmicKoala/ReleaseNotes/it|Link]]|| [[http://old-releases.ubuntu.com/releases/karmic/|Download]]||
||<#f7f7f7>'''10.04 LTS'''|| [[Rilasci/LucidLynx|Lucid Lynx]]|| Aprile 2010|| Aprile 2013 (2015 server)|| [[https://wiki.ubuntu.com/LucidLynx/ReleaseNotes/it|Link]]|| [[http://old-releases.ubuntu.com/releases/lucid/|Download]]||
||<#f7f7f7>'''10.10'''|| [[Rilasci/MaverickMeerkat|Maverick Meerkat]]|| Ottobre 2010|| Aprile 2012|| [[https://wiki.ubuntu.com/MaverickMeerkat/ReleaseNotes/it|Link]]|| [[http://old-releases.ubuntu.com/releases/maverick/|Download]]||
||<#f7f7f7>'''11.04'''|| [[Rilasci/NattyNarwhal| Natty Narwhal]]|| Aprile 2011|| Ottobre 2012|| [[https://wiki.ubuntu.com/NattyNarwhal/ReleaseNotes/it|Link]]|| [[http://old-releases.ubuntu.com/releases/natty/|Download]]||
||<#f7f7f7>'''11.10'''|| [[Rilasci/OneiricOcelot| Oneiric Ocelot]]|| Ottobre 2011|| Aprile 2013|| [[https://wiki.ubuntu.com/OneiricOcelot/ReleaseNotes/|Link]]|| [[http://old-releases.ubuntu.com/releases/oneiric/|Download]]||
||<#f7f7f7>'''12.04 LTS'''|| [[Rilasci/PrecisePangolin| Precise Pangolin]]|| Aprile 2012|| Aprile 2017|| [[https://wiki.ubuntu.com/PrecisePangolin/ReleaseNotes|Link]] || [[http://releases.ubuntu.com/releases/precise/|Download]]||
||<#f7f7f7>'''12.10'''|| [[Rilasci/QuantalQuetzal| Quantal Quetzal]] || Ottobre 2012|| Maggio 2014|| [[https://wiki.ubuntu.com/QuantalQuetzal/ReleaseNotes|Link]] || [[http://old-releases.ubuntu.com/releases/quantal/|Download]] ||
||<#f7f7f7>'''13.04'''|| [[Rilasci/RaringRingtail | Raring Ringtail ]] || Aprile 2013|| Gennaio 2014|| [[https://wiki.ubuntu.com/RaringRingtail/ReleaseNotes|Link]] || [[http://old-releases.ubuntu.com/releases/raring/|Download]] ||
||<#f7f7f7>'''13.10'''|| [[Rilasci/SaucySalamander | Saucy Salamander ]] || Ottobre 2013|| Luglio 2014|| [[https://wiki.ubuntu.com/SaucySalamander/ReleaseNotes|Link]] || [[http://old-releases.ubuntu.com/releases/saucy/|Download]] ||
||<#f7f7f7>'''14.04 LTS'''|| [[Rilasci/TrustyTahr | Trusty Tahr ]] || Aprile 2014|| Aprile 2019|| [[https://wiki.ubuntu.com/TrustyTahr/ReleaseNotes|Link]] || [[http://releases.ubuntu.com/releases/trusty/|Download]] ||
||<#f7f7f7>'''14.10'''|| [[Rilasci/UtopicUnicorn|Utopic Unicorn]] || Ottobre 2014|| Luglio 2015|| [[https://wiki.ubuntu.com/UtopicUnicorn/ReleaseNotes|Link]] || [[http://old-releases.ubuntu.com/releases/utopic/|Download]] ||
||<#f7f7f7>'''15.04'''|| [[Rilasci/VividVervet|Vivid Vervet]] || Aprile 2015|| Gennaio 2016|| [[https://wiki.ubuntu.com/VividVervet/ReleaseNotes|Link]] || [[http://old-releases.ubuntu.com/releases/vivid/|Download]] ||
||<#f7f7f7>'''15.10'''|| [[Rilasci/WilyWerewolf|Wily Werewolf]] || Ottobre 2015|| Luglio 2016|| [[https://wiki.ubuntu.com/WilyWerewolf/ReleaseNotes|Link]] || [[http://old-releases.ubuntu.com/releases/wily/|Download]] ||
||<#f7f7f7>'''16.04 LTS'''|| [[Rilasci/XenialXerus|Xenial Xerus]] || Aprile 2016|| Aprile 2021|| [[https://wiki.ubuntu.com/XenialXerus/ReleaseNotes|Link]] || [[http://releases.ubuntu.com/releases/xenial/|Download]] ||
||<#f7f7f7>'''16.10'''|| [[Rilasci/YakketyYak | Yakkety Yak ]] || Ottobre 2016|| Luglio 2017|| [[https://wiki.ubuntu.com/YakketyYak/ReleaseNotes|Link]] || [[http://releases.ubuntu.com/releases/yakkety/|Download]] ||
||<#f7f7f7>'''17.04'''|| [[Rilasci/ZestyZapus | Zesty Zapus ]] || Aprile 2017|| Gennaio 2018|| [[https://wiki.ubuntu.com/ZestyZapus/ReleaseNotes|Link]] || [[http://releases.ubuntu.com/releases/zesty/|Download]] ||
||<#f7f7f7>'''17.10'''|| [[Rilasci/ArtfulAardvark | Artful Aardvark ]] || Ottobre 2017|| Luglio 2018|| [[https://wiki.ubuntu.com/ArtfulAardvark/ReleaseNotes|Link]] || [[http://releases.ubuntu.com/releases/artful/|Download]] ||
= Script =

Il seguente script richiede l'[[AmministrazioneSistema/InstallareProgrammi|installazione]] del pacchetto [[apt://aiohttp-wsgi-serve|aiohttp-wsgi-serve]]. In caso di problemi è possibile utilizzare uno script [[#alternativo|alternativo]].

{{{
import aiohttp
import asyncio

from sys import argv
script, ubu_version = argv

ubuntu_flavours = ("kubuntu", "ubuntu-mate", "xubuntu", "lubuntu", "ubuntu-unity", "ubuntu-budgie", "ubuntustudio", "ubuntukylin", "ubuntucinnamon")


def create_versions_list():
    versions = []
    versions.append("UBUNTU")

    for version in ubuntu_flavours:
        versions.append(version.upper())

    versions.append("SERVER_POWERPC")
    return versions


def create_urls_collection():
    urls = []

    # Link hash Ubuntu
    link = f"https://releases.ubuntu.com/{ubu_version}/SHA256SUMS"
    urls.append(link)

    # Link hash derivate ufficiali di Ubuntu
    for flavour in ubuntu_flavours:
        link = f"https://cdimage.ubuntu.com/{flavour}/releases/{ubu_version}/release/SHA256SUMS"
        urls.append(link)

    # Link hash versioni server alternative, ecc..
    link = f"https://cdimage.ubuntu.com/releases/{ubu_version}/release/SHA256SUMS"
    urls.append(link)

    return urls


async def fetch_page(session, url):
    async with session.get(url) as response:
        if response.status == 200:
            return await response.text()
        else:
            return None


async def main():
    ubu_versions = create_versions_list()
    urls = create_urls_collection()
    async with aiohttp.ClientSession() as session:
        hash_pages = []

        for url in urls:
            hash_pages.append(fetch_page(session, url))

        htmls = await asyncio.gather(*hash_pages)

    for flavour_name, hash_text in zip(ubu_versions, htmls):
        if hash_text is None:
            print(f"{flavour_name}\nNon presente!\n")
        else:
            print(f"{flavour_name}\n{hash_text}")


asyncio.run(main())

}}}

= Utilizzo =

Aprire un [[Ufficio/EditorDiTesto|editor di testo]], incollare il testo dello script riportato nel paragrafo precedente e salvare il file nella propria '''Home''' con il nome `script.py`

Vengono elencati qui i comandi da [[AmministrazioneSistema/Terminale|terminale]] per ogni [[Rilasci|versione supportata]]. Ogni comando creerà nella propria '''Home''' un file con all'interno l'elenco delle impronte per una specifica versione di Ubuntu. Ad esempio il file '''hash_24-04.txt''' conterrà l'elenco delle hash SHA256Sum della versione '''24.04'''.

 * '''24.10''': digitare il comando:{{{
python3 script.py 24.10 > hash_24-10.txt
}}}
 * '''24.04''': digitare il comando:{{{
python3 script.py 24.04 > hash_24-04.txt
}}}
 * '''22.04''': digitare il comando:{{{
python3 script.py 22.04 > hash_22-04.txt
}}}
 * '''20.04''': digitare il comando:{{{
python3 script.py 20.04 > hash_20-04.txt
}}}

<<Anchor(alternativo)>>
= Script alternativo =

Lo script è meno veloce del precedente, potrebbe richiedere vari secondi per l'esecuzione, tuttavia non richiede pacchetti aggiuntivi in una installazione standard di Ubuntu.

{{{
import urllib.request
import requests

from sys import argv
script, ubu_version = argv

ubuntu_flavours = ("kubuntu", "ubuntu-mate", "xubuntu", "lubuntu", "ubuntu-unity", "ubuntu-budgie", "ubuntustudio", "ubuntukylin", "ubuntucinnamon")

def print_hash(web_page):
    request = requests.get(web_page)
    if request.status_code == 200:
        web = urllib.request.urlopen(web_page)
        text = web.read().decode('utf_8')
        print(text)
    else:
        print("Non presente!\n")

#STAMPA HASH UBUNTU PRESENTI IN https://releases.ubuntu.com/
print("UBUNTU")
link = f"https://releases.ubuntu.com/{ubu_version}/SHA256SUMS"
print_hash(link)

#STAMPA HASH VARIANTI *BUNTU PRESENTI IN http://cdimage.ubuntu.com/
for i in ubuntu_flavours:
    link = f"https://cdimage.ubuntu.com/{i}/releases/{ubu_version}/release/SHA256SUMS"
    print(i.upper())
    print_hash(link)

#STAMPA HASH VERSIONI SERVER PRESENTI IN https://cdimage.ubuntu.com/releases/
print("SERVER_POWERPC")
link = f"https://cdimage.ubuntu.com/releases/{ubu_version}/release/SHA256SUMS"
print_hash(link)

}}}
Linea 44: Linea 150:
 * [[https://wiki.ubuntu.com/Releases|Documento sul wiki internazionale]]  * [[Installazione/SHA256Sum|Hash sha256]]
 * [[Installazione/SHA256Sum/Hash|Elenco delle hash sha256]]
Linea 46: Linea 154:
CategoryComunita CategoryInstallazioneSistema


Guida verificata con Ubuntu: 22.04 24.04 24.10

Problemi in questa pagina? Segnalali in questa discussione

Introduzione

Nelle pagine di download di Ubuntu, oltre alle immagini iso del sistema operativo, è regolarmente presente il file SHA256SUM con l'elenco delle impronte SHA256Sum di ciascun file iso.

In questa pagina viene mostrato l'utilizzo di uno script in grado di rilevare dalle pagine di download tutte le impronte SHA256Sum di Ubuntu e derivate a seconda del numero di versione (22.04, 24.04, ecc..).
Per ogni versione verrà creato un file con l'elenco delle hash per le iso di Ubuntu e derivate.

Script

Il seguente script richiede l'installazione del pacchetto aiohttp-wsgi-serve. In caso di problemi è possibile utilizzare uno script alternativo.

import aiohttp
import asyncio

from sys import argv
script, ubu_version = argv

ubuntu_flavours = ("kubuntu", "ubuntu-mate", "xubuntu", "lubuntu", "ubuntu-unity", "ubuntu-budgie", "ubuntustudio", "ubuntukylin", "ubuntucinnamon")


def create_versions_list():
    versions = []
    versions.append("UBUNTU")

    for version in ubuntu_flavours:
        versions.append(version.upper())

    versions.append("SERVER_POWERPC")
    return versions


def create_urls_collection():
    urls = []

    # Link hash Ubuntu
    link = f"https://releases.ubuntu.com/{ubu_version}/SHA256SUMS"
    urls.append(link)

    # Link hash derivate ufficiali di Ubuntu
    for flavour in ubuntu_flavours:
        link = f"https://cdimage.ubuntu.com/{flavour}/releases/{ubu_version}/release/SHA256SUMS"
        urls.append(link)

    # Link hash versioni server alternative, ecc..
    link = f"https://cdimage.ubuntu.com/releases/{ubu_version}/release/SHA256SUMS"
    urls.append(link)

    return urls


async def fetch_page(session, url):
    async with session.get(url) as response:
        if response.status == 200:
            return await response.text()
        else:
            return None


async def main():
    ubu_versions = create_versions_list()
    urls = create_urls_collection()
    async with aiohttp.ClientSession() as session:
        hash_pages = []

        for url in urls:
            hash_pages.append(fetch_page(session, url))

        htmls = await asyncio.gather(*hash_pages)

    for flavour_name, hash_text in zip(ubu_versions, htmls):
        if hash_text is None:
            print(f"{flavour_name}\nNon presente!\n")
        else:
            print(f"{flavour_name}\n{hash_text}")


asyncio.run(main())

Utilizzo

Aprire un editor di testo, incollare il testo dello script riportato nel paragrafo precedente e salvare il file nella propria Home con il nome script.py

Vengono elencati qui i comandi da terminale per ogni versione supportata. Ogni comando creerà nella propria Home un file con all'interno l'elenco delle impronte per una specifica versione di Ubuntu. Ad esempio il file hash_24-04.txt conterrà l'elenco delle hash SHA256Sum della versione 24.04.

  • 24.10: digitare il comando:

    python3 script.py 24.10 > hash_24-10.txt
  • 24.04: digitare il comando:

    python3 script.py 24.04 > hash_24-04.txt
  • 22.04: digitare il comando:

    python3 script.py 22.04 > hash_22-04.txt
  • 20.04: digitare il comando:

    python3 script.py 20.04 > hash_20-04.txt

Script alternativo

Lo script è meno veloce del precedente, potrebbe richiedere vari secondi per l'esecuzione, tuttavia non richiede pacchetti aggiuntivi in una installazione standard di Ubuntu.

import urllib.request
import requests

from sys import argv
script, ubu_version = argv

ubuntu_flavours = ("kubuntu", "ubuntu-mate", "xubuntu", "lubuntu", "ubuntu-unity", "ubuntu-budgie", "ubuntustudio", "ubuntukylin", "ubuntucinnamon")

def print_hash(web_page):
    request = requests.get(web_page)
    if request.status_code == 200:
        web = urllib.request.urlopen(web_page)
        text = web.read().decode('utf_8')
        print(text)
    else:
        print("Non presente!\n")

#STAMPA HASH UBUNTU PRESENTI IN https://releases.ubuntu.com/
print("UBUNTU")
link = f"https://releases.ubuntu.com/{ubu_version}/SHA256SUMS"
print_hash(link)

#STAMPA HASH VARIANTI *BUNTU PRESENTI IN http://cdimage.ubuntu.com/
for i in ubuntu_flavours:
    link = f"https://cdimage.ubuntu.com/{i}/releases/{ubu_version}/release/SHA256SUMS"
    print(i.upper())
    print_hash(link)

#STAMPA HASH VERSIONI SERVER PRESENTI IN https://cdimage.ubuntu.com/releases/
print("SERVER_POWERPC")
link = f"https://cdimage.ubuntu.com/releases/{ubu_version}/release/SHA256SUMS"
print_hash(link)

Ulteriori risorse


CategoryInstallazioneSistema