Difference between revisions of "Igel Teamviewer"
Jump to navigation
Jump to search
Michael.mast (talk | contribs) |
Michael.mast (talk | contribs) |
||
Line 1: | Line 1: | ||
*Work in progress. | *Work in progress. | ||
+ | *Download, extract, and prep archive. | ||
<pre> | <pre> | ||
wget https://download.teamviewer.com/download/version_11x/teamviewer_qs.tar.gz | wget https://download.teamviewer.com/download/version_11x/teamviewer_qs.tar.gz | ||
tar -xf teamviewer_qs.tar.gz | tar -xf teamviewer_qs.tar.gz | ||
rm -rf teamviewerqs/logfiles | rm -rf teamviewerqs/logfiles | ||
+ | echo 'LC_ALL=C teamviewer' > teamviewerqs/igel.sh | ||
</pre> | </pre> | ||
*Initialization script based on Zoom script from Igel. I named it custompart-qs to stay consistent. | *Initialization script based on Zoom script from Igel. I named it custompart-qs to stay consistent. | ||
<pre> | <pre> | ||
#!/bin/sh | #!/bin/sh | ||
+ | |||
+ | logfolder='/var/log/teamviewer' | ||
ACTION="custompart-qs_${1}" | ACTION="custompart-qs_${1}" | ||
Line 23: | Line 27: | ||
case "$1" in | case "$1" in | ||
init) | init) | ||
− | LC_ALL=C ${CP}/teamviewer | + | ln -sv ${CP}/igel.sh /usr/sbin/teamviewer | $LOGGER |
+ | mkdir ${logfolder} && chown user ${logfolder} | $LOGGER | ||
+ | ln -sv ${logfolder} ${CP}/logfiles | $LOGGER | ||
+ | chown -R user ${CP}/config | ||
+ | mkdir ${CP}/profile && chown user ${CP}/profile | ||
+ | touch ${CP}/teamviewer.desktop $$ chown user ${CP}/teamviewer.desktop | ||
+ | |||
+ | #LC_ALL=C ${CP}/teamviewer | ||
+ | ;; | ||
+ | stop) | ||
+ | unlink /usr/sbin/teamviewer | ||
esac | esac |
Revision as of 15:41, 4 August 2020
- Work in progress.
- Download, extract, and prep archive.
wget https://download.teamviewer.com/download/version_11x/teamviewer_qs.tar.gz tar -xf teamviewer_qs.tar.gz rm -rf teamviewerqs/logfiles echo 'LC_ALL=C teamviewer' > teamviewerqs/igel.sh
- Initialization script based on Zoom script from Igel. I named it custompart-qs to stay consistent.
#!/bin/sh logfolder='/var/log/teamviewer' ACTION="custompart-qs_${1}" # mount point path MP=$(get custom_partition.mountpoint) # custom partition path CP="${MP}/teamviewerqs" # output to systemlog with ID amd tag LOGGER="logger -it ${ACTION}" echo "Starting" | $LOGGER case "$1" in init) ln -sv ${CP}/igel.sh /usr/sbin/teamviewer | $LOGGER mkdir ${logfolder} && chown user ${logfolder} | $LOGGER ln -sv ${logfolder} ${CP}/logfiles | $LOGGER chown -R user ${CP}/config mkdir ${CP}/profile && chown user ${CP}/profile touch ${CP}/teamviewer.desktop $$ chown user ${CP}/teamviewer.desktop #LC_ALL=C ${CP}/teamviewer ;; stop) unlink /usr/sbin/teamviewer esac echo "Finished" | $LOGGER exit 0
- Script in base64
IyEvYmluL3NoCgpBQ1RJT049ImN1c3RvbXBhcnQtcXNfJHsxfSIKCiMgbW91bnQgcG9pbnQgcGF0aApNUD0kKGdldCBjdXN0b21fcGFydGl0aW9uLm1vdW50cG9pbnQpCgojIGN1c3RvbSBwYXJ0aXRpb24gcGF0aApDUD0iJHtNUH0vdGVhbXZpZXdlcnFzIgoKIyBvdXRwdXQgdG8gc3lzdGVtbG9nIHdpdGggSUQgYW1kIHRhZwpMT0dHRVI9ImxvZ2dlciAtaXQgJHtBQ1RJT059IgplY2hvICJTdGFydGluZyIgfCAkTE9HR0VSCgpjYXNlICIkMSIgaW4KaW5pdCkKICAgICAgICBMQ19BTEw9QyAke0NQfS90ZWFtdmlld2VyCgplc2FjCgplY2hvICJGaW5pc2hlZCIgfCAkTE9HR0VSCmV4aXQgMAo=
- Create the partition.
chmod +x custompart-qs version=$(teamviewerqs/teamviewer --version | grep -Eo [0-9]+.[0-9]+.[0-9]+) tar -cjvf qs_${version}.tar.bz2 teamviewerqs custompart-qs
- Create inf file.
cat <<EOF > qs.inf [INFO] [PART] file="qs_${version}.tar.bz2" version="${version}" size="500M" name="qs" minfw="11.03.500" EOF