Can't open synaptic or obmenu in terminal with sudo or root?
Can'tfrank@debian:~$ sudo synaptic
No protocol specified
Unable to init server: Could not connect: Connection refused
(synaptic:1062): Gtk-WARNING **: cannot open display: :0
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
Problem with Synaptic and Obmenu
Re: Problem with Synaptic and Obmenu
Obmenu shouldn't need root. For Synaptic, use su and when prompted enter your root password. I have this in my Openbox menu:
The gksu is a box for entering root password.
Code: Select all
gksu -g /usr/sbin/synaptic
The gksu is a box for entering root password.
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: Problem with Synaptic and Obmenu
^ I think gksu is being phased out in favour of pkexec.
The synaptic.desktop file calls
which is a wrapper for
EDIT: obmenu should not be run as root because it will save the configuration file in /root and won't change your desktop.
The synaptic.desktop file calls
Code: Select all
synaptic-pkexec
Code: Select all
pkexec synaptic
deadbang
Re: Problem with Synaptic and Obmenu
That's interesting. My gksu is working for now but I'll take a look at pkexec.Head_on_a_Stick wrote:I think gksu is being phased out in favour of pkexec.
I often wish that sudo had not been invented. It has its uses but it is badly abused, especially by newbies.
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: Problem with Synaptic and Obmenu
Yes, it should still work for the foreseeable future.Bulkley wrote:My gksu is working for now
The problem is that gksu allows the application too many privileges and pkexec is supposed to address this but it does require a special exception file in /usr/share/polkit-1/actions/ (which is supplied by the synaptic package) so it won't work for everything.
+1Bulkley wrote:I often wish that sudo had not been invented. It has its uses but it is badly abused, especially by newbies.
OpenBSD has demoted sudo to the ports tree and moved to doas(1) instead, it's a _much_ cleaner solution
deadbang
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: Problem with Synaptic and Obmenu
Just for the record, this will let you start synaptic with sudo:fvs wrote:Code: Select all
Unable to init server: Could not connect: Connection refused
Code: Select all
xhost +local:
deadbang