Momwe mungagawire mapulogalamu athu pa Ubuntu ndi ma distros ena

Ngati muli owerenga mapulogalamu kapena ayi ndipo mukufuna njira yoyikitsira pulogalamuyo kapena script, Nazi njira zingapo.
Phukusi la DEB lokhala ndi zilembo (Zokha za debian ndi zotumphukira)

Njirayi ndiyoti tikakhala ndi nambala yogwiritsa ntchito.

Choyamba timayika pulogalamu yomwe imachita zamatsenga "Chotsani", mu terminal yomwe timachita

sudo aptitude kukhazikitsa cheke

Mwachitsanzo tidzagwiritsa ntchito laibulale "OKHALA", koperani font kuchokera Apa, timapanga chikwatu ndikuyika fayilo olumala-3.98.4.tar.gz ndipo kuchokera ku terminal monga mizu timalowa fodayo ndikuchita mizere iyi.

tar -xzvf wopunduka-3.98.4.tar.gz cd wopunduka-3.98.4 ./configure make checkinstall cp * .deb ../ cd .. rm -R lame-3.98.4 chmod 777 lame-3.98.4 *. deb

Imatipangira phukusi la ngongole, njirayi imayika phukusi lomwe limapangidwa kumapeto.

Phukusi Lopanga DEB (Zokha za debian ndi zotumphukira)

Njirayi ndiyomwe timalemba kapena kugwiritsa ntchito

Kapangidwe ka Phukusi la DEB

| Kukhazikitsa (General Folder) | | -DEBIAN (Foda pomwe pali mafayilo Osintha) | --control (Kukhazikitsa fayilo) | --preinst (Fayilo kapena Zolemba zomwe zimayendetsa musanayike) | --postinst (Fayilo kapena Script yomwe imatha pambuyo pa Kuyika) | --prerm ( Fayilo kapena Script kuti muthamange musanachotse) | - postrm (Fayilo kapena Script kuti muthamangitse pambuyo pochotsa) | | -usr (Foda komwe mafayilo anu ali) | -usr / bin (Foda pomwe pamakhala zosintha kapena zolembedwera) | -usr / share / pixmaps (Foda pomwe pali mafano) | -usr / share / application (Foda ili kuti oyambitsa)

Chitsanzo cha «ulamuliro» file

Phukusi: Mtundu wa TUPACKAGE: Zomangamanga za VERSION: amd64 (i386 kapena zonse) Wosunga: AUTHOR Gawo: mnzake / intaneti Choyambirira: Kufotokozera mwachangu: TEXT

Kupanga Phukusi la DEB

sudo chmod -R mizu: kukhazikitsa mizu / sudo chmod -R 755 kukhazikitsa / sudo dpkg -b kukhazikitsa / package.deb chmod 777 package. debebown -R kukhazikitsa

Ndi deta iyi titha kupanga kale phukusi la pulogalamu yathu, monga chitsanzo tidzapanga bash script

Timapanga chikwatu chotchedwa "Ubunlog" ndi mkati mwa dzina ili Khazikitsa
ndiye mkati mwa chikwatu chomaliza timapanga zikwatu ziwiri dzina limodzi "DEBIYANI" ndi wina «Usr».

Ili ndiye fayilo yoyang'anira

Phukusi: ubunlog-web Version: 0.11.5.13 Zomangamanga: Wosunga zonse: DZINA LANU Gawo: mnzake / intaneti Choyambirira: Kufotokozera mwachangu: Maphunziro, ma desktops a Linux, mapulogalamu, nkhani ndi chilichonse chokhudza Ubuntu

Timasunga mkati mwa chikwatu "DEBIYANI" zomwe tidapanga kale ngati «control»

Khodi iyi imachokera pa fayilo ya postinst

#! / bin / sh chmod 755 / usr / bin / ubunlog-web chmod + x / usr / bin / ubunlog-web chmod 755 /usr/share/pixmaps/ubunlog-web.png chmod 755 / usr / share / application / ubunlog-web.desktop chmod + x /usr/share/applications/ubunlog-web.desktop

Timasunga izi mufoda momwemo monga "postinst"

Tsopano timapanga zikwatu za script, Launcher ndi chithunzi, mkati mwa chikwatu Khazikitsa timapanga chikwatu chotchedwa «Usr»

Monga mukuwonera tili ndi zikwatu ziwiri chimodzi "DEBIYANI" ndi wina «Usr» zomwe tidapanga masekondi apitawa, mkati mwa omaliza timapanga zikwatu "Bin" ndi wina "Wophatikiza"

