bayu – mandriva – other Linux

11 Januari 2009

Mandriva Local Antivirus

Diarsipkan di bawah: Lain² — Tag:, , , , , — bayuart @ 12:33 pm

salut deh buat ansav, antivirus lokal yang memporting hasil karyanya ke keluarga linux. ok langsung aja proses. sebenere ini mo pasang ansav ya gara-gara server samba ada virus lokal nya. clamav sebenere juga bisa, tapi buat remove tu virus lokal harus rada ekstra dikit usahane. berhubung ni ansav lumayan ok, jadi deh pake ansav antivirus ini.

download antivirus nya di :

http://www.ansav.com/download pilih yang sesuai mesin linux nya, disini pake versi 32bit jadi nya :

http://ansav.com/download/get.php?f=ansav-linux-i386.deb

berhubung disini mandriva yang paketannya based on rpm, so tu format yang deb harus di konversi ke rpm dulu biar gampang di install ke mandriva.

install alien

[root@emachines box]# urpmi alien
To satisfy dependencies, the following packages are going to be installed:
Package                        Version      Release       Arch
(medium "speedy_contrib")
alien                          8.64         3mdv2009.0    noarch
dpkg                           1.13.11      4mdv2009.0    i586
4.5MB of additional disk space will be used.
985KB of packages will be retrieved.
Proceed with the installation of the 2 packages? (Y/n)

http://opensource.telkomspeedy.com/repo/mandriva/2009.0/i586/media/contrib/release/alien-8.64-3mdv2009.0.noarch.rpm

http://opensource.telkomspeedy.com/repo/mandriva/2009.0/i586/media/contrib/release/dpkg-1.13.11-4mdv2009.0.i586.rpm

installing alien-8.64-3mdv2009.0.noarch.rpm dpkg-1.13.11-4mdv2009.0.i586.rpm from /var/cache/urpmi/rpms
Preparing…                     #############################################
1/2: dpkg                  #############################################
2/2: alien                 #############################################

kalo udah selesai, proses konvert deb to rpm

[root@emachines ansav]# alien -r ansav-linux-i386.deb
ansav-2.0.11-4.i386.rpm generated

selesai, dan liat hasilnya
[root@emachines ansav]# ls
ansav-2.0.11-4.i386.rpm  ansav-linux-i386.deb

setelah itu instal seperti biasa

[root@emachines ansav]# urpmi ansav-2.0.11-4.i386.rpm

installing ansav-2.0.11-4.i386.rpm
Preparing…                     #############################################
1/1: ansav                 #############################################

untuk opsi alien seperti ini :

Usage: alien [options] file [...]
file [...]                Package file or files to convert.
-d, --to-deb              Generate a Debian deb package (default).
Enables these options:
--patch=<patch>      Specify patch file to use instead of automatically
looking for patch in /var/lib/alien.
--nopatch        Do not use patches.
--anypatch           Use even old version os patches.
-s, --single         Like --generate, but do not create .orig
directory.
--fixperms           Munge/fix permissions and owners.
--test               Test generated packages with lintian.
-r, --to-rpm              Generate a Red Hat rpm package.
--to-slp              Generate a Stampede slp package.
-l, --to-lsb              Generate a LSB package.
-t, --to-tgz              Generate a Slackware tgz package.
Enables these options:
--description=<desc> Specify package description.
--version=<version>  Specify package version.
-p, --to-pkg              Generate a Solaris pkg package.
-i, --install             Install generated package.
-g, --generate            Generate build tree, but do not build package.
-c, --scripts             Include scripts in package.
-v, --verbose             Display each command alien runs.
--veryverbose         Be verbose, and also display output of run commands.
-k, --keep-version        Do not change version of generated package.
--bump=number         Increment package version by this number.
-h, --help                Display this help message.
-V, --version            Display alien's version number.

nah untuk ansav, akan terinstal di /usr/bin/ansav dan file databasenya di /etc/ansav

untuk penggunaan ansav antivirus mudah kok, liat :

USAGE:
ansav [options] [path]

OPTIONS:
-v   verbose mode.
-w   show malware list from database
show also list from external (dbs.anv) if exists.
-f   enable auto fix for every detected threat.
-d   enable auto deletion for every detected threat.
if -f and -d specified auto deletion will be used
for unfixable threat. This rule not affected for suspected object
or you can force delete use `–force-kill` instead.
-r   scan recursively.
-p   format output to pipeline friendly.

EXAMPLE:

ansav -vf /mnt/f

scan and fix every detected threat in directory /mnt/f.

ansav -vfd /mnt/f

scan and fix every detected threat in directory /mnt/f
and delete threat if fix fail.

nah gampang kan ? abis tu tinggal dikombinasikan ama samba trus crond. dan jangan lupa update database virus nya secara berkala.

& Komentar »

  1. Sya sudah download file ansav .
    Keluar seperti ini

    [root@localhost Desktop]# alien -r ansav-linux-i386.deb
    Package build failed. Here’s the log of the command (cd ansav-2.0.11; rpmbuild -bb –target i386 ansav-2.0.11-4.spec):
    sh: rpmbuild: command not found

    Bagaimana solusinya?
    terimakasih

    Komentar oleh doddy — 29 April 2009 @ 7:03 am

  2. sekarang udah bisa..

    [root@localhost Desktop]# alien -r ansav-linux-i386.deb
    ansav-2.0.11-4.i386.rpm generated

    saya intstall rpm-build

    makasih kang..

    Komentar oleh doddy — 29 April 2009 @ 7:28 am

  3. [root@localhost New Folder]# alien -r ansav-linux-i386.deb ansav-2.0.11-4.i386.rpm
    Package build failed. Here’s the log of the command (cd ansav-2.0.11; rpmbuild -bb –target i386 ansav-2.0.11-4.spec):
    error: line 1: Tag takes single token only: Buildroot: /home/bintoro/New Folder/ansav-2.0.11
    Building target platforms: i386
    Building for target i386

    Komentar oleh bintoro — 30 April 2009 @ 9:15 am


RSS umpan untuk komentar-komentar dalam tulisan ini. URI Lacak Balik

Tinggalkan komentar

Blog pada WordPress.com.