-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
README.build-farm.txt
145 lines (83 loc) · 3.71 KB
/
README.build-farm.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
Install VirtualBox
==================
zypper install virtualbox freerdp
Install your guest systems.
Use bridged networking so your VMs are visible on your local net.
Enable remote desktop for your guests for easy access later.
Starting a Virtual Machine
==========================
Find your VM with:
VBoxManage list vms
Find your running VM with:
VBoxmanage list runningvms
Start the VM headless:
VBoxHeadless -s "Windows 10"
Start a full screen remote session:
xfreerdp /u:<user> /v:<vms-ip> /f
Windows 10
==========
Packages to install:
* Visual Studio Express 2017
(https://visualstudio.microsoft.com/vs/express/, https://aka.ms/vs/15/release/vs_WDExpress.exe
* Visual Studio Express 2019
(https://visualstudio.microsoft.com/vs/express/)
* TortoiseGit (https://tortoisegit.org/)
* Git for Windows (https://gitforwindows.org/)
* PuTTY (https://www.putty.org/)
* Qt (https://www.qt.io/)
* Jom (https://wiki.qt.io/Jom)
* Cygwin (https://www.cygwin.com/) (default install) (packages to add: make, zip, lftp)
Optional:
* Notepad++
(https://notepad-plus-plus.org/)
* Total commander
(https://www.ghisler.com/)
Installing OpenSSH:
Settings -> Apps -> Optional features -> Add a feature -> OpenSSH Server -> Install
Back to Optional features and wait for the install to finish.
Reboot
Enable the OpenSSH server:
Right click start menu -> Computer Management -> Services And Applications -> Services
Find "OpenSSh SSH Server" in the list.
Double click -> Startup: Automatic
Click "Start"
Click "Ok"
Use cygwin-bash:
Copy c:\cygwin64\Cygwin.bat to c:\cygwin64\Cygwin-ssh.bat
@echo off
setlocal enableextensions
set TERM=
cd /d "%~dp0bin" && .\bash --login
New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell -Value "c:\cygwin64\Cygwin-ssh.bat" -PropertyType String -Force
///////////// Alternative SSH shell setups
Set SSH shell to Powershell:
New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell -Value "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -PropertyType String -Force
// New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShellCommandOption -Value "/c" -PropertyType String -Force
// New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShellEscapeArguments -Value 1 -PropertyType DWORD -Force
Use git-bash:
New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell -Value "C:\Program Files\Git\bin\bash.exe" -PropertyType String -Force
/////////////////////////////////////////
Password less login:
--------------------
For sshd-config do the following changes:
Comment this one:
#Match Group administrators
# AuthorizedKeysFile __PROGRAMDATA__/ssh/administrators_authorized_keys
Uncomment these two:
PubkeyAuthentication yes
Then open PowerShell as Admin and restart service:
Restart-Service sshd
Then through File Explorer GUI.
Create the directory C:\Users\<name>\.ssh and C:\Users\<name>\.ssh\authorized_keys
For .ssh folder and authorized_keys file do the following:
Properties -> Security -> Advanced -> Disable inheritance -> Convert inherited permissions into explicit permissions on this object.
Then delete all users(groups) except:
System
Administrators
current user
Relevant docs (warning: some outdated):
https://winaero.com/blog/enable-openssh-server-windows-10/
https://github.com/PowerShell/Win32-OpenSSH/wiki/DefaultShell
https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_overview
https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_server_configuration
https://github.com/PowerShell/Win32-OpenSSH/issues/1306#issuecomment-484475323 // Passwordless login, see bottom