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"))
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'))
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")