Igel Zoom

From Michael's Information Zone
Revision as of 10:41, 15 July 2020 by Michael.mast (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

notes

mkdir -p build/zoom && cd build
wget https://zoom.us/client/latest/zoom_amd64.deb
apt download libxcb-xtest0
dpkg -x zoom*.deb zoom/
dpkg -x libx*.deb zoom/
  • Initialization script named custompart-zoom. I will come back to edit out the persistance.[1]
#!/bin/sh

ACTION="custompart-zoom_${1}"

# mount point path
MP=$(get custom_partition.mountpoint)

# custom partition path
CP="${MP}/zoom"

# wfs for persistent login and history
WFS="/wfs/user/.zoom/data"

# .zoom directory
ZOOM="/userhome/.zoom/"

# output to systemlog with ID amd tag
LOGGER="logger -it ${ACTION}"

echo "Starting" | $LOGGER

case "$1" in
init)
        # Linking files and folders on proper path
	find ${CP} | while read LINE
        do
                DEST=$(echo -n "${LINE}" | sed -e "s|${CP}||g")
                if [ ! -z "${DEST}" -a ! -e "${DEST}" ]; then
                        # Remove the last slash, if it is a dir
                        [ -d $LINE ] && DEST=$(echo "${DEST}" | sed -e "s/\/$//g") | $LOGGER
                        if [ ! -z "${DEST}" ]; then
                                ln -sv "${LINE}" "${DEST}" | $LOGGER
                        fi
                fi
        done

	# Linking /userhome/.zoom/data to /wfs/user/.zoom/data for some basic persistency
	mkdir -p ${WFS}
	chown -R user:users ${WFS}
	mkdir -p ${ZOOM}/data
	chown -R user:users ${ZOOM}/data
        mkdir -p ${ZOOM}/data/VirtualBkgnd_Custom
        chown -R user:users ${ZOOM}/data/VirtualBkgnd_Custom
        mkdir -p ${ZOOM}/data/VirtualBkgnd_Default
        chown -R user:users ${ZOOM}/data/VirtualBkgnd_Default
	
	ln -sv ${WFS}/zoomus.db ${ZOOM}/data/zoomus.db | $LOGGER
	ln -sv ${WFS}/zoommeeting.db ${ZOOM}/data/zoommeeting.db | $LOGGER
	ln -sv ${WFS}/VirtualBkgnd_Custom ${ZOOM}/data/ | $LOGGER
	ln -sv ${WFS}/VirtualBkgnd_Default ${ZOOM}/data/ | $LOGGER
        
        chown user:users /wfs/user/.zoom
        ln -sv /wfs/user/.zoom/zoomus.conf /userhome/.config/zoomus.conf | $LOGGER	
	
        # remove all com.zoom.ipc* files from /wfs/user/.zoom/data - might cause issues when updating zoom
        rm ${WFS}/com.zoom.ipc*
	
	# add /opt/zoom to ld_library
	echo "${CP}/opt/zoom" > /etc/ld.so.conf.d/zoom.conf
	ldconfig

	${MP}/zoom_postinst | $LOGGER

;;
stop)
	# unlink linked files
	find ${CP} | while read LINE
        do
                DEST=$(echo -n "${LINE}" | sed -e "s|${CP}||g")
		unlink $DEST | $LOGGER
	done

	# remove zoom.conf because it is not needed anymore
	rm /etc/ld.so.conf.d/zoom.conf


;;
esac

echo "Finished" | $LOGGER

exit 0
  • Cleanup and packaging
chmod -R +x zoom
chmod +x custompart-zoom
tar cjvf zoom_5.1.422789.0705.tar.bz2 zoom custompart-zoom
  • Create inf file called zoom.inf.[2]
[INFO]
[PART]
file="zoom_5.1.422789.0705.tar.bz2"
version="5.1.422789.0705_igel1"
size="500M"
name="zoom"
minfw="11.03.500"