7,935 reputation
2349
bio website michael.kjorling.se
location
age
visits member for 4 years, 3 months
seen 2 hours ago

3h
comment Move completed torrents in rTorrent according to label
Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. That way, should the linked page ever change or become invalid for any reason, the answer will still be useful to visitors to the Unix & Linux SE.
Jan
20
comment How to represent date format in '2015120' in Linux shell?
xkcd.com/1179
Jan
16
revised How to XZ a directory with TAR using maximum compression?
deleted 5 characters in body
Jan
16
revised How to boot Linux to command-line mode instead of GUI?
edited body
Jan
15
awarded  Notable Question
Jan
14
revised Debian, tftp only works for localhost
Improved formatting
Jan
12
comment Run script on receipt of email
@AdamSmith The difference is, with something like my second alternative, you can disable the address you gave a particular entity without causing problems anywhere else, and the addresses look sensible even to dumb automated verifiers. As for keeping the MDA/MTA, procmail can be used as a drop-in replacement for the Postfix MDA; no need to replace Postfix as your MTA.
Jan
12
answered Run script on receipt of email
Jan
12
comment How can I get a vfat pendrive to automount as posixovl filesystem?
You can use udev to run any arbitrary command when a device is connected (based on e.g. make/model/serial number). Maybe that can be pressed into service?
Dec
21
awarded  Notable Question
Dec
20
comment What root directories should I back up?
(I know the possible-duplicate question approaches the subject from the opposite direction, but I believe an answer to one is also applicable to the other, given that there is a reasonably limited number of directories in the root directory on a *nix system. If you feel otherwise, please do edit your question to describe why.)
Dec
19
awarded  Popular Question
Dec
19
comment Can't print to PDF using cups-pdf; used to work, now “failed to set file mode” printing as non-root
I didn't have apparmor installed in February, nor in May, and I still don't. While it is great that you want to contribute, please take a moment to read any existing answers before posting an answer of your own to make sure you aren't duplicating what someone has already posted; particularly something that someone has already posted which didn't work out.
Dec
18
comment SASL authentication fails when called from crontab
You can do this without a separate script by simply having cron invoke something like env USER="YOURUSERNAME" mbsync gmail (or you can set USER from within your crontab)
Dec
18
comment /sys: cpio: chown failed - Read-only file system (Building Passenger RPM using Docker)
I don't know the parameter syntax of the tools involved, but note that OP also asks about /sys.
Dec
18
revised centos dropbox newest version not starting
Improved formatting
Dec
18
revised How to find out total memory resource usage with ps?
Improved formatting
Dec
17
comment How can I conditionally pass a subshell through 'time'?
@goldilocks You mean the magnet? ;)
Dec
17
comment Issue due to scope of environment variables
@Beginner No, sudo -i gives you a nice clean euid root shell.
Dec
17
comment Issue due to scope of environment variables
@PM2Ring sudo -E is "preserve environment", so there's no real reason why $http_proxy wouldn't be preserved. My guess is that this is related to rosdep specifically. Beginner, please edit your question with some other examples as well. Particularly, consider trying sudo -i then the export http_proxy=... then the rosdep install ... and see if that works better. If it doesn't (which I am guessing), your problem is unrelated to sudo itself.