Tips to install Popcorn Time, Spotify and Telegram on DEBIAN

Greetings, dear members full Free Software User Community (Not necessarily free) and Users of GNU / Linux Operating Systems. This time I come to share some small Tips (Tricks) that I recently learned from trying satisfy own and others requirements on Free Software.

We will comment a bit about each application and show how the code of a Bash Shell script should be that allows us to facilitate its installation on any PC:

Popcorn Time:  It is an application that transmit (reproduce) and download movies, tv shows (series) and anime (Japanese Comics) online (via Internet) from files torrents. Its use is very simple, it is downloaded, unzipped, executed, a movie or episode is selected, the reproduction quality and the appropriate subtitles are selected, finally click on play and enjoy!

On Linux: once downloaded the package for GNU / Linux corresponding to the desired architecture (32 Bit = iX86 / 64 Bit = amd64), the same file "Tar.xz" downloaded and the Bash Shell script should go together on the same route (preferably "/ Home / $ USERNAME") and run with the command command $ bash my_script_popcorntime.sh .

Its content should be more or less this:


USER_NAME=`cat /etc/passwd | grep 1000 | cut -d: -f1`
HOME_USER_NAME=/home/$USER_NAME
cd $HOME_USER_NAME

rm -rf /opt/PopcornTime*
rm -rf /root/.Popcorn-Time
rm -f /root/.local/share/icons/popcorntime.png
rm -rf $HOME_USER_NAME/.local/share/.Popcorn-Time
rm -f $HOME_USER_NAME/.local/share/icons/popcorntime.png
rm -f /usr/bin/Popcorn-Time
rm -f $HOME_USER_NAME/Escritorio/Popcorn-Time.desktop
rm -f $HOME_USER_NAME/Desktop/Popcorn-Time.desktop
rm -f $HOME_USER_NAME/.local/share/applications/Popcorn-Time.desktop
rm -f /usr/share/applications/Popcorn-Time.desktop

update-menus
mv PopcornTimeCEYIFY* /opt/
cd /opt/
tar Jxvf PopcornTimeCEYIFY*
mv PopcornTimeCEYIFY-32 PopcornTime
mv PopcornTimeCEYIFY-64 PopcornTime
chmod 777 -R PopcornTime
rm -f *.tar.xz
cd /opt/PopcornTime
./install

# Nota: Conteste afirmativamente presionando la letra "y" en la ventana siguiente

ln -f -s /opt/PopcornTime/Popcorn-Time /usr/bin/Popcorn-Time

echo '
[Desktop Entry]
Name=Popcorn Time
GenericName=Movie Browser online
GenericName[es]=Visualizador de Peliculas en linea
Comment=Ver peliculas y series de TV instantaneamente
Exec=/opt/PopcornTime/Popcorn-Time
Icon=/opt/PopcornTime/popcorntime.png
MimeType=application/x-bittorrent;x-scheme-handler/magnet;
StartupNotify=false
Categories=AudioVideo;Video;Network;Player;P2P;Application;
Type=Application
' > /opt/PopcornTime/Popcorn-Time.desktop

chown $USER_NAME:$USER_NAME -R /opt/PopcornTime/
chmod 755 /opt/PopcornTime/Popcorn-Time.desktop
ln -s /opt/PopcornTime/Popcorn-Time.desktop $HOME_USER_NAME/Escritorio/Popcorn-Time.desktop
chmod +x $HOME_USER_NAME/Escritorio/Popcorn-Time.desktop
ln -s /opt/PopcornTime/Popcorn-Time.desktop $HOME_USER_NAME/Desktop/Popcorn-Time.desktop
chmod +x $HOME_USER_NAME/Desktop/Popcorn-Time.desktop
ln -s /opt/PopcornTime/Popcorn-Time.desktop $HOME_USER_NAME/.local/share/applications/Popcorn-Time.desktop
ln -s /opt/PopcornTime/Popcorn-Time.desktop /usr/share/applications/Popcorn-Time.desktop

su - $USER_NAME -c "xdg-open 'http://popcorntime.ag/'" &
cd $HOME_USER_NAME
clear

echo ''
echo ''
echo '#--------------------------------------------------------------#'
echo '# GRACIAS POR USAR EL LINUX POST INSTALL - SCRIPT BICENTENARIO #'
echo '#--------------------------------------------------------------#'
echo ''
echo ''

sleep 3

