PowerShell/docs/install-basic-snaps.md

82 lines
1.9 KiB
Markdown
Raw Normal View History

2024-01-25 13:37:12 +01:00
Script: *install-basic-snaps.ps1*
========================
2023-05-26 12:20:18 +02:00
This PowerShell script installs 18 basic Linux snaps.
2023-07-29 10:04:38 +02:00
Parameters
----------
2023-05-26 12:20:18 +02:00
```powershell
2023-07-29 10:15:44 +02:00
PS> ./install-basic-snaps.ps1 [<CommonParameters>]
2023-05-26 12:20:18 +02:00
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
```
2023-07-29 10:04:38 +02:00
Example
-------
2023-05-26 12:20:18 +02:00
```powershell
2023-08-06 21:36:33 +02:00
PS> ./install-basic-snaps.ps1
2023-05-26 12:20:18 +02:00
```
2023-07-29 10:04:38 +02:00
Notes
-----
2023-05-26 12:20:18 +02:00
Author: Markus Fleschutz | License: CC0
2023-07-29 10:04:38 +02:00
Related Links
-------------
2023-05-26 12:20:18 +02:00
https://github.com/fleschutz/PowerShell
2023-07-29 10:04:38 +02:00
Script Content
--------------
2023-05-26 12:20:18 +02:00
```powershell
<#
.SYNOPSIS
Installs basic Linux snaps
.DESCRIPTION
This PowerShell script installs 18 basic Linux snaps.
.EXAMPLE
2023-08-06 21:36:33 +02:00
PS> ./install-basic-snaps.ps1
2023-05-26 12:20:18 +02:00
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
try {
$StopWatch = [system.diagnostics.stopwatch]::startNew()
if (!$IsLinux) { throw "Only Linux currently support snaps" }
2023-07-29 09:45:37 +02:00
"⏳ Installing 19 Snaps (sorted alphabetically)..."
2023-05-26 12:20:18 +02:00
sudo snap install ant
sudo snap install audacity
sudo snap install bashtop
sudo snap install chromium
sudo snap install cmake
sudo snap install cups
sudo snap install emacs --classic
sudo snap install ffmpeg --edge
sudo snap install firefox
sudo snap install gimp
sudo snap install go
2023-07-29 09:45:37 +02:00
sudo snap install gradle --classic
2023-05-26 12:20:18 +02:00
sudo snap install groovy --classic
sudo snap install hugo
sudo snap install jenkins --edge --classic
sudo snap install nano --classic
sudo snap install nextcloud
sudo snap install node --classic
sudo snap install plexmediaserver
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
2023-07-29 09:45:37 +02:00
"✔️ installed 19 Snaps in $Elapsed sec"
2023-05-26 12:20:18 +02:00
exit 0 # success
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}
```
2024-03-27 17:36:59 +01:00
*(generated by convert-ps2md.ps1 using the comment-based help of install-basic-snaps.ps1 as of 03/27/2024 17:36:26)*