עבודה עם תצוגה גרפית GUI (כמו git gui או gedit וכדומה) משרת linux במחשב windows דךך Putty
{הערת ביניים בהקשר של Moodle : ה- git gui מאפשר עבודה נוחה ויעיל בניהול גרסאות moodle (לצורך העיניין) דרך GIT}
על מחשב ה windows יש להתקין תוכנה שנקראת Xming
לאחר שהתקנו וה xming רץ ברגע במחשב ה windows .
ניגשים ל Putty במטרה לגשת בפרוטוקול SSH למחשב לינוקס (linux) המרוחק.
כשפותחים את הputty ומגדירים את ה host ip ו ה Port ב ssh ניגשים להגדרה שלה:
Connection->SSH->X11
ושם מסמנים ב וי את Enable X11 forwarding
כשנמצאים בשורת הפקודה של השרת המרוחב שלנו ב Putty
עבור מערכות Fedora\RHEL\CentOS\Scientific\ Red Hat
יש להתקין ב root (אם אין ) את
# yum search xauth
# yum install xorg-x11-xauth
עבור מערכות Debian / Ububtu
$ sudo apt-get install xauth
לאחר מכן לרשום בשורת פקודה
# export DISPLAY=localhost:10.0
יש לבדוק שזה אכן נשמר בפקודה:
# echo $DISPLAY
וזהו אתם מוכנים להפעיל מהשורת הפקודה של ה putty פקודה כמו git gui או gedit ואחרים.
בהצלחה
Working with GUI applications in a Windows machine through a remote unix machine with putty
- Install Xming on your windows machine
- Confirm that Xming runs on your windows machine
- Go to putty from your windows machine and set the ssh unix connection that you want to connect like host ip and port.
- In the settings go to Connection->SSH->X11 and enable the Enable X11 forwarding box.
- Connect to the linux host through putty and in the command line write with root user (for Fedora\RHEL\CentOS\
Scientific\Red Hat systems): - # yum search xauth
- # yum install xorg-x11-xauth
- (for Debian / Ububtu systems ) $ sudo apt-get install xauth
- Then write # export DISPLAY=localhost:10.0 and check yourself if the command has been saved : # echo $DISPLAY
- Now you good to go and run gui applications commands (like: git gui, gedit and more) then a window will pop-up in your windows machine
- Good Luck
אין תגובות:
הוסף רשומת תגובה