客户端 BSD 的系统

假想控 edited this page Jun 22, 2016 · 13 revisions

客户端 无需安装agent

适用于版本:v0.3.1-2

FreeBSD 环境要满足以下条件

FreeBSD 10.2
  1. 更新

    [root@FreeBSD ~]# portsnap fetch extract  //第一次运行
    
    [root@FreeBSD ~]# portsnap fetch update  //以后都运行
    
  2. 安装bash

    [root@FreeBSD ~]# cd /usr/ports/shells/bash
    
    [root@FreeBSD /usr/ports/shells/bash]# make install clean  
    
    [root@FreeBSD /usr/ports/shells/bash]# chsh -s /usr/local/bin/bash
    
    [root@FreeBSD /usr/ports/shells/bash]# ln -sv /usr/local/bin/bash /bin/bash
    
    /bin/bash -> /usr/local/bin/bash
    
  3. 安装sudo

    [root@FreeBSD ~]# cd /usr/ports/security/sudo
    
    [root@FreeBSD /usr/ports/security/sudo]# make install clean
    
    [root@FreeBSD /usr/ports/security/sudo]# chmod 0440 /usr/local/etc/sudoers
    
    [root@FreeBSD /usr/ports/security/sudo]# ln -sv /usr/local/etc/sudoers /etc/sudoers
    
    /etc/sudoers -> /usr/local/etc/sudoers
    
  4. 安装python

    [root@FreeBSD ~]# cd /usr/ports/lang/python27
    
    [root@FreeBSD /usr/ports/lang/python27]# make install clean
    
    [root@FreeBSD /usr/ports/lang/python27]# ln -sv /usr/local/bin/python2.7 /usr/bin/python
    
    /usr/bin/python -> /usr/local/bin/python2.7
    

注:

 1. 客户端需要有python,sudo 环境

 3. 客户端如果开启了selinux,请安装 libselinux-python

如果系统环境不满足以上条件(包括其它版本系统),会导致jumpserver在推送系统用户、批量执行命令等功能失败