Awọn imọran lati fi Akoko Guguru, Spotify ati Telegram sori ẹrọ DEBIAN

Mo ki yin, eyin omo egbe ti awọn Community Software Olumulo ọfẹ (Ko ṣe dandan ọfẹ) ati Awọn olumulo ti Awọn ẹrọ Ṣiṣẹ GNU / Linux. Ni akoko yii Mo wa lati pin diẹ ninu kekere Awọn imọran (Awọn ẹtan) pe Mo kọ ẹkọ laipe lati igbiyanju ni itẹlọrun awọn ibeere tirẹ ati awọn miiran lori sọfitiwia ọfẹ.

A yoo ṣalaye diẹ nipa ohun elo kọọkan ki o fihan bi koodu ti iwe afọwọkọ Bash Shell yẹ ki o jẹ eyiti o fun wa laaye lati dẹrọ fifi sori rẹ lori PC eyikeyi:

Akoko Guguru:  O jẹ ohun elo kan ti atagba (ẹda) ati ṣe igbasilẹ awọn fiimu, awọn ifihan TV (jara) ati Anime (Awọn Apanilẹrin Japanese) lori ayelujara (nipasẹ Intanẹẹti) lati awọn faili iṣàn. Lilo rẹ jẹ irorun, o gba lati ayelujara, ko ṣii, ṣiṣẹ, fiimu tabi iṣẹlẹ ti yan, didara atunse ati awọn atunkọ ti o yẹ ni a yan, nikẹhin tẹ ere ati gbadun!

Lori Linux: ni kete ti gba lati ayelujara awọn package fun GNU / Linux bamu si faaji ti o fẹ (32 Bit = iX86 / 64 Bit = amd64), faili kanna "Tar.xz" gbaa lati ayelujara ati awọn Bash Shell akosile yẹ ki o lọ papọ ni ọna kanna (pelu "/ Ile / $ USERNAME") ati ṣiṣe pẹlu aṣẹ aṣẹ $ bash my_script_popcorntime.sh .

Akoonu rẹ yẹ ki o jẹ diẹ tabi kere si eyi:


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:  O jẹ Syeed orin agbaye daradara mọ lo fun ẹda ti orin nipasẹ ṣiṣanwọle, iyẹn ni, jẹ iṣẹ ṣiṣan ṣiṣan orin ayelujara ti iṣowo ti iṣowo nipasẹ ilana P2P. Lilo rẹ jẹ irorun, gba ohun elo lati oju opo wẹẹbu rẹ lẹhinna forukọsilẹ pẹlu rẹ. Wọle si pẹlu orukọ olumulo ati ọrọ igbaniwọle, tunto ati fipamọ gbogbo awọn ayanfẹ ti o yẹ ati ṣakoso ero olumulo ti o yan. Lọgan ti a ba fi ohun elo sii, nigbati o ba n ṣiṣẹ, olumulo n wọle orukọ olumulo ati ọrọ igbaniwọle rẹ. Ati voila, da lori ero ti o ti wọle, o le gbadun awọn anfani diẹ sii tabi kere si.

Lori Linux: Dipo gbigba lati ayelujara ni package fun GNU / Linux bamu si faaji ti o fẹ (32 Bit = iX86 / 64 Bit = amd64), a fi sii lati ibi ipamọ. Nitorina, awọn Bash Shell akosile lati ṣẹda le wa ni eyikeyi ọna ati ṣiṣe pẹlu aṣẹ pipaṣẹ $ bu my_script_spotify.sh .

Akoonu rẹ yẹ ki o jẹ diẹ tabi kere si eyi:


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

Ojú-iṣẹ Telegram:  O jẹ alabara tabili tabili osise fun Telegram, eyiti o tun jẹ ohun iyara ati aabo ohun elo fifiranṣẹ, ni iyara, rọrun ati ọfẹ. Le fi sori ẹrọ lori gbogbo awọn ẹrọ ni akoko kanna gbigba amuṣiṣẹpọ ti awọn ifiranṣẹ ni pipe nipasẹ eyikeyi ninu wọn (awọn foonu, awọn tabulẹti tabi awọn kọnputa). Lilo rẹ jẹ irorun, o ti gba lati ayelujara, ko ṣii, ti a pa, ti tẹ nọmba foonu sii, ti gba koodu ninu rẹ ti o ti tẹ sii ni alabara ti a fi sori ẹrọ, ati voila, o le iwiregbe ati gbadun!

Lori Linux: ni kete ti gba lati ayelujara awọn package fun GNU / Linux bamu si faaji ti o fẹ (32 Bit = iX86 / 64 Bit = amd64), faili kanna "Tar.xz" gbaa lati ayelujara ati awọn Bash Shell akosile yẹ ki o lọ papọ ni ọna kanna (pelu "/ Ile / $ USERNAME") ati ṣiṣe pẹlu aṣẹ aṣẹ $ bash my_script_telegram.sh .

Akoonu rẹ yẹ ki o jẹ diẹ tabi kere si eyi:


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

Akọsilẹ: Ti o ba fẹ tabi le ni iwọn (lati inu wiwo olumulo) ṣii sipo naa ki o ṣiṣẹ taara laisi ọna asopọ kan (ọna abuja) lati inu akojọ aṣayan tabi tabili, foju kọ akoonu ti iwe afọwọkọ naa. Ti o ba ṣẹda iwe afọwọkọ kan ranti lati ni aabo ati je ki o dara ni deede, iyẹn ni, ṣẹda awọn ilana ṣiṣe pataki nitori pe laarin awọn ohun miiran o le ṣee ṣe nipasẹ gbongbo superuser, o le ṣe lati eyikeyi ọna, ṣe idaniloju faaji rẹ ati ti package, laarin awọn miiran ti o wulo pupọ.

