Change indentation of all blocks.
Use (setq org-src-preserve-indentation t) for Emacs.
This commit is contained in:
34
windows.org
34
windows.org
@@ -6,11 +6,11 @@
|
||||
- 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
|
||||
yay -S woeusb
|
||||
#+end_src
|
||||
|
||||
#+begin_src bash
|
||||
sudo woeusb --device file.iso /dev/sdb --target-filesystem ntfs
|
||||
sudo woeusb --device file.iso /dev/sdb --target-filesystem ntfs
|
||||
#+end_src
|
||||
|
||||
* Install Windows10 PRO
|
||||
@@ -18,12 +18,12 @@
|
||||
* 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'))
|
||||
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
|
||||
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
|
||||
@@ -31,36 +31,36 @@ 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'))
|
||||
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"
|
||||
choco install openssh --package-parameters="/SSHAgentFeature"
|
||||
#+end_src
|
||||
|
||||
Then generate the keys:
|
||||
#+begin_src bash
|
||||
ssh-keygen
|
||||
ssh-keygen
|
||||
#+end_src
|
||||
|
||||
Start the SSH-Agent to automatically unlock the keys:
|
||||
#+begin_src bash
|
||||
# Start the service
|
||||
Start-Service ssh-agent
|
||||
# Start the service
|
||||
Start-Service ssh-agent
|
||||
|
||||
# This should return a status of Running
|
||||
Get-Service ssh-agent
|
||||
# This should return a status of Running
|
||||
Get-Service ssh-agent
|
||||
|
||||
# Now load your key files into ssh-agent
|
||||
ssh-add
|
||||
# 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
|
||||
Get-Content -Path $HOME\.ssh\id_rsa.pub | Set-Clipboard
|
||||
#+end_src
|
||||
|
||||
And add it to =~/.ssh/authorized_keys= on the server side.
|
||||
@@ -72,17 +72,17 @@ 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
|
||||
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.150\srv\storage /persistent:yes
|
||||
net use X: \\sshfs.kr\thomas@192.168.1.150\srv\storage /persistent:yes
|
||||
#+end_src
|
||||
|
||||
To un-mount it:
|
||||
#+begin_src bash
|
||||
net use X: /delete
|
||||
net use X: /delete
|
||||
#+end_src
|
||||
|
||||
* Software Setup
|
||||
|
||||
Reference in New Issue
Block a user