コード例 #1
0
ファイル: fabfile-arch.py プロジェクト: roblabla/cozy-setup
def install_couchdb():
    """
    Install CouchDB 1.3.0 or 1.5.0
    """
    arch.update_index()
    arch.upgrade()
    require.arch.package("couchdb")
    systemd.enable("couchdb")
    print(green("CouchDB successfully installed"))
コード例 #2
0
def install():
    """
    Install virtualbox and use dkms virtual host modules
    """

    pkgs = [
        'virtualbox',
        'virtualbox-host-dkms',
        'linux-headers',
    ]

    # Install packages
    require.arch.packages(pkgs)

    # active startup virtualbox module compilation
    systemd.start('dkms')
    systemd.enable('dkms')

    # Synchronize user
    dotfiles.sync('fabrecipes/virtualbox/user/', '$HOME/')
    dotfiles.sync('fabrecipes/virtualbox/sys/', '/', use_sudo='true')

    print(red('Please reboot your system for use new kernel'))
コード例 #3
0
def install():
    """
    Install virtualbox and use dkms virtual host modules
    """

    pkgs = [
        'virtualbox',
        'virtualbox-host-dkms',
        'linux-headers',
    ]

    # Install packages
    require.arch.packages(pkgs)

    # active startup virtualbox module compilation
    systemd.start('dkms')
    systemd.enable('dkms')

    # Synchronize user
    dotfiles.sync('fabrecipes/virtualbox/user/', '$HOME/')
    dotfiles.sync('fabrecipes/virtualbox/sys/', '/', use_sudo='true')

    print(red('Please reboot your system for use new kernel'))
コード例 #4
0
def configure_base():
    # Configure python environement
    python_cmd = 'python2.7'
    require.python.pip(python_cmd=python_cmd)
    require.python.package('virtualenv', python_cmd=python_cmd, use_sudo=True)
    require.python.package('virtualenvwrapper', python_cmd=python_cmd, use_sudo=True)

    # Active service
    # Dont forget edit the /etc/udev/10-network.rules for mac address
    systemd.disable('dhcpcd')
    systemd.enable('sshd')
    systemd.enable('netctl-ifplugd@net0')
    systemd.enable('netctl-auto@wifi0')

    # Copy udev netework interface
    fileexists = is_file("/etc/udev/rules.d/10-network.rules")
    if not fileexists:
        run_as_root("mv /etc/udev/rules.d/10-network.rules.autoinstall /etc/udev/rules.d/10-network.rules")
コード例 #5
0
ファイル: __init__.py プロジェクト: badele/fabrecipes
def configure_base():
    # Configure python environement
    python_cmd = 'python2.7'
    require.python.pip(python_cmd=python_cmd)
    require.python.package('virtualenv', python_cmd=python_cmd, use_sudo=True)
    require.python.package('virtualenvwrapper', python_cmd=python_cmd, use_sudo=True)

    # Active service
    # Dont forget edit the /etc/udev/10-network.rules for mac address
    systemd.disable('dhcpcd')
    systemd.enable('sshd')
    systemd.enable('netctl-ifplugd@net0')
    systemd.enable('netctl-auto@wifi0')

    # Copy udev netework interface
    fileexists = is_file("/etc/udev/rules.d/10-network.rules")
    if not fileexists:
        run_as_root("mv /etc/udev/rules.d/10-network.rules.autoinstall /etc/udev/rules.d/10-network.rules")