NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
coreyinoz
Jul 17, 2014Tutor
Permanently set export DISPLAY= environment variable
Hi,
I did a HD upgrade and factory reset recently and managed to tweak out my config all the way back to where I was except for this, and it's driving me nuts.
I can't figure out where to permanently set
Now, every time I remote in with Putty and want to fire up gnome-commander, I have to do above manually per session.
My Google Fu is failing me.
I'm sure I just have to nano the above line into a file somewhere, but I can't for the life of me remember where.
ReadyNas Ultra 2
RAIDiator 4.2.26
Thanks!
I did a HD upgrade and factory reset recently and managed to tweak out my config all the way back to where I was except for this, and it's driving me nuts.
I can't figure out where to permanently set
export DISPLAY=my.local.ip.address:0
Now, every time I remote in with Putty and want to fire up gnome-commander, I have to do above manually per session.
My Google Fu is failing me.
I'm sure I just have to nano the above line into a file somewhere, but I can't for the life of me remember where.
ReadyNas Ultra 2
RAIDiator 4.2.26
Thanks!
5 Replies
Replies have been turned off for this discussion
- chirpaLuminaryAdd it to .bashrc in your home directory. Lines in there are executed when you login.
- forgive my ignorance, but are there any other steps.
I opened a Putty session and went to /home. There was no .bashrc file previous, so I created one with;
nano .bashrc
I entered the command as per above and saved. Rebooted the NAS and opened a new Putty session. No dice...
Thanks again. - mdgm-ntgrNETGEAR Employee RetiredNot the /home directory, but the home directory for your user
This normally would be the default directory when you login.
So if you have changed the working directory you could do
# cd
However if you really want to make sure you are changing to the home directory for the user you are logged in as do e.g.
# cd ~
You can also see the home directory in /etc/passwd
e.g.
MDGM-NAS:~# cat /etc/passwd | grep "/root"
root:x:0:0:root:/root:/bin/bash
For the root user it is /root
So alternatively you could do e.g.
# cd /root - chirpaLuminaryYa, for the most part, its going to be /root on the NAS, unless you created other accounts and enabled a shell for them. So look at /root/.bashrc first.
- Boom - that did it!
Thanks chirpa and mdgm for being explicitly clear - exactly what I needed. I had this information at one point in my ReadyNAS administration life, but leave it alone long enough and it slipped away, haha!
Thanks again.
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!