Difference between revisions of "Igel Teamviewer"

From Michael's Information Zone
Jump to navigation Jump to search
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
*Work in progress.
+
==Teamviewer==
 +
<pre>
 +
wget https://download.teamviewer.com/download/linux/teamviewer_amd64.tar.xz
 +
tar -xf teamviewer_amd64.tar.xz
 +
rm -rf teamviewer/logfiles
 +
echo 'LC_ALL=C teamviewer' > teamviewer/teamviewer.sh && chmod +x teamviewer/teamviewer.sh
 +
</pre>
 +
*Initialization script
 +
<pre>
 +
#!/bin/sh
 +
 
 +
logfolder='/var/log/teamviewer'
 +
 
 +
ACTION="custompart-teamviewer_${1}"
 +
 
 +
# mount point path
 +
MP=$(get custom_partition.mountpoint)
 +
 
 +
# custom partition path
 +
CP="${MP}/teamviewer"
 +
 
 +
# output to systemlog with ID and tag
 +
LOGGER="logger -it ${ACTION}"
 +
echo "Starting" | $LOGGER
 +
 
 +
case "$1" in
 +
init)
 +
        ln -sv ${CP}/teamviewer /usr/sbin/teamviewer | $LOGGER
 +
        ln -sv ${CP}/teamviewer.sh /usr/sbin/teamviewer.sh | $LOGGER
 +
mkdir ${logfolder} && chown user ${logfolder} | $LOGGER
 +
ln -sv ${logfolder} ${CP}/logfiles | $LOGGER
 +
chown -R user ${CP}/config | $LOGGER
 +
mkdir ${CP}/profile && chown user ${CP}/profile | $LOGGER
 +
touch ${CP}/teamviewer.desktop && chown user ${CP}/teamviewer.desktop | $LOGGER
 +
ln -sv ${CP}/tv_bin /userhome/tv_bin | $LOGGER
 +
        chown -R user ${CP}/tv_bin | $LOGGER
 +
       
 +
;;
 +
stop)
 +
        unlink /usr/sbin/teamviewer | $LOGGER
 +
        unlink /usr/sbin/teamviewer.sh | $LOGGER
 +
unlink /userhome/tv_bin | $LOGGER
 +
unlink ${CP}/logfiles | $LOGGER
 +
 
 +
esac
 +
 
 +
echo "Finished" | $LOGGER
 +
exit 0
 +
</pre>
 +
*Create the partition.
 +
<pre>
 +
chmod +x custompart-teamviewer
 +
version=$(teamviewer/teamviewer --version | grep -Eo [0-9]+.[0-9]+.[0-9]+)
 +
tar -cjvf teamviewer_${version}.tar.bz2 teamviewer custompart-teamviewer
 +
</pre>
 +
*Create inf file.
 +
<pre>
 +
cat <<EOF > teamviewer.inf
 +
[INFO]
 +
[PART]
 +
file="teamviewer_${version}.tar.bz2"
 +
version="${version}"
 +
size="500M"
 +
name="teamviewer"
 +
minfw="11.03.500"
 +
EOF
 +
</pre>
 +
 
 +
<pre>
 +
