#+TITLE: Windows Config and Install #+SETUPFILE: ./setup/org-setup-file.org * 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/) #+begin_src bash yay -S woeusb #+end_src #+begin_src bash sudo woeusb --device file.iso /dev/sdb --target-filesystem ntfs #+end_src * Install Windows10 PRO * Install Software using Chocolatey First install Chocolatey using a PowerShell as administrator: #+begin_src bash 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')) #+end_src Then, install all required software using one command: #+begin_src bash choco install -y firefox 7zip.install vlc git.install malwarebytes sumatrapdf.install steam anydesk discord f.lux cmder cura ccleaner neovim #+end_src * Debloat windows10 https://github.com/Sycnex/Windows10Debloater Run a PowerShell with administrative rights and run: #+begin_src bash iex ((New-Object System.Net.WebClient).DownloadString('https://git.io/debloat')) #+end_src * SSHFS ** SSH Setup Install OpenSSH from =chocolatey= as the one packed with Windows is quite old ([[https://blog.frankfu.com.au/2019/03/21/moving-from-windows-1809s-openssh-to-openssh-portable/][link]]): #+begin_src bash choco install openssh --package-parameters="/SSHAgentFeature" #+end_src Then generate the keys: #+begin_src bash ssh-keygen #+end_src Start the SSH-Agent to automatically unlock the keys: #+begin_src bash # 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 #+end_src Copy the public key with: #+begin_src bash Get-Content -Path $HOME\.ssh\id_rsa.pub | Set-Clipboard #+end_src And add it to =~/.ssh/authorized_keys= on the server side. Finally, it should be possible to ssh to the server. ** SSHFS Install [[https://github.com/billziss-gh/sshfs-win][sshfs-win]]. Run the =Registry Editor=, and find =Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\WinFsp\Services\sshfs.kr=, then edit =CommandLine=: #+begin_src conf svc %1 %2 %U -o create_dir_umask=000 -o create_file_umask=111 -o umask=000 #+end_src Then, to mount the network drive using =sshfs=: #+begin_src bash net use X: \\sshfs.kr\thomas@192.168.1.21\srv\storage /persistent:yes #+end_src To un-mount it: #+begin_src bash net use X: /delete #+end_src * 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/ ** Cura - https://github.com/fieldOfView/Cura-OctoPrintPlugin