mirror of
https://github.com/kasmtech/workspaces-images.git
synced 2024-11-24 17:13:10 +01:00
Merge branch 'feature/KASM-4027-rhel-9-fixes' into 'develop'
KASM-4027 rhel 9 desktop image Closes KASM-4027 See merge request kasm-technologies/internal/workspaces-images!206
This commit is contained in:
commit
95b8c34a91
@ -517,6 +517,19 @@ multiImages:
|
|||||||
- src/ubuntu/install/cleanup/**
|
- src/ubuntu/install/cleanup/**
|
||||||
- src/ubuntu/install/chromium/**
|
- src/ubuntu/install/chromium/**
|
||||||
- src/ubuntu/install/slack/**
|
- src/ubuntu/install/slack/**
|
||||||
|
- name: rhel-9-desktop
|
||||||
|
singleapp: false
|
||||||
|
base: core-rhel-9
|
||||||
|
dockerfile: dockerfile-kasm-rhel-9-desktop
|
||||||
|
changeFiles:
|
||||||
|
- dockerfile-kasm-rhel-9-desktop
|
||||||
|
- src/oracle/install/**
|
||||||
|
- src/ubuntu/install/thunderbird/**
|
||||||
|
- src/ubuntu/install/remmina/**
|
||||||
|
- src/ubuntu/install/firefox/**
|
||||||
|
- src/ubuntu/install/cleanup/**
|
||||||
|
- src/ubuntu/install/chromium/**
|
||||||
|
- src/ubuntu/install/slack/**
|
||||||
- name: parrotos-6-desktop
|
- name: parrotos-6-desktop
|
||||||
singleapp: false
|
singleapp: false
|
||||||
base: core-parrotos-6
|
base: core-parrotos-6
|
||||||
|
55
dockerfile-kasm-rhel-9-desktop
Normal file
55
dockerfile-kasm-rhel-9-desktop
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
ARG BASE_TAG="develop"
|
||||||
|
ARG BASE_IMAGE="core-rhel-9"
|
||||||
|
FROM kasmweb/$BASE_IMAGE:$BASE_TAG
|
||||||
|
|
||||||
|
USER root
|
||||||
|
|
||||||
|
ENV DISTRO=oracle9
|
||||||
|
ENV HOME /home/kasm-default-profile
|
||||||
|
ENV STARTUPDIR /dockerstartup
|
||||||
|
WORKDIR $HOME
|
||||||
|
|
||||||
|
### Envrionment config
|
||||||
|
ENV SKIP_CLEAN=true \
|
||||||
|
KASM_RX_HOME=$STARTUPDIR/kasmrx \
|
||||||
|
DONT_PROMPT_WSL_INSTALL="No_Prompt_please" \
|
||||||
|
INST_DIR=$STARTUPDIR/install \
|
||||||
|
INST_SCRIPTS="/oracle/install/tools/install_tools_deluxe.sh \
|
||||||
|
/oracle/install/misc/install_tools.sh \
|
||||||
|
/ubuntu/install/chromium/install_chromium.sh \
|
||||||
|
/ubuntu/install/firefox/install_firefox.sh \
|
||||||
|
/oracle/install/sublime_text/install_sublime_text.sh \
|
||||||
|
/oracle/install/vs_code/install_vs_code.sh \
|
||||||
|
/ubuntu/install/remmina/install_remmina.sh \
|
||||||
|
/oracle/install/only_office/install_only_office.sh \
|
||||||
|
/oracle/install/gimp/install_gimp.sh \
|
||||||
|
/oracle/install/zoom/install_zoom.sh \
|
||||||
|
/oracle/install/obs/install_obs.sh \
|
||||||
|
/oracle/install/ansible/install_ansible.sh \
|
||||||
|
/oracle/install/terraform/install_terraform.sh \
|
||||||
|
/oracle/install/telegram/install_telegram.sh \
|
||||||
|
/ubuntu/install/thunderbird/install_thunderbird.sh \
|
||||||
|
/ubuntu/install/slack/install_slack.sh \
|
||||||
|
/ubuntu/install/cleanup/cleanup.sh"
|
||||||
|
|
||||||
|
# Copy install scripts
|
||||||
|
COPY ./src/ $INST_DIR
|
||||||
|
|
||||||
|
# Run installations
|
||||||
|
RUN \
|
||||||
|
for SCRIPT in $INST_SCRIPTS; do \
|
||||||
|
bash ${INST_DIR}${SCRIPT} || exit 1; \
|
||||||
|
done && \
|
||||||
|
$STARTUPDIR/set_user_permission.sh $HOME && \
|
||||||
|
rm -f /etc/X11/xinit/Xclients && \
|
||||||
|
chown 1000:0 $HOME && \
|
||||||
|
mkdir -p /home/kasm-user && \
|
||||||
|
chown -R 1000:0 /home/kasm-user && \
|
||||||
|
rm -Rf ${INST_DIR}
|
||||||
|
|
||||||
|
# Userspace Runtime
|
||||||
|
ENV HOME /home/kasm-user
|
||||||
|
WORKDIR $HOME
|
||||||
|
USER 1000
|
||||||
|
|
||||||
|
CMD ["--tail-log"]
|
7
docs/rhel-9-desktop/README.md
Normal file
7
docs/rhel-9-desktop/README.md
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# About This Image
|
||||||
|
|
||||||
|
This Image contains a browser-accessible Red Hat Linux 9 Desktop with various productivity and development apps installed.
|
||||||
|
|
||||||
|
![Screenshot][Image_Screenshot]
|
||||||
|
|
||||||
|
[Image_Screenshot]: https://info.kasmweb.com/hubfs/dockerhub/rhel-9-desktop.png "Image Screenshot"
|
9
docs/rhel-9-desktop/demo.txt
Normal file
9
docs/rhel-9-desktop/demo.txt
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# Live Demo
|
||||||
|
|
||||||
|
<a href="https://app.kasmweb.com/#/cast/6708319219" target="_blank"><img src="https://info.kasmweb.com/hubfs/dockerhub/GIFs/ubuntu-jammy-desktop.gif" width="640" height="360"></a>
|
||||||
|
|
||||||
|
**Launch a real-time demo in a new browser window:** <a href="https://app.kasmweb.com/#/cast/6708319219" target="_blank">Live Demo</a>.
|
||||||
|
|
||||||
|
<a href="https://app.kasmweb.com/#/cast/6708319219" target="_blank"><img src="https://5856039.fs1.hubspotusercontent-na1.net/hub/5856039/hubfs/dockerhub/casting-buttons/UbuntuJammyDesktop.png" width="300" height="104"></a>
|
||||||
|
|
||||||
|
∗*Note: Demo is limited to 3 minutes and has upload/downloads restricted for security purposes.*
|
1
docs/rhel-9-desktop/description.txt
Normal file
1
docs/rhel-9-desktop/description.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
Red Hat Linux 9 desktop for Kasm Workspaces
|
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|almalinux9|almalinux8|fedora39|fedora40) ]]; then
|
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|fedora39|fedora40) ]]; then
|
||||||
dnf install -y ansible
|
dnf install -y ansible
|
||||||
if [ -z ${SKIP_CLEAN+x} ]; then
|
if [ -z ${SKIP_CLEAN+x} ]; then
|
||||||
dnf clean all
|
dnf clean all
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -ex
|
set -ex
|
||||||
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|almalinux9|almalinux8|fedora39|fedora40) ]]; then
|
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|fedora39|fedora40) ]]; then
|
||||||
dnf install -y gimp
|
dnf install -y gimp
|
||||||
if [ -z ${SKIP_CLEAN+x} ]; then
|
if [ -z ${SKIP_CLEAN+x} ]; then
|
||||||
dnf clean all
|
dnf clean all
|
||||||
|
@ -7,7 +7,7 @@ if [ "$ARCH" == "amd64" ] ; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|almalinux9|almalinux8|fedora39|fedora40) ]]; then
|
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|fedora39|fedora40) ]]; then
|
||||||
dnf install -y \
|
dnf install -y \
|
||||||
libreoffice-core \
|
libreoffice-core \
|
||||||
libreoffice-writer \
|
libreoffice-writer \
|
||||||
|
@ -8,7 +8,7 @@ if [ "$ARCH" == "arm64" ] ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
curl -L -o only_office.rpm "https://download.onlyoffice.com/install/desktop/editors/linux/onlyoffice-desktopeditors.$(arch).rpm"
|
curl -L -o only_office.rpm "https://download.onlyoffice.com/install/desktop/editors/linux/onlyoffice-desktopeditors.$(arch).rpm"
|
||||||
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|almalinux9|almalinux8|fedora39|fedora40) ]]; then
|
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|fedora39|fedora40) ]]; then
|
||||||
dnf localinstall -y only_office.rpm
|
dnf localinstall -y only_office.rpm
|
||||||
if [ -z ${SKIP_CLEAN+x} ]; then
|
if [ -z ${SKIP_CLEAN+x} ]; then
|
||||||
dnf clean all
|
dnf clean all
|
||||||
|
@ -21,7 +21,7 @@ version=4.12.2
|
|||||||
|
|
||||||
# This path may not be accurate once arm64 support arrives. Specifically I don't know if it will still be under x64
|
# This path may not be accurate once arm64 support arrives. Specifically I don't know if it will still be under x64
|
||||||
wget -q https://downloads.slack-edge.com/releases/linux/${version}/prod/x64/slack-${version}-0.1.fc21.x86_64.rpm -O slack.rpm
|
wget -q https://downloads.slack-edge.com/releases/linux/${version}/prod/x64/slack-${version}-0.1.fc21.x86_64.rpm -O slack.rpm
|
||||||
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|almalinux9|almalinux8|fedora39|fedora40) ]]; then
|
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|fedora39|fedora40) ]]; then
|
||||||
dnf localinstall -y slack.rpm
|
dnf localinstall -y slack.rpm
|
||||||
if [ -z ${SKIP_CLEAN+x} ]; then
|
if [ -z ${SKIP_CLEAN+x} ]; then
|
||||||
dnf clean all
|
dnf clean all
|
||||||
|
@ -8,7 +8,7 @@ fi
|
|||||||
|
|
||||||
rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg
|
rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg
|
||||||
|
|
||||||
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|almalinux9|almalinux8|fedora39|fedora40) ]]; then
|
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|fedora39|fedora40) ]]; then
|
||||||
dnf config-manager --add-repo https://download.sublimetext.com/rpm/stable/$(arch)/sublime-text.repo
|
dnf config-manager --add-repo https://download.sublimetext.com/rpm/stable/$(arch)/sublime-text.repo
|
||||||
dnf install -y sublime-text
|
dnf install -y sublime-text
|
||||||
if [ -z ${SKIP_CLEAN+x} ]; then
|
if [ -z ${SKIP_CLEAN+x} ]; then
|
||||||
|
@ -8,7 +8,7 @@ if [ "${ARCH}" == "arm64" ] ; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|almalinux9|almalinux8) ]]; then
|
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8) ]]; then
|
||||||
dnf config-manager --add-repo https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo
|
dnf config-manager --add-repo https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo
|
||||||
dnf install -y terraform
|
dnf install -y terraform
|
||||||
if [ -z ${SKIP_CLEAN+x} ]; then
|
if [ -z ${SKIP_CLEAN+x} ]; then
|
||||||
|
@ -3,7 +3,7 @@ set -ex
|
|||||||
ARCH=$(arch | sed 's/aarch64/arm64/g' | sed 's/x86_64/x64/g')
|
ARCH=$(arch | sed 's/aarch64/arm64/g' | sed 's/x86_64/x64/g')
|
||||||
|
|
||||||
wget -q https://update.code.visualstudio.com/latest/linux-rpm-${ARCH}/stable -O vs_code.rpm
|
wget -q https://update.code.visualstudio.com/latest/linux-rpm-${ARCH}/stable -O vs_code.rpm
|
||||||
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|almalinux9|almalinux8|fedora39|fedora40) ]]; then
|
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|fedora39|fedora40) ]]; then
|
||||||
wget -q https://update.code.visualstudio.com/latest/linux-rpm-${ARCH}/stable -O vs_code.rpm
|
wget -q https://update.code.visualstudio.com/latest/linux-rpm-${ARCH}/stable -O vs_code.rpm
|
||||||
dnf localinstall -y vs_code.rpm
|
dnf localinstall -y vs_code.rpm
|
||||||
else
|
else
|
||||||
@ -20,7 +20,7 @@ chown 1000:1000 $HOME/Desktop/code.desktop
|
|||||||
rm vs_code.rpm
|
rm vs_code.rpm
|
||||||
|
|
||||||
# Conveniences for python development
|
# Conveniences for python development
|
||||||
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|almalinux9|almalinux8|fedora39|fedora40) ]]; then
|
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|fedora39|fedora40) ]]; then
|
||||||
dnf install -y python3-setuptools python3-virtualenv
|
dnf install -y python3-setuptools python3-virtualenv
|
||||||
if [ -z ${SKIP_CLEAN+x} ]; then
|
if [ -z ${SKIP_CLEAN+x} ]; then
|
||||||
dnf clean all
|
dnf clean all
|
||||||
|
@ -8,7 +8,7 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
wget -q https://zoom.us/client/latest/zoom_$(arch).rpm
|
wget -q https://zoom.us/client/latest/zoom_$(arch).rpm
|
||||||
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|almalinux9|almalinux8|fedora39|fedora40) ]]; then
|
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|fedora39|fedora40) ]]; then
|
||||||
dnf localinstall -y zoom_$(arch).rpm
|
dnf localinstall -y zoom_$(arch).rpm
|
||||||
if [ -z ${SKIP_CLEAN+x} ]; then
|
if [ -z ${SKIP_CLEAN+x} ]; then
|
||||||
dnf clean all
|
dnf clean all
|
||||||
|
@ -10,13 +10,13 @@ if [ "$ARCH" == "arm64" ] ; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${DISTRO}" == @(centos|oracle8|rockylinux9|rockylinux8|oracle9|almalinux9|almalinux8) ]]; then
|
if [[ "${DISTRO}" == @(centos|oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8) ]]; then
|
||||||
if [ ! -z "${CHROME_VERSION}" ]; then
|
if [ ! -z "${CHROME_VERSION}" ]; then
|
||||||
wget https://dl.google.com/linux/chrome/rpm/stable/x86_64/google-chrome-stable-${CHROME_VERSION}.x86_64.rpm -O chrome.rpm
|
wget https://dl.google.com/linux/chrome/rpm/stable/x86_64/google-chrome-stable-${CHROME_VERSION}.x86_64.rpm -O chrome.rpm
|
||||||
else
|
else
|
||||||
wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm -O chrome.rpm
|
wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm -O chrome.rpm
|
||||||
fi
|
fi
|
||||||
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|almalinux9|almalinux8) ]]; then
|
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8) ]]; then
|
||||||
dnf localinstall -y chrome.rpm
|
dnf localinstall -y chrome.rpm
|
||||||
if [ -z ${SKIP_CLEAN+x} ]; then
|
if [ -z ${SKIP_CLEAN+x} ]; then
|
||||||
dnf clean all
|
dnf clean all
|
||||||
@ -79,7 +79,7 @@ EOL
|
|||||||
chmod +x /usr/bin/google-chrome
|
chmod +x /usr/bin/google-chrome
|
||||||
cp /usr/bin/google-chrome /usr/bin/chrome
|
cp /usr/bin/google-chrome /usr/bin/chrome
|
||||||
|
|
||||||
if [[ "${DISTRO}" == @(centos|oracle8|rockylinux9|rockylinux8|oracle9|almalinux9|almalinux8|opensuse) ]]; then
|
if [[ "${DISTRO}" == @(centos|oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|opensuse) ]]; then
|
||||||
cat >> $HOME/.config/mimeapps.list <<EOF
|
cat >> $HOME/.config/mimeapps.list <<EOF
|
||||||
[Default Applications]
|
[Default Applications]
|
||||||
x-scheme-handler/http=google-chrome.desktop
|
x-scheme-handler/http=google-chrome.desktop
|
||||||
|
@ -9,7 +9,7 @@ if [[ "${DISTRO}" == @(debian|opensuse|ubuntu) ]] && [ ${ARCH} = 'amd64' ] && [
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|almalinux9|almalinux8|fedora39|fedora40) ]]; then
|
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|fedora39|fedora40) ]]; then
|
||||||
dnf install -y chromium
|
dnf install -y chromium
|
||||||
if [ -z ${SKIP_CLEAN+x} ]; then
|
if [ -z ${SKIP_CLEAN+x} ]; then
|
||||||
dnf clean all
|
dnf clean all
|
||||||
@ -117,7 +117,7 @@ if [ "${DISTRO}" != "opensuse" ] && ! grep -q "ID=debian" /etc/os-release && ! g
|
|||||||
cp /usr/bin/chromium-browser /usr/bin/chromium
|
cp /usr/bin/chromium-browser /usr/bin/chromium
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|almalinux9|almalinux8|opensuse|fedora39|fedora40) ]]; then
|
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|opensuse|fedora39|fedora40) ]]; then
|
||||||
cat >> $HOME/.config/mimeapps.list <<EOF
|
cat >> $HOME/.config/mimeapps.list <<EOF
|
||||||
[Default Applications]
|
[Default Applications]
|
||||||
x-scheme-handler/http=${REAL_BIN}.desktop
|
x-scheme-handler/http=${REAL_BIN}.desktop
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
# Distro package cleanup
|
# Distro package cleanup
|
||||||
if [[ "${DISTRO}" == @(almalinux8|almalinux9|fedora39|fedora40|oracle8|oracle9|rockylinux8|rockylinux9) ]]; then
|
if [[ "${DISTRO}" == @(almalinux8|almalinux9|fedora39|fedora40|oracle8|oracle9|rhel9|rockylinux8|rockylinux9) ]]; then
|
||||||
dnf clean all
|
dnf clean all
|
||||||
elif [ "${DISTRO}" == "opensuse" ]; then
|
elif [ "${DISTRO}" == "opensuse" ]; then
|
||||||
zypper clean --all
|
zypper clean --all
|
||||||
|
@ -13,7 +13,7 @@ set_desktop_icon() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
echo "Install Firefox"
|
echo "Install Firefox"
|
||||||
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|almalinux9|almalinux8|fedora39|fedora40) ]]; then
|
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|fedora39|fedora40) ]]; then
|
||||||
dnf install -y firefox p11-kit
|
dnf install -y firefox p11-kit
|
||||||
elif [ "${DISTRO}" == "opensuse" ]; then
|
elif [ "${DISTRO}" == "opensuse" ]; then
|
||||||
zypper install -yn p11-kit-tools MozillaFirefox
|
zypper install -yn p11-kit-tools MozillaFirefox
|
||||||
@ -70,7 +70,7 @@ for LANG in ${LANGS}; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
# Cleanup and install flash if supported
|
# Cleanup and install flash if supported
|
||||||
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|almalinux9|almalinux8|fedora39|fedora40) ]]; then
|
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|fedora39|fedora40) ]]; then
|
||||||
if [ -z ${SKIP_CLEAN+x} ]; then
|
if [ -z ${SKIP_CLEAN+x} ]; then
|
||||||
dnf clean all
|
dnf clean all
|
||||||
fi
|
fi
|
||||||
@ -97,7 +97,7 @@ else
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${DISTRO}" != @(oracle8|rockylinux9|rockylinux8|oracle9|almalinux9|almalinux8|opensuse|fedora39|fedora40) ]]; then
|
if [[ "${DISTRO}" != @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|opensuse|fedora39|fedora40) ]]; then
|
||||||
# Update firefox to utilize the system certificate store instead of the one that ships with firefox
|
# Update firefox to utilize the system certificate store instead of the one that ships with firefox
|
||||||
if grep -q "ID=debian" /etc/os-release || grep -q "ID=kali" /etc/os-release || grep -q "ID=parrot" /etc/os-release && [ "${ARCH}" == "arm64" ]; then
|
if grep -q "ID=debian" /etc/os-release || grep -q "ID=kali" /etc/os-release || grep -q "ID=parrot" /etc/os-release && [ "${ARCH}" == "arm64" ]; then
|
||||||
rm -f /usr/lib/firefox-esr/libnssckbi.so
|
rm -f /usr/lib/firefox-esr/libnssckbi.so
|
||||||
@ -108,7 +108,7 @@ if [[ "${DISTRO}" != @(oracle8|rockylinux9|rockylinux8|oracle9|almalinux9|almali
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|almalinux9|almalinux8|fedora39|fedora40) ]]; then
|
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|fedora39|fedora40) ]]; then
|
||||||
if [[ "${DISTRO}" == @(fedora39|fedora40) ]]; then
|
if [[ "${DISTRO}" == @(fedora39|fedora40) ]]; then
|
||||||
preferences_file=/usr/lib64/firefox/browser/defaults/preferences/firefox-redhat-default-prefs.js
|
preferences_file=/usr/lib64/firefox/browser/defaults/preferences/firefox-redhat-default-prefs.js
|
||||||
else
|
else
|
||||||
@ -128,7 +128,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Disabling default first run URL for Debian based images
|
# Disabling default first run URL for Debian based images
|
||||||
if [[ "${DISTRO}" != @(oracle8|rockylinux9|rockylinux8|oracle9|almalinux9|almalinux8|opensuse|fedora39|fedora40) ]]; then
|
if [[ "${DISTRO}" != @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|opensuse|fedora39|fedora40) ]]; then
|
||||||
cat >"$preferences_file" <<EOF
|
cat >"$preferences_file" <<EOF
|
||||||
pref("datareporting.policy.firstRunURL", "");
|
pref("datareporting.policy.firstRunURL", "");
|
||||||
pref("datareporting.policy.dataSubmissionEnabled", false);
|
pref("datareporting.policy.dataSubmissionEnabled", false);
|
||||||
@ -139,7 +139,7 @@ pref("browser.aboutwelcome.enabled", false);
|
|||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|almalinux9|almalinux8|opensuse|fedora39|fedora40) ]]; then
|
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|opensuse|fedora39|fedora40) ]]; then
|
||||||
# Creating a default profile
|
# Creating a default profile
|
||||||
chown -R root:root $HOME
|
chown -R root:root $HOME
|
||||||
firefox -headless -CreateProfile "kasm $HOME/.mozilla/firefox/kasm"
|
firefox -headless -CreateProfile "kasm $HOME/.mozilla/firefox/kasm"
|
||||||
@ -163,7 +163,7 @@ else
|
|||||||
firefox -headless -CreateProfile "kasm $HOME/.mozilla/firefox/kasm"
|
firefox -headless -CreateProfile "kasm $HOME/.mozilla/firefox/kasm"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|almalinux9|almalinux8|opensuse|fedora39|fedora40) ]]; then
|
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|opensuse|fedora39|fedora40) ]]; then
|
||||||
set_desktop_icon
|
set_desktop_icon
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -171,13 +171,13 @@ fi
|
|||||||
# based off the installation path. Because that path will be static for our deployments we can assume the hash
|
# based off the installation path. Because that path will be static for our deployments we can assume the hash
|
||||||
# and thus assign our profile to the default for the installation
|
# and thus assign our profile to the default for the installation
|
||||||
|
|
||||||
if [[ "${DISTRO}" != @(oracle8|rockylinux9|rockylinux8|oracle9|almalinux9|almalinux8|opensuse|fedora39|fedora40) ]]; then
|
if [[ "${DISTRO}" != @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|opensuse|fedora39|fedora40) ]]; then
|
||||||
cat >>$HOME/.mozilla/firefox/profiles.ini <<EOL
|
cat >>$HOME/.mozilla/firefox/profiles.ini <<EOL
|
||||||
[Install4F96D1932A9F858E]
|
[Install4F96D1932A9F858E]
|
||||||
Default=kasm
|
Default=kasm
|
||||||
Locked=1
|
Locked=1
|
||||||
EOL
|
EOL
|
||||||
elif [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|almalinux9|almalinux8|opensuse|fedora39|fedora40) ]]; then
|
elif [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|opensuse|fedora39|fedora40) ]]; then
|
||||||
cat >>$HOME/.mozilla/firefox/profiles.ini <<EOL
|
cat >>$HOME/.mozilla/firefox/profiles.ini <<EOL
|
||||||
[Install11457493C5A56847]
|
[Install11457493C5A56847]
|
||||||
Default=kasm
|
Default=kasm
|
||||||
@ -186,7 +186,7 @@ EOL
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Desktop Icon FIxes
|
# Desktop Icon FIxes
|
||||||
if [[ "${DISTRO}" == @(rockylinux9|oracle9|almalinux9|fedora39|fedora40) ]]; then
|
if [[ "${DISTRO}" == @(rockylinux9|oracle9|rhel9|almalinux9|fedora39|fedora40) ]]; then
|
||||||
sed -i 's#Icon=/usr/lib/firefox#Icon=/usr/lib64/firefox#g' $HOME/Desktop/firefox.desktop
|
sed -i 's#Icon=/usr/lib/firefox#Icon=/usr/lib64/firefox#g' $HOME/Desktop/firefox.desktop
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ apt-get install -y \
|
|||||||
faraday \
|
faraday \
|
||||||
fern-wifi-cracker \
|
fern-wifi-cracker \
|
||||||
guymager \
|
guymager \
|
||||||
hydra-gtk \
|
hydra \
|
||||||
legion \
|
legion \
|
||||||
ophcrack \
|
ophcrack \
|
||||||
ophcrack-cli \
|
ophcrack-cli \
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -ex
|
set -ex
|
||||||
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|almalinux9|almalinux8) ]]; then
|
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8) ]]; then
|
||||||
dnf install -y nextcloud-client
|
dnf install -y nextcloud-client
|
||||||
if [ -z ${SKIP_CLEAN+x} ]; then
|
if [ -z ${SKIP_CLEAN+x} ]; then
|
||||||
dnf clean all
|
dnf clean all
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
if [[ "${DISTRO}" == @(oracle8|oracle9|rockylinux9|rockylinux8|almalinux9|almalinux8|fedora39|fedora40) ]]; then
|
if [[ "${DISTRO}" == @(oracle8|oracle9|rhel9|rockylinux9|rockylinux8|almalinux9|almalinux8|fedora39|fedora40) ]]; then
|
||||||
if [[ "${DISTRO}" == @(oracle8|rockylinux8|almalinux8) ]]; then
|
if [[ "${DISTRO}" == @(oracle8|rockylinux8|almalinux8) ]]; then
|
||||||
dnf install -y remmina remmina-plugins-rdp remmina-plugins-secret remmina-plugins-spice xdotool
|
dnf install -y remmina remmina-plugins-rdp remmina-plugins-secret remmina-plugins-spice xdotool
|
||||||
if [ -z ${SKIP_CLEAN+x} ]; then
|
if [ -z ${SKIP_CLEAN+x} ]; then
|
||||||
dnf clean all
|
dnf clean all
|
||||||
fi
|
fi
|
||||||
elif [[ "${DISTRO}" == @(rockylinux9|oracle9|almalinux9|fedora39|fedora40) ]]; then
|
elif [[ "${DISTRO}" == @(rockylinux9|oracle9|rhel9|almalinux9|fedora39|fedora40) ]]; then
|
||||||
dnf install -y remmina remmina-plugins-rdp remmina-plugins-secret xdotool
|
dnf install -y remmina remmina-plugins-rdp remmina-plugins-secret xdotool
|
||||||
if [ -z ${SKIP_CLEAN+x} ]; then
|
if [ -z ${SKIP_CLEAN+x} ]; then
|
||||||
dnf clean all
|
dnf clean all
|
||||||
|
@ -12,11 +12,11 @@ version=$(curl -q https://slack.com/downloads/linux | grep page-downloads__hero_
|
|||||||
echo Detected slack version $version
|
echo Detected slack version $version
|
||||||
|
|
||||||
|
|
||||||
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|almalinux9|almalinux8|fedora39|fedora40|opensuse) ]]; then
|
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|fedora39|fedora40|opensuse) ]]; then
|
||||||
|
|
||||||
wget -q https://downloads.slack-edge.com/desktop-releases/linux/x64/${version}/slack-${version}-0.1.el8.x86_64.rpm
|
wget -q https://downloads.slack-edge.com/desktop-releases/linux/x64/${version}/slack-${version}-0.1.el8.x86_64.rpm
|
||||||
|
|
||||||
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|almalinux9|almalinux8|fedora39|fedora40) ]]; then
|
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|fedora39|fedora40) ]]; then
|
||||||
dnf localinstall -y slack-${version}-0.1.el8.x86_64.rpm
|
dnf localinstall -y slack-${version}-0.1.el8.x86_64.rpm
|
||||||
if [ -z ${SKIP_CLEAN+x} ]; then
|
if [ -z ${SKIP_CLEAN+x} ]; then
|
||||||
dnf clean all
|
dnf clean all
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
# Install
|
# Install
|
||||||
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|almalinux9|almalinux8|fedora39|fedora40) ]]; then
|
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|fedora39|fedora40) ]]; then
|
||||||
dnf install -y thunderbird
|
dnf install -y thunderbird
|
||||||
if [ -z ${SKIP_CLEAN+x} ]; then
|
if [ -z ${SKIP_CLEAN+x} ]; then
|
||||||
dnf clean all
|
dnf clean all
|
||||||
|
@ -12,7 +12,7 @@ apt-get install -y \
|
|||||||
faraday \
|
faraday \
|
||||||
fern-wifi-cracker \
|
fern-wifi-cracker \
|
||||||
guymager \
|
guymager \
|
||||||
hydra-gtk \
|
hydra \
|
||||||
legion \
|
legion \
|
||||||
ophcrack \
|
ophcrack \
|
||||||
ophcrack-cli \
|
ophcrack-cli \
|
||||||
|
@ -19,7 +19,7 @@ elif [ "${DISTRO}" == "alpine" ]; then
|
|||||||
wireguard-tools \
|
wireguard-tools \
|
||||||
zenity \
|
zenity \
|
||||||
jq
|
jq
|
||||||
elif [[ "${DISTRO}" == @(oracle8|oracle9|rockylinux8|rockylinux9|almalinux8|almalinux9) ]] ; then
|
elif [[ "${DISTRO}" == @(oracle8|oracle9|rhel9|rockylinux8|rockylinux9|almalinux8|almalinux9) ]] ; then
|
||||||
dnf install -y epel-release
|
dnf install -y epel-release
|
||||||
dnf install -y \
|
dnf install -y \
|
||||||
openvpn \
|
openvpn \
|
||||||
|
Loading…
Reference in New Issue
Block a user