Difference between revisions of "SUNScholar/Curation/Virus Scan"
Jump to navigation
Jump to search
m |
m |
||
| Line 3: | Line 3: | ||
</center> | </center> | ||
| − | + | ==Install Anti-Virus Software== | |
| − | + | ===Step 1=== | |
Install the "clamav-daemon" software by typing as follows. | Install the "clamav-daemon" software by typing as follows. | ||
sudo apt-get install clamav-daemon | sudo apt-get install clamav-daemon | ||
| Line 10: | Line 10: | ||
sudo freshclam | sudo freshclam | ||
| − | + | ===Step 2=== | |
Open the clamav config file by typing as follows: | Open the clamav config file by typing as follows: | ||
sudo nano /etc/clamav/clamd.conf | sudo nano /etc/clamav/clamd.conf | ||
| Line 18: | Line 18: | ||
TCPSocket 3310 | TCPSocket 3310 | ||
| − | + | ===Step 3=== | |
Then restart the clamav daemon by typing as follows. | Then restart the clamav daemon by typing as follows. | ||
sudo service clamav-daemon restart | sudo service clamav-daemon restart | ||
| − | + | ==Enable Anti-Virus Task== | |
| − | + | ===Step 1=== | |
Edit the following file and check that the parameters match the installation of clamav above. | Edit the following file and check that the parameters match the installation of clamav above. | ||
nano $HOME/{{Source}}/dspace/config/modules/clamav.cfg | nano $HOME/{{Source}}/dspace/config/modules/clamav.cfg | ||
| − | + | ===Step 2=== | |
Then edit the following file and make sure the "vscan" task is enabled using the <tt>'''ui.tasknames'''</tt> attribute: | Then edit the following file and make sure the "vscan" task is enabled using the <tt>'''ui.tasknames'''</tt> attribute: | ||
nano $HOME/{{Source}}/dspace/config/modules/curate.cfg | nano $HOME/{{Source}}/dspace/config/modules/curate.cfg | ||
| Line 43: | Line 43: | ||
</pre> | </pre> | ||
| − | + | ===Step 3=== | |
And then [[SUNScholar/Rebuild_DSpace|rebuild DSpace]]. | And then [[SUNScholar/Rebuild_DSpace|rebuild DSpace]]. | ||
Revision as of 21:57, 4 June 2015
BACK TO CURATION
Contents
Install Anti-Virus Software
Step 1
Install the "clamav-daemon" software by typing as follows.
sudo apt-get install clamav-daemon
sudo freshclam
Step 2
Open the clamav config file by typing as follows:
sudo nano /etc/clamav/clamd.conf
Copy and paste the following to the bottom of the file
TCPAddr 127.0.0.1 TCPSocket 3310
Step 3
Then restart the clamav daemon by typing as follows.
sudo service clamav-daemon restart
Enable Anti-Virus Task
Step 1
Edit the following file and check that the parameters match the installation of clamav above.
nano $HOME/source/dspace/config/modules/clamav.cfg
Step 2
Then edit the following file and make sure the "vscan" task is enabled using the ui.tasknames attribute:
nano $HOME/source/dspace/config/modules/curate.cfg
See example below:
# Friendly names for curation tasks to appear in admin UI
# Also acts as a filter - i.e. tasks not enumerated here can still
# be invoked on cmd line, etc - just not in UI
ui.tasknames = \
profileformats = Profile Bitstream Formats, \
requiredmetadata = Check for Required Metadata, \
checklinks = Check Links in Metadata, \
vscan = Scan for viruses
Step 3
And then rebuild DSpace.