Spotify:  It is a international music platform well known used for the reproduction of music via streaming, that is, is a commercial online music streaming service through the P2P protocol. Its use is very simple, download the application from its website and then register with it. Access with the username and password, configure and save all the necessary preferences and manage your chosen user plan. Once the application is installed, when executing it, the user enters his username and password. And voila, depending on the plan you have accessed, you can enjoy more or less benefits.

On Linux: Instead of downloading the package for GNU / Linux corresponding to the desired architecture (32 Bit = iX86 / 64 Bit = amd64), we install it from the repository. Therefore, the Bash Shell script to be created can be in any path and be executed with the command command $ bash my_script_spotify.sh .

Its content should be more or less this:


USER_NAME=`cat /etc/passwd | grep 1000 | cut -d: -f1`
HOME_USER_NAME=/home/$USER_NAME
cd $HOME_USER_NAME

apt purge spotify-client
rm -rf /opt/spotify/
update-menus

echo deb http://repository.spotify.com stable non-free | tee /etc/apt/sources.list.d/spotify.list
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys D2C19886
apt update

apt install libpangoxft-1.0-0 libssl1.0.0
apt install spotify-client

wget -c https://launchpadlibrarian.net/201289896/libgcrypt11_1.5.3-2ubuntu4.2_amd64.deb
# wget -c http://mirrors.ocf.berkeley.edu/tanglu/pool/main/libg/libgcrypt11/libgcrypt11_1.5.4-3_amd64.deb
# wget -c https://launchpadlibrarian.net/201289903/libgcrypt11_1.5.3-2ubuntu4.2_i386.deb
# wget -c http://mirrors.ocf.berkeley.edu/tanglu/pool/main/libg/libgcrypt11/libgcrypt11_1.5.4-3_i386.deb
dpkg -i libgcrypt*.deb

chown $USER_NAME:$USER_NAME -R /opt/spotify/
chmod 755 -r /opt/spotify/

ln -s /opt/spotify/spotify-client/spotify.desktop $HOME_USER_NAME/Escritorio/spotify.desktop
chmod +x $HOME_USER_NAME/Escritorio/spotify.desktop

ln -s /opt/spotify/spotify-client/spotify.desktop $HOME_USER_NAME/Desktop/spotify.desktop
chmod +x $HOME_USER_NAME/Desktop/spotify.desktop

ln -s /opt/spotify/spotify-client/spotify.desktop $HOME_USER_NAME/.local/share/applications/spotify.desktop
ln -s /opt/spotify/spotify-client/spotify.desktop /usr/share/applications/spotify.desktop

update-menus

su - $USER_NAME -c spotify

clear

echo ''
echo ''
echo '#--------------------------------------------------------------#'
echo '# GRACIAS POR USAR EL LINUX POST INSTALL - SCRIPT BICENTENARIO #'
echo '#--------------------------------------------------------------#'
echo ''
echo ''

sleep 3

Telegram Desktop:  It is the official desktop client for Telegram, which is also a very fast and secure messaging application, fast, simple and free. Can be installed on all devices at the same time, allowing the synchronization of the messages perfectly through any of them (phones, tablets or computers). Its use is very simple, it is downloaded, unzipped, executed, the phone number is entered, a code is received in it that is entered in the installed client, and voila, you can chat and enjoy!

On Linux: once downloaded the package for GNU / Linux corresponding to the desired architecture (32 Bit = iX86 / 64 Bit = amd64), the same file "Tar.xz" downloaded and the Bash Shell script should go together on the same route (preferably "/ Home / $ USERNAME") and run with the command command $ bash my_script_telegram.sh .

Its content should be more or less this:


USER_NAME=`cat /etc/passwd | grep 1000 | cut -d: -f1`
HOME_USER_NAME=/home/$USER_NAME
cd $HOME_USER_NAME

rm -rf /opt/Telegram*
rm -rf /root/.Telegram*
rm -rf $HOME_USER_NAME/.Telegram*
rm -f $HOME_USER_NAME/Escritorio/Telegram.desktop
rm -f $HOME_USER_NAME/Desktop/Telegram.desktop
rm -f $HOME_USER_NAME/.local/share/applications/Telegram.desktop
rm -f /usr/share/applications/Telegram.desktop
update-menus

