Skip to content

Commit 10bf110

Browse files
committed
📔 Update graphical unix server instructions for remote access from Windows to Linux graphical apps.
1 parent 0178b7b commit 10bf110

File tree

10 files changed

+107
-191
lines changed

10 files changed

+107
-191
lines changed

‎.vscode/settings.json‎

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,77 @@
7373
"peacock.color": "#000000",
7474
"editor.codeActionsOnSave": {
7575
"source.fixAll.eslint": true
76+
},
77+
"editor.tokenColorCustomizations": {
78+
"[Tomorrow Night Bright Operator Mono]": {
79+
"textMateRules": [
80+
{
81+
"scope": "keyword.control.trycatch.js, keyword.control.import.js, keyword.control.flow.js, meta.import.js, keyword.control.export.js, keyword.control.conditional.js, meta.var.expr.js, meta.block.js, storage.type.js, source.js, storage.modifier.async.js, meta.arrow.js",
82+
"settings": {}
83+
},
84+
{
85+
"scope": "support.type.js, support.typedef, meta.indexer.declaration.js, support.type.builtin.js",
86+
"settings": {
87+
"fontStyle": "italic",
88+
"foreground": "#ffc0cb"
89+
}
90+
},
91+
{
92+
"scope": "meta.interface.js, entity.name.type.interface.js, entity.name.type.js, entity.other.inherited-class.js, variable.language.this.js",
93+
"settings": {
94+
"fontStyle": "italic",
95+
"foreground": "#e7c547ff"
96+
}
97+
},
98+
{
99+
"scope": "support.type.primitive.js, meta.type.annotation.js, keyword.operator.type.annotation.js, meta.object.type.js, meta.type.annotation.js, meta.interface.js",
100+
"settings": {
101+
"fontStyle": "italic",
102+
"foreground": "#ffc0cb"
103+
}
104+
},
105+
{
106+
"scope": "keyword.operator.type.js",
107+
"settings": {
108+
"fontStyle": "",
109+
"foreground": "#ff76b8"
110+
}
111+
},
112+
{
113+
"scope": "punctuation.definition.block.js meta.object.type.js meta.type.annotation.js, variable.object.property.js",
114+
"settings": {
115+
"fontStyle": "",
116+
"foreground": "#AD1457"
117+
}
118+
},
119+
{
120+
"scope": "entity.name, variable.language.this.js",
121+
"settings": {
122+
"fontStyle": "",
123+
"foreground": "#e7c547ff"
124+
}
125+
}
126+
]
127+
},
128+
"textMateRules": [
129+
{
130+
"scope": "googletest.failed",
131+
"settings": {
132+
"foreground": "#f00"
133+
}
134+
},
135+
{
136+
"scope": "googletest.passed",
137+
"settings": {
138+
"foreground": "#0f0"
139+
}
140+
},
141+
{
142+
"scope": "googletest.run",
143+
"settings": {
144+
"foreground": "#0f0"
145+
}
146+
}
147+
]
76148
}
77149
}

‎documentation/systemProvisionGuide/Guide to setting up Windows environment for development.md‎

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ localhost:8083 test.localhost
197197
- Run docker containers:
198198
- run portainer with autostart. (run portainer from @deployment/deploymentScript package.)
199199
- Turn on WSL2 integration of Docker Desktop.
200+
- Solve issue, every now and then the WSL2-Docker integration breaks: Make sure DOCKER_HOST environment is not set, Or reinstall docker or https://github.com/docker/for-win/issues/5096#issuecomment-572730439
200201

