233 lines
8.7 KiB
HTML
233 lines
8.7 KiB
HTML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
|
<head>
|
|
<!-- 2021-11-03 mer. 10:59 -->
|
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
|
<title>Windows Config and Install</title>
|
|
<meta name="author" content="Dehaeze Thomas" />
|
|
<meta name="generator" content="Org Mode" />
|
|
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
|
<script type="text/javascript" src="./dist/script.js"></script>
|
|
</head>
|
|
<body>
|
|
<div id="org-div-home-and-up">
|
|
<a accesskey="h" href="./index.html"> UP </a>
|
|
|
|
|
<a accesskey="H" href="./index.html"> HOME </a>
|
|
</div><div id="content" class="content">
|
|
<h1 class="title">Windows Config and Install</h1>
|
|
<div id="table-of-contents" role="doc-toc">
|
|
<h2>Table of Contents</h2>
|
|
<div id="text-table-of-contents" role="doc-toc">
|
|
<ul>
|
|
<li><a href="#org9346dc9">Create a bootable USB Key</a></li>
|
|
<li><a href="#org0143940">Install Windows10 PRO</a></li>
|
|
<li><a href="#org0cc05f7">Install Software using Chocolatey</a></li>
|
|
<li><a href="#org0a94edb">Debloat windows10</a></li>
|
|
<li><a href="#org1c09272">SSHFS</a>
|
|
<ul>
|
|
<li><a href="#org46e6091">SSH Setup</a></li>
|
|
<li><a href="#org9192414">SSHFS</a></li>
|
|
</ul>
|
|
</li>
|
|
<li><a href="#orgb8446e0">Software Setup</a>
|
|
<ul>
|
|
<li><a href="#orge44d00a">Syncthing</a></li>
|
|
<li><a href="#org796ab09">Cura</a></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org9346dc9" class="outline-2">
|
|
<h2 id="org9346dc9">Create a bootable USB Key</h2>
|
|
<div class="outline-text-2" id="text-org9346dc9">
|
|
<ul class="org-ul">
|
|
<li>Download Windows10 ISO <a href="https://www.microsoft.com/en-us/software-download/windows10ISO">https://www.microsoft.com/en-us/software-download/windows10ISO</a></li>
|
|
<li>Create bootable USB key using the woeusb utility (<a href="https://computingforgeeks.com/create-windows-10-bootable-usb-on-linux/">https://computingforgeeks.com/create-windows-10-bootable-usb-on-linux/</a>)</li>
|
|
</ul>
|
|
<div class="org-src-container">
|
|
<pre class="src src-bash">yay -S woeusb
|
|
</pre>
|
|
</div>
|
|
|
|
<div class="org-src-container">
|
|
<pre class="src src-bash"><span class="org-type">sudo</span> woeusb --device file.iso /dev/sdb --target-filesystem ntfs
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org0143940" class="outline-2">
|
|
<h2 id="org0143940">Install Windows10 PRO</h2>
|
|
</div>
|
|
|
|
<div id="outline-container-org0cc05f7" class="outline-2">
|
|
<h2 id="org0cc05f7">Install Software using Chocolatey</h2>
|
|
<div class="outline-text-2" id="text-org0cc05f7">
|
|
<p>
|
|
First install Chocolatey using a PowerShell as administrator:
|
|
</p>
|
|
<div class="org-src-container">
|
|
<pre class="src src-bash">Set-ExecutionPolicy Bypass -Scope Process -Force; <span class="org-rainbow-delimiters-depth-1">[</span>System.Net.ServicePointManager<span class="org-rainbow-delimiters-depth-1">]</span>::SecurityProtocol = <span class="org-rainbow-delimiters-depth-1">[</span>System.Net.ServicePointManager<span class="org-rainbow-delimiters-depth-1">]</span>::SecurityProtocol -bor <span class="org-highlight-numbers-number">3072</span>; iex <span class="org-rainbow-delimiters-depth-1">(</span><span class="org-rainbow-delimiters-depth-2">(</span>New-Object System.Net.WebClient<span class="org-rainbow-delimiters-depth-2">)</span>.DownloadString<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-string">'https://chocolatey.org/install.ps1'</span><span class="org-rainbow-delimiters-depth-2">)</span><span class="org-rainbow-delimiters-depth-1">)</span>
|
|
</pre>
|
|
</div>
|
|
|
|
<p>
|
|
Then, install all required software using one command:
|
|
</p>
|
|
<div class="org-src-container">
|
|
<pre class="src src-bash">choco install -y firefox 7zip.install vlc git.install malwarebytes sumatrapdf.install steam anydesk discord f.lux cmder cura ccleaner neovim imageglass
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org0a94edb" class="outline-2">
|
|
<h2 id="org0a94edb">Debloat windows10</h2>
|
|
<div class="outline-text-2" id="text-org0a94edb">
|
|
<p>
|
|
<a href="https://github.com/Sycnex/Windows10Debloater">https://github.com/Sycnex/Windows10Debloater</a>
|
|
</p>
|
|
|
|
<p>
|
|
Run a PowerShell with administrative rights and run:
|
|
</p>
|
|
<div class="org-src-container">
|
|
<pre class="src src-bash"><span class="org-function-name">iex</span> <span class="org-rainbow-delimiters-depth-1">(</span><span class="org-rainbow-delimiters-depth-2">(</span>New-Object System.Net.WebClient<span class="org-rainbow-delimiters-depth-2">)</span>.DownloadString<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-string">'https://git.io/debloat'</span><span class="org-rainbow-delimiters-depth-2">)</span><span class="org-rainbow-delimiters-depth-1">)</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org1c09272" class="outline-2">
|
|
<h2 id="org1c09272">SSHFS</h2>
|
|
<div class="outline-text-2" id="text-org1c09272">
|
|
</div>
|
|
<div id="outline-container-org46e6091" class="outline-3">
|
|
<h3 id="org46e6091">SSH Setup</h3>
|
|
<div class="outline-text-3" id="text-org46e6091">
|
|
<p>
|
|
Install OpenSSH from <code>chocolatey</code> as the one packed with Windows is quite old (<a href="https://blog.frankfu.com.au/2019/03/21/moving-from-windows-1809s-openssh-to-openssh-portable/">link</a>):
|
|
</p>
|
|
<div class="org-src-container">
|
|
<pre class="src src-bash">choco install openssh --package-parameters=<span class="org-string">"/SSHAgentFeature"</span>
|
|
</pre>
|
|
</div>
|
|
|
|
<p>
|
|
Then generate the keys:
|
|
</p>
|
|
<div class="org-src-container">
|
|
<pre class="src src-bash">ssh-keygen
|
|
</pre>
|
|
</div>
|
|
|
|
<p>
|
|
Start the SSH-Agent to automatically unlock the keys:
|
|
</p>
|
|
<div class="org-src-container">
|
|
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Start the service</span>
|
|
Start-Service ssh-agent
|
|
|
|
<span class="org-comment-delimiter"># </span><span class="org-comment">This should return a status of Running</span>
|
|
Get-Service ssh-agent
|
|
|
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Now load your key files into ssh-agent</span>
|
|
ssh-add
|
|
</pre>
|
|
</div>
|
|
|
|
<p>
|
|
Copy the public key with:
|
|
</p>
|
|
<div class="org-src-container">
|
|
<pre class="src src-bash">Get-Content -Path $<span class="org-variable-name">HOME</span><span class="org-string">\.</span>ssh\id_rsa.pub | Set-Clipboard
|
|
</pre>
|
|
</div>
|
|
|
|
<p>
|
|
And add it to <code>~/.ssh/authorized_keys</code> on the server side.
|
|
</p>
|
|
|
|
<p>
|
|
Finally, it should be possible to ssh to the server.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org9192414" class="outline-3">
|
|
<h3 id="org9192414">SSHFS</h3>
|
|
<div class="outline-text-3" id="text-org9192414">
|
|
<p>
|
|
Install <a href="https://github.com/billziss-gh/sshfs-win">sshfs-win</a>.
|
|
</p>
|
|
|
|
<p>
|
|
Run the <code>Registry Editor</code>, and find <code>Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\WinFsp\Services\sshfs.kr</code>, then edit <code>CommandLine</code>:
|
|
</p>
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf"><span class="org-variable-name">svc %1 %2 %U -o create_dir_umask</span>=<span class="org-highlight-numbers-number">000</span> -o create_file_umask=<span class="org-highlight-numbers-number">111</span> -o umask=<span class="org-highlight-numbers-number">000</span>
|
|
</pre>
|
|
</div>
|
|
|
|
<p>
|
|
Then, to mount the network drive using <code>sshfs</code>:
|
|
</p>
|
|
<div class="org-src-container">
|
|
<pre class="src src-bash">net use X: <span class="org-string">\\</span>sshfs.kr\thomas@192.168.1.21\srv\storage /persistent:yes
|
|
</pre>
|
|
</div>
|
|
|
|
<p>
|
|
To un-mount it:
|
|
</p>
|
|
<div class="org-src-container">
|
|
<pre class="src src-bash">net use X: /delete
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orgb8446e0" class="outline-2">
|
|
<h2 id="orgb8446e0">Software Setup</h2>
|
|
<div class="outline-text-2" id="text-orgb8446e0">
|
|
</div>
|
|
<div id="outline-container-orge44d00a" class="outline-3">
|
|
<h3 id="orge44d00a">Syncthing</h3>
|
|
<div class="outline-text-3" id="text-orge44d00a">
|
|
<p>
|
|
<a href="https://docs.syncthing.net/users/autostart.html#autostart-windows-startup">https://docs.syncthing.net/users/autostart.html#autostart-windows-startup</a>
|
|
</p>
|
|
|
|
<p>
|
|
Go to <code>%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup</code> and create a shortcut linking to <code>C:\path_to\syncthing.exe -no-console -no-browser</code>
|
|
</p>
|
|
|
|
<p>
|
|
Then, Syncthing can be accessed with: <a href="http://localhost:8384/">http://localhost:8384/</a>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org796ab09" class="outline-3">
|
|
<h3 id="org796ab09">Cura</h3>
|
|
<div class="outline-text-3" id="text-org796ab09">
|
|
<ul class="org-ul">
|
|
<li><a href="https://github.com/fieldOfView/Cura-OctoPrintPlugin">https://github.com/fieldOfView/Cura-OctoPrintPlugin</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="postamble" class="status">
|
|
<p class="author">Author: Dehaeze Thomas</p>
|
|
<p class="date">Created: 2021-11-03 mer. 10:59</p>
|
|
</div>
|
|
</body>
|
|
</html>
|