mv tsetup* /opt/
cd /opt/
tar Jxvf tsetup*
rm -f *.tar.xz
chmod 777 -R Telegram
chown $USER_NAME:$USER_NAME -R /opt/Telegram/
su - $USER_NAME -c "/opt/Telegram/Telegram"
cp $HOME_USER_NAME/.TelegramDesktop/tdata/icon.png /opt/Telegram/
chmod 755 /opt/Telegram/icon.png

#####################################################################

echo '
[Desktop Entry]
Name=Telegram Desktop
GenericName=Telegram Desktop
GenericName[es]=Telegram Cliente para el escritorio
Comment=Cliente para el escritorio de telegram
Exec=/opt/Telegram/Telegram
Icon=/opt/Telegram/icon.png
Terminal=false
Type=Application
Encoding=UTF-8
Categories=Network;Application;
' > /opt/Telegram/Telegram.desktop

chown $USER_NAME:$USER_NAME -R /opt/Telegram/
chmod 755 /opt/Telegram/Telegram.desktop

ln -s /opt/Telegram/Telegram.desktop $HOME_USER_NAME/Escritorio/Telegram.desktop
chmod +x $HOME_USER_NAME/Escritorio/Telegram.desktop

ln -s /opt/Telegram/Telegram.desktop $HOME_USER_NAME/Desktop/Telegram.desktop
chmod +x $HOME_USER_NAME/Desktop/Telegram.desktop

ln -s /opt/Telegram/Telegram.desktop $HOME_USER_NAME/.local/share/applications/Telegram.desktop
ln -s /opt/Telegram/Telegram.desktop /usr/share/applications/Telegram.desktop

update-menus

su - $USER_NAME -c "https://desktop.telegram.org/" &

clear

echo ''
echo ''
echo '#--------------------------------------------------------------#'
echo '# GRACIAS POR USAR EL LINUX POST INSTALL - SCRIPT BICENTENARIO #'
echo '#--------------------------------------------------------------#'
echo ''
echo ''

sleep 3

Note: If you want or can graphically (from the user interface) unzip the package and run it directly without a link (shortcut) from the menu or desktop, ignore the contents of the script. If you create a script remember to secure and optimize it correctly, that is, create the necessary routines so that among other things it can only be executed by the superuser root, it can be executed from any path, validates its architecture and that of the package, among other very useful ones.

I personally believe that we should "facilitate and promote the use of Standalone or Online Applications (Webapps / SaaSS) on GNU / Linux of any kind (Free / Open / Free / Private / Closed / Paid), as long as we prioritize, favor and believe our own Standalone or Online Applications (Free / Open / Free) as serious alternatives to the others (Private / Closed Pays) ”.

So I hope this publication it is of very useful!

REFERENCE IMAGES

Work area 1_032

Work area 1_034

Work area 1_033


9 comments, leave yours

Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Juancho said

    Offering proprietary software is like offering drugs or tobacco, it's disgusting.
    You are mentioning Spotify, a commercial service that is closed source. When they stop profiting from this service, when I am free I will use it, they even use the damn Digital Rights Management. It's SHIT.
    If you want to be free, do not listen to MP3 music, much less flash or Apple formats, you are exposing yourself to malware! Death to the privative, long life to Free Software.

    1.    anon801 said

      Quiet Torvalds.
      Compare proprietary software with drugs? Can you really be so blind?

  2.   Jose Albert said

    Dear, I was looking for alternatives to spotify and the only thing I found was this:

    http://www.soundnodeapp.com/

    I already got it working on my GNU / Linux and will post about it soon as an alternative to spotify. Too bad I can't give you a print screen right now so you can see it work!

    But remember, being an RMS without being like him is not consistent, ethically, morally and professionally!

    Regards!

  3.   anon801 said

    The tutorial seems very complete. Thanks 😀

    I just want to correct that the anime is not Japanese comic. That's Manga xD

    1.    Madoka Magica said

      Haha, it happens with that of the comic, anime = animation! Haha
      On the other hand, good tuto, telegram is great.

  4.   ever said

    Thanks for the contribution but… do you realize how impractical, intuitive and educational it is to transmit a bash script to download files that are constantly changing? Above the scripts are hardly explained. I don't see any real use for this.

  5.   Jose Albert said

    Dear, your answer is written in one of the ten previous articles written, I am already lazy to repeat the same thing over and over again, who only reads a publication in a decontextualized way and not the series!

  6.   Seba said

    Excellent!
    Thank you very much!
    I wanted to install popcorn correctly for a long time!

  7.   sebastianbianchini said

    Very good!
    Excellent options