|
![]() |
|
![]() Á×ÔÏÒ Guido Socher (homepage) ï Á×ÔÏÒÅ: Guido ÌÀÂÉÔ ìÉÎÕËÓ ÎÅ ÔÏÌØËÏ ÉÚ-ÚÁ ÔÏÇÏ, ÞÔÏ ÅÍÕ ÉÎÔÅÒÅÓÎÏ ÒÁÚÂÉÒÁÔØÓÑ × ÔÏÍ, ËÁË ÒÁÂÏÔÁÀÔ ÏÐÅÒÁÃÉÏÎÎÙÅ ÓÉÓÔÅÍÙ, ÎÏ ÔÁË ÖÅ ÉÚ-ÚÁ ÌÀÄÅÊ, ËÏÔÏÒÙÅ ÕÞÁÓÔ×ÕÀÔ × ÅÇÏ ÓÏÚÄÁÎÉÉ ðÅÒÅ×ÏÄ ÎÁ òÕÓÓËÉÊ: ÷ÁÓÑ ìÅÕÛÉÎ <basileus(at)newmail.ru> óÏÄÅÒÖÁÎÉÅ: |
òÅÚÀÍÅ:
íÎÏÇÉÅ ÐÏÌØÚÏ×ÁÔÅÌÉ ÐÒÉ ÚÎÁËÏÍÓÔ×Å Ó ìÉÎÕËÓÏÍ ÄÕÍÁÀÔ, ÞÔÏ ÅÇÏ ÇÒÁÆÉÞÅÓËÉÊ ÒÁÂÏÞÉÊ ÓÔÏÌ ÜÔÏ ÐÒÏÓÔÏ ÅÝÅ ÏÄÎÁ " Windows" × ËÏÔÏÒÏÊ ÍÏÖÎÏ ÚÁÐÕÓËÁÔØ ÐÒÉÌÏÖÅÎÉÑ × ÏÔÄÅÌØÎÙÈ ÏËÎÁÈ. îÅËÏÔÏÒÙÅ, ËÏÎÅÞÎÏ, ÚÁÍÅÞÁÀÔ, ÞÔÏ ÍÏÖÎÏ ÉÍÅÔØ ÎÅÓËÏÌØËÏ ÒÁÂÏÞÉÈ ÓÔÏÌÏ×, ÎÏ ×ÓÅ ÒÁ×ÎÏ ÉÍ ËÁÖÅÔÓÑ, ÞÔÏ ÜÔÏ Windows. X Window System (X11) ÜÔÏ ÞÔÏ-ÔÏ ÇÏÒÁÚÄÏ ÂÏÌØÛÅÅ! üÔÏ ÓÅÔÅ×ÁÑ ÏËÏÎÎÁÑ ÓÉÓÔÅÍÁ. íÙ Õ×ÉÄÉÍ, ËÁËÉÅ ÎÏ×ÙÅ ×ÏÚÍÏÖÎÏÓÔÉ ÏÎÁ ÎÁÍ ÐÒÅÄÌÁÇÁÅÔ.
ëÁÖÄÏÅ ÇÒÁÆÉÞÅÓËÏÅ ÐÒÉÌÏÖÅÎÉÅ X Window ÐÒÉ ÚÁÐÕÓËÅ ÓÞÉÔÙ×ÁÅÔ ÐÅÒÅÍÅÎÎÕÀ ÏËÒÕÖÅÎÉÑ DISPLAY, ÞÔÏ ÂÙ ×ÙÑÓÎÉÔØ ÎÁ ËÁËÏÊ ËÏÍÐØÀÔÅÒÎÙÊ ÜËÒÁÎ ÐÏÓÙÌÁÔØ ÇÒÁÆÉÞÅÓËÉÅ ÄÁÎÎÙÅ. üÔÏ, ×ÍÅÓÔÅ Ó ÓÅÔÅ×ÙÍÉ ×ÏÚÍÏÖÎÏÓÔÑÍÉ ÓÉÓÔÅÍÙ X Window ÄÅÌÁÅÔ ×ÏÚÍÏÖÎÙÍ ÕÄÁÌÅÎÎÙÊ ÚÁÐÕÓË ÇÒÁÆÉÞÅÓËÉÈ ÐÒÉÌÏÖÅÎÉÊ. ôÏ ÅÓÔØ ×Ù ÉÓÐÏÌØÚÕÅÔÅ ÒÅÓÕÒÓÙ ÐÒÏÃÅÓÓÏÒÁ ÏÄÎÏÊ ÍÁÛÉÎÙ ÐÒÉ ÒÁÂÏÔÅ Ó ÐÒÉÌÏÖÅÎÉÅÍ ÎÁ ÄÒÕÇÏÊ. ÷ÅÓØ GUI (ÇÒÁÆÉÞÅÓËÉÊ ÉÎÔÅÒÆÅÊÓ ÐÏÌØÚÏ×ÁÔÅÌÑ) ÐÏÑ×ÌÑÅÔÓÑ ÎÁ ÔÏÊ ÍÁÛÉÎÅ, Ó ËÏÔÏÒÏÊ ×Ù ÉÍ ÕÐÒÁ×ÌÑÅÔÅ. ÷Ù ÄÁÖÅ ÎÅ ÚÁÍÅÞÁÅÔÅ, ÞÔÏ ÉÓÐÏÌØÚÕÅÔÅ Ä×Á ËÏÍÐØÀÔÅÒÁ. ëÏÎÅÞÎÏ, ÏÐÒÅÄÅÌÅÎÎÕÀ ÒÏÌØ ÚÄÅÓØ ÉÇÒÁÅÔ ÓËÏÒÏÓÔØ ÐÅÒÅÄÁÞÉ ÄÁÎÎÙÈ, ÎÏ ÎÏÒÍÁÌØÎÏÊ 10-ÍÅÇÁÂÉÔÎÏÊ ÌÏËÁÌØÎÏÊ ÓÅÔÉ ×ÐÏÌÎÅ ÄÏÓÔÁÔÏÞÎÏ.
äÌÑ ÞÅÇÏ ÜÔÏ ×ÁÍ?
óÕÝÅÓÔ×ÕÅÔ ÍÎÏÖÅÓÔ×Ï ÓÅÔÅ×ÙÈ ÇÒÁÆÉÞÅÓËÉÈ ÐÒÉÌÏÖÅÎÉÊ. ëÏÍÐÁÎÉÉ ÉÓÐÏÌØÚÕÀÔ ÉÈ ÄÌÑ ÕÐÒÁ×ÌÅÎÉÑ ÏÂÏÒÕÄÏ×ÁÎÉÅÍ ÎÁÈÏÄÑÝÉÍÓÑ ÍÏÖÅÔ ÂÙÔØ ÚÁ ÔÙÓÑÞÉ ËÉÌÏÍÅÔÒÏ×, É ×Ù ÍÏÖÅÔÅ ÉÓÐÏÌØÚÏ×ÁÔØ ÔÁËÉÅ ÖÅ ÐÒÉÌÏÖÅÎÉÑ ÔÁË, ËÁË ÅÓÌÉ ÂÙ ÏÎÉ ÂÙÌÉ ÎÁ ×ÁÛÅÍ ËÏÍÐØÀÔÅÒÅ.
äÏÐÕÓÔÉÍ, Õ ×ÁÓ ÅÓÔØ Ä×Á ËÏÍÐØÀÔÅÒÁ: ÏÄÎÁ ÂÙÓÔÒÁÑ ÇÉÇÁÇÅÒÃÅ×ÁÑ ÍÁÛÉÎÁ É ÅÝÅ ÓÔÁÒÅÎØËÉÊ Pentium-133 - ×Ù ×ÐÏÌÎÅ ÓÍÏÖÅÔÅ ÏÃÅÎÉÔØ ÓËÏÒÏÓÔØ ×ÁÛÅÊ ÎÏ×ÏÊ ÍÁÛÉÎÙ, ÄÁÖÅ ÎÅ ÓÁÄÑÓØ ÚÁ ÎÅÅ. ÷ÏÚÍÏÖÎÏ, ×ÁÛÁ ÓÅÓÔÒÁ ÚÁÎÑÌÁ ÂÙÓÔÒÙÊ ËÏÍÐØÀÔÅÒ - ÎÏ ×Ù ×ÓÅ ÒÁ×ÎÏ ÐÏÌØÚÕÅÔÅ ÅÇÏ. ëÁË ÜÔÏ ÒÁÂÏÔÁÅÔ?
÷ÓÅ ÐÒÉÌÏÖÅÎÉÑ X Window (ÔÁËÉÅ ËÁË ÎÁÐÒÉÍÅÒ Gimp, Xterm, Konquerer, Netscape É Ô. Ä.) × ÄÅÊÓÔ×ÉÔÅÌØÎÏÓÔÉ Ñ×ÌÑÀÔÓÑ ÓÅÔÅ×ÙÍÉ ËÌÉÅÎÔÁÍÉ, ËÏÔÏÒÙÅ ÐÒÉÓÏÅÄÉÎÑÀÔÓÑ Ë X-ÓÅÒ×ÅÒÕ. ÷ ÚÁÄÁÞÕ X-ÓÅÒ×ÅÒÁ ×ÈÏÄÑÔ: ×ÚÁÉÍÏÄÅÊÓÔ×ÉÅ Ó ÇÒÁÆÉÞÅÓËÉÍ ÁÐÐÁÒÁÔÎÙÍ ÏÂÅÓÐÅÞÅÎÉÅÍ, ÒÉÓÏ×ÁÎÉÅ ËÁÒÔÉÎÏË ÎÁ ×ÁÛÅÍ ÜËÒÁÎÅ, ÓÞÉÔÙ×ÁÎÉÅ ÄÁÎÎÙÈ Ó ÍÙÛËÉ É ËÌÁ×ÉÁÔÕÒÙ. ðÒÏÇÒÁÍÍÙ-ËÌÉÅÎÔÙ (gimp, netscape) ÐÏÓÙÌÁÀÔ ÓÅÒ×ÅÒÕ ÕËÁÚÁÎÉÑ Ï ÔÏÍ, ËÁË ÒÉÓÏ×ÁÔØ ÒÁÍËÉ É ËÎÏÐËÉ. ÷ÚÁÍÅÎ ÏÎÉ ÐÒÉÎÉÍÁÀÔ ÏÔ ÓÅÒ×ÅÒÁ ËÏÍÁÎÄÙ Ó ÍÙÛËÉ É ËÌÁ×ÉÁÔÕÒÙ.
óÁÍÏ ÓÏÂÏÊ ÒÁÚÕÍÅÅÔÓÑ, ÞÔÏ ÐÏÔÒÅÂÕÅÔÓÑ ÁÕÔÅÎÔÉÆÉËÁÃÉÑ, ÉÎÁÞÅ ËÔÏ ÕÇÏÄÎÏ ÍÏÖÅÔ ÉÓÐÏÒÔÉÔØ ÞÅÊ-ÎÉÂÕÄØ ÜËÒÁÎ. óÕÝÅÓÔ×ÕÀÔ Ä×Å ÐÒÏÇÒÁÍÍÙ ÄÌÑ ÕÐÒÁ×ÌÅÎÉÑ ÄÏÓÔÕÐÏÍ:
- xhost: ÉÓÐÏÌØÚÕÑ ÜÔÕ ÐÒÏÇÒÁÍÍÕ, ×Ù ÍÏÖÅÔÅ ÄÏÐÕÓÔÉÔØ ÌÀÂÏÇÏ ÐÏÌØÚÏ×ÁÔÅÌÑ Ó ÏÐÒÅÄÅÌÅÎÎÏÊ ÍÁÛÉÎÙ ÐÅÒÅÄÁ×ÁÔØ ÇÒÁÆÉËÕ ÎÁ ×ÁÛ ÄÉÓÐÌÅÊ.
îÁÐÒÉÍÅÒ: ÷Ù ÒÁÂÏÔÁÅÔÅ ÎÁ ÍÁÛÉÎÅ Ó ÉÍÅÎÅÍ philosophus. þÔÏ ÂÙ ÄÁÔØ ÄÏÓÔÕÐ ÎÁ ×ÁÛ ÄÉÓÐÌÅÊ ÌÀÂÏÊ ÐÒÏÇÒÁÍÍÅ Ó ÈÏÓÔÁ movietux ×ÁÍ ÎÕÖÎÏ ÎÁÂÒÁÔØ ËÏÍÁÎÄÕ:
xhost +movietux
üÔÏ ÄÏÌÖÎÏ ÂÙÔØ ÎÁÂÒÁÎÏ × ÏÂÏÌÏÞËÅ philosophus'Á
xauth extract - philosophus:0.0 | ssh movietux
/usr/X11R6/bin/xauth merge
ÉÌÉ
scp ~/.Xauthority movietux:
bash:export
DISPLAY=hostname:displaynumber.screennumber
tcsh:setenv DISPLAY
hostname:displaynumber.screennumber
export DISPLAY=philosophus:0.0
# ÐÅÒÅÎÏÓ ÄÉÓÐÌÅÑ ÎÁ ÕÄÁÌÅÎÎÙÊ ÌÏÇÉÎ:
# ÐÏÍÅÓÔÉÔØ ÅÇÏ × Ó×ÏÊ ÆÁÊÌ ~/.login
set whoami=`who -ml`
set remhost=`expr "$whoami" :
'.*(\(.*\))'`
if ( "$remhost" != "" ) then
setenv DISPLAY
"$remhost":0.0
endif
>who -ml
movietux!guido pts/3 Oct 26 21:55
(philosophus.tux.org)
# ÐÅÒÅÎÏÓ ÄÉÓÐÌÅÑ ÎÁ ÕÄÁÌÅÎÎÙÊ ÌÏÇÉÎ:
# ÐÏÍÅÓÔÉÔØ ÅÇÏ × Ó×ÏÊ ÆÁÊÌ ~/.bash_profile
whoami=`who -ml`
remhost=`expr "$whoami" :
'.*(\(.*\))'`
if [ -n "$remhost" ];
then
DISPLAY="$remhost":0.0
export DISPLAY
fi
|
Webpages maintained by the LinuxFocus Editor team
© Guido Socher, FDL LinuxFocus.org Click here to report a fault or send a comment to LinuxFocus |
Translation information:
|
2002-01-02, generated by lfparser version 2.19