Skip to content

Instantly share code, notes, and snippets.

@riipandi
Last active March 5, 2017 17:57
Show Gist options
  • Save riipandi/dfd90cbda9e17dad88a5d11325b28e8d to your computer and use it in GitHub Desktop.
Save riipandi/dfd90cbda9e17dad88a5d11325b28e8d to your computer and use it in GitHub Desktop.
Ubuntu Extra Apps
#!/bin/bash
echo -e "\nInstalling Google Fonts..\n"
wget -O- https://github.com/google/fonts/tarball/master | tar xvz -C /usr/src
mv /usr/src/{google-fonts*,gfonts}
cd /usr/src/gfonts
find . -mindepth 2 -type f -print -exec mv {} . \;
rm -fR -- */
rm -fR {AUTHORS,CONTRIBUTORS}
rm -fR *.{txt,json,csv,md,html,py,png,jpg,enc,nam}
mv * /usr/local/share/fonts/
cd ..
rm -fr gfonts
fc-cache -f
echo -e "\n========================================"
echo -e "======== Semua selesai, done !! ========"
echo -e "========================================\n"
#!/bin/bash
## Telegram Desktop
if [ ! -d /opt/Telegram ]; then
echo -e "\nInstalling Telegram..\n"
mkdir --mode=755 /opt
wget https://tdesktop.com/linux -O- | tar xvJ -C /opt
#wget http://pastebin.com/raw/E1bCB1F8 -qO /usr/share/applications/telegram.desktop
cat > /usr/share/applications/telegram.desktop <<EOF
[Desktop Entry]
Name=Telegram
Comment=Official desktop version of Telegram messaging app
Exec=/opt/Telegram/Telegram -- %u
Icon=telegram
Terminal=false
StartupWMClass=Telegram
Type=Application
Categories=Network;InstantMessaging;
MimeType=x-scheme-handler/tg;
X-Desktop-File-Install-Version=0.22
EOF
ln -fs /opt/Telegram/Telegram /usr/bin/telegram
#sudo -u $USER telegram
fi
echo -e "\n========================================"
echo -e "======== Semua selesai, done !! ========"
echo -e "========================================\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment