U dhis barnaamijkaaga tallaabo tallaabo adoo adeegsanaya Qoraalka Shell - Qaybta 4

Qoraaladii hore taxanahan taxanaha ah, waxaan dib uxasuusnay sida loo hirgaliyo a:

Shell ScriptingIyo kuwii hore, sida loo hirgaliyo a Shebang iyo BSM (Bash Mode Adag / Xaalad adag oo Bash ah).

Dhaqannada ugu wanaagsan ee lagu abuuro Qoraalka Shell ee GNU / Linux - Qaybta 1

Dhaqannada ugu wanaagsan ee lagu abuuro Qoraalka Shell ee GNU / Linux - Qaybta 2

Halkan waxaa ku yaal tusaale a Module Optimization, oo tusaale u soo qaadanaya mid ka mid ah kuwayga barnaamijyada (codsiyada) xaqiiqooyinka ku jira a Qoraalka Shell loo yaqaan Linux Post Ku Rakib - Qormo Laba Biloodle ah 8.0:

Tani waa inay noqotaa qaybta (qaybta) si loo rakibo baakadaha aasaasiga ah ee lagama maarmaanka u ah si isku mid ah u shaqeynaya isla, ama loo fuliyo ficilada ugu yar ee lagama maarmaanka u ah cusbooneysiinta, dayactirka ama waxqabadka Nidaamka Shaqada ama Nidaamka Howlgalka si wax walba ay ugu socdaan si qanacsan Anigu shaqsiyan waxaan kudarsadaa khadadka soo socda si aan u abuuro qaybtan


###############################################################################
# INICIO DEL MODULO DE OPTIMIZACIÓN AL LINUX POST INSTALL - SCRIPT BICENTENARIO               
###############################################################################

# Sección que instala los paquetes bases del LPI-SB

echo -e '\a'

apt update && apt install dialog gxmessage zenity espeak gksu -y && apt install -f && dpkg --configure -a

if [ $? = 0 ]; then

     echo ""
     echo ""
     echo "#--------------------------------------------------------#"
     echo "#LA INSTALACIÓN DE LOS PAQUETES HA CULMINADO EXITOSAMENTE#"
     echo "#--------------------------------------------------------#"
     echo ""
     echo ""

     play /usr/share/sounds/info.wav 2> /dev/null

     sleep 3
     clear

else

     echo ''
     echo ''
     echo '#--------------------------------------------------------#'
     echo '# LA INSTALACIÓN DE LOS PAQUETES NO CULMINO EXITOSAMENTE #'
     echo '#--------------------------------------------------------#'
     echo ''
     echo ''

     play /usr/share/sounds/warning.wav 2> /dev/null

     sleep 3
     clear

     echo ''
     echo ''
     echo '#--------------------------------------------------------#'
     echo '#                  EJECUTE MANUALMENTE                   #'
     echo '# UN MANTENIMIENTO PREVENTIVO Y CORRECTIVO EN SU SISTEMA #'
     echo '#   EJECUTANDO LA SIGUIENTES ORDEN DE COMANDO, 1 HA 1:   #'
     echo '#                                                        #'
     echo '#                       apt update                       #'
     echo '#                     apt install -f                     #'
     echo '#                   dpkg --configure -a                  #'
     echo '#                       apt upgrade                      #'
     echo '#                                                        #'
     echo '#   LUEGO INSTALE MANUALMENTE LOS PAQUETES NECESARIOS    #'
     echo '#         CON LA ORDEN DE COMANDO SIGUIENTE:             #'
     echo '#                                                        #'
     echo '#      apt install dialog gxmessage zenity espeak -y     #'
     echo '#                                                        #'
     echo '#  AHORA, VUELVA HA INTENTAR EJECUTAR EL SCRIPT LPI-SB   #'
     echo '#--------------------------------------------------------#'
     echo ''
     echo ''

     sleep 3
     clear

     play /usr/share/sounds/info.wav 2> /dev/null

     exit 0

fi

wget -o /dev/null --user-agent="Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.2 Safari/537.36" -O "/tmp/audio.mp3" "https://translate.google.co.ve/translate_tts?ie=UTF-8&q=BIENVENIDO%20AL%20LINUX%20POST%20INSTALL%20-%20SCRIPT%20BICENTENARIO&tl=es&total=1&idx=0&textlen=54&tk=511133.124198&client=t&prev=input&ttsspeed=0.24" ; play -q /tmp/audio.mp3

wget -o /dev/null --user-agent="Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.2 Safari/537.36" -O "/tmp/audio.mp3" "https://translate.google.co.ve/translate_tts?ie=UTF-8&q=ESTIMADO%20USUARIO%2C%20ESPERE%20UNOS%20SEGUNDOS%20MIENTRAS%20EL%20PROGRAMA%20SE%20CARGA%20E%20INICIA&tl=es&total=1&idx=0&textlen=77&tk=337132.200023&client=t&prev=input" ; play -q /tmp/audio.mp3

###############################################################################
# FINAL DEL MODULO DE OPTIMIZACIÓN AL LINUX POST INSTALL - SCRIPT BICENTENARIO               
###############################################################################

====================

Sidaad arki karto, qaybtani waxay ku shaqaysaa a cusbooneysiin karti, oo ay ku xigto rakibidda xirmooyinka wada hadal gxmessage zenity espeak gksu, oo kusocota amarada taliska garashada ku xirnaan -f y dpkg –ku qaabeynta -a. Haddayse ahaan lahayd iyo haddii keliya haddii wax walba si wanaagsan loogu fuliyay, a fariin muuqaal ah by terminal dhammaystirka guul leh a heeganka sonic oo waxaan sii waday talaabada xigta (module / section) ee Qoraalka Shell. Haddii kale, a fariin muuqaal ah by terminal ee garashada aan guuleysan iyadoo a heeganka sonic, mid kale farriin muuqaal ah oo ku talinaysa ficillada gacanta si loo fuliyo si looga fogaado qaladka mar kale la gaadhay, ka dibna dhammeeyo fulinta ah Qoraalka Shell.

Ku saabsan 2dii sadar ee ugu dambeysay ee moduleka, kuwa ku bilaabma wget amar, hada kuwani muhiim maahan, maadaama kuwani ay qayb ka yihiin a habka tijaabada igu habeeyay si aan u gaaro taageerada codka ee a Qoraalka Shell leh qadka internetka adoo isticmaalaya Qalabka codeeyaha khadka tooska ah ee laga helo Google Translate iyo codkeeda dhedig ee dareenka leh, oo sidaas ku beddela Qalabka sameeyaha oo leh codka robotka (lab / dhadig) waxaa laga bixiyaa gudaha GNU / Linux Operating Systems oo wata xirmooyinka (barnaamijyada) espeak, iid, festvox, mbrola, hadal iyo xiddig.

Talo soo jeedin:

AKHRISO Dukumintiga: «CATHEDRAL IYO BAZAR»

Cathedral iyo Bazaar waa nooc ka mid ah muujinta ay abuurtay Eric S. Raymond sanadka 1.998 inaad isku daydo inaad sharaxaad ka bixiso aragtidaada iyo khibradaada shaqsiyeed (Abuuritaanka barnaamijka Soo -dir) waxa uu ka dareemay abuurista guusha iyo horumarka ee Linux iyo barnaamijyadeeda la xiriira, gaar ahaan aragtida farqiga u dhexeeya Moodooyinka Horumarinta Barnaamijka, oo isagu isagu shaqsi ahaan ugu yeeray: Model Cathedral iyo Model Bazaar.

Falanqeynteyda kooban ee dukumiintigaas waa sida soo socota:

Akhriskaan wuxuu soo jeedinayaa ama soo bandhigayaa aragtida ka jirta adduunka Injineernimada Software waxaa jira “laba qaab oo kala duwan oo horumarineed, qaabka cathedral, lagu dabaqi karo inta badan horumarka laga sameeyay adduunka ee Barnaamijka ganacsiga, ka hor mood bacar, oo caan ka ah adduunka Linux ". Isaga oo carabka ku adkeeyay in labadan moodal ay ka soo jeedaan meelaha bilowga ah ee iska soo horjeedka nooca geedi socodka khaladka barnaamijka, iyo aragtidiisa gaarka ah ee ku saabsan waxa uu ugu yeeray Sharciga Linus kaas oo sheegay waxyaabaha soo socda: "Marka la eego tiro ku filan oo indhaha ah, qaladaadka oo dhami waxba kuma jiraan" ama haddii si kale loo dhigo: Iyada oo leh tiro indho ku filan, qaladaadka oo dhami waa wax yar.

Sidoo kale akhriskaan qoraagu wuxuu xoojinayaa ereyga Hacker, taas oo aan u maleynayo in qoraagu ku tilmaamay nooc ka mid ah Adeegsade heer sare ah oo awood u leh inuu fahmo oo si hufan uga faa'iideysto barnaamij, iyo inuu ogaado, soo jeediyo ama hirgeliyo sixitaanka ama wax ka beddelka foomka iyo walaxda wax ku oolka ah ee bulshada isticmaala oo dhan.. Waxaan aad u jeclaystay fikradan is-soo jeedinta ah tan iyo markii aan u maleynayo inay sax tahay, si kastaba ha noqotee, waxaan ka tegayaa mid aan sidoo kale aad u jeclahay maxaa yeelay waa wax badan oo caalami ah iyo / ama guud.

Hacker"Linux waa qaran dumis." Sababta Waxa ugu horreeya ee akhriskani inoo sheegayaa waa:

Ilaa waqtigaas waxaa jiray kala duwanaansho ballaaran oo hababka Hormarinta Barnaamijka ama moodellada ku saleysan a Qaab-dhismeed dheeri ah oo qorshaysan bilowgii hore " iyadoo ay sabab u tahay ficilkii naqshadaynta Software-ka loo qaatay wax la xiriira a X Factor taasi waxay u horseedaa Kakanaanta adag. Taasna in kasta oo xaqiiqda ay tan hore uga jirtay Dunida UnixSi kale haddii loo dhigo, shaqada oo ka kooban aalado yaryar, horumarin dhaqso ah iyo barnaamijyo horumarineed, soo bixitaanka falsafadda horumarinta barnaamijka bilaashka ah ee hoos yimaada Linux ayaa arrinta u gudbisay heer kale oo casriyeysan.

Taas awgeed, Halka Horumarinta Barnaamijyada Gaarka loo leeyahay ayaa laga sameeyay "Hab aamusnaan ah oo qadarin leh", sidaad u dhisaysid a Cathedral, Horumarinta Barnaamijka Bilaashka ah (Linux) waxaa laga sameeyay "jidka mashquulka badan iyo ajandayaal badan (waddooyin) iyo habab (soo jeedin) ", sidii aad ku jirtay weyn bacadle.

Ugu dambeyntiina, waxay soo bandhigeysaa dhismooyin taxane ah oo qiimo leh burburin iyo dheef-shiid kiimikaadkooda ku habboon si loo fahmo kuwa u horumariya bulshada Adeegyada Software-ka Bilaashka ah. Dhismayaashaani waa:

  1. DHAMMAAN SHAQOOYINKA WANAAGSAN EE BARNAAMIJKA AYAA KA BILAABAYA ISKU DAY SI AAD UGU FADLANATO SHAQSIYADA SHAKHSIGA AH EE AAD ISKU QABTAY.
  2. BARNAAMIJAYAASHA WANAAGSAN AYAA GARANAYA WAXA QORA. KII UGU WEEYNAA WUXUU GARAN YAHAY WAX LAGU QORO (OO DIIDO).
  3. KA FIKIR SIDII UGU DANBAYN LOOGU SOO KOOBAN YAHAY: WAAD KU DANBAYN DOONTAA INTAAD SAMEYSID SIDIIBA.
  4. HADII AAD HAYSATO DHAQAN XAQ AH, DHIBAATOOYIN XIISO BADAN AYAA KU HELI DOONA.
  5. MARKII BARNAAMIJYAHU IDIIN DANAYNAYN, XILKAAGA UGU DANBEEYA WAA INAAD KU GUULEYSATO GUULEED GUULEED.
  6. KU DAWEYNTA ISTICMAALAYAASHA SIDA LOOGU SHAQAYN YAHAY WAA HABKA KOOBAN EE LOOGU DHAMMAAN KARO SI LOOGU DHAWEEYO SI KU FUDUD LOOGU QAADO BARNAAMIJKA.
  7. SII SII DHEH. BARNAAMIJIYO INTA BADAN. OO DHAGAYSO ISTICMAALAYAASHA.
  8. LA SIIYAY BADBAAD KU FILAN BARNAAMIJYADA SHAQAALAYAASHA IYO QAXAASIMADA, KU dhowaad DHAMMAAN DHIBAATOOYINKA SI DEGDEG AH AYAA LOOGA GARAN DOONAA XALAYNA AY QOF UU MUUQAAL U LEEYAHAY.

Waxaa lagu daray 11 goobood oo haray oo inbadan ka mid ah nooca miyirka leh (anshax), taas oo aan ku imaan sheekada laakiin mid walba uu u fasirto akhristaha (horumariye), taas oo kiiskeyga gaarka ah, igu hogaamisay gabagabada soo socota:

LOOGU TALAGALAYWaxaan rajeynayaa inaad jeceshahay oo macluumaadkaas waa faa'iido, tan iyo Akhrinta Katidralka iyo Bazaar waa tixraac qasab ku ah dhammaan kuwa barnaamij kasta oo horumarineed ka sameeya Software-ka Bilaashka ah, haba u kala weynaadaan ama ha yaraadeene.

Mar dambe, qoraalada mustaqbalka waxaan sii wadeynaa inaan aragno tusaale modules (qaybo) fuliya howlaha sida:

  • MUUQAALKA OGOLAANSHAHA ISTICMAALKA PASSWORD
  • HABKA HELISTA NIDAAMKA HAWLGALKA HAWLGALKA
  • Moodalka qaabeynta qaabeynta luqadda
  • MUUQAALKA ISKU DHISKA PROXY EE DEEGAANKA FULINTA

Kuwa kale oo badan!

Iyo sida had iyo jeer, waxaan kugula talinayaa waxbarashada ku tag hab is-baray ku saabsan amarrada: gksu, wada hadal, gxmessage, zenity, espeak, ciyaar, iyo kuwo kale oo badan si loo abuuro isdhexgalka garaafka ee Terminal ama loogu talagalay Adeegga Miisaanka, oo leh digniino sonic ama multimedia, iyo hormarinta aqoonta ay hadhow adeegsan doonaan.

Xusuusnow in kuwani iyo wixii kale ee talo ah ee qaarkood module, function, variable, amarka ama ficilka guud ahaan waa la fulin karaa siyaabo badan, oo waxa halkan lagu muujiyey waa mid keliya hab fudud, ee siyaabo badan oo suurtagal ah oo macquul ah taas oo uu yidhi tallaabo waa la qaadi karaa ama waa la fulin karaa!

Kaliya inaan dhammeeyo waan kaa tegayaa, a Shaashadda aniga ayaa sameeyay, inaan ku tuso waxaad awood u yeelan lahayd, markaad tan dhammaysato ka dib Koorsada Shell Scripting ee ku taal DesdeLinux:

LPI-SB8 Imtixaanka ScreenCast

(LINUX POST INSTALL - SCRIPT BICENTENARIO 8.0.0) - Qaybta 2


Nuxurka maqaalka wuxuu u hogaansamayaa mabaadi'deena anshaxa tifaftirka. Si aad u soo sheegto khalad guji Halkan.

Noqo kuwa ugu horreeya ee faallo bixiya

Ka tag faalladaada

cinwaanka email aan la daabacin doonaa.

*

*

  1. Masuul ka ah xogta: Miguel Ángel Gatón
  2. Ujeedada xogta: Xakamaynta SPAM, maaraynta faallooyinka.
  3. Sharci: Oggolaanshahaaga
  4. Isgaarsiinta xogta: Xogta looma gudbin doono dhinacyada saddexaad marka laga reebo waajibaadka sharciga ah.
  5. Kaydinta xogta: Macluumaadka ay martigelisay Shabakadaha Occentus (EU)
  6. Xuquuqda: Waqti kasta oo aad xadidi karto, soo ceshan karto oo tirtiri karto macluumaadkaaga.