Emi tikararẹ gbagbọ pe o yẹ ki a "dẹrọ ati igbega lilo Standalone tabi Awọn ohun elo ori Ayelujara (Webapps / SaaSS) lori GNU / Linux iru eyikeyi (Ọfẹ / Ṣii / Ọfẹ / Aladani / Pipade / sanwo), niwọn igba ti a ba ṣaju akọkọ, ojurere ati gbagbọ tiwa Standalone tabi Awọn ohun elo Ayelujara (Ọfẹ / Ṣii / Ọfẹ) bi pataki awọn omiiran si awọn miiran (Owo Aladani / Ti Pipade) ”.

Nitorina Mo nireti eyi atejade o jẹ ti wulo pupọ!

Awọn aworan itọkasi

Agbegbe iṣẹ 1_032

Agbegbe iṣẹ 1_034Agbegbe iṣẹ 1_033


Awọn akoonu ti nkan naa faramọ awọn ilana wa ti awọn ilana olootu. Lati jabo aṣiṣe kan tẹ nibi.

Awọn asọye 9, fi tirẹ silẹ

Fi ọrọ rẹ silẹ

Adirẹsi imeeli rẹ yoo ko le ṣe atejade. O beere aaye ti wa ni samisi pẹlu *

*

*

  1. Lodidi fun data naa: Miguel Ángel Gatón
  2. Idi ti data naa: SPAM Iṣakoso, iṣakoso ọrọ asọye.
  3. Ofin: Iyọọda rẹ
  4. Ibaraẹnisọrọ data: Awọn data kii yoo ni ifọrọhan si awọn ẹgbẹ kẹta ayafi nipasẹ ọranyan ofin.
  5. Ibi ipamọ data: Alaye data ti o gbalejo nipasẹ Awọn nẹtiwọọki Occentus (EU)
  6. Awọn ẹtọ: Ni eyikeyi akoko o le ni opin, gba pada ki o paarẹ alaye rẹ.

  1.   Juancho wi

    Pipese sọfitiwia ti ara ẹni dabi fifun awọn oogun tabi taba, o jẹ irira.
    O n darukọ Spotify, iṣẹ iṣowo ti o ti wa ni pipade orisun. Nigbati wọn dẹkun jijere lati iṣẹ yii, nigbati Mo ni ominira Emi yoo lo, wọn paapaa lo eegun Iṣakoso Awọn ẹtọ Digital. O ni SHIT.
    Ti o ba fẹ lati ni ominira, maṣe tẹtisi orin MP3, filasi ti o kere pupọ tabi awọn ọna kika Apple, o n fi ara rẹ han si malware! Iku si ikọkọ, igbesi aye gigun si Sọfitiwia ọfẹ.

    1.    Anon801 wi

      Idakẹjẹ Torvalds.
      Ṣe afiwe sọfitiwia ti ara ẹni pẹlu awọn oogun? Njẹ o le jẹ afọju yẹn gaan?

  2.   Jose Albert wi

    Olufẹ, Mo n wa awọn omiiran lati ṣe akiyesi ati ohun kan ti Mo rii ni eyi:

    http://www.soundnodeapp.com/

    Mo ti gba tẹlẹ ṣiṣẹ lori GNU / Linux mi ati pe yoo firanṣẹ nipa rẹ laipẹ bi yiyan si iranran. Buburu Emi ko le fun ọ ni iboju titẹ ni bayi nitorinaa o le rii pe o n ṣiṣẹ!

    Ṣugbọn ranti, jijẹ RMS laisi jijẹ bii rẹ ko ni ibamu, iwa, iṣe ati ọjọgbọn!

    Saludos!

  3.   Anon801 wi

    Tutorial naa dabi pe o pari patapata. O ṣeun 😀

    Mo kan fẹ ṣe atunṣe pe anime kii ṣe apanilerin Japanese. Iyẹn Manga xD

    1.    Madoka Magica wi

      Haha, o ṣẹlẹ pẹlu apanilerin yẹn, anime = iwara! Haha
      Ni apa keji, tuto ti o dara, telegram jẹ nla.

  4.   eVR wi

    O ṣeun fun ilowosi ṣugbọn… ṣe o mọ bii aiṣeṣe, ogbon inu ati ẹkọ ni lati tan iwe afọwọkọ bash lati ṣe igbasilẹ awọn faili ti n yipada nigbagbogbo? Loke awọn iwe afọwọkọ o fee ṣalaye. Emi ko ri lilo gidi ti eyi.

  5.   Jose Albert wi

    Olufẹ, a ti kọ idahun rẹ ni ọkan ninu awọn nkan mẹwa ti tẹlẹ ti a kọ, Mo ti di ọlẹ tẹlẹ lati tun ohun kanna ṣe leralera, ẹniti o ka iwe kan nikan ni ọna decontextualized ati kii ṣe jara!

  6.   Seba wi

    O tayọ!
    O ṣeun!
    Mo fẹ lati fi guguru sii daradara fun igba pipẹ!

  7.   sebastianbianchini wi

    Gan daradara!
    Awọn aṣayan ti o dara julọ