Qalisa uhlelo lokusebenza (kufaka phakathi imidwebo) kwenye i-PC njengomunye umsebenzisi

Sawubona,

Lokhu kuyasiza impela, ngoba ngaleli thiphu singakwazi ukuphatha enye i-PC, noma kungenza impilo ibe lula kancane ngezikhathi ezithile.

Bayazi ukuthi uma bexhuma nge ssh de I-PC # 1 a I-PC # 2 ngokwesibonelo, futhi bazama ukuvula uhlelo olufana ne- Firefox ukugijima nokukhombisa ngaphakathi I-PC # 2, noma omunye umculo noma isidlali sevidiyo, sikwenza kanjena:

umsebenzisi @ pc2: ~$ Firefox

Kepha, ibuyisa iphutha elilandelayo:

(firefox: 1704): I-Gtk-ISEXWAYISO **: ayikwazi ukuvula isibonisi:

Yebo, lapha uzobona ukuthi ungayivula kanjani isoftware esiyifunayo, uxazulule leli phutha ngomyalo owodwa nje.

Kanjalo (futhi ngombono wami lokhu kuthakazelisa kakhulu, ake sithi nginguye I-PC # 1, Ngiyangena I-PC # 2 yini i-PC yentombi yami nomsebenzisi kzkggaara ngokwesibonelo, bese ngifisela yena (user ccukhonjiswa i- isaziso (njengalezo ezivela lapho siphakamisa noma sehlisa ivolumu, njll) ethi "Yeka ukulalela u-Enrique Iglesias !!!”Hehe… sizobona ukuthi singakwenza kanjani, ngaphandle kokwazi iphasiwedi yomsebenzisi wakho (cc kulesi sibonelo).

Ukufinyelela nge-SSH nomsebenzisi wethu (kzkggaara kulesi sibonelo) ukuze I-PC # 2 (ngekheli le-IP = 192.168.151.209) sibeka into enjengale:

  • ssh kzkggaara@192.168.151.209

Manje, uma sesingaphakathi komsebenzisi wethu, sifuna ukusebenzisa isidlali sevidiyo ngokwesibonelo, leso esifakwe ngokuzenzakalela ku-Ubuntu totem, sizosebenzisa lokhu ukuchaza.

Uma simane sibeka ukuphela "totem”Sizosinikeza leli phutha eselikhulume ngalo, ngoba ngaphambi kokufaka isicelo kumele sibeke umugqa olandelayo:

  • thekelisa BONISA =: 0.0

Ukubeka lokhu, futhi inkinga ixazululwe hehe. (uma kuvela iphutha, shintsha "0.0"ngo"1.0“) Ngakho-ke, izinyathelo okufanele zenziwe totem ngabe:

  1. thekelisa BONISA =: 0.0
  2. totem

Futhi ngomumo.

Uma-ke sifuna ukuvala totem simane sibeka:

  • totall yokubulala

Manje ake sithi sifuna ukusebenzisa isiphequluli njenge Firefoxvele Ngeke sibe nakho ukubhala umugqa wokuqala futhi (thekelisa BONISA =: 0.0), simane sibeka:

  • Firefox

Futhi inkinga ixazululwe 😉

Kodwa-ke, uma beshiya iseshini bese bengena kabusha nge-SSH ku- I-PC # 2, kuzofanele babhale umugqa obhekise kuwo ukuthekelisa.

Manje ... okuthakazelisa kakhulu ngombono wami:

Qalisa izinhlelo zokusebenza kudeskithophu yomunye umsebenzisi:

Sesivele sixhunywe yi-SSH ku- I-PC # 2, sifinyelele kumsebenzisi kzkggaara futhi esikufunayo ukukhombisa umsebenzisi cc una isaziso (njengalezo ezivela lapho siphakamisa noma sehlisa ivolumu, njll) ethi "Yeka ukulalela u-Enrique Iglesias !!!"

Ukuze uthumele izaziso ngesandla, kufanele sifake iphakheji ebizwa ngokuthi libnotify-bin, ukuyifaka sikubeka esigungwini:

  • sudo apt-get ukufaka libnotify-bin

Futhi ngomumo. Manje, sizokwakha iskripthi esincane kakhulu ngomyalo:

  • I-sudo touch /opt/script.sh

Sizokuhlela nge:

  • sudo nano /opt/script.sh

Futhi kuyo sizobhala okulandelayo:

thekelisa BONISA =: 0.0

yazisa-thumela "Misa ukulalela u-Enrique Iglesias !!!"

Songa futhi siphume ne- [Ctrl] + [X], futhi manje sizonikeza imvume yeskripthi ukuthi isebenze:

  • Sudo chmod + x /opt/script.sh

Futhi manje sidinga ukwenza umbhalo kuphela, kepha sizowenza njengomsebenzisi cc, ngoba esikufunayo ukuthi leso saziso sivele kulowo msebenzisi othile. Sihambisa umkhombandlela oqukethe iskripthi:

  • cd / opt /

Futhi manje siyakuqhuba:

  • sudo -u cc ./script.sh

Kwenziwe, lokhu kungaba yilokho.

Lokhu kwenziwa ngezifiso ngokuphelele, bangakukhombisa ifayela le- gedit lokho kuthi "Ngikugqekeze ku-PC", Noma noma yini abayifunayo, konke kuncike ekutheni bazi kangakanani ukuthi bangazenzela kanjani.

Lutho, okokufundisa kugcina lapha.

Noma yiliphi iphutha elivelayo, inkinga, ukungabaza noma umbuzo, isikhalazo noma isiphakamiso, ngingakuthokozela uma ulikhulumisa, ukugxeka okwakhayo kuhlala kwamukelwa kahle.

Ukubingelela futhi ... Ngiyazi ukuthi lokhu kuzoba wusizo kothile ^ _ ^


Okuqukethwe yi-athikili kunamathela ezimisweni zethu ze izimiso zokuhlelela. Ukubika iphutha chofoza lapha.

Amazwana ayi-11, shiya okwakho

Shiya umbono wakho

Ikheli lakho le ngeke ishicilelwe. Ezidingekayo ibhalwe nge *

*

*

  1. Ubhekele imininingwane: Miguel Ángel Gatón
  2. Inhloso yedatha: Lawula Ugaxekile, ukuphathwa kwamazwana.
  3. Ukusemthethweni: Imvume yakho
  4. Ukuxhumana kwemininingwane: Imininingwane ngeke idluliselwe kubantu besithathu ngaphandle kwesibopho esisemthethweni.
  5. Isitoreji sedatha: Idatabase ebanjwe yi-Occentus Networks (EU)
  6. Amalungelo: Nganoma yisiphi isikhathi ungakhawulela, uthole futhi ususe imininingwane yakho.

  1.   i-aer0 kusho

    Ngicabanga ukuthi wenza izinto zibe nzima kakhulu okungenani ngokubuka kwami, ukwenza okufanayo nokuchazwe engxenyeni yokuqala ngokumane lapho uxhuma kwiseva ye-ssh sengeza ipharamitha ye -X futhi ngemuva kokuqinisekisa ngokumane uthayiphe igama lohlelo lokusebenza elizovuleka ngaphandle alikho iphutha
    ejemplo

    ssh -X kzkggaara@192.168.151.209
    Firefox

    futhi ngalokhu sigwema ukwenza ukuthekelisa ...

    1.    I-KZKG ^ Gaara <° Linux kusho

      Sawubona futhi wamukelekile esizeni 😀
      Inkinga ukuthi, engikufunayo ukubhala ku-terminal «Firefox»(Ukunikeza isibonelo), nokuthi lokhu kuvula kwenye i-PC, yebo, kepha futhi kuyakhonjiswa ku-display / monitor yakho, okungukuthi, engikugijimayo esigungwini esikhonjiswa omunye umsebenzisi kwi-PC yabo, ukumenza aqonde noma kubonakale sengathi ikhompyutha "isile" 🙂

      Uma ngenza njalo ssh -X $ umsebenzisi @ $ ip bese ngibhala «Firefox»Kuleso siginali, uhlelo lokusebenza (i-firefox kuleli cala) luzongivulela kusiqaphi sami / esikrinini, futhi akukho lutho oluzokhonjiswa kuqapha laleyo khompyutha (engixhume kuyo ngokukude nge-SSH).

      Okungenani yilokhu engingakujabulela ngakho -XUma nginephutha, ngicela ucacise ukungabaza.
      Ngiyabingelela futhi futhi, wamukelekile kusayithi lethu 😉

  2.   i-aer0 kusho

    Impela lokho kuyenzeka uma okwenzekayo ukuthi ngikuqonde ukuthi yilokho obekuhloselwe, kepha ngiyabona ukuthi akukuhle kangako, okungenani kuyindlela yokuvula izicelo kude, yize kungasebenzi ukuhlekisa 🙂 futhi ngiyabonga ukwamukelwa lapha sizohamba.

    1.    I-KZKG ^ Gaara <° Linux kusho

      Leyo inkinga hehehehe, ayisebenzi kimi ukuhlekisa, kepha ukuyisebenza kuyasebenza, ngoba ukucubungula nokulayisha kuthathwa yileyo PC eyihlane, ngenkathi uhlelo lokusebenza lukhonjiswa kusibonisi sami, icebo elihle 😉

      Sanibonani futhi siyafundana lapha 🙂

  3.   Okusotho kusho

    Uma ngiyiqonda kahle inqubo, manje ngiyithola kanjani i-IP yomshini 2 kwikhonsoli yami? Ingakwazi ?

    Angazi lutho ngamanethiwekhi, yeka ihlazo 🙁

    1.    I-KZKG ^ Gaara <° Linux kusho

      Ekubekweni kokugcina: ifconfig
      Lapho ungabona imininingwane yesixhumi esibonakalayo senethiwekhi ngayinye, okungukuthi, uma une-LAN (ikhebula lenethiwekhi), iWifi, noma enye into.

      Lapho ithi "inet", lapho ungayazi i-IP 😀
      Futhi ungakhathazeki, akekho ozalwa azi hahaha, sonke siyafunda njengoba siqhubeka.

      Phendula ngokucaphuna

  4.   semptrion kusho

    Ngiyabonga!!! yilokho kanye ebengikufuna ...

  5.   david kusho

    Futhi uma bengifuna ukukwenza kusuka kuwebhu ngisebenzisa i-php, ngikhombisa isithombe esivela kuwebhu, ngaphandle kokusebenzisa iskripthi osenzayo, okungukuthi ukusho into enjalo, ngingawufinyelela kanjani?
    $ image = »http://website.net/imagen.png»;
    $ message = »yeka ukulalela u-Enrique Iglesias»;
    exec ("export display =: 0.0 | yazisa-thumela $ message -i $ image");

  6.   alexweb kusho

    sawubona izeluleko ezinhle kakhulu!
    Mayelana ne-ssh, iyasebenza uma ukhipha isibonisi.
    Okungenani ngiyakuthola kukhonsoli.

    Ukubingelela.-

  7.   ukuhlupheka kusho

    Lapho ulungiselela ifayela le-sshd_config, kuyadingeka ukuthi ushintshe i-x11Forwarding ukuze wenze lokhu okwenzayo? lokho kungabaza kwami

  8.   URicardo Luis Ordaz Villalobos kusho

    Sawubona, nginombuzo, kungaba ngenye indlela? Isibonelo, uma ngiku-PC1 ngaphandle kwe-firefox, futhi intombi yami iku-PC2 ene-firefox, ngingakwazi yini ukusebenzisa i-firefox kusuka ku-PC2 futhi ngenze iwindi lesiphequluli livele ku-PC1 lapho isiphequluli singafakiwe khona?