I was just reading this article yesterday.
- Install an X Server - Xming is a good and free
- Install the Program - for example Vim
sudo apt-get install vim-gtk
- Set Your Display Environment Variable -
export DISPLAY=:0
- Launch an Application -
gvim
You can combine the steps 3 and 4 if you want. DISPLAY=:0 gvim
A commenter added:
If you don't want to run the export DISPLAY=:0 each time you open a bash shell, open .bashrc in a text editor. Examples of ways to open a text editor with .bashrc:
nano ~/.bashrc gedit ~/.bashrc
Then, add export DISPLAY=:0 to the end of the file. The .bashrc file is like the autorun file in Microsoft Windows. It gets executed every time a new Bash window is opened.
- - , .
.
Recent Questions...
ما را در سایت Recent Questions دنبال میکنید
برچسب:
نویسنده: استخدام کار
بازدید: 289
تاريخ: پنجشنبه
24 تير
1395 ساعت: 11:06