LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 03: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, 03:56 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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, 05: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



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 11:56 AM
I use tcsh and I have bash ?????? grizos Linux - General 2 11-21-2005 09:50 PM
tcsh history display format k4zau Linux - Software 1 10-12-2003 10:42 PM
TCSH vs. BASH Imyrryr Linux - General 3 09-13-2003 03:33 PM
bash or tcsh infected Linux - General 2 06-17-2003 12:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:33 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
Open Source Consulting | Domain Registration