Learn how to install an antivirus in Linux Ubuntu Server. Learn how to scan and learn how to remove the virus found.
It is not common for a Linux (Ubuntu) to have a virus especially if it is a server because there are not much of a virus in the wild that is made for Linux. I have been working as an I.T. since 2004 and I have not come into an article wherein a problems regarding virus in Linux is discussed. So it is a little bit of a not in urgency to install an antivirus in Linux. But not all situations are the same so I have wrote this article on how you can install an antivirus then eventually perform a scan and then remove the virus.
On this article we are going to install an antivirus into a Linux Ubuntu Server 12.04 version. But I think it will also be applicable in other version of Ubuntu, be it a desktop version or a server version since they are almost identical.
Bear in mind that Ubuntu is based in a debian distribution of Linux so it is easy or safe to say that this article will also be applicable in some version of Debian linux distributions. I am gonna be discussing here on how to install an open source antivirus called ClamAV.
Basically if we are installing an antivirus into an Ubuntu Server we are going to do it in command line or terminal because server editions of Ubuntu or Linuxes mostsly don't have a GUI (Graphical User Interface) that we always found on a Windows type of computer server. So here we go...
Step 1 is to type this in terminal
sudo apt-get install clamav
Step 2, after installation we have to update first the antivirus so that we can make sure that it is updated to the latest available virus definitions, type this again in terminal
sudo means "super doer", always append sudo at the beggining of the command you are issuing in the terminal to make sure that the command or syntax will work. It will always ask you for a password though.
After updating we now proceed to the next step which is scanning the Ubuntu Server.
Step 3, to scan a specific location or folder in your Ubuntu Server type this in terminal
sudo clamscan -r -i --remove /srv/samba/share
-r means scan all the files in /srv/share/samba, -i means show only infected files while scanning, --remove means removing the infected files. Be careful in using the -remove syntax if you are not sure on what you are doing because it might deleted important infected files, /srv/samba/share means the directory wherein my files is shared in a samba server.
--remove works for me because my Ubuntu Server is just functioning only as a Samba File Server. ClamAV did remove all the viruses in the samba share.
After it is done you can now check the directory if there is still virus left in the samba shared folders.
What are electronic components and how do they differ from other components? This article explains the difference in detail..
In this write up we would learn to use a conditional statement like if statement, and if-else statement. Further we would learn about common comparison operators and the ternary operator.
Hi guys! Are you being disturbed by someone ( may be stranger or may be your closed friend, you do not want to chat with him/her, but do not want to ignore also ) while you are chatting with your special one? Here I will show the way to remain Offline for specific friend(s) in Facebook chat..