[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Can't use synaptic and other stuff as regular user



Hello

John Harrold (<jmh17@pitt.edu>) wrote:

> Sometime in April Markus Lindström assaulted the keyboard and
> produced:
> 
> | I have another problem. I've installed KDE, and I've installed
> | Synaptic. The problem that occurs is that I can only launch Synaptic
> | if I've logged in as root, it doesn't work even if I've used 'su' in
> | a Konsole session on my own account. It seems X can only generate
> | the windows if I'm logged in as root.
> 
> are you sure you exported your display as root and xhosted the
> computer?
> 
> #as root:
> export DISPLAY=localhost:0
> 
> #as a normal user:
> xhost +localhost

Instead, you could try this:

export XAUTHORITY=/home/markus/.Xauthority

If su doesn't open a login shell (su -), DISPLAY is already set.

> also, have you tried sshing to the computer with xforwarding?
> 
> ssh -X localhost
> 
> you might have to change the line in /etc/ssh/sshd_config
> 
> #from:
> X11Forwarding no
> 
> #to:
> X11Forwarding yes

This should work, but for KDE users, there is much better way. Simply
run

kdesu synaptic

best regards
        Andreas Janssen

-- 
Andreas Janssen <andreas.janssen@bigfoot.com>
PGP-Key-ID: 0xDC801674 ICQ #17079270
Registered Linux User #267976
http://www.andreas-janssen.de/debian-tipps.html



Reply to: