[ubuntu-studio-users] Testers wanted

Ralf Mardorf ralf.mardorf at alice-dsl.net
Wed Oct 26 17:41:33 UTC 2016


Hi,

I wrote a script that hopefully downloads desktop ISOs of all Ubuntu
flavours and does the checksum validation. I had no time to test it.
Since Ubuntu Studio is the only flavor with a different iso name schema,
perhaps somebody is willing to help testing the script :D.

This mail has got no line breaks for the script, so a copy and paste
should work.

Running

  chmod a+x luamd64_1610.sh

is required to make it executable.

Then run it...

[weremouse at moonstudio rocketmouse]$ ./luamd64_1610.sh ubuntustudio 

Usage: ./luamd64_1610.sh [FLAVOUR [RELEASE]]
'luamd64' gets the 'l'atest 'u'buntu desktop flavour 'amd64' iso for you.

  The default flavour is ubuntu-mate.
  The default release is 16.10.

Other desktop flavours available for at least 16.10

  ubuntu
  kubuntu
  lubuntu
  ubuntu-gnome
  ubuntukylin
  ubuntustudio
  xubuntu

Root can't run this script.

cd /tmp

press a key to continue 

wget http://cdimage.ubuntu.com/ubuntustudio/releases/16.10/release/ubuntustudio-16.10-dvd-amd64.iso http://cdimage.ubuntu.com/ubuntustudio/releases/16.10/release/SHA256SUMS http://cdimage.ubuntu.com/ubuntustudio/releases/16.10/release/SHA256SUMS.gpg

press a key to continue 

--2016-10-26 19:35:42--  http://cdimage.ubuntu.com/ubuntustudio/releases/16.10/release/ubuntustudio-16.10-dvd-amd64.iso
Resolving cdimage.ubuntu.com (cdimage.ubuntu.com)... 91.189.92.174, 2001:67c:1360:8001::1d
Connecting to cdimage.ubuntu.com (cdimage.ubuntu.com)|91.189.92.174|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2852126720 (2.7G) [application/x-iso9660-image]
Saving to: ‘ubuntustudio-16.10-dvd-amd64.iso’


Until now it works ;).

Regards,
Ralf

[weremouse at moonstudio rocketmouse]$ ls -hAl luamd64_1610.sh 
-rwxr-xr-x 1 weremouse weremouse 1.3K Oct 26 19:19 luamd64_1610.sh
[weremouse at moonstudio rocketmouse]$ cat luamd64_1610.sh 
#!/bin/bash

#luamd64_1610.sh 2016-10-26 rocketmouse

flavour=ubuntu-mate
release=16.10
iso=$release-desktop

use()
{
cat<<EOF

Usage: ./$(basename "$0") [FLAVOUR [RELEASE]]
'luamd64' gets the 'l'atest 'u'buntu desktop flavour 'amd64' iso for you.

  The default flavour is ubuntu-mate.
  The default release is 16.10.

Other desktop flavours available for at least 16.10

  ubuntu
  kubuntu
  lubuntu
  ubuntu-gnome
  ubuntukylin
  ubuntustudio
  xubuntu

Root can't run this script.

EOF
}

key ()
{
  echo $@
  echo
  read -n1 -p"press a key to continue "
  echo
  $@
}

use

[ $(id -u) -ne 0 ] || exit

case $1 in "");;
  *) flavour=$1
     case $2 in "");;
       *) release=$2;;
     esac;;
esac

key cd /tmp
case $flavour in
  ubuntu)
    key wget http://releases.ubuntu.com/$release/{$flavour-$iso-amd64.iso,SHA256SUMS{,.gpg}}
    ;;
  *)
    case $flavour in
      ubuntustudio)
        iso=$release-dvd
        ;;
    esac
    key wget http://cdimage.ubuntu.com/$flavour/releases/$release/release/{$flavour-$iso-amd64.iso,SHA256SUMS{,.gpg}}
    ;;
esac
key gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys
key gpg --list-keys --with-fingerprint 0xFBB75451 0xEFE21092
key gpg --verify SHA256SUMS.gpg SHA256SUMS
key sha256sum -c SHA256SUMS 2>&1 | grep OK

exit
[weremouse at moonstudio rocketmouse]$



More information about the ubuntu-studio-users mailing list