LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-21-2006, 08:33 AM   #1
thelonius
Member
 
Registered: Aug 2005
Location: Montréal
Distribution: Debian Testing, Slackware 10.2
Posts: 136

Rep: Reputation: 15
(x)emacs doesn't start


Hello,

with the following message:

Code:
localhost:/home/user# emacs
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

emacs: Cannot connect to X server :0.0
Since the system is freshly installed, I think one of configuration features is missing. Which one ?

Thank you.

Last edited by thelonius; 07-21-2006 at 08:34 AM.
 
Old 07-21-2006, 09:10 AM   #2
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
Do you have running X at the moment?
 
Old 07-21-2006, 09:21 AM   #3
thelonius
Member
 
Registered: Aug 2005
Location: Montréal
Distribution: Debian Testing, Slackware 10.2
Posts: 136

Original Poster
Rep: Reputation: 15
I'm in GNOME when I do it
 
Old 07-21-2006, 10:06 AM   #4
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
Just in case: you do it on local machine from a terminal started from gnome?
And $DISPLAY is ":0.0" . Try ":0" , by the way.. And 'xhost +' doesn't help.
 
Old 07-21-2006, 10:14 AM   #5
thelonius
Member
 
Registered: Aug 2005
Location: Montréal
Distribution: Debian Testing, Slackware 10.2
Posts: 136

Original Poster
Rep: Reputation: 15
yes, i open terminal in gnome and run emacs or xemacs in it

i will check if i have $DISPLAY variable. after installation what i did was aptitude several packages and none configuration at all.

thank you

Last edited by thelonius; 07-21-2006 at 12:32 PM.
 
Old 07-21-2006, 10:20 AM   #6
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
I also have had this problem and it seems "xhost local:" works. Not sure if this is the best solution, though.
 
Old 07-21-2006, 10:31 AM   #7
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
Shell variables are case-sensitive..
 
Old 07-21-2006, 10:42 AM   #8
thelonius
Member
 
Registered: Aug 2005
Location: Montréal
Distribution: Debian Testing, Slackware 10.2
Posts: 136

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by raskin
Shell variables are case-sensitive..
i know
 
Old 07-21-2006, 12:30 PM   #9
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
Good. I just remembered a thread where somebody - being asked about $PATH - said that $path is empty.. And, by the way, maybe someone will find the thread without the knowledge about case.
 
  


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
where is the .emacs file in the emacs source code tarball? aizkorri Programming 2 01-13-2007 02:05 PM
Can't start emacs from shell alaskazimm Ubuntu 1 07-24-2005 12:25 AM
emacs not responding to .emacs file in Mandriva 2005 LE. Please help LaptopLinux Mandriva 1 06-08-2005 08:36 AM
edb (emacs database) won't open file - emacs 20 & 21 tip184 Linux - Software 0 04-03-2004 07:31 AM
What packages do I need to install to start programming in emacs? O_o Linux - Newbie 7 11-10-2003 03:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:40 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