Exemple #1
0
def install():
    if check_installed("grub-customizer"):
        message("Grub Customizer is already installed.")
        return

    install_from_ppa('ppa:danielrichter2007/grub-customizer',
                     'grub-customizer')
def install():
    if check_installed("libreoffice"):
        message("Libre Office is already installed.")
        return

    # This command is in the PPA but Ubuntu lacks an installation candidate
    #run_bash_command('sudo apt-get install python-software-properties')
    install_from_ppa('ppa:libreoffice/ppa', 'libreoffice')
def install():
    if check_installed("flatpak"):
        message("flatpak is already installed.")
        return

    install_from_ppa('ppa:alexlarsson/flatpak',
                     'flatpak')

    run_bash_command(
        'flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo')
Exemple #4
0
def install():
    if check_installed("bcompare"):
        message("Beyond Compare is already installed.")
        return

    output_file = 'bcompare-4.2.6.23150_amd64.deb'
    url = f'http://www.scootersoftware.com/{output_file}'

    message("Downloading Beyond Compare...")
    request.urlretrieve(url, output_file)
    message("Finished downloading Beyond Compare.")
    install_dpkg(output_file)
    os.remove(output_file)
def install():
    if check_installed("code"):
        message("VS Code is already installed.")
        return

    url = "https://go.microsoft.com/fwlink/?LinkID=760868"
    output_file = "vscode.deb"

    message("Downloading VS Code...")
    response = requests.get(url, allow_redirects=True)
    message("Finished downloading VS Code.")
    with open(output_file, 'wb') as file:
        file.write(response.content)
        install_dpkg(output_file)
    os.remove(output_file)

    # Install Extensions
    run_bash_command('code --install-extension eamodio.gitlens')
    #run_bash_command('code --install-extension hoovercj.vscode-power-mode')
    run_bash_command('code --install-extension ms-python.python')
    run_bash_command('code --install-extension ms-vscode.cpptools')
    run_bash_command('code --install-extension PKief.material-icon-theme')
    run_bash_command('code --install-extension zhuangtongfa.Material-theme')
def install():
    if check_installed("vscodium"):
        message("VSCodium is already installed.")
        return

    url = "https://github.com/VSCodium/vscodium/releases/download/1.33.1/vscodium_1.33.1-1556929548_amd64.deb"
    output_file = "vscodium.deb"

    message("Downloading VSCodium...")
    response = requests.get(url, allow_redirects=True)
    message("Finished downloading VSCodium.")
    with open(output_file, 'wb') as file:
        file.write(response.content)
        install_dpkg(output_file)
    os.remove(output_file)

    # Install Extensions
    run_bash_command('vscodium --install-extension eamodio.gitlens')
    #run_bash_command('code --install-extension hoovercj.vscode-power-mode')
    run_bash_command('vscodium --install-extension ms-python.python')
    run_bash_command('vscodium --install-extension ms-vscode.cpptools')
    run_bash_command('vscodium --install-extension PKief.material-icon-theme')
    run_bash_command(
        'vscodium --install-extension zhuangtongfa.Material-theme')
Exemple #7
0
 def test_check_installed(cls):
     assert check_installed('apt')
     assert not check_installed('adfjsdlglsdglkneg')
Exemple #8
0
def install():
    if check_installed("keepassxc"):
        message("KeePassXC is already installed.")
        return

    install_from_ppa('ppa:phoerious/keepassxc', 'keepassxc')