LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-30-2005, 11:09 AM   #1
raynet
LQ Newbie
 
Registered: Sep 2004
Posts: 27

Rep: Reputation: 15
Eclipse problem


I installed Eclipse. It is OK to run it in normal user account.
but when I run it as root(i.e. sudo eclipse)
It has error message:
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

I don't know what's the problem?

Also, When I try to run the written program..., it said cannot write and delete things. I think it is permission problem. And also, the write and delete is done on FAT32 FS.(/mnt/data). It seems that I cannot change the permission. But it is necessary for me. How can I do so that the program can have full permission on the files in FAT32 file system?
 
Old 01-30-2005, 11:32 AM   #2
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
OK, first, you should not run anything as root. It's a huge security risk. Even if you PC is not networked, you should still not run anything as root, because one file that you delete wrongly will ruin your system. The error you are getting is exactly because of it... the system do not want you do run programs as root. Still, doing this would fix it:

Open a terminal then type:

xhost +

then login as root with su:

su

then try to fire up Eclipse again:

eclipse

The best way though, is to make sure that all your users can write to the FAT32 partition. To do that, you've to edit your /etc/fstab, adding the following line to it:

/dev/hda1 /mnt/data vfat uid=500,gid=500,umask=000,exec,dev,suid,rw 1 0

That's all. Hope it helps.

Regards!
 
  


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
problem with Eclipse prabhakar_kushwaha Linux - Software 1 10-14-2005 09:20 PM
ncurses in Eclipse problem yacccobb Linux - Software 0 10-09-2005 07:22 AM
eclipse and stardict problem,need help! wangduanzhu Fedora 1 07-18-2005 06:40 AM
eclipse problem please help! javaa neko Linux - Software 2 12-27-2004 11:29 AM
Eclipse installation problem FreeLancer Linux - Software 2 10-26-2003 02:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:55 AM.

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