def execute():
    require('nouveau')
    require('aptsrc')
    if (nouveau.HAS_INTEL_CARD and nouveau.HAS_NVIDIA_CARD):
        return install_bumblebee()
    logging.info('Skip install Bumblebee.')
    return True
Beispiel #2
0
def execute():
    require('aptsrc')

    do('apt-get install -y vim ctags')
    if (last_status != 0):
        logging.error('Cannot install vim and ctags')
        return False
    logging.info("vim has been installed")
    
    curdir = os.getcwd()
    vimdir = curdir+"/data/vim_dot/"
    dotvimdir = vimdir+".vim"
    vimrcdir = vimdir+".vimrc"

    do('cp -r '+dotvimdir+' '+USER_HOME)
    if (last_status != 0):
        logging.error('.vim directory can not be copied to home')
        return False
    logging.info('.vim has been copied to home')
    
    do('cp '+vimrcdir+' '+USER_HOME)
    if (last_status != 0):
        logging.error('.vimrc can not be copied to home')
        return False
    logging.info('.vimrc has been copied to home')
    
    logging.info("vim has been configured!\
                  type 'vim ~/.vimrc' to see my default configuration for you\
                  especially the 'nmap' statements which declare shortcuts\
                  you should google some plugins if you're not familare with them.\
                  OR you can refer to ./data/vim_dot/README.txt for quik start")
    
    return True
def execute():
    require('network')
    sequence = [
        apt_select_source,
    ]
    for c in sequence:
        if (not c()):
            return False
    return True
def execute():
    require('aptsrc')
    sequence = [
        install_isatapd,
    ]
    for c in sequence:
        if (not c()):
            return False
    return True
def execute():
    require('aptsrc')
    sequence = [
        install_essential,
        install_ide,
    ]
    for c in sequence:
        if (not c()):
            return False
    return True
def execute():
    require('aptsrc')
    require('kubuntu')
    sequence = [
        install_libreoffice,
        install_wpsoffice,
    ]
    for c in sequence:
        if (not c()):
            return False
    return True
def execute():
    require('aptsrc')
    require('kubuntu')
    sequence = [
        sysconf,
        iptables,
        gnome_defaults,
        lightdm,
    ]
    for c in sequence:
        if (not c()):
            return False
    return True
def execute():
    require('aptsrc')
    require('nouveau')
    sequence = [
        add_ppa_repository,
        dist_upgrade,
        install_language_packs,
        install_fonts,
        config_desktop_fonts,
        install_fcitx_im,
        install_firefox,
        install_multimedia,
        install_nice_apps,
        install_extras,
    ]
    for c in sequence:
        if (not c()):
            return False
    return True
def execute():
    require('aptsrc')
    return install_latex()
def execute():
    require('aptsrc')
    require('kubuntu')
    return laptop_mode()
Beispiel #11
0
def execute():
    require('aptsrc')
    return install_wine()