Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-11-2010, 04:39 PM   #1
LQ Newbie
Registered: Aug 2004
Distribution: RH,CentOS
Posts: 5

Rep: Reputation: 0
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?
Old 08-12-2010, 04:56 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

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

Old 08-12-2010, 06:52 PM   #3
LQ Newbie
Registered: Aug 2004
Distribution: RH,CentOS
Posts: 5

Original Poster
Rep: Reputation: 0
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)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
tcsh shell to bash jhwilliams Linux - General 1 05-17-2007 12:56 PM
I use tcsh and I have bash ?????? grizos Linux - General 2 11-21-2005 10:50 PM
tcsh history display format k4zau Linux - Software 1 10-12-2003 11:42 PM
TCSH vs. BASH Imyrryr Linux - General 3 09-13-2003 04:33 PM
bash or tcsh infected Linux - General 2 06-17-2003 01:17 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:15 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration