Nicer home page
This commit is contained in:
53
windows.org
53
windows.org
@@ -23,7 +23,7 @@ First install Chocolatey using a PowerShell as administrator:
|
||||
|
||||
Then, install all required software using one command:
|
||||
#+begin_src bash
|
||||
choco install firefox 7zip.install vlc git.install malwarebytes sumatrapdf.install steam anydesk discord f.lux cmder syncthing cura ccleaner
|
||||
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
|
||||
@@ -34,6 +34,57 @@ Run a PowerShell with administrative rights and run:
|
||||
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.150\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
|
||||
|
||||
Reference in New Issue
Block a user