عدد الضغطات : 2,031

 


العودة   ملتقى قبيلة حرب الرسمي > ๑۩۩ الملتقيات العــــامة ۩۩๑ > الـــمـــلـــتـــقـــى الــــــــــعــــــــام > ملتقى برامج الكمبيوتر

ملتقى برامج الكمبيوتر برامج حلول ومشاكل دروس تعليمية في مجال الكمبيوتر والإنترنت.

إضافة رد
 
أدوات الموضوع انواع عرض الموضوع
قديم 26-10-09, 10:06 PM   #1
عضو ماسي

 










 

ثامر الحربي غير متواجد حالياً

ثامر الحربي is a jewel in the roughثامر الحربي is a jewel in the roughثامر الحربي is a jewel in the roughثامر الحربي is a jewel in the roughثامر الحربي is a jewel in the roughثامر الحربي is a jewel in the roughثامر الحربي is a jewel in the roughثامر الحربي is a jewel in the roughثامر الحربي is a jewel in the roughثامر الحربي is a jewel in the roughثامر الحربي is a jewel in the rough

افتراضي تركيب Clam AntiVirus مضاد الفيروسات !

السلام عليكم ورحمة الله وبركاته


برنامج clamav هو مضاد فيروسات يستخدم علي Linux



لتركيب البرنامج علي السيرفر
اتبع الأوامر التالية
كود:
wget -c http://kent.dl.sourceforge.net/sourceforge/clamav/clamav-0.93.3.tar.gz

كود:
tar −xvzf clamav-0.93.3.tar.gz
كود:
cd clamav−0.93 #groupadd clamav
useradd clamav −g clamav −c "Clam AntiVirus" −s /nonexistent . /configure make make install cd ..
نقوم بالتعديل علي /etc/crontab لعمل تحديث كل 12 ساعه للـ Clam عن طريق الامر التالي :



كود:
pico /etc/crontab
اضف في نهايته هذا السطر :




كود:
0 12 * * * root /usr/local/bin/clamscan
كود:

لتنفيذ التحديث استخدم الاوامر التاليه :



كود:
touch /var/log/clam-update.log
كود:
chmod 600 /var/log/clamupdate.log
كود:
chown clamav /var/log/clamupdate.log
نقوم بعمل تحديث للـ freshclam



كود:
freshclam -d -c 6 -l /var/log/clam-update.log
لاعداد البرنامج اتبع الخطوات التاليه :



كود:
pico /etc/clamd.conf
قم بتنفيذ المتغيرات التاليه :




كود:
Uncomment "LogSyslog"
كود:
Uncomment "StreamSaveToDisk" Uncomment "MaxThreads" and change value to "30" Uncomment "User" and change value to "qscand" Uncomment "Foreground" Uncomment "ScanMail"

نفذ امر انشاء الملف التالي :



كود:
mkdir -p /usr/local/clamav/bin
ونقوم بعمل سكربت صغير لتشغيل و اغلاق البرنامج :



كود:
pico /usr/local/clamav/bin/clamdctl



كود:
#!/bin/sh
كود:
 

# For Red Hat chkconfig # chkconfig: - 80 30 # description: the ClamAV clamd daemon
PATH=/usr/local/clamav/bin:/bin:/usr/bin:/usr/local/bin:/usr/local/sbin export PATH
case "$1" in start) echo "Starting clamd" if svok /service/clamd ; then svc -u /service/clamd else echo clamd supervise not running fi if [ -d /var/lock/subsys ]; then touch /var/lock/subsys/clamd fi ;; stop) echo "Stopping clamd..." echo " clamd" svc -d /service/clamd if [ -f /var/lock/subsys/clamd ]; then rm /var/lock/subsys/clamd fi ;; stat) svstat /service/clamd svstat /service/clamd/log ;; restart) echo "Restarting clamd:" echo "* Stopping clamd." svc -d /service/clamd echo "* Sending clamd SIGTERM and restarting." svc -t /service/clamd echo "* Restarting clamd." svc -u /service/clamd ;; hup) echo "Sending HUP signal to clamd." svc -h /service/clamd ;; help) cat <<HELP stop -- stops clamd service (smtp connections refused, nothing goes out) start -- starts clamd service (smtp connection accepted, mail can go out) stat -- displays status of clamd service restart -- stops and restarts the clamd service hup -- same as reload HELP ;; *) echo "Usage: $0 {start|stop|stat|restart|hup|help}" exit 1 ;; esac
exit 0

نقوم بأضافه التصريحات التاليه :



كود:
chmod 755 /usr/local/clamav/bin/clamdctl


كود:
chown clamav /usr/local/clamav/bin/clamdctl


كود:
ln -s /usr/local/clamav/bin/clamdctl /usr/local/bin
انشأ المجلد التالي :



كود:
mkdir -p /usr/local/clamav/supervise/clamd/log
حرر الملف :



كود:
pico /usr/local/clamav/supervise/clamd/run
قم بأضافه التالي في الملف :

كود:
#!/bin/sh
كود:


