Errors with fwfstab (Python)
Hello,
I am trying to run a software called fwfstab and it is an editor of the /etc/fstab file i get this error when running it: Code:
# fwfstab PS: I edited the fwfstab launching file in /usr/local/sbin because it was pointing to a wrong path. |
Please forgive me for asking, but why on earth does one need a GUI tool to edit an fstab file?
I'm very curious :) BTW - it kinda looks like the $DISPLAY is not set, and things go downhill from there. Sasha |
Quote:
beside if you search for all of my topics in this forum you will find that I ask a question about fstab with every distro I install and every time it is a different problem with a different way to solve it the bottom line is: If there is one thing I really hate about linux is the fstab file, and I was very happy to find a GUI tool to solve this problem for me. Quote:
|
Quote:
It was more a guess on my part about the $DISPLAY variable, based on my experience trying to start or run applications for which I want/need root priveleges. It also may be another environment variable *related* to the display, preventing the application from making a connection with the X server. As you see below is an example of what I get if I try to start konqueror as root, from the wrong environment: Quote:
The $DISPLAY variable itself, is the :0.0 and this describes the screen you are looking at. It means "device zero, screen zero" (or vice versa). I suspect you have one of the `su` tools, like kdesu, or gtksu, or one of those, on your system. Perhaps trying to execute the fwfstab via one of those means, will set the proper variable? Something like: shell$ gtksu /path/to/fwfstab and see if that works? I do not know exactly which "protocol" is used between applications and X itself, but if I can figure out exactly what's missing, I'll be sure to update here. Sasha |
Try this:
user$ su - #don't forget that dash at the end Password: ******** root# DISPLAY=:0.0 root# xhost + access control disabled, clients can connect from any host root# ./path/to/fwfstab .. and it may now start. NOTE: There are possibly security implications of using `xhost` like this; please research `xhost` before assuming that this is entirely safe!! When you're done, you can do: root# xhost - ..to restore access control. Sasha |
Thank you for your help Sasha,
I found I have kdesudo not kdesu and here is the output: Code:
$ kdesudo /usr/local/share/fwfstab/fwfstab-runapp.py Code:
ahmad@ahmad-laptop:~$ su - |
Quote:
Quote:
Quote:
shell# export DISPLAY=:0.0 .. and maybe not, but worth a try. Quote:
I will go over the sequence of the commands above again on my system, to make sure I gave you them in the right order, and update again shortly :) Sasha |
My mistake -- I'm sorry, I gave the commands in the wrong order.
Here goes: user$ xhost + user$ su - Password ******** root# DISPLAY=:0.0 root# ./path/to/fwfstab ..should go now ;) Here's the exact quote from my console (note I'm testing with konqueror as the fwfstab program): Code:
bash-4.0$ xhost + |
Unfortunately it did not work.
When I woke this morning I decided to end this situation, so I searched for another tool and I found one called:pysdm I configured fstab and also it did not work as there was problems with the links from my C:\ drive to /home/ahmad/.opera so I removed the lines that the tool added and I guess I will keep writing my password 2 times every time I boot my computer Quote:
|
All times are GMT -5. The time now is 04:58 AM. |