You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -14,70 +14,12 @@ Once the hardware has been connected up, setup proceeds as follows.
14
14
15
15
**Important note about reinstalls vs. fresh installs:** At this point in the project, we are unlikely to have a completely fresh set of hardware and drives to set up. The below instructions were written under the assumption of a fresh install, so take care not to perform destructive actions like repartitioning on drives with data you want to **keep**. See :doc:`migration` for examples of what those data might be.
16
16
17
-
BIOS
18
-
----
19
-
20
-
For a new main board, the BIOS should be updated to the latest version.
21
-
This is necessary to ensure that the USB ports behave properly, as well
22
-
as to ensure that the iKVM module works.
23
-
24
-
The following settings should also be changed within the BIOS setup menu (reboot, then press F1 when prompted to enter).
25
-
26
-
For all of AOC/ICC/RTC
27
-
~~~~~~~~~~~~~~~~~~~~~~
28
-
29
-
::
30
-
31
-
Boot
32
-
|
33
-
-- Network Device BBS Priorities -- set all to "disabled"
34
-
-- Hard Drive BBS Priorities -- set "disabled" for all non-boot SSDs
35
-
36
-
Advanced
37
-
|
38
-
-- ACPI Settings
39
-
|
40
-
-- Enable Hibernation [Disabled]
41
-
-- ACPI Suspend State [Suspend Disabled]
42
-
-- APM
43
-
|
44
-
-- Restore AC Power Loss [Power OFF]
45
-
46
-
(Note that the BIOS likes to reshuffle boot order when drives appear and
47
-
disappear in testing or RAID swapping. Disabling non-boot drives ensures
48
-
it doesn’t accidentally try to boot from them.)
49
-
50
-
For ICC/RTC
51
-
~~~~~~~~~~~
52
-
53
-
::
54
-
55
-
AI Tweaker
56
-
|
57
-
-- Spread Spectrum [Disabled] {This is critical for allowing PCIe expanion to work}
58
-
59
-
Advanced
60
-
|
61
-
-- PCI Subsystem Settings
62
-
|
63
-
-- Above 4G Decoding [Enabled] {This is critical for allowing PCIe expansion to work}
64
-
65
-
IntelRCSetup
66
-
|
67
-
--Processor Configuration
68
-
|
69
-
-- DCU Mode [32KB 8Way Without ECC] {This is default, ECC not needed for new-style target and host cards}
70
-
|
71
-
--Miscellaneous Configuration
72
-
|
73
-
-- Active Video [Onboard Device] {Prevents sending video to a GPU}
74
-
75
17
OS Installation
76
18
---------------
77
19
78
-
The computers in MagAO-X run Rocky Linux 9.
20
+
The computers in MagAO-X run Rocky Linux or Fedora (KDE edition).
79
21
80
-
**Workstations:** If you are installing a workstation, go to https://rockylinux.org/alternative-images and download the appropriate KDE ISO (x86_64, version 9). (**Note:** As of July 27, 2023, when you get to the installer desktop there is a message about the KDE Connect daemon crashing immediately after boot. It can be safely ignored.)
22
+
**Workstations:** If you are installing a workstation, go to https://fedoraproject.org/kde/download/ and download the live ISO for Intel/AMD systems, which includes the installer.
81
23
82
24
**Rack computers:** If you are installing one of the rack computers, go to https://rockylinux.org/download and download the appropriate minimal ISO (x86_64, version 9).
83
25
@@ -97,7 +39,7 @@ In the box at lower left, fill in the machine name (i.e. ``exao1`` for AOC, ``ex
97
39
Date & Time
98
40
~~~~~~~~~~~
99
41
100
-
- Timezone: America/Phoenix
42
+
- Timezone: Etc/UTC
101
43
102
44
Partitions
103
45
~~~~~~~~~~
@@ -114,104 +56,8 @@ See :doc:`migration` if you're migrating to a new OS or new drives because you'l
114
56
115
57
- On the data drives (should be 3 or more identical drives):
116
58
117
-
- All space as ``/data`` - RAID 5
118
-
119
-
Detailed steps
120
-
^^^^^^^^^^^^^^
121
-
122
-
- *If this is a reinstall:*
123
-
124
-
- Click on the arrow next to “CentOS Linux…” to expand the list of
125
-
existing partitions.
126
-
- Click one to select and click the ``-`` button at the bottom of
127
-
the list
128
-
- Check the box saying
129
-
``Delete all filesystems which are only used by CentOS Linux ...``
130
-
and confirm
131
-
132
-
- Choose partitioning scheme = Standard Partition in drop down menu
133
-
- Then press ``+`` button:
134
-
135
-
- Mount Point: ``/boot``
136
-
- Desired Capacity: ``1 GiB``
137
-
- Now press ``Modify``
138
-
139
-
- Select the 2x 500 GB O/S drives (Ctrl-click)
140
-
- Press select
141
-
142
-
- Device Type: ``RAID - RAID 1``
143
-
- File System: ``XFS``
144
-
145
-
- Press ``Update Settings``
146
-
- Then press ``+`` button:
147
-
148
-
- Mount Point: swap
149
-
- Desired Capacity: 16 GiB
150
-
- Now press ``Modify``
151
-
152
-
- Select the 2 500 GB O/S drives (Ctrl-click)
153
-
- Press select
154
-
155
-
- Device Type: ``RAID - RAID 1``
156
-
- File System: ``XFS``
157
-
- Press ``Update Settings``
158
-
159
-
- Then press ``+`` button:
160
-
161
-
- Mount Point: ``/``
162
-
- Desired Capacity: **blank**
163
-
- Now press ``Modify``
164
-
165
-
- Select the 2x 500 GB O/S drives (Ctrl-click)
166
-
- Press select
167
-
168
-
- Device Type: ``RAID - RAID 1``
169
-
- File System: ``XFS``
170
-
- Change Desired Capacity to **blank** (again)
171
-
- Press Update Settings
172
-
173
-
- should be using all available space for ``/``
174
-
175
-
- Then press ``+`` button:
176
-
177
-
- Mount Point: ``/data``
178
-
- Desired Capacity: **blank**
179
-
- Now press ``Modify``
180
-
181
-
- Ctrl-click to select all the data drives (>500GB)
182
-
- Press select
183
-
184
-
- Device Type: ``RAID - RAID 5``
185
-
- File System: ``XFS``
186
-
- Change Desired Capacity to **blank** (again)
187
-
- Press Update Settings
188
-
189
-
- Should now have the full capacity for RAID 5 (N-1)
190
-
191
-
If you are prompted for a location to install the UEFI boot loader, you
192
-
have somehow booted in UEFI mode instead of Legacy Boot / BIOS mode.
193
-
(This has been observed booting from a liveUSB, despite UEFI boot being
194
-
disabled in BIOS, but it goes away after reordering boot options in the
195
-
BIOS interface and attempting to boot again.)
196
-
197
-
Software
198
-
~~~~~~~~
199
-
200
-
**ICC/RTC:**
201
-
202
-
From the list on the Left:
203
-
204
-
- Select “Minimal install”
205
-
206
-
**AOC:**
207
-
208
-
From the list on the Left:
209
-
210
-
- Select “KDE Plasma Workspaces”
211
-
212
-
From the list on the right:
213
-
214
-
- Select “Development Tools”
59
+
- All space as ``/data`` - RAID 5 **only ICC/RTC**
60
+
- All space as ``/home`` - RAID 5 **only AOC**
215
61
216
62
Begin the installation
217
63
~~~~~~~~~~~~~~~~~~~~~~
@@ -254,11 +100,11 @@ takes some time for the initial synchronization of the drives. (Like,
254
100
Configure network interface naming
255
101
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
256
102
257
-
SystemD, udev, and Dell have conspired to implement something called
103
+
SystemDand udev have conspired to implement something called
258
104
“predictable network interface names” that could more accurately be
259
105
called “unpredictable network interface names”.
260
106
261
-
**Rocky 9.2:**
107
+
**Rocky 9 and Fedora 42:**
262
108
263
109
The old way seems to have gone, but there are now ""`SystemD Link Files <https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/configuring_and_managing_networking/consistent-network-interface-device-naming_configuring-and-managing-networking#assigning-additional-names-to-network-interface-using-systemd-link-files_consistent-network-interface-device-naming>`_"?
264
110
@@ -373,29 +219,29 @@ You should also trust the `tailscale0` interface in the firewall::
We should be able to boot with zero of the drives in the ``/data`` array
380
-
without systemd dropping to a recovery prompt.
381
-
382
-
Edit ``/etc/fstab``, and on the line for ``/data`` replace ``defaults``
383
-
with the options ``noauto,x-systemd.automount``.
384
-
385
222
Setup ssh
386
223
---------
387
224
388
225
- For setup, you should add your public key to the ``/home/xdev/.ssh/authorized_keys`` file, and
389
-
make sure you can log in (as ``xdev``) with it without requiring a password.
226
+
make sure you can log in (as ``xdev``) without being prompted for a password.
390
227
391
228
- Now configure ``sshd`` to require key-based authentication. Do this by creating a file with ``sudo vim /etc/ssh/sshd_config.d/disable_password.conf``::
392
229
393
230
PasswordAuthentication no
394
231
395
232
- And finally, reload the sshd ``systemctl reload sshd``
396
233
397
-
Setup network attached storage (NAS)
398
-
------------------------------------
234
+
Configure ``/data`` array options (RTC and ICC only)
Copy file name to clipboardExpand all lines: compute/user_auth.rst
+14-1Lines changed: 14 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,6 @@ Any users who have previously logged in will be able to log in with their cached
53
53
54
54
Users whose accounts are removed **may still be able to access the servers** until their credentials expire from that server's cache. To expire all cache entries immediately, use ``sss_cache -E``.
55
55
56
-
57
56
Giving people and computers access to secrets
58
57
---------------------------------------------
59
58
@@ -111,6 +110,8 @@ That will look like this::
111
110
112
111
5. Commit and push your changes to GitHub.
113
112
113
+
.. _add_a_server:
114
+
114
115
Updating secrets repository to add a server
115
116
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
116
117
@@ -137,3 +138,15 @@ After the secret files have been updated, you still need to deploy them to the n
137
138
138
139
5. Commit and push your changes to GitHub.
139
140
141
+
.. _new_computer_setup:
142
+
143
+
New computer setup
144
+
------------------
145
+
146
+
When you have just finished the mostly-automated provisioning, you have a computer with two user accounts: ``xdev`` and ``xsup``. To enable login with MagAO-X accounts, you will need to:
147
+
148
+
1. Get the newly-generated public key from ``/etc/ssh/ssh_host_ed25519_key.pub`` and follow :ref:`add_a_server`
149
+
2. Run the ``install_sssd.sh`` script from https://github.com/magao-x/magao-x-setup/blob/main/steps/install_sssd.sh
150
+
3. Open up a root terminal (``sudo -i``) and keep it around in case something breaks in the next step
151
+
4. Add the necessary symlink to ``hush-hush/deploy-local.d/`` and run ``deploy.sh xdev@$NEW_COMPUTER_HOSTNAME``
152
+
5. Verify you can now log in with your MagAO-X account and the appropriate groups are applied and SSH authorized keys are accepted
0 commit comments