mirror of
https://github.com/kasmtech/workspaces-images.git
synced 2026-01-23 02:25:16 +00:00
add fedora-41-desktop image
This commit is contained in:
parent
59aa935dc2
commit
ae7483bf69
18 changed files with 120 additions and 30 deletions
|
|
@ -545,6 +545,20 @@ 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: fedora-41-desktop
|
||||||
|
runset: set-a
|
||||||
|
singleapp: false
|
||||||
|
base: core-fedora-41
|
||||||
|
dockerfile: dockerfile-kasm-fedora-41-desktop
|
||||||
|
changeFiles:
|
||||||
|
- dockerfile-kasm-fedora-41-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: kali-rolling-desktop
|
- name: kali-rolling-desktop
|
||||||
runset: set-b
|
runset: set-b
|
||||||
singleapp: false
|
singleapp: false
|
||||||
|
|
|
||||||
53
dockerfile-kasm-fedora-41-desktop
Normal file
53
dockerfile-kasm-fedora-41-desktop
Normal file
|
|
@ -0,0 +1,53 @@
|
||||||
|
ARG BASE_TAG="develop"
|
||||||
|
ARG BASE_IMAGE="core-fedora-41"
|
||||||
|
FROM kasmweb/$BASE_IMAGE:$BASE_TAG
|
||||||
|
|
||||||
|
USER root
|
||||||
|
|
||||||
|
ENV DISTRO=fedora41
|
||||||
|
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/ansible/install_ansible.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"]
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|fedora39|fedora40) ]]; then
|
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|fedora39|fedora40|fedora41) ]]; 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|rhel9|almalinux9|almalinux8|fedora39|fedora40) ]]; then
|
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|fedora39|fedora40|fedora41) ]]; 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|rhel9|almalinux9|almalinux8|fedora39|fedora40) ]]; then
|
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|fedora39|fedora40|fedora41) ]]; then
|
||||||
dnf install -y \
|
dnf install -y \
|
||||||
libreoffice-core \
|
libreoffice-core \
|
||||||
libreoffice-writer \
|
libreoffice-writer \
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,11 @@ if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|
|
||||||
if [ -z ${SKIP_CLEAN+x} ]; then
|
if [ -z ${SKIP_CLEAN+x} ]; then
|
||||||
dnf clean all
|
dnf clean all
|
||||||
fi
|
fi
|
||||||
|
elif [[ "${DISTRO}" == "fedora41" ]]; then
|
||||||
|
dnf install -y only_office.rpm
|
||||||
|
if [ -z ${SKIP_CLEAN+x} ]; then
|
||||||
|
dnf clean all
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
yum localinstall -y only_office.rpm
|
yum localinstall -y only_office.rpm
|
||||||
if [ -z ${SKIP_CLEAN+x} ]; then
|
if [ -z ${SKIP_CLEAN+x} ]; then
|
||||||
|
|
|
||||||
|
|
@ -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|rhel9|almalinux9|almalinux8|fedora39|fedora40) ]]; then
|
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|fedora39|fedora40|fedora41) ]]; 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,8 +8,12 @@ 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|rhel9|almalinux9|almalinux8|fedora39|fedora40) ]]; then
|
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|fedora39|fedora40|fedora41) ]]; then
|
||||||
dnf config-manager --add-repo https://download.sublimetext.com/rpm/stable/$(arch)/sublime-text.repo
|
if [[ "${DISTRO}" == "fedora41" ]]; then
|
||||||
|
dnf config-manager addrepo --from-repofile=https://download.sublimetext.com/rpm/stable/$(arch)/sublime-text.repo
|
||||||
|
else
|
||||||
|
dnf config-manager --add-repo https://download.sublimetext.com/rpm/stable/$(arch)/sublime-text.repo
|
||||||
|
fi
|
||||||
dnf install -y sublime-text
|
dnf install -y sublime-text
|
||||||
if [ -z ${SKIP_CLEAN+x} ]; then
|
if [ -z ${SKIP_CLEAN+x} ]; then
|
||||||
dnf clean all
|
dnf clean all
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|
|
||||||
if [ -z ${SKIP_CLEAN+x} ]; then
|
if [ -z ${SKIP_CLEAN+x} ]; then
|
||||||
dnf clean all
|
dnf clean all
|
||||||
fi
|
fi
|
||||||
elif [[ "${DISTRO}" == @(fedora40) ]]; then
|
elif [[ "${DISTRO}" == @(fedora40|fedora41) ]]; then
|
||||||
dnf config-manager --add-repo https://rpm.releases.hashicorp.com/fedora/hashicorp.repo
|
dnf config-manager --add-repo https://rpm.releases.hashicorp.com/fedora/hashicorp.repo
|
||||||
# use fedora40 hashicorp packages for terraform
|
# use fedora40 hashicorp packages for terraform
|
||||||
sed -i 's/$releasever/40/g' /etc/yum.repos.d/hashicorp.repo
|
sed -i 's/$releasever/40/g' /etc/yum.repos.d/hashicorp.repo
|
||||||
|
|
|
||||||
|
|
@ -9,9 +9,13 @@ if [[ "${ARCH}" == "arm64" && "${DISTRO}" == @(oracle8|rockylinux8|almalinux8) ]
|
||||||
fi
|
fi
|
||||||
|
|
||||||
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|rhel9|almalinux9|almalinux8|fedora39|fedora40) ]]; then
|
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|fedora39|fedora40|fedora41) ]]; 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
|
if [[ "${DISTRO}" == "fedora41" ]]; then
|
||||||
|
dnf install -y vs_code.rpm
|
||||||
|
else
|
||||||
|
dnf localinstall -y vs_code.rpm
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
wget -q https://packages.microsoft.com/yumrepos/vscode/code-1.85.1-1702462241.el7.x86_64.rpm -O vs_code.rpm
|
wget -q https://packages.microsoft.com/yumrepos/vscode/code-1.85.1-1702462241.el7.x86_64.rpm -O vs_code.rpm
|
||||||
yum localinstall -y vs_code.rpm
|
yum localinstall -y vs_code.rpm
|
||||||
|
|
@ -26,7 +30,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|rhel9|almalinux9|almalinux8|fedora39|fedora40) ]]; then
|
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|fedora39|fedora40|fedora41) ]]; 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
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,11 @@ if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|
|
||||||
if [ -z ${SKIP_CLEAN+x} ]; then
|
if [ -z ${SKIP_CLEAN+x} ]; then
|
||||||
dnf clean all
|
dnf clean all
|
||||||
fi
|
fi
|
||||||
|
elif [[ "${DISTRO}" == "fedora41" ]]; then
|
||||||
|
dnf install -y zoom_$(arch).rpm
|
||||||
|
if [ -z ${SKIP_CLEAN+x} ]; then
|
||||||
|
dnf clean all
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
yum localinstall -y zoom_$(arch).rpm
|
yum localinstall -y zoom_$(arch).rpm
|
||||||
if [ -z ${SKIP_CLEAN+x} ]; then
|
if [ -z ${SKIP_CLEAN+x} ]; then
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ if [[ "${DISTRO}" == @(debian|opensuse|ubuntu) ]] && [ ${ARCH} = 'amd64' ] && [
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|fedora39|fedora40) ]]; then
|
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|fedora39|fedora40|fedora41) ]]; 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
|
||||||
|
|
@ -110,7 +110,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|rhel9|almalinux9|almalinux8|opensuse|fedora39|fedora40) ]]; then
|
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|opensuse|fedora39|fedora40|fedora41) ]]; 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|rhel9|rockylinux8|rockylinux9) ]]; then
|
if [[ "${DISTRO}" == @(almalinux8|almalinux9|fedora39|fedora40|fedora41|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|rhel9|almalinux9|almalinux8|fedora39|fedora40) ]]; then
|
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|fedora39|fedora40|fedora41) ]]; 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
|
||||||
|
|
@ -78,7 +78,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|rhel9|almalinux9|almalinux8|fedora39|fedora40) ]]; then
|
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|fedora39|fedora40|fedora41) ]]; then
|
||||||
if [ -z ${SKIP_CLEAN+x} ]; then
|
if [ -z ${SKIP_CLEAN+x} ]; then
|
||||||
dnf clean all
|
dnf clean all
|
||||||
fi
|
fi
|
||||||
|
|
@ -105,7 +105,7 @@ else
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${DISTRO}" != @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|opensuse|fedora39|fedora40) ]]; then
|
if [[ "${DISTRO}" != @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|opensuse|fedora39|fedora40|fedora41) ]]; 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
|
||||||
|
|
@ -119,8 +119,8 @@ if [[ "${DISTRO}" != @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|fedora39|fedora40) ]]; then
|
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|fedora39|fedora40|fedora41) ]]; then
|
||||||
if [[ "${DISTRO}" == @(fedora39|fedora40) ]]; then
|
if [[ "${DISTRO}" == @(fedora39|fedora40|fedora41) ]]; 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
|
||||||
preferences_file=/usr/lib64/firefox/browser/defaults/preferences/all-redhat.js
|
preferences_file=/usr/lib64/firefox/browser/defaults/preferences/all-redhat.js
|
||||||
|
|
@ -141,7 +141,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|rhel9|almalinux9|almalinux8|opensuse|fedora39|fedora40) ]]; then
|
if [[ "${DISTRO}" != @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|opensuse|fedora39|fedora40|fedora41) ]]; 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);
|
||||||
|
|
@ -152,7 +152,7 @@ pref("browser.aboutwelcome.enabled", false);
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|opensuse|fedora39|fedora40) ]]; then
|
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|opensuse|fedora39|fedora40|fedora41) ]]; 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"
|
||||||
|
|
@ -180,7 +180,7 @@ fi
|
||||||
echo 'user_pref("security.sandbox.warn_unprivileged_namespaces", false);' > $HOME/.mozilla/firefox/kasm/user.js
|
echo 'user_pref("security.sandbox.warn_unprivileged_namespaces", false);' > $HOME/.mozilla/firefox/kasm/user.js
|
||||||
chown 1000:1000 $HOME/.mozilla/firefox/kasm/user.js
|
chown 1000:1000 $HOME/.mozilla/firefox/kasm/user.js
|
||||||
|
|
||||||
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|opensuse|fedora39|fedora40) ]]; then
|
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|opensuse|fedora39|fedora40|fedora41) ]]; then
|
||||||
set_desktop_icon
|
set_desktop_icon
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -207,13 +207,13 @@ EOL
|
||||||
Locked=1
|
Locked=1
|
||||||
EOL
|
EOL
|
||||||
fi
|
fi
|
||||||
elif [[ "${DISTRO}" != @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|opensuse|fedora39|fedora40) ]]; then
|
elif [[ "${DISTRO}" != @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|opensuse|fedora39|fedora40|fedora41) ]]; 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|rhel9|almalinux9|almalinux8|opensuse|fedora39|fedora40) ]]; then
|
elif [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|opensuse|fedora39|fedora40|fedora41) ]]; then
|
||||||
cat >>$HOME/.mozilla/firefox/profiles.ini <<EOL
|
cat >>$HOME/.mozilla/firefox/profiles.ini <<EOL
|
||||||
[Install11457493C5A56847]
|
[Install11457493C5A56847]
|
||||||
Default=kasm
|
Default=kasm
|
||||||
|
|
@ -222,7 +222,7 @@ EOL
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Desktop Icon FIxes
|
# Desktop Icon FIxes
|
||||||
if [[ "${DISTRO}" == @(rockylinux9|oracle9|rhel9|almalinux9|fedora39|fedora40) ]]; then
|
if [[ "${DISTRO}" == @(rockylinux9|oracle9|rhel9|almalinux9|fedora39|fedora40|fedora41) ]]; 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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
if [[ "${DISTRO}" == @(oracle8|oracle9|rhel9|rockylinux9|rockylinux8|almalinux9|almalinux8|fedora39|fedora40) ]]; then
|
if [[ "${DISTRO}" == @(oracle8|oracle9|rhel9|rockylinux9|rockylinux8|almalinux9|almalinux8|fedora39|fedora40|fedora41) ]]; 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|rhel9|almalinux9|fedora39|fedora40) ]]; then
|
elif [[ "${DISTRO}" == @(rockylinux9|oracle9|rhel9|almalinux9|fedora39|fedora40|fedora41) ]]; 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,7 +12,7 @@ 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|rhel9|almalinux9|almalinux8|fedora39|fedora40|opensuse) ]]; then
|
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|fedora39|fedora40|fedora41|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
|
||||||
|
|
||||||
|
|
@ -21,6 +21,11 @@ if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|
|
||||||
if [ -z ${SKIP_CLEAN+x} ]; then
|
if [ -z ${SKIP_CLEAN+x} ]; then
|
||||||
dnf clean all
|
dnf clean all
|
||||||
fi
|
fi
|
||||||
|
elif [[ "${DISTRO}" == "fedora41" ]]; then
|
||||||
|
dnf install -y slack-${version}-0.1.el8.x86_64.rpm
|
||||||
|
if [ -z ${SKIP_CLEAN+x} ]; then
|
||||||
|
dnf clean all
|
||||||
|
fi
|
||||||
elif [[ "${DISTRO}" == "opensuse" ]]; then
|
elif [[ "${DISTRO}" == "opensuse" ]]; then
|
||||||
wget https://slack.com/gpg/slack_pubkey_20240822.gpg
|
wget https://slack.com/gpg/slack_pubkey_20240822.gpg
|
||||||
rpm --import slack_pubkey_20240822.gpg
|
rpm --import slack_pubkey_20240822.gpg
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
# Install
|
# Install
|
||||||
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|fedora39|fedora40) ]]; then
|
if [[ "${DISTRO}" == @(oracle8|rockylinux9|rockylinux8|oracle9|rhel9|almalinux9|almalinux8|fedora39|fedora40|fedora41) ]]; 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
|
||||||
|
|
@ -44,7 +44,7 @@ fi
|
||||||
if [[ "${DISTRO}" == "fedora39" ]]; then
|
if [[ "${DISTRO}" == "fedora39" ]]; then
|
||||||
cp /usr/share/applications/mozilla-thunderbird.desktop $HOME/Desktop/
|
cp /usr/share/applications/mozilla-thunderbird.desktop $HOME/Desktop/
|
||||||
chmod +x $HOME/Desktop/mozilla-thunderbird.desktop
|
chmod +x $HOME/Desktop/mozilla-thunderbird.desktop
|
||||||
elif [[ "${DISTRO}" == "fedora40" ]]; then
|
elif [[ "${DISTRO}" == @(fedora40|fedora41) ]]; then
|
||||||
cp /usr/share/applications/net.thunderbird.Thunderbird.desktop $HOME/Desktop/
|
cp /usr/share/applications/net.thunderbird.Thunderbird.desktop $HOME/Desktop/
|
||||||
chmod +x $HOME/Desktop/net.thunderbird.Thunderbird.desktop
|
chmod +x $HOME/Desktop/net.thunderbird.Thunderbird.desktop
|
||||||
elif [[ "${DISTRO}" == "opensuse" ]]; then
|
elif [[ "${DISTRO}" == "opensuse" ]]; then
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ elif [[ "${DISTRO}" == @(oracle8|oracle9|rhel9|rockylinux8|rockylinux9|almalinux
|
||||||
openvpn \
|
openvpn \
|
||||||
wireguard-tools \
|
wireguard-tools \
|
||||||
jq
|
jq
|
||||||
elif [[ "${DISTRO}" == @(fedora39|fedora40) ]] ; then
|
elif [[ "${DISTRO}" == @(fedora39|fedora40|fedora41) ]] ; then
|
||||||
dnf install -y \
|
dnf install -y \
|
||||||
openresolv \
|
openresolv \
|
||||||
openvpn \
|
openvpn \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue