Skip to content

Commit

Permalink
Changed yum to dnf for consistency. Swapped around some libs.
Browse files Browse the repository at this point in the history
added qt5-devel. dunno if needed.
  • Loading branch information
CallumWalley authored Oct 27, 2023
1 parent d34b629 commit ff9f70a
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 31 deletions.
20 changes: 5 additions & 15 deletions sif/rocky8vdt.def
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,15 @@ From: ghcr.io/nesi/nesi-virtual-desktops/rocky8vis:latest

systemctl set-default graphical.target

yum -y install epel-release
yum -y install dnf-plugins-core
yum -y install glibc-langpack-en
dnf -y install dnf-plugins-core
dnf -y install glibc-langpack-en

# ANSYS DEPS
#yum -y install alsa-lib at-spi2-atk at-spi2-core atk avahi-libs bzip2-libs cyrus-sasl-lib elfutils-libelf elfutils-libs

yum -y groupinstall "Xfce"
yum -y install xfce4-terminal # not in epel for some reason?
yum -y install gnome-terminal # Good backup terminal.

yum -y install libXp # For ANSYS EM
yum -y install libX11
yum -y install libXext

yum -y install mesa-libGL
yum -y install mesa-libGL-devel
yum -y install mesa-libGLU
yum -y install mesa-libGLU-devel
dnf -y groupinstall "Xfce"
dnf -y install xfce4-terminal # not in epel for some reason?
dnf -y install gnome-terminal # Good backup terminal.

# Non essential stuff below.
set +e
Expand Down
44 changes: 28 additions & 16 deletions sif/rocky8vis.def
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,42 @@ Bootstrap: oras
From: ghcr.io/nesi/nesi-virtual-desktops/rocky8:latest

%post

dnf -y install epel-release

dnf -y install libXp # For ANSYS EM
dnf -y install libX11
dnf -y install libXext

dnf -y install qt5-devel

dnf -y install mesa-libGL
dnf -y install mesa-libGL-devel
dnf -y install mesa-libGLU
dnf -y install mesa-libGLU-devel

dnf config-manager --set-enabled powertools
dnf -y copr enable stenstorp/lightdm
dnf -y --setopt=group_package_types="mandatory" groupinstall "xfce" # Most default is trash.
dnf -y install lightdm
dnf -y install slurm-gui

wget -q https://sourceforge.net/projects/virtualgl/files/2.6.5/VirtualGL-2.6.5.x86_64.rpm
yum -y install VirtualGL-2.6.5.x86_64.rpm
dnf -y install VirtualGL-2.6.5.x86_64.rpm
rm -f VirtualGL-2.6.5.x86_64.rpm

TURBOVNC_VERSION=2.2.4
wget https://sourceforge.net/projects/turbovnc/files/${TURBOVNC_VERSION}/turbovnc-${TURBOVNC_VERSION}.x86_64.rpm -q
yum install -y turbovnc-${TURBOVNC_VERSION}.x86_64.rpm
dnf install -y turbovnc-${TURBOVNC_VERSION}.x86_64.rpm
rm -f turbovnc-${TURBOVNC_VERSION}.x86_64.rpm

# Websockify
mkdir -p /opt/websockify
wget https://github.com/novnc/websockify/archive/master.tar.gz -q -O - | tar xzf - -C /opt/websockify --strip-components=1

# noVNC
mkdir -p /opt/noVNC
#git clone https://github.com/novnc/noVNC/ /opt/noVNC
# Optional. Adds better copy paste support
git clone https://github.com/juanjoDiaz/noVNC.git /opt/noVNC
echo "<meta http-equiv=\"refresh\" content=\"0; URL='vnc.html'\"/>" > /opt/noVNC/index.html

dnf -y install epel-release

dnf config-manager --set-enabled powertools
dnf -y copr enable stenstorp/lightdm
dnf -y --setopt=group_package_types="mandatory" groupinstall "xfce" # Most default is trash.
dnf -y install lightdm
dnf -y install slurm-gui
# noVNC
mkdir -p /opt/noVNC
#git clone https://github.com/novnc/noVNC/ /opt/noVNC
# Optional. Adds better copy paste support
git clone https://github.com/juanjoDiaz/noVNC.git /opt/noVNC
echo "<meta http-equiv=\"refresh\" content=\"0; URL='vnc.html'\"/>" > /opt/noVNC/index.html

0 comments on commit ff9f70a

Please sign in to comment.