Skip to content

Instantly share code, notes, and snippets.

@bytescreator
Last active September 20, 2020 12:14
Show Gist options
  • Save bytescreator/60c3fdfe91d4d33a0c6a2acdff1276e3 to your computer and use it in GitHub Desktop.
Save bytescreator/60c3fdfe91d4d33a0c6a2acdff1276e3 to your computer and use it in GitHub Desktop.
Pardus ETAP tahtalarda yönetici şifresi olmadan Zoom kurmak için bir shell betiği.
#!/usr/bin/bash
# Author: bytescreator
# Pardus ETAP Tahtalarında (Bütün linux dağıtımları denebilir :D ) yönetici yetkisi gerektirmeden zoom kurmak için yazdığım bir scripttir.
# Gerekli dosyaları sizin için indirip kendi kullanıcıza MIME ayarlarını kuracaktır. (Zoom başlatma script'inin konumu $ZOOM_INSTALL_DIR/zoom.sh)
# Kurmak için : sh etap_zoomworkaround.sh install
# Kaldırmak için : sh etap_zoomworkaround.sh uninstall
# NOT : MEB'in gözetleme tutkusu yüzünden wget'e '--no-check-certificate' argümanı eklendi. MEB ağı dışında kullanımda KESİNLİKLE kaldırın.
set -x # Debug gibi bişey diyelim :D
ZOOM_INSTALL_DIR=~/zoomWorkaround
opt=$1
case $opt in
'install')
if [ -e $ZOOM_INSTALL_DIR ]
then
echo "Bu bilgisayara Zoom kurulmuş."
exit
fi
if [ -e /usr/bin/wget ] # wget Komutunu kontrol et.
then
mkdir $ZOOM_INSTALL_DIR
cd $ZOOM_INSTALL_DIR
if [ $(uname -m) = "x86_64" ]
then
wget --no-check-certificate -v https://zoom.us/client/latest/zoom_x86_64.tar.xz
elif [ $(uname -m) = "i386" ]
then
wget --no-check-certificate -v https://zoom.us/client/latest/zoom_i686.tar.xz
else
echo "Bulunduğunuz platform için gerekli zoom uygulaması alınamadı."
exit
fi
cd $ZOOM_INSTALL_DIR
tar -Jxf $ZOOM_INSTALL_DIR/zoom*.tar.xz # Zoom uygulamasını tar.xz arsivinden cikar
rm $ZOOM_INSTALL_DIR/zoom*.tar.xz
## Zoom'u başlatmak için script (Standart kurulum yapmadığımızdan kütüphaneleri /lib vs. dışında göstermek gerekli)
echo "#!/usr/bin/sh" > $ZOOM_INSTALL_DIR/zoom.sh
echo "cd $ZOOM_INSTALL_DIR/zoom/;LD_LIBRARY_PATH=. ./zoom \$1" >> zoom.sh
chmod +x zoom.sh
## FreeDesktop MIME için gerekli dosyaları oluştur.
#$ZOOM_INSTALL_DIR/zoom.jpeg
base64 -d <<< "/9j/4AAQSkZJRgABAQAASABIAAD/4QBqRXhpZgAATU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAABJKGAAcAAAARAAAAUKABAAMAAAABAAEAAKACAAQAAAABAAABAKADAAQAAAABAAABAAAAAABBU0NJSQAAADEuMy4wLTIwSQD/7QA4UGhvdG9zaG9wIDMuMAA4QklNBAQAAAAAAAA4QklNBCUAAAAAABDUHYzZjwCyBOmACZjs+EJ+/8AAEQgBAAEAAwEiAAIRAQMRAf/EAB8AAAEFAQEBAQEBAAAAAAAAAAABAgMEBQYHCAkKC//EALUQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+v/EAB8BAAMBAQEBAQEBAQEAAAAAAAABAgMEBQYHCAkKC//EALURAAIBAgQEAwQHBQQEAAECdwABAgMRBAUhMQYSQVEHYXETIjKBCBRCkaGxwQkjM1LwFWJy0QoWJDThJfEXGBkaJicoKSo1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoKDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uLj5OXm5+jp6vLz9PX29/j5+v/bAEMAAgICAgICAwICAwQDAwMEBQQEBAQFBwUFBQUFBw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"Comment=Zoom Video Conference" >> $ZOOM_INSTALL_DIR/zoom.desktop
echo "Icon=$ZOOM_INSTALL_DIR/zoom.jpeg" >> $ZOOM_INSTALL_DIR/zoom.desktop
echo Exec=$ZOOM_INSTALL_DIR/zoom.sh %U >> $ZOOM_INSTALL_DIR/zoom.desktop
echo "Terminal=false" >> $ZOOM_INSTALL_DIR/zoom.desktop
echo "Type=Application" >> $ZOOM_INSTALL_DIR/zoom.desktop
echo "Encoding=UTF-8" >> $ZOOM_INSTALL_DIR/zoom.desktop
echo "Categories=Network;Application;" >> $ZOOM_INSTALL_DIR/zoom.desktop
echo "StartupWMClass=Zoom" >> $ZOOM_INSTALL_DIR/zoom.desktop
echo "MimeType=x-scheme-handler/zoommtg;x-scheme-handler/zoomus;x-scheme-handler/tel;x-scheme-handler/callto;x-scheme-handler/zoomphonecall;application/x-zoom" >> $ZOOM_INSTALL_DIR/zoom.desktop
echo "X-KDE-Protocols=zoommtg;zoomus;tel;callto;zoomphonecall;" >> $ZOOM_INSTALL_DIR/zoom.desktop
echo "Name[en_US]=Zoom" >> $ZOOM_INSTALL_DIR/zoom.desktop
#$ZOOM_INSTALL_DIR/zoom.xml
echo '<?xml version="1.0" encoding="UTF-8"?>' > $ZOOM_INSTALL_DIR/zoom.xml
echo '<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">' >> $ZOOM_INSTALL_DIR/zoom.xml
echo ' <mime-type type="application/x-zoom">' >> $ZOOM_INSTALL_DIR/zoom.xml
echo ' <comment>Zoom Recording File</comment>' >> $ZOOM_INSTALL_DIR/zoom.xml
echo ' <glob pattern="*.zoom"/>' >> $ZOOM_INSTALL_DIR/zoom.xml
echo ' </mime-type>' >> $ZOOM_INSTALL_DIR/zoom.xml
echo ' <mime-type type="x-scheme-handler/zoommtg">' >> $ZOOM_INSTALL_DIR/zoom.xml
echo ' <comment>X-Scheme-Handler</comment>' >> $ZOOM_INSTALL_DIR/zoom.xml
echo ' </mime-type>' >> $ZOOM_INSTALL_DIR/zoom.xml
echo ' <mime-type type="x-scheme-handler/zoomus">' >> $ZOOM_INSTALL_DIR/zoom.xml
echo ' <comment>X-Scheme-Handler</comment>' >> $ZOOM_INSTALL_DIR/zoom.xml
echo ' </mime-type>' >> $ZOOM_INSTALL_DIR/zoom.xml
echo ' <mime-type type="x-scheme-handler/zoomphonecall">' >> $ZOOM_INSTALL_DIR/zoom.xml
echo ' <comment>X-Scheme-Handler</comment>' >> $ZOOM_INSTALL_DIR/zoom.xml
echo ' </mime-type>' >> $ZOOM_INSTALL_DIR/zoom.xml
echo '</mime-info>' >> $ZOOM_INSTALL_DIR/zoom.xml
cp $ZOOM_INSTALL_DIR/zoom.desktop ~/.local/share/applications/
chmod +x ~/.local/share/applications/zoom.desktop
xdg-mime install --novendor zoom.xml
xdg-mime default zoom.desktop application/x-zoom x-scheme-handler/zoommtg x-scheme-handler/zoomus x-scheme-handler/zoomphonecall
cp $ZOOM_INSTALL_DIR/zoom.desktop ~/Masaüstü/Zoom.desktop
chmod +x ~/Masaüstü/Zoom.desktop
echo "Kurulum Tamamlandı."
else
echo "Gerekli wget Programı bulunamadı."
exit
fi
;;
'uninstall')
if [ ! -e $ZOOM_INSTALL_DIR ]
then
echo "Zoom Kurulmamış."
exit
fi
if [ ! -e $ZOOM_INSTALL_DIR/zoom.xml ]
then
#$ZOOM_INSTALL_DIR/zoom.xml
echo '<?xml version="1.0" encoding="UTF-8"?>' > $ZOOM_INSTALL_DIR/zoom.xml
echo '<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">' >> $ZOOM_INSTALL_DIR/zoom.xml
echo ' <mime-type type="application/x-zoom">' >> $ZOOM_INSTALL_DIR/zoom.xml
echo ' <comment>Zoom Recording File</comment>' >> $ZOOM_INSTALL_DIR/zoom.xml
echo ' <glob pattern="*.zoom"/>' >> $ZOOM_INSTALL_DIR/zoom.xml
echo ' </mime-type>' >> $ZOOM_INSTALL_DIR/zoom.xml
echo ' <mime-type type="x-scheme-handler/zoommtg">' >> $ZOOM_INSTALL_DIR/zoom.xml
echo ' <comment>X-Scheme-Handler</comment>' >> $ZOOM_INSTALL_DIR/zoom.xml
echo ' </mime-type>' >> $ZOOM_INSTALL_DIR/zoom.xml
echo ' <mime-type type="x-scheme-handler/zoomus">' >> $ZOOM_INSTALL_DIR/zoom.xml
echo ' <comment>X-Scheme-Handler</comment>' >> $ZOOM_INSTALL_DIR/zoom.xml
echo ' </mime-type>' >> $ZOOM_INSTALL_DIR/zoom.xml
echo ' <mime-type type="x-scheme-handler/zoomphonecall">' >> $ZOOM_INSTALL_DIR/zoom.xml
echo ' <comment>X-Scheme-Handler</comment>' >> $ZOOM_INSTALL_DIR/zoom.xml
echo ' </mime-type>' >> $ZOOM_INSTALL_DIR/zoom.xml
echo '</mime-info>' >> $ZOOM_INSTALL_DIR/zoom.xml
fi
xdg-mime uninstall $ZOOM_INSTALL_DIR/zoom.xml
rm ~/.local/share/applications/zoom.desktop
rm ~/Masaüstü/Zoom.desktop
rm -r $ZOOM_INSTALL_DIR/
echo "Kaldırma Tamamlandı."
;;
*)
echo "Kaldırma ya da kurulum için programın yüklü ya da yüklenmemiş olması gerekmekte."
echo "Eğer kurdum kaldırmak istiyorum diyorsanız muhtemelen komutu yanlış yazdınız."
echo "Eğer kurmadım ancak kurulu diyorsanız kurulum esnasında kesildiyse olabilir. durum böyle ise kaldırma komutunu çalıştırın"
exit
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment