---
# System prepended metadata

title: midgard.v8r.io

---

# midgard.v8r.io

## june 29 rebuild

```bash=
echo "grenade ALL=(ALL) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/grenade
sudo lvextend /dev/mapper/fedora-root -l +30%FREE -r
mkdir /home/grenade/.ssh
echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPRO2rPB5URKyMSGeMwFd9Npzl/XywJWO9F2N/xylCVm" | tee /home/grenade/.ssh/authorized_keys
echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPb24HEQ++aNFWaqVyMtIs6GotUB8R+q61XOoI2z6uMj" | tee -a /home/grenade/.ssh/authorized_keys
echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAID83JhRg/lgInWM/XwMfjaDzTMDPS5M7zuVeOm0O5Y5W" | tee -a /home/grenade/.ssh/authorized_keys
echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGILqCEkUGPF3c+riHfLtkpsSP3nw/HjQUvTs66JsZ6a" | tee -a /home/grenade/.ssh/authorized_keys

sudo dnf install https://downloads.hpe.com/pub/softlib2/software1/sc-linux-fw-ilo/p1342933511/v247528/RPMS/x86_64/firmware-ilo5-3.05-1.1.x86_64.rpm
sudo sh $(rpm -ql firmware-ilo5-3.05-1.1.x86_64 | tail -n 1)

sudo dnf install -y https://downloads.hpe.com/pub/softlib2/software1/pubsw-linux/p215998034/v109045/hponcfg-4.6.0-0.x86_64.rpm
sudo dnf install -y libxslt

echo "
<RIBCL VERSION=\"2.0\">
  <LOGIN USER_LOGIN=\"Administrator\" PASSWORD=\"password\">
    <USER_INFO MODE=\"write\">
      <MOD_USER USER_LOGIN=\"Administrator\">
        <PASSWORD value=\"password/123\"/>
      </MOD_USER>
    </USER_INFO>
  </LOGIN>
</RIBCL>
" | sudo hponcfg -i

echo "
<RIBCL VERSION=\"2.0\">
  <LOGIN USER_LOGIN=\"admin\" PASSWORD=\"password\">
    <RIB_INFO MODE=\"write\">
      <MOD_NETWORK_SETTINGS>
        <DHCP_ENABLE VALUE=\"Y\"/>
      </MOD_NETWORK_SETTINGS>
    </RIB_INFO>
  </LOGIN>
</RIBCL>
" | sudo hponcfg -i

echo "
<RIBCL VERSION=\"2.0\">
  <LOGIN USER_LOGIN=\"admin\" PASSWORD=\"password\">
    <RIB_INFO MODE=\"write\">
      <MOD_NETWORK_SETTINGS>
        <DNS_NAME value=\"${HOSTNAME%%.*}-ilo\" />
      </MOD_NETWORK_SETTINGS>
    </RIB_INFO>
  </LOGIN>
</RIBCL>
" | sudo hponcfg -i
```


#### rpm fusion (for nvidia drivers)
```bash=
sudo rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
sudo rpm -Uvh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
```

#### [install gui](https://www.linux.org/threads/how-to-install-a-specific-desktop-environment-on-fedora-38.44933)
```bash=
sudo dnf group install -y "KDE (K Desktop Environment)"
sudo systemctl set-default graphical.target
```

#### user setup and passwordless sudo

```bash=
sudo useradd --create-home -G wheel chd
#sudo usermod -aG wheel chd
sudo -u chd mkdir /home/chd/.ssh
echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICqLZ8g4OEkYREvtocms3pUgdUVIxiJ+WZHv3ZsMROZL" | sudo -u chd tee /home/chd/.ssh/authorized_keys
echo "chd ALL=(ALL) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/chd


sudo usermod -aG wheel grenade
echo "grenade ALL=(ALL) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/grenade
```

`/etc/cockpit/cockpit.conf`

```ini=
[WebService]
Origins = https://cockpit.midgard.v8r.io wss://cockpit.midgard.v8r.io
ProtocolHeader = X-Forwarded-Proto
```


#### nvidia

```bash=

sudo dnf update
sudo dnf makecache
sudo dnf install -y \
  acpid \
  akmod-nvidia \
  dkms \
  gcc \
  kernel-devel \
  kernel-headers \
  libglvnd-glx \
  libglvnd-opengl \
  libglvnd-devel \
  make \
  pipx \
  pkgconfig \
  xorg-x11-drv-nvidia-cuda

pipx install nvidia-htop
sudo reboot

nvidia-smi
watch -c nvidia-htop.py -v
watch -c nvidia-htop.py -c

```