Re: [COMP] Automating export DISPLAY variable in Linux
- From: John Madden <weez@xxxxxxxxxxxxxx>
- To: computers@xxxxxxxxxxxxxx
- Date: Sun, 05 Dec 1999 13:18:31 -0500
> I'm getting tired of typing "export DISPLAY="ip:0.0" every time I export my
> display variable to my Windows machine. What file stores this display
> variable and can I change it so every time I login through telnet the
> variable is already exported.
>
> I know, I'm lazy. But computers were meant to automate redundant tasks.
You can put it in your ~/.profile. I do this, but it only works if you're
logging in from the same IP all the time. I suppose you could write a little
shell script to do it.
=========================
.profile:
exec set-display.sh
=========================
=========================
set-display.sh:
#!/bin/sh
echo Enter the IP you've logged in from:
read IP
export DISPLAY="$IP:0.0"
==========================
note to change the 'export' to whatever you need. Note also that there are
ways of automating this, so you can have it automatically grab your IP rather
than having you type it in, but I don't know the program to do it.
John
========================================
Avenir Web's Computers Mailing List
List Modes, Subscription, and General Info:
Go to http://avenir.dhs.org/mailing.html
List Archives: http://avenir.dhs.org/archives/
Administrative Contact: webmaster@xxxxxxxxxxxxxx
Get computer help: http://avenir.dhs.org
========================================
- References:
- [COMP] Automating export DISPLAY variable in Linux
- From: Michael V. Franklin
Other related posts:
- » Re: [COMP] Automating export DISPLAY variable in Linux
- [COMP] Automating export DISPLAY variable in Linux
- From: Michael V. Franklin