115 reputation
9
bio website piotr.dobrogost.net
location Poland
age 36
visits member for 3 years, 5 months
seen 8 hours ago

C++ is the king


Jul
10
comment How do I get 'realpath' to find my symbolic link?
It might be possible to do this with an alias (...) It's not possible as alias influences only command line and not scripts. See How to change the default version of Python in Debian 7.5?
Jul
10
comment How do I get 'realpath' to find my symbolic link?
When you run /usr/bin/python, it finds and executes python2.7 in the same directory. This is very confusing statement. If you describe the case where /usr/bin/python is a symlink then please be more specific.
Jul
9
comment How to change the default version of Python in Debian 7.5?
Out of curiosity – have you checked if this has already been asked before answering?
Jul
9
answered Trouble installing lxml with custom install location for libxml2/libxslt
Mar
22
comment clear command in Konsole
Ctrl+Shift+X does not work for me in Konsole Version 2.12.3 Ctrl+Shift+K does work – see superuser.com/a/123196/664
Mar
6
comment Sudo changes PATH, yet executes the same binary
I posted a follow-up which you might be interested in – Mismatch between sys.executable and sys.version in Python
Mar
6
accepted Sudo changes PATH, yet executes the same binary
Mar
6
comment Sudo changes PATH, yet executes the same binary
If this is set, sudo will both search for the command in this PATH and set this in the environment of the command it runs. – this is much clearer than brief Path used for every command run from sudo. in the sudoers man page.
Mar
5
comment Sudo changes PATH, yet executes the same binary
@Mel_Burslan And the location it gets to be found is /usr/local/bin the first time – I'm not sure what you mean here. Running sudo env | grep PATH clearly shows what's the PATH when operating with sudo. The question is why sudo python does not act according to this PATH?
Mar
5
comment Sudo changes PATH, yet executes the same binary
@yoonix Updated my question with information you asked for.
Mar
5
revised Sudo changes PATH, yet executes the same binary
added 805 characters in body
Mar
5
comment Sudo changes PATH, yet executes the same binary
@peterph Then why does env show different PATH when run with sudo?
Mar
5
awarded  Editor
Mar
5
awarded  Student
Mar
5
revised Sudo changes PATH, yet executes the same binary
added 114 characters in body
Mar
5
asked Sudo changes PATH, yet executes the same binary
Feb
23
comment How to automatically enter sudo's grace period upon CLI login?
all you need to do is update the timestamp on the directory – How to find out this directory?
Feb
17
comment How to prevent .jar files from going into /etc when installing OpenJDK from rpm?
I do not question that it works fine :) I'm concerned with the place (/etc) which it chose to keep these links. I believe /etc is meant for configuration and not for keeping random links. Wouldn't something like /usr/bin or /usr/local/bin be a better place?
Feb
17
comment How to prevent .jar files from going into /etc when installing OpenJDK from rpm?
Thanks. Do you personally think alternatives does the right thing by putting these links in /etc directory?
Feb
17
awarded  Scholar