PDA

View Full Version : Knoppix Fstab Question



jodef
07-20-2004, 12:10 AM
I currently have about 16 partitions on my hdrive presently;there is a FAT partition that I would like to automount at boot up.However whenvever I edit and save fstab I get the following message :
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
When I reboot the original fstab has not changed.

Any suggestions
:?:

mzilikazi
07-20-2004, 01:02 AM
Sounds like root cannot use the Xserver. As user try:

xhost local:

Then root should be able to use the X server. For a permanent fix:

apt-get update && apt-get install sux

Of course ther ARE editors that don't need Xwindows too! :)

jodef
07-21-2004, 02:59 AM
Sounds like root cannot use the Xserver. As user try:

xhost local:

Then root should be able to use the X server. For a permanent fix:

apt-get update && apt-get install sux

Of course ther ARE editors that don't need Xwindows too! :)

I get the following error when running xhost local:

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

xhost: unable to open display ":0.0"

Gozar
07-21-2004, 03:16 AM
Keep in mind, that nobody are mind readers. You have to say exactley hvat you are trying to do. and how you are trying to do it. The more in details you can tell, the better you can be helped.

If we try to flip it over. You are a ploice dective, There has just been a murder. It's done with a knive, The problem hovewer is that nobody knows witch knive it's done witch. Then you don't know where to start to look nor where to finish! And the case is never solved!

jodef
07-21-2004, 03:30 AM
Keep in mind, that nobody are mind readers. You have to say exactley hvat you are trying to do. and how you are trying to do it. The more in details you can tell, the better you can be helped.

If we try to flip it over. You are a ploice dective, There has just been a murder. It's done with a knive, The problem hovewer is that nobody knows witch knive it's done witch. Then you don't know where to start to look nor where to finish! And the case is never solved!

Ok I take it that maybe you're not a native English speaker or maybe you didn't read the entire post or misunderstood what I posted;

I am trying to edit the fstab file so as to automount a FAT partition however on trying to save the file I get an error about Xlib.Someone suggested trying xhost local:to fix so in my last post I am indicating the error that I get on trying that.

Hope that clears things up. :wink:

jodef
07-21-2004, 03:35 AM
Sounds like root cannot use the Xserver. As user try:

xhost local:

Then root should be able to use the X server. For a permanent fix:

apt-get update && apt-get install sux

Of course ther ARE editors that don't need Xwindows too! :)

My error :oops: trying to run as root it seemed to have worked :D installed sux as well.

jodef
07-21-2004, 03:44 AM
Sounds like root cannot use the Xserver. As user try:

xhost local:

Then root should be able to use the X server. For a permanent fix:

apt-get update && apt-get install sux

Of course ther ARE editors that don't need Xwindows too! :)

My error :oops: trying to run as root it seemed to have worked :D installed sux as well.

Ok on reboot the same problem occurs and the fstab reverts to what is was originally :?

voldemort
07-21-2004, 03:08 PM
have had simmilar issues (slighly different ) with fstab on this release try using apt and installing discover1 worked on two of my machines for automatically mounting all drives

my only remaining issue (on one machine ) is during boot it sees both ide accelerator card but once i get to the desktop the system (parted fstab whatever) only sees on accelerator card

but beyond that everyting works great with discover handling fstab

shah
07-22-2004, 07:53 AM
jodef,

The; Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
is somewhat linux security issues, it was ment that way so that not every user can share X. It can easily bypass by su using this command :
cp ~user/.Xauthority ~
or
xauth merge ~user/.Xauthority

*change user to your user name.

About fstab not changing/saved or revert back to before saved, has something to do with knoppix hardware detection script (knoppix-autoconfig).

You can use other work around method(autofs). You need some editing of mainly three files in your /etc :
1) auto.misc
2) auto.master
3) auto.mnt

You can read these articles to get the idea:
http://www.faqs.org/docs/Linux-mini/Automount.html
http://linux.about.com/library/bl/open/newbie/blnewbie4.2.8.htm
http://www.linux-consulting.com/Amd_AutoFS/autofs.html

You don't need to run autofs as daemon since knoppix-autoconfig will run them for you.

You might also want to use this application:
http://auto-autofs.sourceforge.net/

champagnemojo
07-22-2004, 06:37 PM
If you chose the beginner-style install of knoppix your fstab will be regenerated upon every boot, wiping out any changes you've made.

Besserwisser
09-09-2004, 10:54 PM
to solve this permanently you can also make a link to the user's .Xauthority:
ln -s /home/username/.Xauthority /root/.Xauthority

eco2geek
09-09-2004, 11:49 PM
Ok I take it that maybe you're not a native English speaker or maybe you didn't read the entire post or misunderstood what I posted;

OK, I take it that you don't have a clue that your not being able to run X-based text editors as root has not one single damn thing to do with your fstab problem.

Cripes. It just amazes me when people come in here asking questions, then insult the people who try to help them out.

shah
09-10-2004, 01:46 AM
Cripes. It just amazes me when people come in here asking questions, then insult the people who try to help them out.

100% Agree. They just forgot who's helping whos.
:lol: :lol: