3.0 KiB
Windows Config and Install
- Create a bootable USB Key
- Install Windows10 PRO
- Install Software using Chocolatey
- Debloat windows10
- SSHFS
- Software Setup
Create a bootable USB Key
- Download Windows10 ISO https://www.microsoft.com/en-us/software-download/windows10ISO
- Create bootable USB key using the woeusb utility (https://computingforgeeks.com/create-windows-10-bootable-usb-on-linux/)
yay -S woeusb
sudo woeusb --device file.iso /dev/sdb --target-filesystem ntfs
Install Windows10 PRO
Install Software using Chocolatey
First install Chocolatey using a PowerShell as administrator:
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
Then, install all required software using one command:
choco install -y firefox 7zip.install vlc git.install malwarebytes sumatrapdf.install steam anydesk discord f.lux cmder cura ccleaner neovim
Debloat windows10
https://github.com/Sycnex/Windows10Debloater
Run a PowerShell with administrative rights and run:
iex ((New-Object System.Net.WebClient).DownloadString('https://git.io/debloat'))
SSHFS
SSH Setup
Install OpenSSH from chocolatey
as the one packed with Windows is quite old (link):
choco install openssh --package-parameters="/SSHAgentFeature"
Then generate the keys:
ssh-keygen
Start the SSH-Agent to automatically unlock the keys:
# Start the service
Start-Service ssh-agent
# This should return a status of Running
Get-Service ssh-agent
# Now load your key files into ssh-agent
ssh-add
Copy the public key with:
Get-Content -Path $HOME\.ssh\id_rsa.pub | Set-Clipboard
And add it to ~/.ssh/authorized_keys
on the server side.
Finally, it should be possible to ssh to the server.
SSHFS
Install sshfs-win.
Run the Registry Editor
, and find Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\WinFsp\Services\sshfs.kr
, then edit CommandLine
:
svc %1 %2 %U -o create_dir_umask=000 -o create_file_umask=111 -o umask=000
Then, to mount the network drive using sshfs
:
net use X: \\sshfs.kr\thomas@192.168.1.21\srv\storage /persistent:yes
To un-mount it:
net use X: /delete
Software Setup
Syncthing
https://docs.syncthing.net/users/autostart.html#autostart-windows-startup
Go to %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup
and create a shortcut linking to C:\path_to\syncthing.exe -no-console -no-browser
Then, Syncthing can be accessed with: http://localhost:8384/