From 03b24b7f665e3e55a2c2ef95b148942cd0fe407a Mon Sep 17 00:00:00 2001 From: Tim Date: Thu, 29 Dec 2022 16:26:25 +0100 Subject: [PATCH] =?UTF-8?q?Aufger=C3=A4umt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- configs/ooshutup10/ooshutup10.cfg | 220 +++++++++++++++++++ {terminal => configs/terminal}/settings.json | 0 {winfetch => configs/winfetch}/config.ps1 | 0 {winfetch => configs/winfetch}/image.jpg | Bin {winget => configs/winget}/settings.json | 0 install.ps1 | 104 +++++---- 6 files changed, 279 insertions(+), 45 deletions(-) create mode 100644 configs/ooshutup10/ooshutup10.cfg rename {terminal => configs/terminal}/settings.json (100%) rename {winfetch => configs/winfetch}/config.ps1 (100%) rename {winfetch => configs/winfetch}/image.jpg (100%) rename {winget => configs/winget}/settings.json (100%) diff --git a/configs/ooshutup10/ooshutup10.cfg b/configs/ooshutup10/ooshutup10.cfg new file mode 100644 index 0000000..dec460b --- /dev/null +++ b/configs/ooshutup10/ooshutup10.cfg @@ -0,0 +1,220 @@ +############################################################################ +# Diese Datei wurde mit O&O ShutUp10++ V1.9.1434 erstellt +# und kann mit der Anwendung auf einem anderen Rechner importiert werden. +# +# Laden Sie dazu die Anwendung unter https://www.oo-software.com/shutup10 +# herunter. Im Programm können Sie die Datei dann importieren. +# +# Alternativ können Sie die Datei auch über die Kommandozeile automatisch +# importieren lassen. Nutzen Sie dazu folgende Parameter +# OOSU10.exe +# +# Mit der Option /quiet wird die Anwendung nach dem Import sofort beendet +# und der Nutzer erhält auch kein Feedback über den Import. +# +# Für Fragen stehen wir Ihnen gerne jederzeit zur Verfügung! +# © 2015-2022 O&O Software GmbH, Berlin. Alle Rechte vorbehalten. +# https://www.oo-software.com/ +############################################################################ + +P001 + +P002 + +P003 + +P004 + +P005 + +P006 + +P008 + +P026 + +P027 + +P028 + +P064 + +P065 + +P066 + +P067 + +P070 + +P069 + +P009 - +P010 - +P015 - +P068 - +P016 - +A001 + +A002 + +A003 + +A004 + +A006 + +A005 + +P007 + +P036 + +P025 + +P033 + +P023 + +P056 + +P057 + +P012 - +P034 - +P013 - +P035 - +P062 - +P063 - +P081 - +P047 - +P019 - +P048 - +P049 - +P020 - +P037 - +P011 - +P038 - +P050 - +P051 - +P018 - +P039 - +P021 - +P040 - +P022 - +P041 - +P014 - +P042 - +P052 - +P053 - +P054 - +P055 - +P029 - +P043 - +P030 - +P044 - +P031 - +P045 - +P032 - +P046 - +P058 - +P059 - +P060 - +P061 - +P071 - +P072 - +P073 - +P074 - +P075 - +P076 - +P077 - +P078 - +P079 - +P080 - +P024 - +S001 + +S002 + +S003 + +S008 - +E101 + +E201 + +E115 + +E215 + +E118 + +E218 + +E107 + +E207 + +E111 + +E211 + +E112 + +E212 + +E109 + +E209 + +E121 + +E221 + +E103 + +E203 + +E123 + +E223 + +E124 + +E224 + +E119 - +E219 - +E120 - +E220 - +E122 - +E222 - +E125 - +E225 - +E126 - +E226 - +E106 - +E206 - +E127 - +E227 - +E001 + +E002 + +E003 + +E008 + +E007 + +E010 + +E011 + +E012 + +E009 - +E004 - +E005 - +E013 - +E014 - +E006 - +Y001 + +Y002 + +Y003 + +Y004 + +Y005 + +Y006 + +Y007 + +C012 + +C002 + +C013 + +C007 + +C008 + +C009 + +C010 + +C011 + +C014 + +L001 + +L003 + +L004 - +L005 + +U001 + +U004 + +U005 + +U006 + +U007 + +W001 + +W011 + +W004 - +W005 - +W010 - +W009 - +P017 - +W006 - +W008 + +M006 + +M011 + +M010 - +O003 - +O001 - +S012 - +S013 - +S014 - +K001 + +K002 + +K005 + +M022 + +M001 + +M004 + +M005 + +M003 - +M012 - +M013 - +M014 - +M015 - +M016 + +M017 - +M018 - +M019 - +M020 - +M021 + +N001 - diff --git a/terminal/settings.json b/configs/terminal/settings.json similarity index 100% rename from terminal/settings.json rename to configs/terminal/settings.json diff --git a/winfetch/config.ps1 b/configs/winfetch/config.ps1 similarity index 100% rename from winfetch/config.ps1 rename to configs/winfetch/config.ps1 diff --git a/winfetch/image.jpg b/configs/winfetch/image.jpg similarity index 100% rename from winfetch/image.jpg rename to configs/winfetch/image.jpg diff --git a/winget/settings.json b/configs/winget/settings.json similarity index 100% rename from winget/settings.json rename to configs/winget/settings.json diff --git a/install.ps1 b/install.ps1 index c095787..2ddcce7 100644 --- a/install.ps1 +++ b/install.ps1 @@ -27,13 +27,14 @@ $choices.Add((New-Object Management.Automation.Host.ChoiceDescription -ArgumentL ## Konfig für die Software $toRemove = @('Clipchamp.Clipchamp_yxz26nhyzhsrt', 'Microsoft.549981C3F5F10_8wekyb3d8bbwe', 'Microsoft.BingNews_8wekyb3d8bbwe', 'Microsoft.BingWeather_8wekyb3d8bbwe', 'Microsoft.GetHelp_8wekyb3d8bbwe', - 'Microsoft.MicrosoftOfficeHub_8wekyb3d8bbwe', 'Microsoft.MicrosoftSolitaireCollection_8wekyb3d8bbwe', 'Micorosoft.MicrosoftStickyNotes_8wekyb3d8bbwe', 'Microsoft.People_8wekyb3d8bbwe', - 'Microsoft.PowerAutomateDesktop_8wekyb3d8bbwe', 'Microsoft.Todos_8wekyb3d8bbwe', 'Microsoft.Windows.Photos_8wekyb3d8bbwe', 'Microsoft.WindowsMaps_8wekyb3d8bbwe', - 'Microsoft.WindowsSoundRecorder_8wekyb3d8bbwe', 'Microsoft.WindowsAlarms_8wekyb3d8bbwe', 'Microsoft.YourPhone_8wekyb3d8bbwe', 'Microsoft.ZuneMusic_8wekyb3d8bbwe', 'Microsoft.ZuneVideo_8wekyb3d8bbwe', - 'MicrosoftCorporationII.QuickAssist_8wekyb3d8bbwe', 'MicrosoftTeams_8wekyb3d8bbwe', 'MicrosoftTeams_8wekyb3d8bbwe', 'Microsoft.OneDrive', 'microsoft.windowscommunicationsapps_8wekyb3d8bbwe','CanonicalGroupLimited.Ubuntu_79rhkp1fndgsc') -$toInstall = @('mcmilk.7zip-zstd', 'VideoLAN.VLC','SumatraPDF.SumatraPDF','Microsoft.VisualStudioCode','Bitwarden.Bitwarden','Mozilla.Firefox','IrfanSkiljan.IrfanView','Microsoft.PowerToys','OO-Software.ShutUp10' - ,'Joplin.Joplin','WireGuard.WireGuard','Devolutions.RemoteDesktopManager','TeamViewer.TeamViewer','NickeManarin.ScreenToGif','JanDeDobbeleer.OhMyPosh') -$toInstallOpt = @('Element.Element','CPUID.CPU-Z','Discord.Discord','Corsair.iCUE.4','Valve.Steam','GOG.Galaxy','TeXstudio.TeXstudio','MiKTeX.MiKTeX','Citrix.Workspace','Nvidia.GeForceExperience','Mojang.MinecraftLauncher') + 'Microsoft.MicrosoftOfficeHub_8wekyb3d8bbwe', 'Microsoft.MicrosoftSolitaireCollection_8wekyb3d8bbwe', 'Micorosoft.MicrosoftStickyNotes_8wekyb3d8bbwe', 'Microsoft.People_8wekyb3d8bbwe', + 'Microsoft.PowerAutomateDesktop_8wekyb3d8bbwe', 'Microsoft.Todos_8wekyb3d8bbwe', 'Microsoft.Windows.Photos_8wekyb3d8bbwe', 'Microsoft.WindowsMaps_8wekyb3d8bbwe', + 'Microsoft.WindowsSoundRecorder_8wekyb3d8bbwe', 'Microsoft.WindowsAlarms_8wekyb3d8bbwe', 'Microsoft.YourPhone_8wekyb3d8bbwe', 'Microsoft.ZuneMusic_8wekyb3d8bbwe', 'Microsoft.ZuneVideo_8wekyb3d8bbwe', + 'MicrosoftCorporationII.QuickAssist_8wekyb3d8bbwe', 'MicrosoftTeams_8wekyb3d8bbwe', 'MicrosoftTeams_8wekyb3d8bbwe', 'Microsoft.OneDrive', 'microsoft.windowscommunicationsapps_8wekyb3d8bbwe', 'CanonicalGroupLimited.Ubuntu_79rhkp1fndgsc') +$toInstall = @('mcmilk.7zip-zstd', 'VideoLAN.VLC', 'SumatraPDF.SumatraPDF', 'Microsoft.VisualStudioCode', 'Bitwarden.Bitwarden', 'Mozilla.Firefox', 'IrfanSkiljan.IrfanView', 'Microsoft.PowerToys', 'OO-Software.ShutUp10' + , 'Joplin.Joplin', 'WireGuard.WireGuard', 'Devolutions.RemoteDesktopManager', 'TeamViewer.TeamViewer', 'NickeManarin.ScreenToGif', 'JanDeDobbeleer.OhMyPosh', 'WiresharkFoundation.Wireshark', 'Famatech.AdvancedIPScanner') +$toInstallOpt = @('Element.Element', 'Discord.Discord', 'Corsair.iCUE.4', 'Valve.Steam', 'GOG.Galaxy', 'TeXstudio.TeXstudio', 'MiKTeX.MiKTeX', 'Citrix.Workspace', 'Nvidia.GeForceExperience', 'Mojang.MinecraftLauncher', + 'Elgato.StreamDeck', 'REALiX.HWiNFO', '9P4CLT2RJ1RS', 'Oracle.VirtualBox') @@ -62,9 +63,8 @@ do { remove-item ~\Desktop* -include *.lnk } '2' { # Winget config reinrödeln - Remove-Item "%LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json" - New-Item -Path "~\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json" -ItemType SymbolicLink -Value "~/.winconfig/winget/settings.json" - + Remove-Item "~\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json" + New-Item -Path "~\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json" -ItemType SymbolicLink -Value "~/.winconfig/configs/winget/settings.json" # Krempeln deinstallieren foreach ($utility in $toInstall) { $ergebnis = winget list --id $utility @@ -75,8 +75,6 @@ do { Write-Host "Programm $utility bereits installiert" } } - remove-item ~\Desktop* -include *.lnk - Start-Process OOSU10 -NoNewWindow -Wait } '3' { foreach ($utility in $toInstallOpt) { $ergebnis = winget list --id $utility @@ -87,42 +85,58 @@ do { winget install -e --id $utility --silent } } - } - $decision = $Host.UI.PromptForChoice('WSL', 'Soll WSL mit Debian 11 installiert werden?' , $choices, 1) - if ($decision -eq 0) { - Write-Host "Installiere WSL" - wsl --install - Write-Host "Installiere Debian" - wsl --install -d Debian - Read-Host "Computer muss neugestartet werden!" - } + } + # OOShutup10 herunterladen und config reinrendenr. + curl.exe -s "https://dl5.oo-software.com/files/ooshutup10/OOSU10.exe" -o OOSU10.exe + ./OOSU10.exe ooshutup10.cfg /quiet + + Write-Host "Richte Powershell und Terminal ein..." + # Fonts installieren. + $LocalPath = "~/.winconfig/Fonts/" + $FONTS = 0x14 + $objShell = New-Object -ComObject Shell.Application + $objFolder = $objShell.Namespace($FONTS) + New-Item $LocalPath -type directory -Force + $Fontdir = Get-ChildItem $LocalPath + foreach ($File in $Fontdir) { + if ((Test-Path "C:\Windows\Fonts\$File") -eq $False) { + $objFolder.CopyHere($File.fullname, 0x10) + } + } + # Windows Terminal Settings + Remove-Item "~\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json" ; New-Item -Path "~\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json" -ItemType SymbolicLink -Value "~/.winconfig/configs/terminal/settings.json" + # Winfetch installieren & konfigurieren + Install-Script winfetch + Remove-Item -Recurse -Force ~/.config/winfetch + mkdir ~/.config/winfetch + New-Item -Path "~/.config/winfetch/config.ps1" -ItemType SymbolicLink -Value "~/.winconfig/configs/winfetch/config.ps1" + # Powershell Profile Datei erzeugen + Remove-Item -Force "~/Documents/WindowsPowerShell/profile.ps1" + New-Item -Path "~/Documents/WindowsPowerShell/profile.ps1" -ItemType SymbolicLink -Value "~/.winconfig/profile.ps1" + Read-Host "Bitte das Terminal / Powershell neu starten damit die Aenderungen uebernommen werden." + + $decision = $Host.UI.PromptForChoice('WSL', 'Soll WSL mit Debian 11 installiert werden?' , $choices, 1) + if ($decision -eq 0) { + Write-Host "Installiere WSL" + wsl --install + Write-Host "Installiere Debian" + wsl --install -d Debian + Read-Host "Computer muss neugestartet werden!" + } } '4' { - # Windows Explorer Einrichten - New-Item -Path "HKCU:\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" -Value "" -Force - Set-Itemproperty -path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'Hidden' -value '00000001' - Set-Itemproperty -path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'HideFileExt' -value '00000000' - Set-Itemproperty -path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CabinetState' -Name 'FullPath' -value '00000001' - Remove-ItemProperty -path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'TaskbarSi' - New-ItemProperty -path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'TaskbarSi' -value '0000001' -PropertyType DWORD - Write-Host "Starte Explorer neu um änderungen zu übernehmen" - Get-Process explorer | Stop-Process + # Windows Explorer Einrichten + New-Item -Path "HKCU:\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" -Value "" -Force + Set-Itemproperty -path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'Hidden' -value '00000001' + Set-Itemproperty -path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'HideFileExt' -value '00000000' + Set-Itemproperty -path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CabinetState' -Name 'FullPath' -value '00000001' + Remove-ItemProperty -path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'TaskbarSi' + New-ItemProperty -path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'TaskbarSi' -value '0000001' -PropertyType DWORD + Write-Host "Starte Explorer neu um änderungen zu übernehmen" + Get-Process explorer | Stop-Process - # Powershell Modul für Updates - Install-Module -Name PSWindowsUpdate -Force - - # Windows Terminal Settings - Remove-Item "~\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json" ; New-Item -Path "~\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json" -ItemType SymbolicLink -Value "~/.winconfig/terminal/settings.json" - - # Winfetch installieren & konfigurieren - Install-Script winfetch - Remove-Item -Recurse -Force ~/.config/winfetch - mkdir ~/.config/winfetch - New-Item -Path "~/.config/winfetch/config.ps1" -ItemType SymbolicLink -Value "~/.winconfig/winfetch/config.ps1" + # Powershell Modul für Updates + Install-Module -Name PSWindowsUpdate -Force - # Powershell Profile Datei erzeugen - Remove-Item -Force "~/Documents/WindowsPowerShell/profile.ps1" - New-Item -Path "~/Documents/WindowsPowerShell/profile.ps1" -ItemType SymbolicLink -Value "~/.winconfig/profile.ps1" - Read-Host "Bitte das Terminal / Powershell neu starten damit die Aenderungen uebernommen werden." }