LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Gedit (https://www.linuxquestions.org/questions/linux-software-2/gedit-112552/)

JsCAMRY 11-05-2003 02:47 AM

Gedit
 
hey all hows it going? I am new to linux, Redhat 9. I am trying to mount my slave hdd. I am following the redhat guide on redhat's site redhat.com/docs/manuals/linux/(i was not able to link to a website since I do not have posted enough yet.) I have followed the guide up until the Gedit. when i open FStab in Gedit, I am not able to edit or modify the file, since is a read-only file. Also when I tried to mount the hdd in a terminal I recieved this message

[root@localhost etc]# /dev/hda1 /mnt/windows vfat umask=000,defaults 0 0
bash: /dev/hda1: Permission denied

Thanks all, I am really trying to learn how to use linux, its fun; just takes some time.

J.

slakmagik 11-05-2003 02:52 AM

You need to run gedit as root to make changes to fstab. Or in any editor - it's not a gedit problem. Once you've made the changes, you should be able to mount it with 'mnt /mnt/windows'.

JsCAMRY 11-05-2003 03:03 AM

how do I run Gedit as root? Is this done in a terminal? do I have to use the "su" command or something?

also is there anyway to make my monitor shut off after a certain amount of time has elasped?

thanks for the help

J.

kasperhans 11-05-2003 04:02 AM

open your terminal do a su to gain root permissions then just type gedit /etc/fstab and it shoudl show you the file then edit it and save it to just run gedit as root perform gedit without /etc/fstab

for your monitor use xscreensaver ...

btw man is a great tool for finding answears :=)

slakmagik 11-05-2003 04:05 AM

Yep - you got it. I mean, there's various ways, but 'su' in a terminal and typing 'gedit' into it is the most direct route.

In Slackware, in /etc/rc.d/rc.m there's the line
/bin/setterm -blank 15
I guess there's something similar in a similar script for RH.

kasperhans 11-05-2003 04:58 AM

yeah he could also use some text editor i like nano a lot for example but i dont think its the right thing for him at the moment so he better stayes with gedit so far :)

JsCAMRY 11-06-2003 02:38 AM

first, I would like to thank you all for you help. second I was able to open the gedit /etc/fstab file. but when i went to edit the file by adding /dev/hda1 /mnt/windows vfat auto,umask=0 0 0 to another line. I recieved this error message "Unable to make a backup of the original file." So I was not able to save the file.

thanks Jason

slakmagik 11-06-2003 02:47 AM

You got that running gedit as root? And you tried another editor and got the same message? The only reason I could think of for that message is that your root partition is slam full (extremely unlikely) or that you don't have permission to write to /etc (which root does) or something's buggy with your gedit (which seems odd and would be likely ruled out if the same thing happened in another editor). The last thing I can think of is that your whole root filesystem is mounted read-only (again, extremely unlikely).

Maybe somebody else has an idea but, if you are root, it happens in other editors, etc., etc. - I'm stumped.

Which RH manual are you following? I went to the page but it's a list of several manuals.

JsCAMRY 11-06-2003 02:55 AM

Yes I was in root when I was in the terminal and tryped su, then I typed gedit /etc/fstab and the gedit opened then I typed in "/dev/hda1 /mnt/windows vfat auto,umask=0 0 0" on a new line. I am not sure if I was in root while I was using gedit. I am using the RH manual

thanks jason

slakmagik 11-06-2003 03:12 AM

Well, it doesn't matter which directory you open gedit from. Kinda confusing - the fact that '/' is the 'root' filesystem and contains a directory called 'root' that is the home of the user 'root'. :) You just need to be the user 'root' when launching the app and opening, editing, and saving the file.

Hm. I just fired up gedit and edited fstab with it. No problem. But try edit>preferences>editor>save and unchecking 'backup' for the heck of it. You tried another editor? Like I say, I'm stumped. I don't even know what sort of diagnostics to get you to try beyond what I said above. Hope somebody gets you sorted out.

kasperhans 11-06-2003 01:54 PM

Quote:

Originally posted by JsCAMRY
Yes I was in root when I was in the terminal and tryped su, then I typed gedit /etc/fstab and the gedit opened then I typed in "/dev/hda1 /mnt/windows vfat auto,umask=0 0 0" on a new line. I am not sure if I was in root while I was using gedit. I am using the RH manual

thanks jason

you forgot the last two 0 s :=)


All times are GMT -5. The time now is 05:46 AM.