0.基础包

  确保已安装

yum install mpfr cpp ppl cloog-ppl gcc kernel-devel pcre-devel libpcap-devel yum-plugin-priorities yum-conf libyaml libyaml-devel libnet flex bison gcc-c++

第三步很坑的一点,官方文档也没写,要提前安装file-devel

yum install file-devel

ubuntu需要magic-devel

1.安装CUDA

  最新版CUDA toolkit已包含cuda驱动。在官网下载cuda_6.5.14_linux_64.run

  安装gcc与devel

yum install gcc kernel-devel
reboot

  关掉禁用Nouveau驱动以管理员身份登录系统,然后修改 /etc/modprobe.d/blacklist.conf文件,在文件后面加上blacklist nouveau,保存退出。
  写入blacklist后,要重新建立initramfs image文件。

mv  /boot/initramfs-$(uname -r).img  /boot/initramfs-$(uname-r).img.bak
dracut -v /boot/initramfs-$(uname -r).img $(uname -r)

  设置系统以命令行界面启动

vi /etc/inittab

  修改

id::initdefault:

  (或者开机进入命令行界面输入 init3)

  重启动电脑进入命令行模式,找到下载的nvidia驱动的文件路径,然后进行安装

./cuda_6..14_linux_64.run

  如果出现no screens found错误点击

  在 /etc/rc.local文件中添加下面语句以便系统启动时能够启动NVIDIA CUDA

/sbin/modprobe -r nouveau && /sbin/modprobe nvidia

  编译例子时会报错缺少lglut,即libglut,yum貌似对应freeglut

yum install *glut*

2.安装PF_RING

参考CentOS安装PF_RING

tar zxvf PF_RING-6.0.1.tar.gz
cd PF_RING-6.0.1/kernel
make && make install
cd ../userland/lib
./configure --prefix=/usr/local/pfring && make && make install
cd ../libpcap-1.1.-ring
./configure --prefix=/usr/local/pfring && make && make install
cd ../tcpdump-4.1.
./configure --prefix=/usr/local/pfring && make && make install

加载pfring内核模块,添加到 /etc/rc.local中

/sbin/modprobe pf_ring

3.安装Suricata

tar zxvf suricata-2.0..tar.gz
cd suricata-2.0.
./configure --enable-gccprotect --enable-profiling --enable-cuda --with-cuda-includes=/usr/local/cuda/include --with-cuda-libraries=/usr/local/cuda/lib64 --enable-pfring --with-libpfring-libraries=/usr/local/pfring/lib --with-libpfring-includes=/usr/local/pfring/include --with-libpcap-libraries=/usr/local/pfring/lib --with-libpcap-includes=/usr/local/pfring/include/

指定libjansson位置

显卡使用了最低端的Geforce G210

此处make时发生错误:nvcc fatal   : Value 'sm_10' is not defined for option 'gpu-architecture',由于不懂原理也查不到资料,忙活了三天才解决:

  使用Fileseek查找suricata-2.0.3中包含sm_10的源文件并删除

make -j
make install

搞定!

4.配置