201202
### Winrar:
202203
- Settings > Integration > Cascaded context menu.
@@ -261,10 +262,18 @@ ___
261262
- Setup development environment using appDeploymentLifecycle repository powershell script.
262263
- `yarn run provisionOS` run it through Windows Node's installation, rather than under the newly installed WSL.
263264
once reached `change default shell` exit the new zsh shell that will be opened to continue installation. Repeat execution if errors occur, and make sure all commands in installations where executed (e.g. powerlevel10K theme in ZSH command group). this command will also update linux `sudo apt update -y && sudo apt upgrade -y`
265+
- Make sure the apppDeploymentLifecycle scripts don't mess up some changes made by Docker on WSL2 and VSCode remote server for WSL2. If Issues found try disabling and reenabling docker engine on WSL2 and to trigger reinstallation.
264266
- Symlink .ssh folder to WSL: `sudo ln -s /<.ssh location>/.ssh /root/.ssh`
265267
- Setup VSCode in WSL2: ctrl+shift+p and search for "Remote: WSL new window", in which VSCode will download WSL server automatically and set it up.
266-
- Setup Linux graphical server and Windows client to access WSL2 graphical programs: https://medium.com/@chuckdries/installing-gitkraken-in-wsl-2-15bf6459f823
267-
TODO: Install smartGit graphical program in WSL2 and access it through Windows to take advantage of `inotify` support for autorefresh (as not yet supported), and use wsl own git installation.
268+
- make sure `code .` or `code-insiders .` works in WSL2 after vscode installed VSCode server in WSL2.
269+
- Open extensions tab, and migrate all required extensions to debian side in order to enable them.
270+
Note: VSCode will have 2 types of extensions UI, & Workspace (requires direct access to source code of projects) extensions. These are installed automatically by VSCode on the correct side - WSL2 server or Windows VScode client.
271+
VS Code's APIs are designed to automatically run in the right location regardless of where your extension happens to be located.
272+
- Setup Linux graphical server and Windows client to access WSL2 graphical programs: https://medium.com/@chuckdries/installing-gitkraken-in-wsl-2-15bf6459f823 https://wiki.ubuntu.com/WSL#Running_Graphical_Applications
273+
- TODO: [FIX this not working...] Install smartGit graphical program in WSL2 and access it through Windows to take advantage of `inotify` support for autorefresh (as not yet supported), and use wsl own git installation.
274+
- (follow steps of above link) Install X server e.g. VcXsrv, symlink configs (from this repo's resource folder), set firewall protocol to allow WSL2 own ip access.
275+
- smartgit for linux https://www.syntevo.com/smartgit/download/#installation-instructions
276+
- Move all repositories to WSL2 filesystem for greater performance.
268277

269278
Notes & Resources:
270279
- An attempt to install WSL2 in insiders program (slow ring):

‎documentation/systemProvisionGuide/installWindowsSoftware.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ ___
44

55
# Installed Windows software without a pacakge manager:
66
Windows Terminal (new) from windows store.
7+
WSL-DistroManager https://github.com/rkttu/WSL-DistroManager
78

89
Memgraph Lab (https://memgraph.com/download/)
910
Neo4j Desktop (https://neo4j.com/download-neo4j-now/)
@@ -12,7 +13,6 @@ Simple drag drop graph creation tools:
1213
- Install https://graphileon.com/
1314
https://insomnia.rest/ - debug api (similar to postman)
1415

15-
1616
webroot internet security (with license)
1717
VSCode insiders
1818
whatsapp desktop
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<XLaunch WindowMode="MultiWindow" ClientMode="NoClient" LocalClient="False" Display="-1" LocalProgram="xcalc" RemoteProgram="xterm" RemotePassword="" PrivateKey="" RemoteHost="" RemoteUser="" XDMCPHost="" XDMCPBroadcast="False" XDMCPIndirect="False" Clipboard="True" ClipboardPrimary="True" ExtraParams="" Wgl="True" DisableAC="True" XDMCPTerminate="False"/>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[ZoneTransfer]
2+
ZoneId=3
3+
HostUrl=about:internet
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[ZoneTransfer]
2+
ZoneId=3
3+
HostUrl=about:internet

‎resource/localDevelopmentEnvironment/WindowsOS/terminal/ConEmu.xml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<key name="Software">
33
<key name="ConEmu">
4-
<key name=".Vanilla" modified="2020-02-02 01:31:05" build="191012">
4+
<key name=".Vanilla" modified="2020-02-05 14:18:28" build="191012">
55
<value name="Language" type="string" data="en"/>
66
<value name="StartType" type="hex" data="02"/>
77
<value name="CmdLine" type="string" data=""/>
@@ -147,11 +147,11 @@
147147
<value name="Cascaded" type="hex" data="01"/>
148148
<value name="IntegralSize" type="hex" data="00"/>
149149
<value name="WindowMode" type="dword" data="0000051f"/>
150-
<value name="ConWnd X" type="long" data="0"/>
151-
<value name="ConWnd Y" type="long" data="60"/>
150+
<value name="ConWnd X" type="long" data="659"/>
151+
<value name="ConWnd Y" type="long" data="394"/>
152152
<value name="LastMonitor" type="string" data="0,60,3840,2160"/>
153153
<value name="ConWnd Width" type="dword" data="0000006a"/>
154-
<value name="ConWnd Height" type="dword" data="00000035"/>
154+
<value name="ConWnd Height" type="dword" data="0000002c"/>
155155
<value name="16bit Height" type="ulong" data="0"/>
156156
<value name="QuakeStyle" type="hex" data="00"/>
157157
<value name="Restore2ActiveMon" type="hex" data="00"/>

‎script/windows/setupConfiguration.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ export const symlinkFileConfig = () => {
101101
// return path.join(userFolder, 'Desktop', 'DockerWindowsVolumeWatcher')
102102
// },
103103
// },
104+
105+
// TODO: X-Server configuration symlink GUIServer > 'config.xlaunch'
104106
])
105107

106108
copyFile([

‎script/windowsSubsystemForLinux/installPackageAndSymlinkConfiguration.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export const nonElevatedCallback = async () => {
4141
// install other packages:
4242
childProcess.execSync(
4343
[
44+
`sudo apt-get install -y wget`,
4445
// `sudo apt install bridge-utils`, // DOESN'T WORK on WSL2. `brctl show` allows to view bridge network switches which docker on WSL2 creates.
4546
].join(' && \\\n'),
4647
{ cwd: __dirname, shell: true, stdio: [0, 1, 2] },

0 commit comments

Comments
 (0)