IyEvYmluL3NoCgpsb2dmb2xkZXI9Jy92YXIvbG9nL3RlYW12aWV3ZXInCgpBQ1RJT049ImN1c3RvbXBhcnQtdGVhbXZpZXdlcl8kezF9IgoKIyBtb3VudCBwb2ludCBwYXRoCk1QPSQoZ2V0IGN1c3RvbV9wYXJ0aXRpb24ubW91bnRwb2ludCkKCiMgY3VzdG9tIHBhcnRpdGlvbiBwYXRoCkNQPSIke01QfS90ZWFtdmlld2VyIgoKIyBvdXRwdXQgdG8gc3lzdGVtbG9nIHdpdGggSUQgYW5kIHRhZwpMT0dHRVI9ImxvZ2dlciAtaXQgJHtBQ1RJT059IgplY2hvICJTdGFydGluZyIgfCAkTE9HR0VSCgpjYXNlICIkMSIgaW4KaW5pdCkKICAgICAgICBsbiAtc3YgJHtDUH0vdGVhbXZpZXdlciAvdXNyL3NiaW4vdGVhbXZpZXdlciB8ICRMT0dHRVIKICAgICAgICBsbiAtc3YgJHtDUH0vdGVhbXZpZXdlci5zaCAvdXNyL3NiaW4vdGVhbXZpZXdlci5zaCB8ICRMT0dHRVIKCW1rZGlyICR7bG9nZm9sZGVyfSAmJiBjaG93biB1c2VyICR7bG9nZm9sZGVyfSB8ICRMT0dHRVIKCWxuIC1zdiAke2xvZ2ZvbGRlcn0gJHtDUH0vbG9nZmlsZXMgfCAkTE9HR0VSCgljaG93biAtUiB1c2VyICR7Q1B9L2NvbmZpZyB8ICRMT0dHRVIKCW1rZGlyICR7Q1B9L3Byb2ZpbGUgJiYgY2hvd24gdXNlciAke0NQfS9wcm9maWxlIHwgJExPR0dFUgoJdG91Y2ggJHtDUH0vdGVhbXZpZXdlci5kZXNrdG9wICYmIGNob3duIHVzZXIgJHtDUH0vdGVhbXZpZXdlci5kZXNrdG9wIHwgJExPR0dFUgoJbG4gLXN2ICR7Q1B9L3R2X2JpbiAvdXNlcmhvbWUvdHZfYmluIHwgJExPR0dFUgogICAgICAgIGNob3duIC1SIHVzZXIgJHtDUH0vdHZfYmluIHwgJExPR0dFUgogICAgICAgIAo7OwpzdG9wKQogICAgICAgIHVubGluayAvdXNyL3NiaW4vdGVhbXZpZXdlciB8ICRMT0dHRVIKICAgICAgICB1bmxpbmsgL3Vzci9zYmluL3RlYW12aWV3ZXIuc2ggfCAkTE9HR0VSCgl1bmxpbmsgL3VzZXJob21lL3R2X2JpbiB8ICRMT0dHRVIKCXVubGluayAke0NQfS9sb2dmaWxlcyB8ICRMT0dHRVIKCmVzYWMKCmVjaG8gIkZpbmlzaGVkIiB8ICRMT0dHRVIKZXhpdCAwCg==
 +
</pre>
 +
==Teamviewer Quick Support==
 +
Though I was able to get QS to run on Igel, the version is 11.x while the latest client is 15.x. The client refused to connect to the QS server because it was too old. I wanted QS due to it's simplified configuration. Had to abandon using QS.
 
*Download, extract, and prep archive.
 
*Download, extract, and prep archive.
 
<pre>
 
<pre>

Latest revision as of 11:56, 7 August 2020

Teamviewer

wget https://download.teamviewer.com/download/linux/teamviewer_amd64.tar.xz
tar -xf teamviewer_amd64.tar.xz
rm -rf teamviewer/logfiles
echo 'LC_ALL=C teamviewer' > teamviewer/teamviewer.sh && chmod +x teamviewer/teamviewer.sh
  • Initialization script
#!/bin/sh

logfolder='/var/log/teamviewer'

ACTION="custompart-teamviewer_${1}"

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

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

# output to systemlog with ID and tag
LOGGER="logger -it ${ACTION}"
echo "Starting" | $LOGGER

case "$1" in
init)
        ln -sv ${CP}/teamviewer /usr/sbin/teamviewer | $LOGGER
        ln -sv ${CP}/teamviewer.sh /usr/sbin/teamviewer.sh | $LOGGER
	mkdir ${logfolder} && chown user ${logfolder} | $LOGGER
	ln -sv ${logfolder} ${CP}/logfiles | $LOGGER
	chown -R user ${CP}/config | $LOGGER
	mkdir ${CP}/profile && chown user ${CP}/profile | $LOGGER
	touch ${CP}/teamviewer.desktop && chown user ${CP}/teamviewer.desktop | $LOGGER
	ln -sv ${CP}/tv_bin /userhome/tv_bin | $LOGGER
        chown -R user ${CP}/tv_bin | $LOGGER
        
;;
stop)
        unlink /usr/sbin/teamviewer | $LOGGER
        unlink /usr/sbin/teamviewer.sh | $LOGGER
	unlink /userhome/tv_bin | $LOGGER
	unlink ${CP}/logfiles | $LOGGER

esac

echo "Finished" | $LOGGER
exit 0
  • Create the partition.
chmod +x custompart-teamviewer
version=$(teamviewer/teamviewer --version | grep -Eo [0-9]+.[0-9]+.[0-9]+)
tar -cjvf teamviewer_${version}.tar.bz2 teamviewer custompart-teamviewer
  • Create inf file.