Iyi ndi nambala yolemba

#! / bin / sh firefox https://ubunlog.com/ &

timasunga mu chikwatu "Bin" ndi dzina "Ubunlog-intaneti".

Tsopano tikupita ku chikwatu "Wophatikiza" mu izi timapanga chikwatu chotchedwa "Pixmaps" ndipo timasunga ndi dzina "Ubunlog-web.png" tidatsitsa chithunzichi kuchokera Apa

Tiyenera kupanga choyambitsa, chifukwa ichi timapanga chikwatu chomaliza mkati gawo ndi dzina "Mapulogalamu"

Izi ndizofanana

[Kulowa Kwadesi] Encoding = UTF-8 Name = Ubunlog Web Blog Comment = Maphunziro, Ma desktops a Linux, mapulogalamu, nkhani ndi chilichonse chokhudza Ubuntu GenericName = Maphunziro, ma desktops a Linux, mapulogalamu, nkhani ndi chilichonse chokhudza Ubuntu Exec = ubunlog-web Terminal = zabodza Mtundu = Chizindikiro Chogwiritsa Ntchito = ubunlog-web Categories = Ntchito; Mtanda; Intaneti; StartupWMClass = ubunlog-web StartupNotify = zowona

Amasunga mu chikwatu "Mapulogalamu" Como "Ubunlog-web.desktop"

Tili ndi zonse zokonzeka, zimangotsalira pangani deb package, imakufunsani mawu achinsinsi, koma siyiyika chilichonse.

sudo chmod -R mizu: kukhazikitsa mizu / sudo chmod -R 755 kukhazikitsa / sudo dpkg -b kukhazikitsa / ubunlog-web_0.11.5.13_all.deb chmod 777 ubunlog-web_0.11.5.13_all.deb chown -R setup

Ngati muli ndi zonse bwino muli ndi phukusi "ubunlog-web_0.11.5.13_all.deb".

Buku Lopanga Lokha (Kuyesedwa kokha pa Ubuntu, Kumagwira pa Distro Yonse)

