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
Wayland,Synaptic continue without administrative privileges
-
- Posts: 1101
- Joined: 2016-01-07 12:25
- Has thanked: 6 times
- Been thanked: 16 times
Re: Wayland,Synaptic continue without administrative privile
Just a note that this would not be called from a personal bin folder without a reboot (or maybe log out/in) as system does not check this folders existence (and add it to $PATH) in real time, only at startup
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: Wayland,Synaptic continue without administrative privile
Just logging out & back in again should do it, ~/.profile adds ~/bin to PATH automatically if it exists.Dai_trying wrote:Just a note that this would not be called from a personal bin folder without a reboot (or maybe log out/in) as system does not check this folders existence (and add it to $PATH) in real time, only at startup
deadbang
-
- Posts: 1101
- Joined: 2016-01-07 12:25
- Has thanked: 6 times
- Been thanked: 16 times
Re: Wayland,Synaptic continue without administrative privile
Yes, my point exactlyHead_on_a_Stick wrote:Just logging out & back in again should do it, ~/.profile adds ~/bin to PATH automatically if it exists.
Re: Wayland,Synaptic continue without administrative privile
it's not necessary to logout or reboot,
first of all, in my laptop, the personal folder bin was recognized without any special action, the bash completion, in my case, recognize the bin personal folder
this is a part of user file .profile at home
------
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
fi
-------
in other case, just add the bin folder to the PATH and run:
source .profile
bye.
first of all, in my laptop, the personal folder bin was recognized without any special action, the bash completion, in my case, recognize the bin personal folder
this is a part of user file .profile at home
------
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
fi
-------
in other case, just add the bin folder to the PATH and run:
source .profile
bye.
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: Wayland,Synaptic continue without administrative privile
Yes, that's because you already had ~/binmanelinux wrote:it's not necessary to logout or reboot,
first of all, in my laptop, the personal folder bin was recognized without any special action, the bash completion, in my case, recognize the bin personal folder
That won't work for all shells:manelinux wrote:in other case, just add the bin folder to the PATH and run:
source .profile
Code: Select all
E485:~$ source ~/.profile
loksh: source: not found
E485:~127$
Code: Select all
. ~/.profile
deadbang
Re: Wayland,Synaptic continue without administrative privile
i dont know why your have not source command friend.
The source command can be used to load any functions file into the current shell script or a command prompt without logout before.
Used to refresh the current shell environment, the source command can also be used in order to import functions into other bash scripts or to run scripts into the current shell environment.
try it.
make a new directory called whatever, put there the file, add this directory to path and run source.
i'm not inventing nothing.
and in this case, we are only adding a folder to the path env var. nothing special.
bye
The source command can be used to load any functions file into the current shell script or a command prompt without logout before.
Used to refresh the current shell environment, the source command can also be used in order to import functions into other bash scripts or to run scripts into the current shell environment.
try it.
make a new directory called whatever, put there the file, add this directory to path and run source.
i'm not inventing nothing.
and in this case, we are only adding a folder to the path env var. nothing special.
bye
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: Wayland,Synaptic continue without administrative privile
It's a bashism and so is not supported by all shells. The POSIX equivalent of source is . (dot) and that is supported by all shells.manelinux wrote:i dont know why your have not source command friend.
deadbang
Re: Wayland,Synaptic continue without administrative privile
Yeah! nice note!
i see, loksh is a port of OpenBSD, that's recommended for a resource-constrained systems
Nice to know friend, Thx.
bye
i see, loksh is a port of OpenBSD, that's recommended for a resource-constrained systems
Nice to know friend, Thx.
bye
Re: Wayland,Synaptic continue without administrative privile
I have Debian 10 installed and synaptic works under administrative privileges under wayland gnome session... How can it be?
Debian 10, 64 bit, Gnome 3.30.2, Intel Core i3-6100 CPU 3.70GHz, 8GB RAM.
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: Wayland,Synaptic continue without administrative privile
Are you sure that Wayland is running? https://unix.stackexchange.com/question ... being-usedrulet wrote:How can it be?
Synaptic will start under Wayland in my buster system but it runs without root privileges.
EDIT: I can start synaptic as root by using
Code: Select all
xhost +local:
sudo synaptic
And if you do then remember to reset the permissions afterwards:
Code: Select all
xhost -local:
deadbang
Re: Wayland,Synaptic continue without administrative privile
The session which was choosed is Gnome Wayland, but command output shows:
r@prime:~$ loginctl show-session "$XDG_SESSION_ID" -p Type
Type=x11
So, I think if even to choose wayland session while installed nvidia driver it will defaults to x11(maybe that's because I'm using old nvidia driver(cause video card is pretty old).
r@prime:~$ loginctl show-session "$XDG_SESSION_ID" -p Type
Type=x11
So, I think if even to choose wayland session while installed nvidia driver it will defaults to x11(maybe that's because I'm using old nvidia driver(cause video card is pretty old).
Debian 10, 64 bit, Gnome 3.30.2, Intel Core i3-6100 CPU 3.70GHz, 8GB RAM.
Re: Wayland,Synaptic continue without administrative privile
Running synaptic under wayland is a good way to break stuff. That said: to run synaptic under wayland you need an x11 backend as well as an x11 frontend and you must run from root.
So it follows:
Then in a new terminal:
This will open synaptic in a wayland session under root but I would definitely not use it. Most everything you have a problem with in wayland, that used to run under x11, will work like this, but it is almost never a good idea. The rare exception is x11 forwarding with SSH where it comes in handy.
https://www.dbts-analytics.com/notesxfwdgb.html
Simple concepts to remember: client needs x11 frontend, host needs x11 backend. I feel like a saboteur providing this info... So one more concept to remember: wayland doesn't break things, x11 does.
TC
So it follows:
Code: Select all
trinidad@debianamd1:~$ Xephyr -br -ac -noreset -screen 1150x850 :8
Code: Select all
trinidad@debianamd1:~$ su
Password:
root@debianamd1:/home/trinidad# DISPLAY=:8 GDK_BACKEND=x11 synaptic
https://www.dbts-analytics.com/notesxfwdgb.html
Simple concepts to remember: client needs x11 frontend, host needs x11 backend. I feel like a saboteur providing this info... So one more concept to remember: wayland doesn't break things, x11 does.
TC
You can't believe your eyes if your imagination is out of focus.
Re: Wayland,Synaptic continue without administrative privileges
Sorry for the necro-response... but I have found that starting synaptic from a terminal using the following command works:
sudo -E synaptic
sudo -E synaptic
Pax vobiscum,
Mark Rabideau- Prof Genealogist - http://many-roads.com
Linux BLOG https://eirenicon.org
spectrwm,i3wm,hlwm,bspwm,dwm
Linux User #449130
Mark Rabideau- Prof Genealogist - http://many-roads.com
Linux BLOG https://eirenicon.org
spectrwm,i3wm,hlwm,bspwm,dwm
Linux User #449130