cat <<EOF > teamviewer.inf
[INFO]
[PART]
file="teamviewer_${version}.tar.bz2"
version="${version}"
size="500M"
name="teamviewer"
minfw="11.03.500"
EOF
IyEvYmluL3NoCgpsb2dmb2xkZXI9Jy92YXIvbG9nL3RlYW12aWV3ZXInCgpBQ1RJT049ImN1c3RvbXBhcnQtdGVhbXZpZXdlcl8kezF9IgoKIyBtb3VudCBwb2ludCBwYXRoCk1QPSQoZ2V0IGN1c3RvbV9wYXJ0aXRpb24ubW91bnRwb2ludCkKCiMgY3VzdG9tIHBhcnRpdGlvbiBwYXRoCkNQPSIke01QfS90ZWFtdmlld2VyIgoKIyBvdXRwdXQgdG8gc3lzdGVtbG9nIHdpdGggSUQgYW5kIHRhZwpMT0dHRVI9ImxvZ2dlciAtaXQgJHtBQ1RJT059IgplY2hvICJTdGFydGluZyIgfCAkTE9HR0VSCgpjYXNlICIkMSIgaW4KaW5pdCkKICAgICAgICBsbiAtc3YgJHtDUH0vdGVhbXZpZXdlciAvdXNyL3NiaW4vdGVhbXZpZXdlciB8ICRMT0dHRVIKICAgICAgICBsbiAtc3YgJHtDUH0vdGVhbXZpZXdlci5zaCAvdXNyL3NiaW4vdGVhbXZpZXdlci5zaCB8ICRMT0dHRVIKCW1rZGlyICR7bG9nZm9sZGVyfSAmJiBjaG93biB1c2VyICR7bG9nZm9sZGVyfSB8ICRMT0dHRVIKCWxuIC1zdiAke2xvZ2ZvbGRlcn0gJHtDUH0vbG9nZmlsZXMgfCAkTE9HR0VSCgljaG93biAtUiB1c2VyICR7Q1B9L2NvbmZpZyB8ICRMT0dHRVIKCW1rZGlyICR7Q1B9L3Byb2ZpbGUgJiYgY2hvd24gdXNlciAke0NQfS9wcm9maWxlIHwgJExPR0dFUgoJdG91Y2ggJHtDUH0vdGVhbXZpZXdlci5kZXNrdG9wICYmIGNob3duIHVzZXIgJHtDUH0vdGVhbXZpZXdlci5kZXNrdG9wIHwgJExPR0dFUgoJbG4gLXN2ICR7Q1B9L3R2X2JpbiAvdXNlcmhvbWUvdHZfYmluIHwgJExPR0dFUgogICAgICAgIGNob3duIC1SIHVzZXIgJHtDUH0vdHZfYmluIHwgJExPR0dFUgogICAgICAgIAo7OwpzdG9wKQogICAgICAgIHVubGluayAvdXNyL3NiaW4vdGVhbXZpZXdlciB8ICRMT0dHRVIKICAgICAgICB1bmxpbmsgL3Vzci9zYmluL3RlYW12aWV3ZXIuc2ggfCAkTE9HR0VSCgl1bmxpbmsgL3VzZXJob21lL3R2X2JpbiB8ICRMT0dHRVIKCXVubGluayAke0NQfS9sb2dmaWxlcyB8ICRMT0dHRVIKCmVzYWMKCmVjaG8gIkZpbmlzaGVkIiB8ICRMT0dHRVIKZXhpdCAwCg==

Teamviewer Quick Support

Though I was able to get QS to run on Igel, the version is 11.x while the latest client is 15.x. The client refused to connect to the QS server because it was too old. I wanted QS due to it's simplified configuration. Had to abandon using QS.

  • 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/qs.sh && chmod +x teamviewerqs/qs.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}/teamviewer /usr/sbin/teamviewer | $LOGGER
        ln -sv ${CP}/qs.sh /usr/sbin/qs.sh | $LOGGER
	mkdir ${logfolder} && chown user ${logfolder} | $LOGGER
	ln -sv ${logfolder} ${CP}/logfiles | $LOGGER
	chown -R user ${CP}/config | $LOGGER
	mkdir ${CP}/profile && chown user ${CP}/profile | $LOGGER
	touch ${CP}/teamviewer.desktop && chown user ${CP}/teamviewer.desktop | $LOGGER
	ln -sv ${CP}/tv_bin /userhome/tv_bin | $LOGGER
        chown -R user ${CP}/tv_bin | $LOGGER
        
;;
stop)
        unlink /usr/sbin/teamviewer | $LOGGER
        unlink /usr/sbin/qs.sh | $LOGGER
	unlink /userhome/tv_bin | $LOGGER
	unlink ${CP}/logfiles | $LOGGER

esac

echo "Finished" | $LOGGER
exit 0

  • 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