PowerShell/Scripts/install-basic-snaps.ps1

44 lines
1.1 KiB
PowerShell
Raw Normal View History

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-07 16:50:27 +02:00
This PowerShell script installs 17 basic Linux snaps.
2023-04-01 19:38:27 +02:00
.EXAMPLE
PS> ./install-basic-snaps
.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-04-07 16:50:27 +02:00
"⏳ Installing 17 basic 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-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-07 12:05:19 +02:00
sudo snap install plexmediaserver
2023-04-01 19:38:27 +02:00
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
2023-04-07 16:50:27 +02:00
"✔️ Basic Linux snaps installed in $Elapsed sec"
2023-04-01 19:38:27 +02:00
exit 0 # success
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}