Results 1 to 6 of 6
Hello,
I use Sarge 3.1r1 and GNOME.i tried to "su -" and export DISPLAY variable as this:
Code:
prakash@sarge:~$ echo $DISPLAY
:0.0
prakash@sarge:~$ su -
Password:
sarge:~# export DISPLAY=:0.0
sarge:~# ...
- 03-08-2006 #1
login as "su -" ,not able to open gui-apps
Hello,
I use Sarge 3.1r1 and GNOME.i tried to "su -" and export DISPLAY variable as this:
what to do now.help appreciatedCode:prakash@sarge:~$ echo $DISPLAY :0.0 prakash@sarge:~$ su - Password: sarge:~# export DISPLAY=:0.0 sarge:~# gedit Xlib: connection to ":0.0" refused by server Xlib: No protocol specified (gedit:10259): Gtk-WARNING **: cannot open display: sarge:~#
- 03-09-2006 #2Linux Newbie
- Join Date
- Jul 2005
- Location
- Illinois, USA
- Posts
- 111
You might want to use sudo instead i.e.,
This works for me on ubuntu.Code:$ sudo gedit
- 03-09-2006 #3
Thank You.i know with sudo or su logins it works,so how do i add/export so that i can run gui-apps while looged in as "su -".
- 03-09-2006 #4
apt-get install sux
Then use sux instead of su to change to root in an X console. Sux will take care of everything.Stand up and be counted as a Linux user!
- 03-09-2006 #5
Thanks.I am already using sux.but plain curious whether we can achieve to open gui's from "su -".
- 03-27-2006 #6Just Joined!
- Join Date
- Mar 2006
- Posts
- 1
Use xhost
You need to use xhost to tell the X server to allow connections from other users. You can get info on this by typing "man xhost". Typing "xhost +" will allow anybody to connect. You need to do this BEFORE typing "su -", i.e. in the context of the user that started the X session.


Reply With Quote
