> On Sunday 24 August 2008 23:37, [EMAIL PROTECTED] wrote: >> On Sun, 24 Aug 2008 23:16:46 +0200 >> >> Nigel Henry <[EMAIL PROTECTED]> wrote: >> > On Sunday 24 August 2008 22:45, Shachar Or wrote: >> > > On Sunday 24 August 2008 23:36, Nigel Henry wrote: >> > > > Having installed the Etch netinst. I was next looking to install >> > > > KDE, and X. >> > > > >> > > > I ran apt-get install kde, and a whole bunch of packages were >> > > > installed, including some X packages. After these had been >> > > > installed, I also did an apt-get install kdm, as I wasn't sure if >> > > > it had been installed, and it hadn't been. >> > > > >> > > > Reboot, and no desktop. Obviously some X stuff is missing. >> > > > >> > > > Now I tried apt-get install xserver, which gave some options, >> > > > including xserver-xorg-core, which is the one I went for, and at >> > > > the same time installed xfonts-75dpi, and xfonts-base. Some time >> > > > later, and many more packages installed, I rebooted. >> > > > >> > > > The reboot went ok, and I was able via KDM to login to KDE. >> > > > >> > > > The problem I'm having is when su'ing to root in KDE's Konsole. >> > > > >> > > > When su'ed to root on KDE's Konsole neither kwrite, synaptic, or >> > > > gedit will open. Synaptic is on the K menu, and starting it there >> > > > will open a window asking for the the root password, and entering >> > > > the root password I can use synaptic as root, but trying to open >> > > > synaptic as root on KDE's Konsole just fails. >> > > > >> > > > Output from trying to start gedit, kwrite, and synaptic on KDE's >> > > > Konsole below. >> > > > >> > > > [EMAIL PROTECTED] djmons]$ ssh 192.168.0.197 >> > > > [EMAIL PROTECTED]'s password: >> > > > Linux debian 2.6.26.2-rt1-libre1 #1 SMP PREEMPT RT Sun Aug 10 >> > > > 13:45:05 EEST 2008 i686 >> > > > >> > > > The programs included with the Debian GNU/Linux system are free >> > > > software; the exact distribution terms for each program are >> > > > described in the individual files in /usr/share/doc/*/copyright. >> > > > >> > > > Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent >> > > > permitted by applicable law. >> > > > Last login: Sat Aug 23 14:52:38 2008 >> > > > [EMAIL PROTECTED]:~$ su >> > > > Password: >> > > > msu: Authentication failure >> > > > Sorry. >> > > > [EMAIL PROTECTED]:~$ su >> > > > Password: >> > > > debian:/home/djmons# synaptic >> > > > X11 connection rejected because of wrong authentication. >> > > > The application 'synaptic' lost its connection to the display >> > > > localhost:10.0; most likely the X server was shut down or you >> > > > killed/destroyed >> > > > the application. >> > > > debian:/home/djmons# kwrite >> > > > X11 connection rejected because of wrong authentication. >> > > > kwrite: Fatal IO error: client killed >> > > > debian:/home/djmons# gedit >> > > > X11 connection rejected because of wrong authentication. >> > > > The application 'gedit' lost its connection to the display >> > > > localhost:10.0; most likely the X server was shut down or you >> > > > killed/destroyed >> > > > the application. >> > > > debian:/home/djmons# >> > > > >> > > > Any pointers as to what may be the problem here, gratefully >> > > > received. >> > > >> > > You need sux instead of su. >> > > >> > > > Nigel. >> > > >> > > -- >> > > Shachar Or | ש×ר ××ר >> > > http://ox.freeallweb.org/ >> > >> > When I try the command sux, I just get a "command not found". >> > >> > Thanks for the reply though. I'm game for trying anything at the >> > moment, and all replies/suggestions, no matter how off the edge, are >> > welcome. >> > >> > Nigel. >> >> Have you tried apt-get install xorg >> >> jeff > > Well sux plus password works ok, but I've never had to use sux before on > any > distro. > > I did an apt-get install xorg, which pulled in a few more packages, and > apart > from some complaints about finding directories for fonts, which didn't > appear > to exist, but no change when running su, plus password, and kwrite, for > example, which stiill failed to open. > > I also tried another suggestion, as below. > > <quote> >> > the basic problem is that you are launching these programs as root, but > your desktop is running as your user. So after su'ing run "export > DISPLAY=localhost:0" and as a user run "xhost localhost". > > The export command sets the DISPLAY variable to your local machine, this > variable is how X apps figure out what X server to connect to. The xhost > command allows programs running on your local machine to connect to your > desktop. > <end quote> > > I don't think I made any typos. > > Having done an apt-get install xorg, and also the export stuff above, I > still > can't just simply su, plus password, and bring up kwrite for example. > > This is how things are at present, and hand written. Excuse any typos > please. > > [EMAIL PROTECTED]: ~$ su > Password: > debian: /home/djmons# kwrite > Xlib: connection to ":0.0" refused by server > Xlib: Invalid MIT-MAGIC-COOKIE-1 key > kwrite: cannot connect to X server :0.0 > debian: /home/djmons# > > Any suggestions welcome, as usual. > > Nigel. > >
On my Ubuntu laptop, just su'ing, no dash, works as you describe. Send the output of env after you su. On Debian 3.0, su'ing without the dash also works as you describe. I can't get 4.0 installed because it doesn't recognize my ps2 keyboard. So I can't test the behavior of 4.0. Perhaps there is some new secuity dealie that changes the default behavior. I downloaded the latest testing CD last night, If it works I'll let you know how it su's. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]