diff --git a/README.md b/README.md index 2896702..910f7f4 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,14 @@ Make sure windows is up-to-date by checking for updates in settings Check for updates from the Microsoft store +Windows 11 doesn't play nice if you don't want to use OneDrive... First command will help find some folders that need to be **FIXED** + +`Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\" + +Second is just an example of some one of them. + +`Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\" -Name "Personal" -Value "$HOME\Documents"` + ### Second ### ```ps1 diff --git a/TODO.md b/TODO.md index c88998e..58b6762 100644 --- a/TODO.md +++ b/TODO.md @@ -1,27 +1,16 @@ # TO-DO # -[] Install NFS Client features -[] Map my typical network driver? +[X] Install NFS Client features +[X] Map my typical network driver? [X] Create SSH KEY [X] Start SSH Agent [] Open notepad with instructions to where to put ssh key, possibly log as well? [] i.e. both servers, git.theflyingfool.com, linode, etc -[] .alias file created and filled with some things? - [] Syu - [] Touch - [] Other Linux type mappings? -[] https://cdn.files.community/files/download/Files.Stable.exe +[X] .alias file created and filled with some things? + [X] Syu + [X] Touch + [X] Other Linux type mappings? +[X] https://cdn.files.community/files/download/Files.Stable.exe ## NOTES ## - -I believe this is required for utilizing NFS features via powershell: - -PowerShell 7.4.2 - -Add-WindowsCapability -Online -Name Rsat.ServerManager.Tools~~~~0.0.1.0 - -PS C:\Users\nick> Dism /Online /Add-Capability /CapabilityName:Rsat.ServerManager.Tools~~~~0.0.1.0 - -Capability Identity : Rsat.ServerManager.Tools~~~~0.0.1.0 -State : Not Present \ No newline at end of file diff --git a/setup.ps1 b/setup.ps1 index c3b56de..6e322e4 100644 --- a/setup.ps1 +++ b/setup.ps1 @@ -27,7 +27,7 @@ $settingsJson = @{installBehavior = @{ } } $settingsJson | ConvertTo-Json | Out-File $settingsPath -Encoding utf8 - +Set-ExecutionPolicy bypass winget search test --accept-source-agreements function InstallTheApps() { @@ -98,11 +98,12 @@ do { Write-Host '5 - Remove Crap' Write-Host '6 - Create SSH Key' Write-Host '7 - Grab WinDot' + Write-Host '8 - Testing Features here' Write-Host '9 - Exit' Write-Host '' $answer = Read-Host 'Select number(s)' - $ok =$answer -in @(1..7; 9) + $ok =$answer -in @(1..8; 9) } until ($ok) if ($answer -eq 9) { break } @@ -117,14 +118,14 @@ do { @{name = '9wzdncrf0083'}, #Facebook messenger #@{name = 'ApacheFriends.Xampp.8.2'}, @{name = 'Bitwarden.Bitwarden'}, - @{name = 'Docker.DockerDesktop '}, + @{name = 'Docker.DockerDesktop'}, @{name = 'Git.Git'}, @{name = 'Google.Chrome'}, #@{name = 'Google.AndroidStudio'}. ## Not currently doing any android dev @{name = 'Google.GoogleDrive'}, @{name = 'GuinpinSoft.MakeMKV'}, @{name = 'Hugo.Hugo.Extended'}, - @{name = 'Malwarebytes.Malwarebytes '}, + @{name = 'Malwarebytes.Malwarebytes'}, @{name = 'Microsoft.MouseWithoutBorders'}, @{name = 'Microsoft.Office'}, @{name = 'Microsoft.PowerShell'}, @@ -147,15 +148,10 @@ do { @{name = 'Vivaldi.Vivaldi'} ) - InstallTheApps $Apps - # Update-Profile # With moving profile and alias to git this is no longer the way - - # In theory this will grab my dot files and start using them + Invoke-WebRequest https://cdn.files.community/files/download/Files.Stable.exe -OutFile $HOME/Downloads/Files.Stable.exe + & "$HOME\Downloads\Files.Stable.exe" - - - } "2" { $apps = @( # Game Launchers @@ -173,13 +169,14 @@ do { $apps = @( ## DESKTOP @{name = 'SteelSeries.SteelSeriesEngine' }, @{name = 'Corsair.iCUE.5' }, - @{name = 'Asus.ArmouryCrate '}, - @{name = 'Nvidia.GeForceExperience '}, - @{name = 'Samsung.SamsungMagician'} + @{name = 'Asus.ArmouryCrate'}, + @{name = 'Nvidia.GeForceExperience '} + #@{name = 'Samsung.SamsungMagician'}# As of 6.13.2024 was a super old version ) InstallTheApps $Apps } - "4" { $apps = @( ## LAPTOP + "4" { + $apps = @( ## LAPTOP @{name = 'Intel.IntelDriverAndSupportAssistant' }, @{name = '9WZDNCRFJ4MV'; source = 'msstore' }, # Lenovo Vantage from MS Store @{name = 'j5create.Driver-JUA365' } ## Not sure if this is correct yet! @@ -200,16 +197,32 @@ do { } '6'{ Write-Host "Make sure SSH Client is installed" - Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0 - Write-Host "Create SSH Key" - ssh-keygen -t ed25519 - Write-Host "Start SSH Agent" - Get-Service ssh-agent | Set-Service -StartupType Automatic - Start-Service ssh-agent - ssh-add $env:USERPROFILE\.ssh\id_ed25519 + Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0 + Write-Host "Create SSH Key" + ssh-keygen -t ed25519 + Write-Host "Start SSH Agent" + Get-Service ssh-agent | Set-Service -StartupType Automatic + Start-Service ssh-agent + ssh-add $env:USERPROFILE\.ssh\id_ed25519 } '7'{ Get-Windot + } + '8'{ + Add-WindowsCapability -Online -Name "ServicesForNFS-ClientOnly" + Add-WindowsCapability -Online -Name "ClientForNFS-Infrastructure" + Add-WindowsCapability -Online -Name "NFS-Client" + Add-WindowsCapability -Online -Name "RSAT-NFS-Admin" + Add-WindowsCapability -Online -Name "Rsat.ServerManager.Tools~~~~0.0.1.0" + + New-PSDrive -Name "X" -PSProvider "FileSystem" -Root "\\192.168.1.185\mnt\Local_4X\media" + New-PSDrive -Name "Y" -PSProvider "FileSystem" -Root "\\192.168.1.185\mnt\Movies\Movies" + New-PSDrive -Name "Z" -PSProvider "FileSystem" -Root "\\192.168.1.185\mnt\HBA\Media" + New-PSDrive -Name "Q" -PSProvider "FileSystem" -Root "\\192.168.1.185\mnt\Local_4X\qBit_DL" + New-PSDrive -Name "B" -PSProvider "FileSystem" -Root "\\192.168.1.185\mnt\Local_4X\VW_BUP" + + + } } } until ( $answer -eq '9' )