Apply conversion script to all *.md files. authored by Alexander Hansen Færøy's avatar Alexander Hansen Færøy
= Clamav = # Clamav
'''Written:''' 2018-11-22 (by mathew) **Written:** 2018-11-22 (by mathew)
== Debian/Ubuntu/... == ## Debian/Ubuntu/...
The issue is with ''freshclam''. You don't want to update you AV database in cleartext, do you? It's a risk. So do it over tor. Tor needs to be running, as daemon (the stock install on Debian family of OSes, often so in other Linux/BSD flavors). The issue is with _freshclam_. You don't want to update you AV database in cleartext, do you? It's a risk. So do it over tor. Tor needs to be running, as daemon (the stock install on Debian family of OSes, often so in other Linux/BSD flavors).
First make a script: First make a script:
{{{ ```
/usr/bin/t_freshclam /usr/bin/t_freshclam
}}} ```
with this content: with this content:
{{{ ```
#!/bin/sh
/usr/bin/torsocks /usr/bin/freshclam $@ /usr/bin/torsocks /usr/bin/freshclam $@
}}} ```
**chmod** it: **chmod** it:
{{{ ```
chmod 755 /usr/bin/t_freshclam chmod 755 /usr/bin/t_freshclam
}}} ```
After that, you need to make one important change in this file: After that, you need to make one important change in this file:
{{{ ```
/etc/init.d/clamav-freshclam /etc/init.d/clamav-freshclam
}}} ```
You need to change the line that reads: You need to change the line that reads:
{{{ ```
DAEMON=/usr/bin/freshclam DAEMON=/usr/bin/freshclam
}}} ```
to: to:
{{{ ```
DAEMON=/usr/bin/t_freshclam DAEMON=/usr/bin/t_freshclam
}}} ```
The rest is all regular. Now your Virus database will be updated over tor. The rest is all regular. Now your Virus database will be updated over tor.
\ No newline at end of file