@@ -19,7 +19,10 @@ import { useState } from "react";
19
19
20
20
import Box from "@cloudscape-design/components/box" ;
21
21
import Container from "@cloudscape-design/components/container" ;
22
+ import Icon from "@cloudscape-design/components/icon" ;
22
23
import Header from "@cloudscape-design/components/header" ;
24
+ import Link from "@cloudscape-design/components/link" ;
25
+ import SpaceBetween from "@cloudscape-design/components/space-between" ;
23
26
import Spinner from "@cloudscape-design/components/spinner" ;
24
27
import Wizard from "@cloudscape-design/components/wizard" ;
25
28
@@ -60,8 +63,8 @@ export default function Setup() {
60
63
< div id = "setup_wizard_inner" >
61
64
< Container
62
65
header = {
63
- < Header variant = "h1" description = "Setup via SSH keys " >
64
- SSH key based Wizard
66
+ < Header variant = "h1" description = "Get started with your TAC " >
67
+ LXA TAC Setup Wizard
65
68
</ Header >
66
69
}
67
70
>
@@ -85,17 +88,81 @@ export default function Setup() {
85
88
activeStepIndex = { activeStepIndex }
86
89
allowSkipTo
87
90
steps = { [
91
+ {
92
+ title : "Welcome" ,
93
+ description : "Welcome to your TAC and its setup mode" ,
94
+ content : (
95
+ < Container >
96
+ < Box variant = "p" > Hey there,</ Box >
97
+ < Box variant = "p" >
98
+ thank you for buying this TAC. We hope you'll like it!
99
+ </ Box >
100
+ < Box variant = "p" >
101
+ Before you can get started using your TAC we need to set
102
+ up a few things so they match your preferences. Some of
103
+ these preferences can only be set via the web interface in
104
+ this special setup mode, because they affect the security
105
+ and inner workings of your TAC. To configure them once the
106
+ setup mode is done you either need ssh access to your TAC
107
+ or physical access to re-enable the setup mode via the
108
+ buttons on the TAC.
109
+ </ Box >
110
+ < Box variant = "p" >
111
+ Ready to get started? Then maybe have a quick look at the{ " " }
112
+ < Link
113
+ external
114
+ href = "https://www.linux-automation.com/lxatac-M02/index.html"
115
+ >
116
+ online manual
117
+ </ Link > { " " }
118
+ first and then click "Next" to continue the setup.
119
+ </ Box >
120
+ < br />
121
+ < SpaceBetween direction = "horizontal" size = "s" >
122
+ < Icon url = "/logo.svg" size = "large" />
123
+ < Box variant = "p" >
124
+ Greetings,
125
+ < br />
126
+ the Linux Automation GmbH team
127
+ </ Box >
128
+ </ SpaceBetween >
129
+ </ Container >
130
+ ) ,
131
+ } ,
88
132
{
89
133
title : "Add SSH keys" ,
90
134
description :
91
- "Deploy SSH keys on your LXA TAC so you can log into it" ,
135
+ "Deploy SSH keys onto your LXA TAC so you can log into it" ,
92
136
content : (
93
137
< Container >
94
- < ConfigEditor
95
- path = "/v1/tac/ssh/authorized_keys"
96
- language = "text"
97
- defaultContent = { SSH_AUTH_KEYS_EXAMPLE }
98
- />
138
+ < SpaceBetween size = "s" >
139
+ < Box variant = "p" >
140
+ For many actions on the LXA TAC you need access to it
141
+ via ssh. Permissions to ssh into the TAC are managed via
142
+ a list of ssh public keys, that allow logging in as the
143
+ root user.
144
+ < br />
145
+ Paste a list of ssh public keys into the text box below,
146
+ to allow them to access the TAC, and click "Save".
147
+ Afterwards you should be able to log into your TAC like
148
+ this:
149
+ < Box
150
+ variant = "code"
151
+ display = "block"
152
+ padding = "s"
153
+ fontSize = "body-m"
154
+ >
155
+ $ ssh root@{ window . location . hostname }
156
+ </ Box >
157
+ Make sure to check if logging in works before leaving
158
+ the setup mode.
159
+ </ Box >
160
+ < ConfigEditor
161
+ path = "/v1/tac/ssh/authorized_keys"
162
+ language = "text"
163
+ defaultContent = { SSH_AUTH_KEYS_EXAMPLE }
164
+ />
165
+ </ SpaceBetween >
99
166
</ Container >
100
167
) ,
101
168
} ,
@@ -105,18 +172,45 @@ export default function Setup() {
105
172
isOptional : true ,
106
173
content : (
107
174
< Container >
108
- < LabgridConfig />
175
+ < SpaceBetween size = "s" >
176
+ < Box variant = "p" >
177
+ The LXA TAC comes with a mostly pre-configured labgrid
178
+ exporter, that exports a lot of resources that are built
179
+ into the TAC or can be connected to it via USB.
180
+ < br />
181
+ You may however want to configure the labgrid
182
+ coordinator IP address/hostname on the "Environment" tab
183
+ or export additional resources in the "User Config" tab.
184
+ < br />
185
+ Once you have made the required changes click "Save" and
186
+ test your configuration by clicking "Next".
187
+ </ Box >
188
+ < LabgridConfig />
189
+ </ SpaceBetween >
109
190
</ Container >
110
191
) ,
111
192
} ,
112
193
{
113
194
title : "Test Labgrid" ,
114
195
description :
115
- "Make sure your labgrid Exporter Service looks healty " ,
196
+ "Make sure your labgrid Exporter Service looks healthy " ,
116
197
isOptional : true ,
117
198
content : (
118
199
< Container >
119
- < LabgridService />
200
+ < SpaceBetween size = "m" >
201
+ < Box variant = "p" >
202
+ In this step you can check if the labgrid exporter
203
+ starts as expected and the correct resources are
204
+ exported. Use the "Start", "Stop" and "Restart" buttons
205
+ to control the labgrid exporter systemd service and
206
+ observe the systemd journal output in the text window
207
+ above them.
208
+ < br />
209
+ Go back to the exporter configuration step to make
210
+ changes and click "Next" once you are satisfied.
211
+ </ Box >
212
+ < LabgridService />
213
+ </ SpaceBetween >
120
214
</ Container >
121
215
) ,
122
216
} ,
@@ -125,15 +219,24 @@ export default function Setup() {
125
219
description : "Make sure everything is working alright" ,
126
220
content : (
127
221
< Container >
128
- < Box > You are about to complete the setup wizard.</ Box >
129
- < Box >
130
- You will not be able to re-enter the setup wizard to
131
- deploy new SSH keys via the web interface. You can however
132
- re-enable the setup wizard using the buttons and the
133
- screen on the device. If you do not have physical access
134
- the TAC you should make sure that you can log in to the
135
- device via the SSH keys you have deployed before pressing
136
- "Done".
222
+ < Box variant = "p" >
223
+ You are about to complete the setup wizard.
224
+ </ Box >
225
+ < Box variant = "p" >
226
+ You will not be able to re-enter the setup wizard via the
227
+ web interface. You can however re-enable the setup wizard
228
+ using the buttons and the screen on the device. If you do
229
+ not have physical access to the TAC you should make sure
230
+ that you can log in now using:
231
+ < Box
232
+ variant = "code"
233
+ display = "block"
234
+ padding = "s"
235
+ fontSize = "body-m"
236
+ >
237
+ $ ssh root@{ window . location . hostname }
238
+ </ Box >
239
+ before pressing "Done".
137
240
</ Box >
138
241
</ Container >
139
242
) ,
0 commit comments