Nervous Mouse Syndrome
NoOp
glgxg at sbcglobal.net
Sat Apr 5 01:03:30 UTC 2008
On 04/04/2008 04:24 PM, Joseph wrote:
> NoOp wrote:
>>
>> Open a terminal window: Applications|Terminal Then from that
>> terminal window enter:
>>
>> gksu gedit /etc/X11/xorg.conf
>>
>> That will open up the file in administrative mode (after you
>> provide your password) so that you can then edit and save the file.
>
> Would I need a restart of the system after doing this and making
> these changes?
>
There are ways to restart X without restarting or logging out ... I'm
sure someone will come along and provide a method that works for them.
However, in the past there have been issues with doing that, or just
logging out and logging back in - and the changes not taking effect. So
I recommend that you go ahead and restart. It's the easiest to do & for
a standard/common desktop user it never hurts to restart/reboot once in
awhile.
As an added note: I find it easier to run gksu gedit <file> from the
terminal, but here are some additional hints to make the process a
little easier if you are not familiar with the terminal:
Enter: Alt-F2 and at the prompt enter your command; in this case:
gksu gedit /etc/X11/xorg.conf
That will open the file in the same manner as if you'd opened it from
the terminal window.
For a standard GUI approach install nautilus-gksu:
In a terminal enter:
sudo apt-get install nautilus-gksu
[or use the Alt-F2 method]
>From Synaptic (System|Administration|Synaptic Package Manger) search on
nautilus-gksu. Right click and select "Mark for Installation", then
click the "Apply" icon.
>From there on out, when you wish to edit write protected file in
Nautilus (that's the name of the program that you use when you use
Places|Home Folder etc), you can right-click on the _file_ and "Open as
administrator" in the drop down menu. That will then prompt you for your
password and automatically open the file in gedit with sudo root
privileges (gksu) so that you can edit and save accordingly.
*Words of caution*
Be *very* careful of what you do/edit when you use gksu or "Open as
administrator" as you now are able to modify system files. I *strongly*
recommend that once you open a file in this manner you *first* save a
backup of the file before you edit it.
More information about the ubuntu-users
mailing list