Tampilkan postingan dengan label 04. Tampilkan semua postingan
Tampilkan postingan dengan label 04. Tampilkan semua postingan

HOWTO Linux Malware Detect on Ubuntu 12 04 LTS 64 bit

Selasa, 04 Maret 2014

What is Linux Malware Detect?



Linux Malware Detect (LMD) is a malware scanner for Linux released under the GNU GPLv2 license, that is designed around the threats faced in shared hosted environments. It uses threat data from network edge intrusion detection systems to extract malware that is actively being used in attacks and generates signatures for detection. In addition, threat data is also derived from user submissions with the LMD checkout feature and from malware community resources. The signatures that LMD uses are MD5 file hashes and HEX pattern matches, they are also easily exported to any number of detection tools such as ClamAV.



The driving force behind LMD is that there is currently limited availability of open source/restriction free tools for Linux systems that focus on malware detection and more important that get it right. Many of the AV products that perform malware detection on Linux have a very poor track record of detecting threats, especially those targeted at shared hosted environments.



The threat landscape in shared hosted environments is unique from that of the standard AV products detection suite in that they are detecting primarily OS level trojans, rootkits and traditional file-infecting viruses but missing the ever increasing variety of malware on the user account level which serves as an attack platform.



Shared Hosting Environments Only?



Although LMD is designed for Red Hat based system on shared hosting environments with Apache, it can run on Debian or Ubuntu server and desktop editions without any problem. Running Hiawatha is no problem too.



Installation



Step 1 :



sudo apt-get install libc6-i386



wget http://www.rfxn.com/downloads/maldetect-current.tar.gz

tar -xvzf maldetect-current.tar.gz

cd maldetect-*

sudo ./install.sh




Step 2 :



sudo maldet -d -u



Step 3 :



sudo nano /usr/local/maldetect/conf.maldet



change the value of the following variables :



email_alert=1

email_addr="samiux@samiux.com"


* change to your email address



quar_hits=1

maxfilesize="10240k"

string_length_scan="1"



clamav_scan=0


* if ClamAV is not installed.



clamav_scan=1

* if ClamAV is installed.



Step 4 :



sudo nano /etc/rc.local



Append one of the following lines in front of "exit 0" :



/usr/local/maldetect/maldet -m /tmp,/run/shm,/var

* if you are running server edition



/usr/local/maldetect/maldet -m /tmp,/run/shm,/home

* if you are running desktop edition



Step 5 :



sudo maldet -m /tmp,/run/shm,/var

* if you are running server edition



sudo maldet -m /tmp,/run/shm,/home

* if you are running desktop edition



Step 6 :



Make sure the LMD is running properly :



sudo ps aux | grep maldet

sudo ps aux | grep inotify




How it works?



The signature will be updated on daily basis. LMD is monitoring the directories that you entered at Step 4 or 5. Once the malware is detected, you will be informed by email if you set it at Step 3. The detected malware will be quarantine and deleted too.



If you are running Apache, you may consider to install mod_security and mod_evasive in order to enhance the security of the web server. If you installed them, you need to set "public_scan=1".



You may also consider to install ClamAV when it is necessary.



Remarks



Please note that any signature based scanner or defense can be bypassed.



Thats all. See you!



Read More..

HOWTO nVidia CUDA Toolkit 4 0 on Ubuntu 11 04 Desktop

Sabtu, 01 Maret 2014

The CUDA Toolkit 4.0 is released on May 2011. If you have nVidia display card that have several CUDAs on it, you will interested in this tutorial. This time, I would like to show you how to install CUDA Toolkit 4.0 on Ubuntu 11.04 Desktop.



You will experience a more faster desktop after the installation of CUDA Toolkit 4.0. Meanwhile, if you installed SMPlayer, you can playback 1080p videos with the help of vdpau.



Step 1 :



Add the CUDA 4.0 PPA.

sudo add-apt-repository ppa:aaron-haviland/cuda-4.0



Thanks for the developer of CUDA 4.0 PPA - Aaron Haviland of his contribution to make CUDA Toolkit to be installed easily.



Step 2 :



sudo apt-get update

sudo apt-get upgrade




64-bit :

sudo apt-get install nvidia-cuda-gdb nvidia-cuda-toolkit nvidia-compute-profiler libnpp4 nvidia-cuda-doc libcudart4 libcublas4 libcufft4 libcusparse4 libcurand4 nvidia-current nvidia-opencl-dev nvidia-current-dev nvidia-cuda-dev opencl-headers



32-bit :

sudo apt-get install nvidia-cuda-gdb nvidia-cuda-toolkit nvidia-compute-profiler lib32npp4 nvidia-cuda-doc lib32cudart4 lib32cublas4 lib32cufft4 lib32cusparse4 lib32curand4 nvidia-current nvidia-opencl-dev nvidia-current-dev nvidia-cuda-dev opencl-headers



Step 2a (Optional) :



If you do not have any nVidia driver installed before or you encounter any problem of booting up your system, you need to do the following command. Otherwise, this step is not required at all.



sudo nvidia-xconfig



**This step may not be required.



Step 3 :



Reboot your system.



Step 4 (Optional) :



To install SMPlayer.



sudo apt-get install smplayer smplayer-translations smplayer-themes



Then set it to use "vdpau" at "Output Driver" at "Preference".



Step 5 (Optional) :



Once installed the CUDA Toolkit and nVidia drivers, you can download the sample codes for testing.



sudo apt-get install freeglut3-dev libxi-dev libXmu-dev



wget http://developer.download.nvidia.com/compute/cuda/4_0/sdk/gpucomputingsdk_4.0.17_linux.run



sudo chmod +x gpucomputingsdk_4.0.17_linux.run

./gpucomputingsdk_4.0.17_linux.run




Accept the default settings.



cd NVIDIA_GPU_computing_SDK/C

make




** Please ignore the warning messages for unsupported gcc version. That is no harm at all.



Run the sample codes.



cd NVIDIA_GPU_computing_SDK/C/bin/linux/release

./deviceQuery

./nbody




Thats all! See you.
Read More..

Ubuntu 10 04 Ambiance or Radiance

Rabu, 05 Februari 2014

Released yesterday, Ubuntu 10.04 comes with a stylish new look. Brown is no more!

The default theme called Ambiance is a stylish black theme whilst another optional theme available to choose is the new Radiance theme.

Ambiance, Ubuntus new stylish black theme!



Radiance, Ubuntus new stylish white theme!



Click on the pictures for a bigger view.

If you only hated Ubuntu because of its brownish look, what excuse do you have now?
Read More..