Difference between pages "UEFI Install Guide" and "Package:Clamav"

(Difference between pages)
(Grub method)
 
m (finish up ebuild)
 
Line 1: Line 1:
{{Note|This material has been integrated into the main [[Funtoo Linux Installation]] guide, so please look at that guide if you are installing Funtoo Linux. Editors: this page still contains some good content that we might want to move over there.}}
+
{{Ebuild
 +
|Summary=Clam Anti-Virus Scanner
 +
|CatPkg=app-antivirus/clamav
 +
|Homepage=http://www.clamav.net/
 +
}}
 +
Clamav is an open source antivirus solution.
  
This tutorial will show you how to install Funtoo on a UEFI system. UEFI, also known as the [[Wikipedia:Unified Extensible Firmware Interface|Unified Extensible Firmware Interface]], is a new firmware interface that is used on some newer computers as a replacement for the traditional PC BIOS. It has an integrated boot loader, so setting up booting is different.
+
=== Installation ===
 +
{{console|body=###i## emerge app-antivirus/clamav}}
  
This tutorial is meant to be an "overlay" over the Regular Funtoo Installation. Follow the normal installation and only follow steps in this tutorial when dealing with partitioning and configuring the boot loader (GRUB). All steps are otherwise identical to the regular installation process.
+
Virus definitions need to be installed before starting the clamd service
 +
{{console|body=###i## freshclam}}
  
== What Are We Doing? ==
+
=== Configuration ===
 +
Configuration files are located at {{c|/etc/conf.d/clamd}}, {{c|/etc/clamd.conf}}, and {{c|/etc/freshclam.conf}}
  
This guide will show you how to set up your UEFI system to load the GRUB boot loader, which will then load your Funtoo Linux kernel and initramfs. This is the "UEFI + GRUB" method as described on the [[Boot Methods]] page.
+
=== Runtime ===
 +
{{console|body=###i## rc-update add clamd default
 +
###i## rc}}
  
== First Steps ==
+
==== Testing ====
 +
To make sure things are installed correctly, test this harmless file:
 +
{{console|body=###i## wget -O- http://www.eicar.org/download/eicar.com.txt | clamscan -
 +
###i##rm eicar.com.txt}}
  
To install Funtoo Linux on a UEFI system, first you need to boot SysRescueCD in UEFI mode. To do this, enable UEFI in your BIOS, and if necessary disable legacy booting. After some fiddling, you should be able to boot SysRescueCD and get a black and white text menu instead of the traditional aqua/cyan-colored menu. The black and white menu indicates that you booted SysRescueCD in UEFI mode. Once you've accomplished this, you're ready to continue with your Funtoo Linux installation and partition your drive. See below for details.
+
==== Usage ====
 +
To scan single files:
 +
{{console|body=###i## clamscan /usr/bin/portageq}}
  
{{fancynote|If the <tt>/sys/firmware/efi</tt> directory exists, then you have successfully booted in EFI mode and will be able to configure your Funtoo system to boot in EFI mode. If the directory doesn't exist, fix this first. It is a requirement for setting up EFI booting.}}
+
To scan a directory:
 
+
{{console|body=###i## clamscan -ir /var/www/localhost/htdocs/
== Partitioning ==
+
----------- SCAN SUMMARY -----------
 
+
Known viruses: 3736482
To set up your partitions for UEFI booting, you will create a ~500MB FAT32 partition on <tt>/dev/sda1</tt>, and set it to type <tt>EF00</tt> using <tt>gdisk</tt>.
+
Engine version: 0.98.6
 
+
Scanned directories: 663
<console>
+
Scanned files: 6067
Command: ##i##n ↵
+
Infected files: 0
Partition Number: ##i##1 ↵
+
Total errors: 8
First sector: ##i##↵
+
Data scanned: 58.61 MB
Last sector: ##i##+500M ↵
+
Data read: 36.59 MB (ratio 1.60:1)
Hex Code: ##i##EF00
+
Time: 42.691 sec (0 m 42 s)
</console>
+
 
+
This partition will serve as your Funtoo <tt>/boot</tt> filesystem as well as the partition that the UEFI firmware can read to load GRUB. Then you will set up swap on <tt>/dev/sda2</tt> and your root filesystem on <tt>/dev/sda3</tt>. To create the FAT32 filesystem, type:
+
 
+
<console>
+
# ##i##mkfs.vfat -F 32 /dev/sda1
+
</console>
+
 
+
Your <tt>/etc/fstab</tt> entry for this filesystem will also differ, and will look like this:
+
 
+
<pre>
+
/dev/sda1 /boot vfat noatime 1 2
+
</pre>
+
 
+
== Kernel ==
+
 
+
=== VFAT ===
+
 
+
Make sure you add VFAT support to your kernel if you are building it manually.
+
 
+
=== EFI Framebuffer ===
+
 
+
If you have the following option enabled in your kernel, then uvesafb and efifb will not be able to detect the framebuffer:
+
 
+
{{kernelop|title=Bus options (PCI etc.)|desc=
+
    [*] Mark VGA/VBE/EFI FB as generic system framebuffer (NEW)
+
 
}}
 
}}
  
If you have that option enabled, ''you must also enable'':
+
=== External Resources ===
 
+
http://www.clamav.net/doc/install.html
{{kernelop|title=Device Drivers,Graphics support,Frame buffer Devices|desc=
+
{{EbuildFooter}}
    [*]  Simple framebuffer support
+
}}
+
 
+
This is the preferred method of using the EFI framebuffer, the efifb and uvesafb drivers will be used as a fallback if the above is not compatible.
+
== Known Issues ==
+
*With pure UEFI boot mode, with legacy mode disabled, following error expected:  
+
** video driver not supported, boot hangs, hard reboot required.
+
*Choose UEFI first, next legacy driver. It depends on motherboard vendor and efi bios version.
+
**In UEFI bios choose grub option, if your succeeded with above guide, additional menu should appear in Boot Menu, otherwise it boots into EFI shell: <code>grub:NAME of you hard drive</code>
+
* On some systems, installing the packages that are required for UEFI booting with any gcc later than a 4.x.x release may lead to a black screen after the GRUB screen. To fix this, before you begin installing any packages on your system, emerge =gcc-4.6.4-r2 and proceed with the installation as usual. Remember to switch your compiler back to the version of gcc that came with your system after you have finished installing. To do this, use <code>gcc-config 2</code>.  
+
 
+
=== Done! ===
+
 
+
Remember to follow all other steps in the regular Funtoo Install Guide. Assuming you did everything correctly, your system should now boot via UEFI! We will be adding UEFI support to boot-update soon to make this process easier.
+
 
+
[[Category:HOWTO]]
+

Revision as of 10:36, February 3, 2015

app-antivirus/clamav


Source Repository:Gentoo Portage Tree
Homepage

Summary: Clam Anti-Virus Scanner

Use Flags

clamdtop
A Top like tool which shows what clamd is currently scanning amongst other things
metadata-analysis-api
Enables collection of file property metadata using ClamAV API for analysis by ClamAV bytecode programs.

News

Drobbins

Pre-built kernels!

Funtoo stage3's are now starting to offer pre-built kernels for ease of install. read more....
12 May 2015 by Drobbins
Drobbins

Better Experiences: Ego and Vim

Info on Funtoo's new personality tool called 'ego', and user-focused updates to vim's defaults.
27 April 2015 by Drobbins
Drobbins

How We're Keeping You At the Center of the Funtoo Universe

Read about recent developments that keep you, our users, at the forefront of our focus as Funtoo moves forward.
10 April 2015 by Drobbins
View More News...

Clamav

Tip

This is a wiki page. To edit it, Create a Funtoo account. Then log in and then click here to edit this page. See our editing guidelines to becoming a wiki-editing pro.

Clamav is an open source antivirus solution.

Installation

# emerge app-antivirus/clamav


Virus definitions need to be installed before starting the clamd service

# freshclam


Configuration

Configuration files are located at /etc/conf.d/clamd, /etc/clamd.conf, and /etc/freshclam.conf

Runtime

# rc-update add clamd default
# rc


Testing

To make sure things are installed correctly, test this harmless file:

# wget -O- http://www.eicar.org/download/eicar.com.txt


Usage

To scan single files:

# clamscan /usr/bin/portageq


To scan a directory:

# clamscan -ir /var/www/localhost/htdocs/
----------- SCAN SUMMARY -----------
Known viruses: 3736482
Engine version: 0.98.6
Scanned directories: 663
Scanned files: 6067
Infected files: 0
Total errors: 8
Data scanned: 58.61 MB
Data read: 36.59 MB (ratio 1.60:1)
Time: 42.691 sec (0 m 42 s)


External Resources

http://www.clamav.net/doc/install.html