LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-11-2010, 04:39 PM   #1
jdoit
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
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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
 
Old 08-12-2010, 06:52 PM   #3
jdoit
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)
 
  


Reply


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


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

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