This is the 4th time I have tried to send to the list but ff wants to insist I send it to mgb. So I'm going to compose this the last time.
Re the sudo -E: from wheezy thru jessie and stretch its been required since X would not allow root to use it without it, but I just went to a buster machine and I'll be dipped, it worked without the -E on a buster/xfce4 install.
But I've become quite fam with "sudo chown -R gene:gene /home/gene" to fix such wonky perms because of it. Why it took debian 3 major version updates to fix it boggles my mind.
Now, where was I. stuck in a one window jail cuz I can't get trinity to load and work.
What I do know is that if I'm not using gdm3, I lose sudo rights as lightdm and tdm-trinity all want an admin pw and that doesn't exist. my sudo pw doesn't work.
So lets start, one step at a time, what do I do to fix this?
Thanks Mike, gene
said Gene Heskett:
| Re the sudo -E: | from wheezy thru jessie and stretch its been required since X would not | allow root to use it without it, but I just went to a buster machine and | I'll be dipped, it worked without the -E on a buster/xfce4 install.
What happens if you do
$ xhost + localhost
before you execute your sudo command? here it gives root access to x in a user terminal, so you can type your command in the terminal and get a nice little session running x as root. -- dep
Pictures: http://www.ipernity.com/doc/depscribe/album Column: https://ofb.biz/author/dep/
Gene Heskett wrote:
So lets start, one step at a time, what do I do to fix this?
you usually add yourself to the sudo group and you are not asked for passwd.
As dep mentioned I usually do xhost +local:0
or whatever screen you have (but it is usually 0)
followed by sudo bash
then root can start any GUI app
However, Gene, you really shouldn't do this in daily business. I do this when I have to run some installer that needs GUI .. like VMPlayer or VBox or similar
BR
On Tue November 30 2021 11:41:30 deloptes wrote:
However, Gene, you really shouldn't do this in daily business. I do this when I have to run some installer that needs GUI .. like VMPlayer or VBox or similar
Good advice that. GUI programs running as root is seldom a good idea.
Personally I don't use the xhost thang. I don't mind bash running as root but I don't even want to accidentally start some GUI program as root and then have to clean up the mess.
apt is all you need for managing Debian packages, and your choice of non-GUI editor for editing config files.
--Mike
Mike Bird wrote:
Good advice that. GUI programs running as root is seldom a good idea.
Personally I don't use the xhost thang. I don't mind bash running as root but I don't even want to accidentally start some GUI program as root and then have to clean up the mess.
apt is all you need for managing Debian packages, and your choice of non-GUI editor for editing config files.
But as mentioned in cases you need to do that, just xhost +local:0 and after finishing the job xhost -local:0