Hloov cov ntawv ntsa nrog daim duab ntawm qhov chaw

Customizing Linux yog qhov haujlwm zoo nkauj thiab yog ib qhov zoo tshaj plaws yog hloov lub wallpaper rau ib qho uas paub peb, yog li ntawv thov hu ua nasa-wallpaper tau tshwm sim uas tso cai rau peb pom qhov chaw ntawm peb cov ntsa.

Dab tsi yog nasa-ntawv ntsa?

Nws yog daim ntawv thov davhlau ya nyob twg uas tso cai rau koj hloov daim duab ntawm lub Linux system los ntawm tau txais cov duab los ntawm NASA cov servers. Qhov no yog pub los ntawm Qhib Cov Ntaub Ntawv faib los ntawm NASA nws tus kheej.

NASA_ID: is040e008244

Qhov program no muaj ob lub ntsiab rub tawm:

  • Rub tawm APOD (Astronomy Duab ntawm lub Hnub), qhov no yog cov duab luam tawm txhua hnub los ntawm NASA ntawm peb lub qab ntuj.
  • Nrhiav cov duab hauv Cov Tsev qiv ntawv NASA, qhov twg ntau txhiab tus ntawv.

Ib qho ntxiv, cov tawm ntawm qhov kev zov me nyuam ib txwm sau cov ntaub ntawv hais txog dab tsi ntawm daim duab txhais tau lossis sawv cev, txhawm rau pab txhawb rau kev tshaj tawm astronomical (ua lus Askiv).

Lub chaw txhawb nqa desktop ib puag ncig yog GNOME, Cinnamon, MATE, LXDE, thiab XFCE; rau lub sijhawm.

Nruab Nruab

Debian thiab derivatives

Rub tawm ntawv .deb los ntawm https://github.com/davidpob99/nasa-wallpaper/releases , thaum lub sijhawm luam tawm cov blog no qhov kev pab cuam yog nyob rau hauv version 1.0, yog li cov ntaub ntawv npe yog nasa-wallpaper_1.0_all.deb

Mus rau hauv daim nplaub tshev uas koj rub tawm cov ntawv thiab khiav $ sudo dpkg -i nasa-wallpaper_1.0_all.deb

Arch Linux

Qhov kev pab cuam yog tuav los ntawm AUR, yog li cia li khiav $ yaourt -S nasa-wallpaper

Ua raws ntawm cov cai

Clone lub chaw cia khoom: $ git clone https://github.com/davidpob99/nasa-wallpaper
Nkag mus rau hauv cov ntawv sau cia: $ cd nasa-wallpaper
Muab tso cai rau cov ntawv: $ chmod -x ./nasa-wallpaper
Khiav cov ntaub ntawv: $ ./nasa-wallpaper

Nrog cov qauv kawg no qhov kev zov me nyuam tsuas yog nkag tau los ntawm kev coj ua nws los ntawm cov ntawv tais ceev tseg uas nws tau rub tawm

Ua haujlwm

Qhov yooj yim syntax yog: $ nasa-wallpaper < opciones secundarias > [-T entorno de escritorio] [opciones principales]

-T:  tuaj yeem tau txais cov txiaj ntsig gnome, cinnamon, mate, lxde y xfce.

Tag nrho cov piv txwv nram qab no yuav muaj kev cuam tshuam GNOME desktop ib puag ncig.

Raws li kuv tau hais ua ntej, koj tuaj yeem xaiv qhov twg mus rub lub keeb kwm yav dhau los ntawm (APOD thiab NASA Library), yog li muaj ob txoj hauv kev tseem ceeb:

APOD

Syntax yooj yim: $ nasa-wallpaper -T gnome -a Rub tawm daim duab ntawm lub hnub ntawm hnub ntawd nws tus kheej (logically).
Xaiv APOD ntawm ib hnub tshwj xeeb, piv txwv Lub Peb Hlis 27, 1999: $ nasa-wallpaper -d 1999-03-27 -T gnome -a

NASA Lub Tsev Qiv Ntawv