CentOS 6.5 安装Suricata(with PF_RING & CUDA)的更多相关文章

  1. [转]centos 6.5安装caffe

    centos 6.5安装caffe 原文地址:http://blog.csdn.net/wqzghost/article/details/47447377   总结:在安装protobuf,hdf5等 ...

  2. CentOS7.3安装NVIDIA-1080ti驱动、cuda、cudnn、TensorFlow

    本文为作者原创,转载请注明出处(http://www.cnblogs.com/mar-q/)by 负赑屃 Ubuntu非要换centOS...好吧... 看了很多是通过ELRepo源安装驱动,不过我没 ...

  3. MonoDevelop 4.2.2/Mono 3.4.0 in CentOS 6.5 安装笔记

    MonoDevelop 4.2.2/Mono 3.4.0 in CentOS 6.5 安装笔记 说明 以root账户登录Linux操作系统,注意:本文中的所有命令行前面的 #> 表示命令行提示符 ...

  4. Centos、Ubuntu 安装 Mono、Jexus

    Mono是.NET的跨平台实现 在众多关于语言的争论中,.NET一直被以不能跨平台而诟病,Mono改变了这一现状. 有人当心Mono会涉及版权啥的问题.高深的偶不懂,不过我觉得Unity3D都能用,为 ...

  5. Centos 7.0 安装Mono 3.4 和 Jexus 5.6

    2013-07-26 写过一篇<CentOS 6.3下 安装 Mono 3.2 和Jexus 5.4>,CentOS 7在CentOS 6的基础上有很大的调整,本文是这篇文章的更新,主要介 ...

  6. 环境搭建系列-系统安装之centos 6.5安装与配置

    按照国际惯例,系列目录先奉上: 系列一:系统安装之centos 6.5安装与配置 系列二:准备工作之Java环境安装 系列三:数据为先之MySQL读写集群搭建 系列四:谈分布式之RabbitMQ集群搭 ...

  7. 在CentOS 7上安装.NET Core R2跑Hello World

    前言 在上个月.NET Core出了最新版本预览版,只是在Window系统上试验了一下.原本想等发布正式版的时候在linux系统上试试,可能还需要一段时间,刚好有空可以折腾一下. 由于之前安装的Ubu ...

  8. CentOS 6/7安装ffmpeg

    环境 CentOS 6/7 安装 导入GPG key rpm --import http://packages.atrpms.net/RPM-GPG-KEY.atrpms 安装ATRPMS Repo ...

  9. CentOS 7.0安装配置Vsftp服务器

    一.配置防火墙,开启FTP服务器需要的端口 CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙. 1.关闭firewall: systemctl stop fi ...

随机推荐

  1. windows7所有版本

    windows7所有版本迅雷地址下载集合(含32位和64位) Windows7 SP1旗舰版 32位官方原版下载: ed2k://|file|/cn_windows_7_ultimate_with_s ...

  2. iOS特殊字符的转义字符

    所有的ASCII码都可以用“\”加数字(一般是8进制数字)来表示.而C中定义了一些字母前加"\"来表示常见的那些不能显示的ASCII字符,如\0,\t,\n等,就称为转义字符,因为 ...

  3. php给数组key:value中的key加引号

    public function Ext_json_decode($str, $mode=false){ if(preg_match('/\w:/', $str)){ $str = preg_repla ...

  4. PE结构之重定位表

    什么是重定位: 重定位就是你本来这个程序理论上要占据这个地址,但是由于某种原因,这个地址现在不能让你占用,你必须转移到别的地址,这就需要基址重定位.你可能会问,不是说过每个进程都有自己独立的虚拟地址空 ...

  5. Chapter 2 Open Book——15

    The rest of the week was uneventful. I got used to the routine of my classes. 这周剩下的时间都是平淡无事的.我就是正常的上 ...

  6. 将GridView导入到Excel

    前几天做项目需要用到将GridView中的数据导入到Excel,原以为很简单,上网搜了一下资料,果然方法不少,于是就采用了一个: private void GridViewToExcel() { Re ...

  7. git远程分支--remote

    查看所有远程引用: $ git ls-remote From ssh://someone@example/testgit ebf3ef7551603cd57a699e80db0bfab36d1aa7b ...

  8. 取出parentid为null的顶级栏目 等号改为 is null 避免null当做字符串,

    mysql中查询字段为null或者不为null 在mysql中,查询某字段为空时,不可用等号 = null, 而是 is null,不为空则是 is not null    select * from ...

  9. Django:之Sitemap站点地图、通用视图和上下文渲染器

    Django中自带了sitemap框架,用来生成xml文件 Django sitemap演示: sitemap很重要,可以用来通知搜索引擎页面的地址,页面的重要性,帮助站点得到比较好的收录. 开启si ...

  10. 使用Visual C++编程

    1.Visual C++的主要组件 Visual C++支持遵循C++11语言标准的C++语句,C++11语言标准是在ISO/IEC 14882:2011文档中定义的.Visual C++还没有实现该 ...