mirror of
https://github.com/kasmtech/workspaces-core-images.git
synced 2025-06-25 22:41:47 +02:00
try removing python3
This commit is contained in:
parent
5ba3e7307b
commit
d76366154a
@ -349,10 +349,12 @@ if [[ -f $PASSWD_PATH ]]; then
|
|||||||
echo -e "\n--------- purging existing VNC password settings ---------"
|
echo -e "\n--------- purging existing VNC password settings ---------"
|
||||||
rm -f $PASSWD_PATH
|
rm -f $PASSWD_PATH
|
||||||
fi
|
fi
|
||||||
VNC_PW_HASH=$(python3 -c "import crypt; print(crypt.crypt('${VNC_PW}', '\$5\$kasm\$'));")
|
#VNC_PW_HASH=$(python3 -c "import crypt; print(crypt.crypt('${VNC_PW}', '\$5\$kasm\$'));")
|
||||||
VNC_VIEW_PW_HASH=$(python3 -c "import crypt; print(crypt.crypt('${VNC_VIEW_ONLY_PW}', '\$5\$kasm\$'));")
|
#VNC_VIEW_PW_HASH=$(python3 -c "import crypt; print(crypt.crypt('${VNC_VIEW_ONLY_PW}', '\$5\$kasm\$'));")
|
||||||
echo "kasm_user:${VNC_PW_HASH}:ow" > $PASSWD_PATH
|
#echo "kasm_user:${VNC_PW_HASH}:ow" > $PASSWD_PATH
|
||||||
echo "kasm_viewer:${VNC_VIEW_PW_HASH}:" >> $PASSWD_PATH
|
#echo "kasm_viewer:${VNC_VIEW_PW_HASH}:" >> $PASSWD_PATH
|
||||||
|
echo -e "${VNC_PW}\n${VNC_PW}\n" | kasmvncpasswd -u kasm_user -wo
|
||||||
|
echo -e "${VNC_PW}\n${VNC_PW}\n" | kasmvncpasswd -u kasm_viewer -r
|
||||||
chmod 600 $PASSWD_PATH
|
chmod 600 $PASSWD_PATH
|
||||||
|
|
||||||
|
|
||||||
|
@ -9,6 +9,9 @@ elif [[ "${DISTRO}" == @(almalinux8|almalinux9|fedora37|fedora38|oracle8|oracle9
|
|||||||
elif [ "${DISTRO}" == "opensuse" ]; then
|
elif [ "${DISTRO}" == "opensuse" ]; then
|
||||||
zypper clean --all
|
zypper clean --all
|
||||||
elif [[ "${DISTRO}" == @(debian|kali|parrotos5|ubuntu) ]]; then
|
elif [[ "${DISTRO}" == @(debian|kali|parrotos5|ubuntu) ]]; then
|
||||||
|
# Uninstall unneccesary/vulnerable packages
|
||||||
|
apt remove -y ipp-usb #KASM-5266
|
||||||
|
|
||||||
apt-get autoremove -y
|
apt-get autoremove -y
|
||||||
apt-get autoclean -y
|
apt-get autoclean -y
|
||||||
fi
|
fi
|
||||||
|
@ -157,7 +157,6 @@ elif [[ "${DISTRO}" == "alpine" ]] ; then
|
|||||||
perl-datetime-timezone \
|
perl-datetime-timezone \
|
||||||
pixman \
|
pixman \
|
||||||
py3-xdg \
|
py3-xdg \
|
||||||
python3 \
|
|
||||||
setxkbmap \
|
setxkbmap \
|
||||||
xauth \
|
xauth \
|
||||||
xf86-video-amdgpu \
|
xf86-video-amdgpu \
|
||||||
|
@ -3,12 +3,12 @@ set -e
|
|||||||
|
|
||||||
echo "Install some common tools for further installation"
|
echo "Install some common tools for further installation"
|
||||||
if [[ "${DISTRO}" == @(centos|oracle7) ]] ; then
|
if [[ "${DISTRO}" == @(centos|oracle7) ]] ; then
|
||||||
yum install -y vim wget net-tools bzip2 python3 ca-certificates bc
|
yum install -y vim wget net-tools bzip2 ca-certificates bc
|
||||||
elif [[ "${DISTRO}" == @(fedora37|fedora38|oracle8|oracle9|rockylinux9|rockylinux8|almalinux8|almalinux9) ]]; then
|
elif [[ "${DISTRO}" == @(fedora37|fedora38|oracle8|oracle9|rockylinux9|rockylinux8|almalinux8|almalinux9) ]]; then
|
||||||
dnf install -y wget net-tools bzip2 python3 tar vim hostname procps-ng bc
|
dnf install -y wget net-tools bzip2 tar vim hostname procps-ng bc
|
||||||
elif [ "${DISTRO}" == "opensuse" ]; then
|
elif [ "${DISTRO}" == "opensuse" ]; then
|
||||||
sed -i 's/download.opensuse.org/mirrorcache-us.opensuse.org/g' /etc/zypp/repos.d/*.repo
|
sed -i 's/download.opensuse.org/mirrorcache-us.opensuse.org/g' /etc/zypp/repos.d/*.repo
|
||||||
zypper install -yn wget net-tools bzip2 python3 tar vim gzip iputils bc
|
zypper install -yn wget net-tools bzip2 tar vim gzip iputils bc
|
||||||
elif [ "${DISTRO}" == "alpine" ]; then
|
elif [ "${DISTRO}" == "alpine" ]; then
|
||||||
apk add --no-cache \
|
apk add --no-cache \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user