Syntax yooj yim: $ nasa-wallpaper -T gnome -n Rub tawm cov duab random ntawm NASA qhov chaw cia khoom.
Rub cov duab random nrog lub ntsiab lus lub ntiaj teb: $ nasa-wallpaper -w earth -T gnome -n.
Rub cov duab random nrog lub ntsiab lus Lub peb hlis ntuj thiab tshawb txij xyoo 2016 mus rau: $ nasa-wallpaper -w mars -y 2016 -T gnome -n.
Rub cov duab random nrog lub ntsiab lus galaxy , nrhiav nyob rau xyoo 2015 pib thiab uas tau tshwm sim los ntawm California: $ nasa-wallpaper -w mars -y 2015 -l california -T gnome -n.

Cov kev xaiv qib siab

Nws yog qhov ua tau los txhais cov teeb meem tsis tseem ceeb xws li hloov API tseem ceeb lossis tshawb hauv ntau qhov chaw xws li tus kws yees duab uas yees daim duab. Kom paub txhua txoj kev xaiv ua tau $ man nasa-wallpaper o $ nasa-wallpaper -hCov. Koj tseem tuaj yeem sab laj cov lus qhia online: https://github.com/davidpob99/nasa-wallpaper/wiki/Reference

Khiav thaum pib

Qhib cov ntawv /etc/rc.local nrog nano: $ sudo nano /etc/rc.local
Hloov kho nws los ntawm kev ntxiv qhov kev xav yam ua ntej exit 0, piv txwv rau rub tawm APOD ntxiv nasa-wallpaper -T gnome -a ||exit 1.
Rov ua dua.

Daim ntawv tso cai

Lwm qhov zoo ntawm daim ntawv thov no yog qhov qhib. Nws cov cai tuaj yeem sab laj ntawm GitHub thiab siv saib cov ntawv tso cai Apache 2.0

Kev Koom Tes

Yog tias koj xav tias koj tuaj yeem pab txhim kho txoj haujlwm, koj tuaj yeem ua li ntawd los ntawm kev nkag mus GitHub


Cov ntsiab lus ntawm tsab xov xwm ua raws li peb cov ntsiab cai ntawm kev tswj hwm kev ncaj nceesCov. Tshaj tawm ib qho yuam kev nyem no.

5 lus, tawm koj li

Tso koj saib

Koj email chaw nyob yuav tsis tsum luam tawm. Yuav tsum tau teb cov cim nrog *

*

*

  1. Lub luag haujlwm rau cov ntaub ntawv: Miguel Ángel Gatón
  2. Lub hom phiaj ntawm cov ntaub ntawv: Tswj SPAM, kev tswj xyuas tawm tswv yim.
  3. Sau raws cai: Koj kev tso cai
  4. Kev sib txuas lus ntawm cov ntaub ntawv: Cov ntaub ntawv yuav tsis raug xa mus rau lwm tus neeg thib peb tsuas yog los ntawm kev txiav txim siab raug cai.
  5. Cov ntaub ntawv khaws cia: Cov Ntaub Ntawv khaws tseg los ntawm Occentus Networks (EU)
  6. Txoj Cai: Txhua lub sijhawm koj tuaj yeem txwv, rov qab thiab tshem tawm koj cov ntaub ntawv.

  1.   Esteban Adrián Pérez: koj puas xav tau ntau tus thwjtim? said

    Errata
    Qhov twg hais tias:
    Rub tawm cov duab random nrog cov lus tseem ceeb galaxy, tshawb rau xyoo 2015 pib thiab uas yog muab los ntawm California:
    $ nasa-wallpaper-w mars -y 2016 -l california -T gnome -n
    Kuv yuav tsum hais tias:
    $ nasa-wallpaper-w mars -y 2015 -l california -T gnome -n

    🙂

    1.    davidpob 99 said

      Txoj cai, nws yuav tsum tso:
      $ nasa-wallpaper-w galaxy -y 2015 -l california -T gnome -n
      Ua Tsaug 😉

      1.    Esteban Adrián Pérez: koj puas xav tau ntau tus thwjtim? said

        Ha! Errata nyob rau hauv lub errata ... XD ... Koj zoo siab tos txais 🙂

  2.   john said

    thiab KDE?

    1.    davidpob 99 said

      KDE no tseem tsis tau muaj vim muaj teeb meem thaum hloov tom qab, yog koj xav tias koj tuaj yeem pab txhawb: https://github.com/davidpob99/nasa-wallpaper/