Dmitry Vasilyanov

less info
436 reputation
14
bio website vdmit.org
location Russia
age 24
visits member for 1 year, 9 months
seen yesterday

Embedded software engineer


Jul
17
comment How can I run as another user?
Well, now I guess you are getting different $PATH from bash and sudo because the $PATH is defined in your .bashrc rather than .bash_profile. The difference is: .bashrc is executed for interactive shells and .bash_profile is executed for login shells. When you run sudo -i your shell becomes login but not interactive, so .bashrc is not executed. Move the $PATH setting from .bashrc to bash_profile and then sudo -i will be able to see it.
Jul
16
comment How can I run as another user?
I guess you are getting the bundle: command not found error because you set PATH or GEM_PATH in your .bash_profile or .bashrc, they are not executed in non-login/non-interactive shells, so you need to pass -i to sudo to simulate login, like this: sudo -iu openproject bundle install
Jul
16
comment How can I get gmake to give me a list of all included makefiles?
Then I don't know an easy way to do that. It seems you are a programmer, so perhaps a suitable way for you is to modify the source code of the make and add a message which is printed when an include directive is processed.
Jul
16
comment How to set up Cron to run mysqlauditgrep command for 11AM on Friday
you can check whether the cron daemon is running with ps aux | grep cron and the logging depends on your configuration, try cat /var/log/cron.log or grep cron /var/log/messages or grep cron /var/log/syslog
Jul
16
comment What are good document organization utilities?
I use Google Drive for that. I allows to search, sharing and online reading. I failed to find anything more suitable for that.
Jul
16
comment Why would the kernel drop packets?
Also I intentionally changed kibi-/mebi- to kilo-/mega- and omitted a word about libpcap in order to not confuse people.
Jul
16
comment Why would the kernel drop packets?
Thanks, I fixed the answer.
Nov
23
comment Connecting to wireless router
It seems early driver versions doesn't have a separate folder. Put all these four *.fw files to /lib/firmware directly.
Nov
22
comment Connecting to wireless router
Try to reconfigure you router to not use any encryption for a while. Then on the linux box do iwconfig eth1 essid MyDevice && dhclient eth1. It helps to localize the problem (whether it in WPA engine or the whole driver).
Nov
21
comment Appending timestamp stamp along with log file lines
Just improved the answer. Explained why fifo blocks your tailf, added the right way to use it. Actually the way with tailf seems to be more elegant, but I leaved the fifo way with hope it will be useful for someone.
Nov
20
comment Extrat tar “Cannot open: File name too long”
Linux File Systems usually don't limit path length (see comparsion table). As for trace logs - if you're not aware with programming you could place files at pastebin.com for example, but first ensure files contain no private data. Also if you don't need this particular file then you could just try to exclude it on extraction: tar tar -xvf tarball.tar --exclude="copyFileNameHere" or even exclude all files starting with the sharp sign: tar -xvf tarball.tar --exclude="#*"