Uyenza njani iscript esisiseko

Uyenza njani iscript esisiseko

Kulo umthambo olandelayo osebenzayo, ejolise kubasebenzisi abatsha kwinkqubo yokusebenza esekwe kwi-Linux, ndiza kukubonisa indlela yokwenza ifayile ye Isikripthi esilula eya kuthi isincede sihlaziye iindawo zokugcina, sihlaziye zonke iisoftware okanye faka iinkqubo zethu esizithandayo ngokucofa nje kube kanye ngokuzenzekelayo.

Sebenzisa le elishicilelwe, Esiza kuyenza ngokwethu, siyakuphepha ukuthayipha kwisiphelo sendlela imiyalelo yokufaka usetyenziso, iinkqubo okanye imiyalelo eyahlukeneyo esihlala siyisebenzisa rhoqo.

Izixhobo zeskripthi esiqhelekileyo

Esinye sezixhobo eziphambili endizibonayo elishicilelwe esiya kuyenza ngokulandelayo, kanye xa sisenza ufakelo olucocekileyo lwe Ubuntu, nge kuphela sebenzisa iskripthi sinokuhlaziya kwaye sifake zonke iinkqubo esizithandayo ngaphandle kokufaka nantoni na kwisiphelo sendlela.

Sinokwenza i elishicilelwe Ngawo nawuphi na umyalelo esihlala siwusebenzisa ukunqanda ukuvula i-terminal kwaye siyenze ngesandla, ndishiya yonke into kwingcinga yakho.

Uyenza njani into elula

Ukwenza a Isikripthi esilula Ukwenza umyalelo onje ngokuhlaziya oovimba, okanye ukufaka iinkqubo esizithandayo, kuya kufuneka senze uxwebhu lombhalo omtsha nge-gedit kwaye singenise le migca ilandelayo ndiza kuyichaza

Uyenza njani iscript esisiseko

#! / bin / ibash

Bhala Gimp

waphosa phandle ..ngaphakathi kwe-1 sec iskripthi siqala, okanye sivale i-terminal

ukulala 1s

cd / ikhaya / umsebenzisi

sudo apt-get update

sudo ufumane-phucula uphuculo

Sudo apt-fumana ukufaka i-gimp compizconfig-useto-umphathi chromium-isikhangeli cairo-dock amarok vlc kolourpaint4 qbittorrent ubuntu-limited-extras

Umgca wokuqala wazo zonke ngulowo kufuneka siwuhloniphe kuba ngulo unika iodolo yifayile yokubhaliweyo esebenzayo ukutshatyalaliswa kwaye asifanelanga ukuyiguqula.

Amanye amalungu endiwaphawule ngombala obomvu ngalawo esinokuthi siwenze guqula ngokuthanda Ukwazi oku kulandelayo:

Bhala Siza kuyinika igama esilifunayo, ngokuzikhethela nganye kwaye ichaze ngokufutshane i elishicilelwe.

waphosa ngaphandle. Apha sinokukuxelela ukuba ide kangakanani elishicilelwe ukwenziwa xa i-terminal ivuliwe, ukuze sinike ixesha lokuvala i-terminal ukuba asifuni ukuyifaka.

ukulala ixesha lokulinda ukuba iskripthi sisebenze kwisiphelo sendlela

cd kunye nendlela apho sifuna ukufaka iinkqubo ngokungagqibekanga, kuyacetyiswa ukuba siyishiye njengoko injalo kuba iyakubazifaka kwifolda yomsebenzisi ngokungagqibekanga ngaphakathi kwethu Ikhaya.

Este Isiseko seskripthi Siza kuhlaziya uluhlu lweendawo zokugcina, siya kuhlaziya yonke isoftware efakiweyo kwaye emva koko iya kufaka zonke iinkqubo ezibandakanyiweyo emva komyalelo Sudo apt-fumana ukufaka, uhlala ushiya isithuba phakathi kwenkqubo nganye.

Uyenza njani iscript esisiseko

Ukuyiphumeza kuya kufuneka sivule kuphela nautilus nakukhetho ifayile / ukhetho / isimilo kwaye ujonge ibhokisi buza lonke ixesha okuphakathi kokukhetha kwe Iifayile zombhalo ezenziwayo.

Uyenza njani iscript esisiseko

