export http_proxy to a socks5

2018-11-15 Thread Flipchan
Hey, Does anyone have a good way to set the system variables https and http_proxy to a socks5 proxy so that all my http ad https traffic forwards to my socks5 box? ( Anyone got any good way or a quick ugly hack to solve this? ) -- Sincerely Flipchan

Re: OpenBSD with root FS mounted read only

2018-11-15 Thread Stuart Henderson
On 2018-11-15, Kevin Chadwick wrote: > The main benefit of read-only is not having to do disk checks but the time for > root is negligible. well, it's not just time fsck'ing, those checks can fail, and then if you don't have OOB you have to go visit the machine ..

mouse stops working 2 days after reboot

2018-11-15 Thread Luke A. Call
Hi. On 6.4 (not 6.3 or snapshots i tried), the external mouse just stops working, ~2 days after rebooting, multiple times. A reboot fixes it, but just restarting X with Ctrl-Alt-Bksp does not fix it (though it does seem to close/restart xenodm). I am not using the trackpad and even while this

Re: OpenBSD with root FS mounted read only

2018-11-15 Thread Kevin Chadwick
On 11/15/18 4:00 PM, Jarkko Oranen wrote: > However, unless you're using really bad install media (like USB flash > memory or something) I don't think OpenBSD is very likely to suffer a > corrupted filesystem even on power outage unless you're doing very > heavy IO (and even then it's probably

Re: OpenBSD with root FS mounted read only

2018-11-15 Thread Peter N. M. Hansteen
On 11/15/18 3:26 PM, jean-yves boisiaud wrote: > Or, is there a simple way to use root FS RO with OpenBSD 6.4 and above ? I thought library reordering and KARL had been with us longer, but anyway, it's possible to turn off the library reordering with library_aslr=NO in your rc.conf.local. I

Re: OpenBSD with root FS mounted read only

2018-11-15 Thread Jarkko Oranen
I use resflash to build read-only images for my router: https://gitlab.com/bconway/resflash/tree/master/ It's not quite a standard OpenBSD installation, but it's pretty close. However, unless you're using really bad install media (like USB flash memory or something) I don't think OpenBSD is

Vacation with smtpd doesn't work in 6.4

2018-11-15 Thread Martin Sukany
Hi, I'm using vacation as auto-responder while I'm out of office. I've been using it by following way: 1) create ~/.vacation.msg contains body of the message 2) init vacation db     $ vacation -i 3) update .forward file to pipe vacation (see below) Unfortunately starting 6.4, it seems like

OpenBSD with root FS mounted read only

2018-11-15 Thread jean-yves boisiaud
hello, for more than 10 years, I install OpenBSD to serve as firewalls and VPN IPSec or OpenVPN. Some of these firewalls are near my office, while other are far away. Most of them are not used with an UPS. It is the main reason why I decided to use root FS mounted RO. /tmp, /dev, /var and

Re: Having security patches to packages while running -stable

2018-11-15 Thread Stuart Henderson
On 2018-11-15, Ivan Krylov wrote: > Hi! > > Not to question or criticise existing practices here, just making sure > that I understand the situation correctly. > > Suppose that I'm running -stable (i.e. I installed a supported release > and am running syspatch regularly) and I want to use a few

Re: python3 script not running as root

2018-11-15 Thread Markus Rosjat
Hi Marc, Am 15.11.2018 um 14:05 schrieb Marc Espie: 6.4, or snapshot ? there was an unveil snafu with doas a few days ago. 6.4 release -- Markus Rosjatfon: +49 351 8107224mail: ros...@ghweb.de G+H Webservice GbR Gorzolla, Herrmann Königsbrücker Str. 70, 01099 Dresden

Re: python3 script not running as root

2018-11-15 Thread Marc Espie
On Thu, Nov 15, 2018 at 09:36:45AM +0100, Markus Rosjat wrote: > Hi Martin and  Daniel, > > Am 15.11.2018 um 09:24 schrieb Martin Sukany: > >Hi, > > > >you'd fix this by defining PATH variable in your crontab, or specify the > >full path to python3 interpreter instead using env. > > > as daniel

Having security patches to packages while running -stable

2018-11-15 Thread Ivan Krylov
Hi! Not to question or criticise existing practices here, just making sure that I understand the situation correctly. Suppose that I'm running -stable (i.e. I installed a supported release and am running syspatch regularly) and I want to use a few packages. I would like to be able to install

Re: python3 script not running as root

2018-11-15 Thread Ken M
On Thu, Nov 15, 2018 at 09:36:45AM +0100, Markus Rosjat wrote: > as daniel also suggested I will try the the PATH crontab approach and this > is because scripts with a full path in the shebang seem to run anymore on > 6.4 > > regards > Yeah just checked my scripts I was referring to (they are

Re: python3 script not running as root

2018-11-15 Thread Ken M
On Thu, Nov 15, 2018 at 09:24:10AM +0100, Martin Sukany wrote: > Hi, > > you'd fix this by defining PATH variable in your crontab, or specify the > full path to python3 interpreter instead using env. > > M> > > As the others said, and to expand, it is probably from the shebang line of your

Re: python3 script not running as root

2018-11-15 Thread Markus Rosjat
Hi Martin and  Daniel, Am 15.11.2018 um 09:24 schrieb Martin Sukany: Hi, you'd fix this by defining PATH variable in your crontab, or specify the full path to python3 interpreter instead using env. as daniel also suggested I will try the the PATH crontab approach and this is because

Re: python3 script not running as root

2018-11-15 Thread Martin Sukany
Hi, you'd fix this by defining PATH variable in your crontab, or specify the full path to python3 interpreter instead using env. M> On 11/15/18 8:39 AM, Markus Rosjat wrote: Hi all, I have a python script to get some traffic stats from my machines and it is running without problems except

Re: python3 script not running as root

2018-11-15 Thread Daniel Gracia
AFAIK cron won't spawn a login shell, so there are no 'env' variables to start with. You could import a user's profile from the crontab and get done with that (0 5 * * * . $HOME/.profile; /path/to/command/to/run) but IMO best practice would require you to set any variables in your cron script.