[opensuse] /etc/fstab - can not open as root
Morning, Using opensuse 11.2 - gnome desktop. If I use the following command then this error..what is wrong please. johan@linux-v2bn:~> sudo gedit /etc/fstab root's password: (gedit:6161): Gtk-WARNING **: cannot open display: johan@linux-v2bn:~> I need to mount a drive at startup if possible. Thanks Johan Sch -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 3/4/2010 12:24 AM, Johan wrote:
Morning,
Using opensuse 11.2 - gnome desktop.
If I use the following command then this error..what is wrong please.
johan@linux-v2bn:~> sudo gedit /etc/fstab root's password:
(gedit:6161): Gtk-WARNING **: cannot open display: johan@linux-v2bn:~>
I need to mount a drive at startup if possible. Thanks Johan Sch
Its not complaining that you can't open fstab. Its complaining that the graphical editor can't talk to your x server. Just use pico or nano or something text oriented for quick edits. If you really need a graphical editor you need to set your display environmental so that gedit can write to your x session. or try ssh root@localhost gedit /etc/fstab which is generally easier than messing around till you get your display set up properly. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 04/03/10 09:55, John Andersen wrote:
On 3/4/2010 12:24 AM, Johan wrote:
Morning,
Using opensuse 11.2 - gnome desktop.
If I use the following command then this error..what is wrong please.
johan@linux-v2bn:~> sudo gedit /etc/fstab root's password:
(gedit:6161): Gtk-WARNING **: cannot open display: johan@linux-v2bn:~>
I need to mount a drive at startup if possible. Thanks Johan Sch
Its not complaining that you can't open fstab.
Its complaining that the graphical editor can't talk to your x server.
Just use pico or nano or something text oriented for quick edits.
If you really need a graphical editor you need to set your display environmental so that gedit can write to your x session.
or try ssh root@localhost gedit /etc/fstab which is generally easier than messing around till you get your display set up properly.
Or even easier try xdg-su -c "gedit /etc/fstab" (or gnomesu if you are sure you are in gnome) Regards, Tejas -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 03/04/2010 01:02 PM, Tejas Guruswamy wrote:
On 04/03/10 09:55, John Andersen wrote:
On 3/4/2010 12:24 AM, Johan wrote:
Morning,
Using opensuse 11.2 - gnome desktop.
If I use the following command then this error..what is wrong please.
johan@linux-v2bn:~> sudo gedit /etc/fstab root's password:
(gedit:6161): Gtk-WARNING **: cannot open display: johan@linux-v2bn:~>
I need to mount a drive at startup if possible. Thanks Johan Sch
Its not complaining that you can't open fstab.
Its complaining that the graphical editor can't talk to your x server.
Just use pico or nano or something text oriented for quick edits.
If you really need a graphical editor you need to set your display environmental so that gedit can write to your x session.
or try ssh root@localhost gedit /etc/fstab which is generally easier than messing around till you get your display set up properly.
Or even easier try xdg-su -c "gedit /etc/fstab" (or gnomesu if you are sure you are in gnome)
Regards, Tejas
Thanks for the input from both of you. Rgds, Johan Sch -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Johan
-
John Andersen
-
Tejas Guruswamy