#
# -------------------------------------------------- # run # # Purpose - Start the clamd daemon/service. # # Author - Jesse D. Guardiani # Created - 09/10/03 # Modified - 09/25/03 # -------------------------------------------------- # This script is designed to be run under DJB's # daemontools package. # # ChangeLog # --------- # # 09/25/03 - JDG # -------------- # - Changed clamd user to qscand in compliance with # the change to qmail-scanner-1.20rc3 # # 09/10/03 - JDG # -------------- # - Created # -------------------------------------------------- # Copyright (C) 2003 WingNET Internet Services # Contact: Jesse D. Guardiani (jesse at wingnet dot net) # --------------------------------------------------
lockfile="/tmp/clamd" # Location of clamd lock file path_to_clamd="/usr/local/sbin/clamd" # Location of the clamd binary BAD_EXIT_CODE=1 # The exit code we use to announce that something bad has happened
# The following pipeline is designed to return the pid of each # clamd process currently running. get_clam_pids_pipeline=`ps -ax | grep -E "${path_to_clamd}\$" | grep -v grep | awk '{print $1}'`
# -------------------------------------------------- # Generic helper functions # --------------------------------------------------
# Basic return code error message function die_rcode() { EXIT_CODE=$1 ERROR_MSG=$2
if [ $EXIT_CODE -ne '0' ]; then echo "$ERROR_MSG" 1>&2 echo "Exiting!" 1>&2 exit "$BAD_EXIT_CODE" fi }
# -------------------------------------------------- # Main # --------------------------------------------------
ps_clamd="" ps_clamd="$get_clam_pids_pipeline"
if [ -n "$ps_clamd" ]; then pid_count="0" for pid in $ps_clamd do pid_count=`expr $pid_count + 1` done
die_rcode $BAD_EXIT_CODE "Error: $pid_count clamd process(es) already running!"
fi
if [ -e "$lockfile" ]; then rm "$lockfile" exit_code="$?" die_rcode $exit_code "Error: 'rm $lockfile' call failed." fi
exec /usr/local/bin/setuidgid qscand $path_to_clamd
# -- # END /usr/local/clamav/supervise/clamd/run file. # --
Create the /usr/local/clamav/supervise/clamd/log/run file:
#vi /usr/local/clamav/supervise/clamd/log/run
#!/bin/sh exec /usr/local/bin/setuidgid qscand /usr/local/bin/multilog t /var/log/clamd

قم بعمل التصريحات التاليه :



كود:
chmod 755 /usr/local/clamav/supervise/clamd/run


كود:
chmod 755 /usr/local/clamav/supervise/clamd/log/run
نقوم بعمل مجلد الـ log



كود:
mkdir -p /var/log/clamd


كود:
chown qscand /var/log/clamd
نقوم بأضافه supervise فى service



كود:
ln -s /usr/local/clamav/supervise/clamd /service
لايقاف البرنامج عن طريق الامر التالي :



كود:
clamdctl stop
لتشغيل البرنامج عن طريق الامر التالي :



كود:
clamdctl start
اذا اصبت فمن الله و ان اخطأت فمن نفسي و من الشيطان ...






التوقيع :
    رد مع اقتباس
قديم 10-11-09, 05:53 PM   #2
مؤسس ملتقى قبيلة حرب الرسمي
 
الصورة الرمزية ابوفواز النويمي

 










 

ابوفواز النويمي غير متواجد حالياً

ابوفواز النويمي has a reputation beyond reputeابوفواز النويمي has a reputation beyond reputeابوفواز النويمي has a reputation beyond reputeابوفواز النويمي has a reputation beyond reputeابوفواز النويمي has a reputation beyond reputeابوفواز النويمي has a reputation beyond reputeابوفواز النويمي has a reputation beyond reputeابوفواز النويمي has a reputation beyond reputeابوفواز النويمي has a reputation beyond reputeابوفواز النويمي has a reputation beyond reputeابوفواز النويمي has a reputation beyond repute

افتراضي

جزاك الله خير على الموضوع
وبارك الله فيك




التوقيع :
    رد مع اقتباس
قديم 11-11-10, 08:10 PM   #3
عضو ماسي

 










 

ثامر الحربي غير متواجد حالياً

ثامر الحربي is a jewel in the roughثامر الحربي is a jewel in the roughثامر الحربي is a jewel in the roughثامر الحربي is a jewel in the roughثامر الحربي is a jewel in the roughثامر الحربي is a jewel in the roughثامر الحربي is a jewel in the roughثامر الحربي is a jewel in the roughثامر الحربي is a jewel in the roughثامر الحربي is a jewel in the roughثامر الحربي is a jewel in the rough

افتراضي

مشكور يابن العم




التوقيع :
    رد مع اقتباس
قديم 20-11-10, 11:27 PM   #4
إداري سابق
 
الصورة الرمزية محمدالخضراني

 











 

محمدالخضراني غير متواجد حالياً

محمدالخضراني has a reputation beyond reputeمحمدالخضراني has a reputation beyond reputeمحمدالخضراني has a reputation beyond reputeمحمدالخضراني has a reputation beyond reputeمحمدالخضراني has a reputation beyond reputeمحمدالخضراني has a reputation beyond reputeمحمدالخضراني has a reputation beyond reputeمحمدالخضراني has a reputation beyond reputeمحمدالخضراني has a reputation beyond reputeمحمدالخضراني has a reputation beyond reputeمحمدالخضراني has a reputation beyond repute

افتراضي

الاخ ثامر الحربي
شكراً لك ويعافيك ربي
بيض الله وجهك




التوقيع :
    رد مع اقتباس
إضافة رد

أدوات الموضوع
انواع عرض الموضوع

تعليمات المشاركة
لا تستطيع إضافة مواضيع جديدة
لا تستطيع الرد على المواضيع
لا تستطيع إرفاق ملفات
لا تستطيع تعديل مشاركاتك

BB code is متاحة
كود [IMG] متاحة
كود HTML معطلة

الانتقال السريع

IP




Powered by vBulletin® Copyright ©2000 - 2026, Jelsoft Enterprises Ltd. Designed & TranZ By Almuhajir
Ads Management Version 3.0.1 by Saeed Al-Atwi
ترنكات لخدمات الويب