|
18 | 18 | "cell_type": "markdown",
|
19 | 19 | "metadata": {},
|
20 | 20 | "source": [
|
21 |
| - "## Environment & SSM Setup" |
| 21 | + "## Environment setup" |
22 | 22 | ]
|
23 | 23 | },
|
24 | 24 | {
|
|
78 | 78 | },
|
79 | 79 | {
|
80 | 80 | "cell_type": "markdown",
|
81 |
| - "metadata": {}, |
82 | 81 | "source": [
|
83 |
| - "Specify JetBrains License Server host name in `JB_LICENSE_SERVER_HOST` variable. Leave it as is if you don't use one, e.g. use PyCharm Community or VS Code, or already configured one from another kernel app (the value will be shared between apps).\n", |
| 82 | + "## (Optional) Remote desktop / VNC setup\n", |
84 | 83 | "\n",
|
85 |
| - "Please, make sure you've configured the same value on your local machine (see the script `sm-local-ssh-ide`)." |
86 |
| - ] |
| 84 | + "If you don't plan to run any GUI apps inside SageMaker Studio, skip to the next section or run the cells as is (safe defaults)." |
| 85 | + ], |
| 86 | + "metadata": { |
| 87 | + "collapsed": false |
| 88 | + } |
| 89 | + }, |
| 90 | + { |
| 91 | + "cell_type": "markdown", |
| 92 | + "source": [ |
| 93 | + "Choose your VNC password. It's safe to leave it as is, because your connection will be already secured with SSH and SSM. You need some password, because some VNC clients do not allow passwordless connections.\n", |
| 94 | + "\n", |
| 95 | + "If you already configured password from another kernel app, this cell will take no effect (the encrypted password file will be shared between apps)." |
| 96 | + ], |
| 97 | + "metadata": { |
| 98 | + "collapsed": false |
| 99 | + } |
87 | 100 | },
|
88 | 101 | {
|
89 | 102 | "cell_type": "code",
|
90 | 103 | "execution_count": null,
|
91 |
| - "metadata": {}, |
92 | 104 | "outputs": [],
|
93 | 105 | "source": [
|
94 | 106 | "%%sh\n",
|
95 |
| - "JB_LICENSE_SERVER_HOST=\"jetbrains-license-server.example.com\" # replace with your JetBrains License Server host name\n", |
| 107 | + "VNC_PASSWORD=\"123456\" # replace with your password\n", |
96 | 108 | "\n",
|
97 |
| - "sm-ssh-ide set-jb-license-server \"$JB_LICENSE_SERVER_HOST\"" |
98 |
| - ] |
| 109 | + "sm-ssh-ide set-vnc-password \"$VNC_PASSWORD\"" |
| 110 | + ], |
| 111 | + "metadata": { |
| 112 | + "collapsed": false |
| 113 | + } |
99 | 114 | },
|
100 | 115 | {
|
101 | 116 | "cell_type": "markdown",
|
102 | 117 | "metadata": {},
|
103 | 118 | "source": [
|
104 |
| - "Now choose your VNC password. It's safe to leave it as is, because your connection will be already secured with SSH and SSM. You need some password, because some VNC clients do not allow passwordless connections.\n", |
| 119 | + "Specify JetBrains License Server host name in `JB_LICENSE_SERVER_HOST` variable. Leave it as is if you don't use one, e.g. use PyCharm Community or VS Code, or already configured one from another kernel app (the value will be shared between apps).\n", |
105 | 120 | "\n",
|
106 |
| - "If you already configured password from another kernel app, this cell will take no effect (the encrypted password file will be shared between apps)." |
| 121 | + "Please, make sure you've configured the same value on your local machine (see the script `sm-local-ssh-ide`)." |
107 | 122 | ]
|
108 | 123 | },
|
109 | 124 | {
|
|
113 | 128 | "outputs": [],
|
114 | 129 | "source": [
|
115 | 130 | "%%sh\n",
|
116 |
| - "VNC_PASSWORD=\"123456\" # replace with your password\n", |
| 131 | + "JB_LICENSE_SERVER_HOST=\"jetbrains-license-server.example.com\" # replace with your JetBrains License Server host name\n", |
117 | 132 | "\n",
|
118 |
| - "sm-ssh-ide set-vnc-password \"$VNC_PASSWORD\"" |
| 133 | + "sm-ssh-ide set-jb-license-server \"$JB_LICENSE_SERVER_HOST\"" |
119 | 134 | ]
|
120 | 135 | },
|
| 136 | + { |
| 137 | + "cell_type": "markdown", |
| 138 | + "source": [ |
| 139 | + "## SSM setup" |
| 140 | + ], |
| 141 | + "metadata": { |
| 142 | + "collapsed": false |
| 143 | + } |
| 144 | + }, |
121 | 145 | {
|
122 | 146 | "cell_type": "markdown",
|
123 | 147 | "metadata": {
|
|
154 | 178 | "source": [
|
155 | 179 | "The `start` command will run the background applications for remote access – SSH daemon, VNC server and Jupyter notebook. The `stop` command helps with cleanup from previous runs (see the next section).\n",
|
156 | 180 | "\n",
|
157 |
| - "If you don't want to run a VNC server and Jupyter notebook, pass the flag `--ssh-only` to the `start` command. Also consider passing the same flag to the `sm-local-ssh-ide` command." |
| 181 | + "If you don't want to run a VNC server and Jupyter notebook, pass the flag `--ssh-only` to the `start` command. Also consider passing the same flag to the `sm-local-ssh-ide` command (you will find it in further instructions)." |
158 | 182 | ]
|
159 | 183 | },
|
160 | 184 | {
|
|
0 commit comments