Ngale ndlela, ngokunqakraza kabini kwifayile yokubhaliweyo esebenzayo, iya kusibuza ukuba siyafuna na  bonisa ngomhleli wokubhaliweyo okanye uyiqhube ngqo.

Iinkcukacha ezithe xaxe - Ubuntu 13.04, Ukudala i-USB esebenzayo kunye neYumi (kwividiyo)


Umxholo wenqaku uyabambelela kwimigaqo yethu imigaqo yokuziphatha yokuhlela. Ukuxela impazamo cofa apha.

Izimvo ezi-8, shiya ezakho

Shiya uluvo lwakho

Idilesi yakho ye email aziyi kupapashwa.

*

*

  1. Uxanduva lwedatha: UMiguel Ángel Gatón
  2. Injongo yedatha: Ulawulo lwe-SPAM, ulawulo lwezimvo.
  3. Umthetho: Imvume yakho
  4. Unxibelelwano lwedatha: Idatha ayizukuhanjiswa kubantu besithathu ngaphandle koxanduva lomthetho.
  5. Ukugcinwa kweenkcukacha
  6. Amalungelo: Ngalo naliphi na ixesha unganciphisa, uphinde uphinde ucime ulwazi lwakho.

  1.   Omnye umntu sitsho

    Ngaba oku kuyasebenza kwi-cinnarch Gnome distro okanye nayiphi na enye i-distro okanye kwi-ubuntu kuphela?

    1.    UFrancisco Ruiz sitsho

      Oku kuyakusebenzela nayiphi na Ubuntu okanye iDebian esekwe kwisithili.
      Nge-16/04/2013 ngo-01: 22, «Disqus» wabhala:

  2.   Jose Luis sitsho

    Unomdla kakhulu

    Singazongeza phi indawo yokugcina eyimfuneko kwiskripthi, njenge-medibuntu okanye i-jdownloader?

    Imuchas Gracias

    1.    UFrancisco Ruiz sitsho

      Kumgca omtsha ngentla kwesudo apt-fumana uhlaziyo

      2013/4/16 Ingxoxo

  3.   igavg712 sitsho

    Molo, ndiyithandile loo post. Ndingathanda ukwazi ukuba iskripthi sinokwenziwa ukunxibelelana neseva yeWebdav (eneneni i-hard drive exhunywe ngqo kwinethiwekhi) isebenzisa i-nautilus.

    Ngaba ukhona umntu owaziyo ukuba kunokwenzeka?

    1.    UFrancisco Ruiz sitsho

      Ngolu hlobo lweskripthi esisiseko unokuwenza nawuphi na umyalelo kwisiphelo sendlela, kuya kufuneka uyibeke esiphelweni sefayile yokubhaliweyo. Khange ndizame kodwa ndicinga ukuba izakusebenza.
      Ukubulisa

      2013/4/16 Ingxoxo

  4.   felipe sitsho

    Ndingabaleka ifayile ye-sh ngenxa yoko akukho mfuneko yokuba ndibaleke kwisiphelo sendlela
    kuba ndiyenza kwisiphelo sendlela
    Imidlalo ye-cd / pk
    chmod + x Pk.sh
    sh Pk.sh
    kwaye isicelo senziwe, siyakuba luncedo, ngaba ungacebisa into ethile ukuba ikwazi ukuyiphumeza kwi-icon yokuvula umbulelo

  5.   Jon sitsho

    Enkosi uFrancisco, kube luncedo olukhulu; Kwabo bavela kuMsDos, Win95-98-98_2ª, Xp, Win7, iyasinceda ukuba sizibhaptize kwiLinux (ndiyayithanda ngakumbi nangakumbi).
    Amanye amanqaku:
    NdineLinux Mint 17.1 URebecca Cinamon, ukwenza ifayile, kufuneka isendleleni (indlela, indlela okanye ukwamkelwa kwesikhombisi esisebenzayo), ukuba nayo ekhaya kwanele ~ (alt gr + ñ), kwaye kuya kufuneka utshintshe iimpawu kwifayile, ndibeka yonke into simahla ekufundeni nasekubhaleni kwaye ukhethe "vumela ifayile ukuba iqhube njengenkqubo", ulwandiso endilubekayo ngu "sh"; utshintsho lwe-chip, ukusuka kwi-bat ukuya kwi-sh 🙂