Dmitry Vasilyanov

less info
266 reputation
13
bio website vdmit.org
location Russia
age 24
visits member for 1 year, 8 months
seen Jan 13 at 6:27

Embedded software engineer


Nov
14
awarded  Yearling
Dec
2
comment Supervisord: how to append to $PATH
supervisord don't run shell to preprocess variables in the config file, so you can't use shell expressions to expand variables. Although there is a patch that allows to do %($PATH) and it was discussed in mailing lists back in 2011 but AFAIK it is still not included to the mainline source tree. As a workaround you can create a script that will setup environment and execute a command supplied in arguments. Then you just run the script from the supervisord like command /usr/local/bin/setup_env_master.sh program_name arguments
Nov
19
comment How make a SSH tunnel from one computer to another and forward its traffic?
For me the CPU overhead from -C is negligible. Desktops and servers can handle gzip compression/decompression very easily and embedded devices usually turn off this feature. On the other size, network load is significantly lower especially on port forwarding (often is uncompressed/plaintext data).
Nov
19
comment Different result with same grep conditions via ssh
If root users on different servers have different shells then the * (asterisks) may be handled in different ways. Try to run in similar shells for start: ssh root@$domain dash -c "grep $(date +%Y/%m/%d) /var/log/slave.log* | grep 'Blacklist\ requests,' | tail -1" > "$current_dir"/servers_result
Nov
19
revised How make a SSH tunnel from one computer to another and forward its traffic?
added 190 characters in body
Nov
19
answered How make a SSH tunnel from one computer to another and forward its traffic?
Nov
19
answered 100GB Virtual Memory on 64GB server without swap
Nov
18
awarded  Autobiographer
Nov
15
comment Completely disable CD/DVD Rom access to all users on Ubuntu 12.04 LTS?
Well, that is embarrassing. Restricting acces to a device was always as harder as revoking permissions from a user to the device file. I suppose there is another file in /dev which we have not considered (brasero have to read/write to the file to read/write to a disk) or sr0 or scd0 is still available for read/write to the user (check it out by ls -l /dev/).
Nov
15
comment Completely disable CD/DVD Rom access to all users on Ubuntu 12.04 LTS?
Try the dirty trick: simply remove the device file: rm /dev/scd0 (or sr0 or wherever cdrom device file is located). If it will be enough then you can just add this line to /etc/rc.local and the file will be removed every time system boots or you can find a more elegant way by writing an udev rule like this: DRIVERS=="sr", OPTIONS="ignore_device"
Nov
15
answered ssh can't connect after server ip changed
Nov
14
awarded  Editor
Nov
14
revised Completely disable CD/DVD Rom access to all users on Ubuntu 12.04 LTS?
deleted 4 characters in body
Nov
14
answered Completely disable CD/DVD Rom access to all users on Ubuntu 12.04 LTS?
Nov
14
awarded  Teacher
Nov
14
answered How can I generate a command for start-stop-daemon that will kill the process if it doesn't term during a timeout period?