LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   can't connect to display after switching from bash to tcsh after login (https://www.linuxquestions.org/questions/linux-newbie-8/can%27t-connect-to-display-after-switching-from-bash-to-tcsh-after-login-825629/)

jdoit 08-11-2010 03:39 PM

can't connect to display after switching from bash to tcsh after login
 
Can't seem to use tcsh as my login shell under CentOS 5 as I used to (if I specify /bin/tcsh as my start-up shell, the windowing system doesn't come up), so am logging in under bash then switching to tcsh on top of that, but it won't allow display access from tcsh for my programs. Gives the "cannot connect to display" error that usually xhost + is the solution for, but xhost doesn't help in this case (won't even run under tcsh, says unable to open display "0.0"). $DISPLAY is set in .cshrc. Must be something simple, but can't seem to find a direction to head?

Tinkster 08-12-2010 03:56 PM

Yah ... run "xhost +" from bash, and export your "DISPLAY=:0.0" from
tcsh. Why one would want to use tcsh is beyond me, though ;}



Cheers,
Tink

jdoit 08-12-2010 05:52 PM

Thanks for the response. I took the `hostname` out of the DISPLAY definition in .cshrc and now it works (?)
though I don't understand why that should matter.

(have always used csh so syntactically easier for me)


All times are GMT -5. The time now is 08:01 PM.