* Set-Execution policy so profile works

* Added New Options in menu
* Fixed 4 items that didn't install due to typos
* Found a dirty method to install best explorer alternative I've found
* Minor prettification
* Install NFS Tools and Mount my shares
This commit is contained in:
TheFlyingFool 2024-06-13 23:02:56 -05:00
parent 0af5e2f681
commit aad6373538
3 changed files with 50 additions and 40 deletions

View File

@ -23,6 +23,14 @@ Make sure windows is up-to-date by checking for updates in settings
Check for updates from the Microsoft store 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 ### ### Second ###
```ps1 ```ps1

25
TODO.md
View File

@ -1,27 +1,16 @@
# TO-DO # # TO-DO #
[] Install NFS Client features [X] Install NFS Client features
[] Map my typical network driver? [X] Map my typical network driver?
[X] Create SSH KEY [X] Create SSH KEY
[X] Start SSH Agent [X] Start SSH Agent
[] Open notepad with instructions to where to put ssh key, possibly log as well? [] Open notepad with instructions to where to put ssh key, possibly log as well?
[] i.e. both servers, git.theflyingfool.com, linode, etc [] i.e. both servers, git.theflyingfool.com, linode, etc
[] .alias file created and filled with some things? [X] .alias file created and filled with some things?
[] Syu [X] Syu
[] Touch [X] Touch
[] Other Linux type mappings? [X] Other Linux type mappings?
[] https://cdn.files.community/files/download/Files.Stable.exe [X] https://cdn.files.community/files/download/Files.Stable.exe
## NOTES ## ## 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

View File

@ -27,7 +27,7 @@ $settingsJson = @{installBehavior = @{
} }
} }
$settingsJson | ConvertTo-Json | Out-File $settingsPath -Encoding utf8 $settingsJson | ConvertTo-Json | Out-File $settingsPath -Encoding utf8
Set-ExecutionPolicy bypass
winget search test --accept-source-agreements winget search test --accept-source-agreements
function InstallTheApps() { function InstallTheApps() {
@ -98,11 +98,12 @@ do {
Write-Host '5 - Remove Crap' Write-Host '5 - Remove Crap'
Write-Host '6 - Create SSH Key' Write-Host '6 - Create SSH Key'
Write-Host '7 - Grab WinDot' Write-Host '7 - Grab WinDot'
Write-Host '8 - Testing Features here'
Write-Host '9 - Exit' Write-Host '9 - Exit'
Write-Host '' Write-Host ''
$answer = Read-Host 'Select number(s)' $answer = Read-Host 'Select number(s)'
$ok =$answer -in @(1..7; 9) $ok =$answer -in @(1..8; 9)
} until ($ok) } until ($ok)
if ($answer -eq 9) { break } if ($answer -eq 9) { break }
@ -117,14 +118,14 @@ do {
@{name = '9wzdncrf0083'}, #Facebook messenger @{name = '9wzdncrf0083'}, #Facebook messenger
#@{name = 'ApacheFriends.Xampp.8.2'}, #@{name = 'ApacheFriends.Xampp.8.2'},
@{name = 'Bitwarden.Bitwarden'}, @{name = 'Bitwarden.Bitwarden'},
@{name = 'Docker.DockerDesktop '}, @{name = 'Docker.DockerDesktop'},
@{name = 'Git.Git'}, @{name = 'Git.Git'},
@{name = 'Google.Chrome'}, @{name = 'Google.Chrome'},
#@{name = 'Google.AndroidStudio'}. ## Not currently doing any android dev #@{name = 'Google.AndroidStudio'}. ## Not currently doing any android dev
@{name = 'Google.GoogleDrive'}, @{name = 'Google.GoogleDrive'},
@{name = 'GuinpinSoft.MakeMKV'}, @{name = 'GuinpinSoft.MakeMKV'},
@{name = 'Hugo.Hugo.Extended'}, @{name = 'Hugo.Hugo.Extended'},
@{name = 'Malwarebytes.Malwarebytes '}, @{name = 'Malwarebytes.Malwarebytes'},
@{name = 'Microsoft.MouseWithoutBorders'}, @{name = 'Microsoft.MouseWithoutBorders'},
@{name = 'Microsoft.Office'}, @{name = 'Microsoft.Office'},
@{name = 'Microsoft.PowerShell'}, @{name = 'Microsoft.PowerShell'},
@ -147,14 +148,9 @@ do {
@{name = 'Vivaldi.Vivaldi'} @{name = 'Vivaldi.Vivaldi'}
) )
InstallTheApps $Apps InstallTheApps $Apps
# Update-Profile # With moving profile and alias to git this is no longer the way Invoke-WebRequest https://cdn.files.community/files/download/Files.Stable.exe -OutFile $HOME/Downloads/Files.Stable.exe
& "$HOME\Downloads\Files.Stable.exe"
# In theory this will grab my dot files and start using them
} }
"2" { "2" {
@ -173,13 +169,14 @@ do {
$apps = @( ## DESKTOP $apps = @( ## DESKTOP
@{name = 'SteelSeries.SteelSeriesEngine' }, @{name = 'SteelSeries.SteelSeriesEngine' },
@{name = 'Corsair.iCUE.5' }, @{name = 'Corsair.iCUE.5' },
@{name = 'Asus.ArmouryCrate '}, @{name = 'Asus.ArmouryCrate'},
@{name = 'Nvidia.GeForceExperience '}, @{name = 'Nvidia.GeForceExperience '}
@{name = 'Samsung.SamsungMagician'} #@{name = 'Samsung.SamsungMagician'}# As of 6.13.2024 was a super old version
) )
InstallTheApps $Apps InstallTheApps $Apps
} }
"4" { $apps = @( ## LAPTOP "4" {
$apps = @( ## LAPTOP
@{name = 'Intel.IntelDriverAndSupportAssistant' }, @{name = 'Intel.IntelDriverAndSupportAssistant' },
@{name = '9WZDNCRFJ4MV'; source = 'msstore' }, # Lenovo Vantage from MS Store @{name = '9WZDNCRFJ4MV'; source = 'msstore' }, # Lenovo Vantage from MS Store
@{name = 'j5create.Driver-JUA365' } ## Not sure if this is correct yet! @{name = 'j5create.Driver-JUA365' } ## Not sure if this is correct yet!
@ -200,16 +197,32 @@ do {
} }
'6'{ '6'{
Write-Host "Make sure SSH Client is installed" Write-Host "Make sure SSH Client is installed"
Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0 Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0
Write-Host "Create SSH Key" Write-Host "Create SSH Key"
ssh-keygen -t ed25519 ssh-keygen -t ed25519
Write-Host "Start SSH Agent" Write-Host "Start SSH Agent"
Get-Service ssh-agent | Set-Service -StartupType Automatic Get-Service ssh-agent | Set-Service -StartupType Automatic
Start-Service ssh-agent Start-Service ssh-agent
ssh-add $env:USERPROFILE\.ssh\id_ed25519 ssh-add $env:USERPROFILE\.ssh\id_ed25519
} }
'7'{ '7'{
Get-Windot 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' ) } until ( $answer -eq '9' )