2023-10-31 11:25:11 +01:00
|
|
|
<#
|
2023-04-01 19:38:27 +02:00
|
|
|
.SYNOPSIS
|
2023-04-07 11:45:34 +02:00
|
|
|
Installs basic Linux snaps
|
2023-04-01 19:38:27 +02:00
|
|
|
.DESCRIPTION
|
2023-04-09 11:27:43 +02:00
|
|
|
This PowerShell script installs 18 basic Linux snaps.
|
2023-04-01 19:38:27 +02:00
|
|
|
.EXAMPLE
|
2023-08-06 21:35:36 +02:00
|
|
|
PS> ./install-basic-snaps.ps1
|
2023-04-01 19:38:27 +02:00
|
|
|
.LINK
|
|
|
|
https://github.com/fleschutz/PowerShell
|
|
|
|
.NOTES
|
|
|
|
Author: Markus Fleschutz | License: CC0
|
|
|
|
#>
|
|
|
|
|
|
|
|
try {
|
|
|
|
$StopWatch = [system.diagnostics.stopwatch]::startNew()
|
2023-04-07 11:45:34 +02:00
|
|
|
if (!$IsLinux) { throw "Only Linux currently support snaps" }
|
2023-04-01 19:38:27 +02:00
|
|
|
|
2023-06-15 10:15:08 +02:00
|
|
|
"⏳ Installing 19 Snaps (sorted alphabetically)..."
|
2023-04-01 19:45:37 +02:00
|
|
|
sudo snap install ant
|
2023-04-01 21:39:02 +02:00
|
|
|
sudo snap install audacity
|
2023-04-01 19:52:59 +02:00
|
|
|
sudo snap install bashtop
|
2023-04-01 21:39:02 +02:00
|
|
|
sudo snap install chromium
|
2023-04-01 19:52:59 +02:00
|
|
|
sudo snap install cmake
|
2023-04-01 21:39:02 +02:00
|
|
|
sudo snap install cups
|
|
|
|
sudo snap install emacs --classic
|
2023-04-07 16:50:27 +02:00
|
|
|
sudo snap install ffmpeg --edge
|
2023-04-01 19:52:59 +02:00
|
|
|
sudo snap install firefox
|
2023-04-01 21:39:02 +02:00
|
|
|
sudo snap install gimp
|
2023-04-01 19:52:59 +02:00
|
|
|
sudo snap install go
|
2023-06-15 10:15:08 +02:00
|
|
|
sudo snap install gradle --classic
|
2023-04-07 12:08:26 +02:00
|
|
|
sudo snap install groovy --classic
|
2023-04-01 19:52:59 +02:00
|
|
|
sudo snap install hugo
|
2023-04-07 16:50:27 +02:00
|
|
|
sudo snap install jenkins --edge --classic
|
2023-04-01 20:00:54 +02:00
|
|
|
sudo snap install nano --classic
|
2023-04-07 11:45:34 +02:00
|
|
|
sudo snap install nextcloud
|
2023-04-09 11:27:43 +02:00
|
|
|
sudo snap install node --classic
|
2023-04-07 12:05:19 +02:00
|
|
|
sudo snap install plexmediaserver
|
2023-04-01 19:38:27 +02:00
|
|
|
|
|
|
|
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
2023-06-15 10:15:08 +02:00
|
|
|
"✔️ installed 19 Snaps in $Elapsed sec"
|
2023-04-01 19:38:27 +02:00
|
|
|
exit 0 # success
|
|
|
|
} catch {
|
|
|
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
|
|
|
exit 1
|
|
|
|
}
|