Njira iyi ndikupanga mafayilo okhala ndi script yodzipangira (http://megastep.org/makeself/)

Amatsitsa kuchokera pa intaneti, ndi fayilo ya .run, amapatsa zilolezo ndipo timachita,

Momwe mungagwiritsire ntchito.

makeelf.sh FOLDER / SOURCE / RESULT.RUN "TEXT" ./setup.sh

Monga mukuwonera "ZOKHUDZA / CHIYAMBI / » ndiwo mafayilo ndi zikwatu za pulogalamu yathu kapena script «RESULT.RUN» ndi fayilo yotulutsa kapena fayilo Yodzipangira
"Zolemba" ndi uthenga womwe umawonetsedwa mukamayendetsa fayilo Yokha, ndipo imatsekedwa m'mawu.
"./Setup.sh" ndi script yomwe imayendetsa mukamasula fayilo Yodzichotsera, musaiwale kuipatsa zilolezo.

Kuti timveke bwino tidzagwiritsa ntchito chitsanzo chomwecho cha phukusi la deb koma tidasinthidwa.

Timapanga chikwatu chotchedwa "Ubunlog" ndipo timatengera chikwatu chomwe chimadzipangitsa kudzipanga, tachitcha dzina Amadzipanga yekha
Mu foda "Ubunlog" pangani dzina lina khazikitsa ndipo mkati mwa malowa mafayilo otsatirawa.

Sakani Yokhazikitsa

#! / bin / sh cp ubunlog-web / usr / bin / chmod 755 / usr / bin / ubunlog-web chmod + x / usr / bin / ubunlog-web cp ubunlog-web.png / usr / share / pixmaps / chmod 755 /usr/share/pixmaps/ubunlog-web.png cp ubunlog-web.desktop / usr / share / application / chmod 755 /usr/share/applications/ubunlog-web.desktop chmod + x / usr / share / application / ubunlog-web.desktop

Amasunga monga setup.sh

Zolemba Zathu

#! / bin / sh firefox https://ubunlog.com/ &

Amasunga ngati «ubunlog-web» chithunzi chomwe timachisunga ndi dzina "Ubunlog-web.png" tidatsitsa chithunzichi kuchokera Apa

Mtsuko

[Kulowa Kwadesi] Encoding = UTF-8 Name = Ubunlog Web Blog Comment = Maphunziro, Ma desktops a Linux, mapulogalamu, nkhani ndi chilichonse chokhudza Ubuntu GenericName = Maphunziro, ma desktops a Linux, mapulogalamu, nkhani ndi chilichonse chokhudza Ubuntu Exec = ubunlog-web Terminal = zabodza Mtundu = Chizindikiro Chogwiritsa Ntchito = ubunlog-web Categories = Ntchito; Mtanda; Intaneti; StartupWMClass = ubunlog-web StartupNotify = zowona

Amasunga monga "Ubunlog-web.desktop"

Tsopano timapanga fayilo Yodzipangira

chmod 755 setup / chmod + x setup / setup.sh sh ../makeself/makeself.sh setup ubunlog-web.run "Ubunlog - Maphunziro, ma desktops a Linux, mapulogalamu, nkhani ndi zonse zokhudza Ubuntu" ./setup.sh

Tili ndi fayilo yodzipangira yokha.

Ndikukhulupirira izi zikuthandizani ndi china chake

Zikomo chifukwa cha ndemanga zanu, ngati pali zolakwika zilizonse zomwe zimachokera m'maganizo anu, hahaha


Zomwe zili m'nkhaniyi zikutsatira mfundo zathu za malamulo okonzekera. Kuti mufotokoze cholakwika dinani Apa.

Ndemanga za 6, siyani anu

Siyani ndemanga yanu

Anu email sati lofalitsidwa. Amafuna minda amalembedwa ndi *

*

*

  1. Wotsogolera pazosankhazi: Miguel Ángel Gatón
  2. Cholinga cha deta: Control SPAM, kasamalidwe ka ndemanga.
  3. Kukhazikitsa: Kuvomereza kwanu
  4. Kulumikizana kwa zomwe zafotokozedwazo: Zomwezo siziziwululidwa kwa anthu ena kupatula pakukakamizidwa mwalamulo.
  5. Zosunga: Zosungidwa ndi Occentus Networks (EU)
  6. Ufulu: Nthawi iliyonse mutha kuchepetsa, kuchira ndikuchotsa zidziwitso zanu.

  1.   David gomez dzina loyamba anati

    Buku labwino kwambiri, zikomo ...

  2.   Tiyeni tigwiritse ntchito Linux anati

    Nkhani yabwino kwambiri Luciano!
    Ndikukuthokozani kwambiri.
    Kukumbatira! Paulo.

  3.   magwire1206 anati

    Zabwino zonse! Nkhaniyi ndi imodzi mwazabwino kwambiri zomwe ndaziwona kuti ndiphunzire momwe mungapezere ma bin a .deb a Debian ndi zotengera monga Ubuntu.

    Pankhani ya ArchLinux timagwiritsa ntchito PKGBUILD m'njira yabwino kwambiri ya BSD: https://wiki.archlinux.org/index.php/PKGBUILD_%28Espa%C3%B1ol%29

    Kukumbatirana!

    1.    Luciano Lagassa anati

      Moni, zikomo chifukwa cha ndemanga yanu, ngati mukuganiza kuti titha kuwonjezera pazomwe tingapange phukusi la chipilala, ndikulongosola kuti ndimangogwiritsa ntchito ubuntu ndi ma centos pang'ono, ndimalongosola kuti ndibwino kuti ndayesapo kamodzi koma ndinalibe nthawi yoyiyika, yomwe ingakhale yabwino kwambiri chifukwa ngati ndingathe aliyense angathe.

  4.   Luciano Lagassa anati

    Moni, zikomo chifukwa cha ndemanga zanu, monga ndanenera kale nthawi zina, zolemba zanga ndizotengera zomwe ndakumana nazo, ndikhulupilira kuti ndizothandiza.

  5.   Josh anati

    Moni luciano.

    Ndayamba kutsatira njira ndipo sindinathe kudutsa cheke. Imabwezeretsa cholakwika chotsatirachi:

    "Makefile: 349: Chinsinsi cha chandamale 'install-recursive' yalephera
    pangani: *** [kukhazikitsa-kubwereza] Vuto 1

    **** Kukhazikitsa kwalephera. Kutaya kukhazikitsidwa kwa phukusi. "

    Izi zisanachitike, lamulo la "kupanga" likuwonetsa izi potulutsa:

    "Pangani [3]: Palibe chomwe chingachitike kwa 'onse'."

    Sindikumvetsa zomwe zikulephera. Ndayesera kutsitsa mtundu wa LAME waposachedwa kwambiri kuti ndiwone ngati ungathetse vuto langa, koma palibe chochita.

    Zikomo.