def install_mscorefonts(self, g=False): helper.do("mkdir temp", True) helper.do("cd temp", True) helper.do( "wget http://ftp.de.debian.org/debian/pool/contrib/m/msttcorefonts/ttfmscorefonts-installer_3.6_all.deb", True) helper.do("dpkg --install ttf-mscorefonts-installer_3.6_all.deb", True) helper.pkg_update(E)
def install_nginx(self, g=False): helper.do("cat >/etc/yum.repos.d/nginx.repo <<EOL\ [nginx]\ name=nginx repo\ baseurl=http://nginx.org/packages/mainline/centos/7/$basearch/\ gpgcheck=0\ enabled=1\ EOL") helper.pkg_update(E) helper.pkg_install("nginx", E)
def install_xfce(self, g=False): helper.pkg_install("xfce4 xfce4-goodies", E) helper.pkg_update(E)
def install_gnome(self, g=False): helper.pkg_install("@gnome-desktop", E) helper.pkg_update(E)
def install_kde(self, g=False): helper.pkg_install("kde-full", E) helper.pkg_update(E)
def install_multimediacodecs(self, g=False): self.enable_ppa() helper.pkg_add_repo( "'deb http://www.deb-multimedia.org stretch main non-free'", E) helper.pkg_install("deb-multimedia-keyring libdvdcss2", E) helper.pkg_update(E)
def install_xfce(self, g=False): helper.pkg_install("@xfce", E) helper.pkg_update(E)
def install_lxqt(self, g=False): helper.pkg_install("lxqt", E) helper.pkg_update(E)
def install_openbox(self, g=False): helper.pkg_install("openbox menu", E) helper.pkg_update(E)
def install_libreoffice_it(self, g=False): helper.pkg_install( "libreoffice-base libreoffice-style-sifr libreoffice-gtk libreoffice-l10n-it", E) helper.pkg_update(E)
def install_natron(self, g=False): helper.pkg_install("natron", E) helper.pkg_update(E)
def install_mscorefonts(self, g=False): helper.pkg_install("ttf-mscorefonts-installer", E) helper.pkg_update(E)
def install_flashplugin(self, g=False): helper.pkg_install("flashplugin-nonfree", E) helper.pkg_update(E)
def install_dpassistant(self, g=False): helper.pkg_install("deepin-presentation-assistant", E) helper.pkg_update(E)
def install_deepinsysmonitor(self, g=False): helper.pkg_install("deepin-system-monitor", E) helper.pkg_update(E)
def install_ddi(self, g=False): helper.pkg_install("deepin-deb-installer", E) helper.pkg_update(E)
def install_mate(self, g=False): helper.pkg_install("mate-desktop-environment", E) helper.pkg_update(E)
def install_lightworks(self, g=False): helper.pkg_install("lightworks", E) helper.pkg_update(E)
def install_cinnamon(self, g=False): helper.pkg_install("cinnamon", E) helper.pkg_update(E)
def install_firefox_it(self, g=False): helper.pkg_install("firefox firefox-locale-it", E) helper.pkg_update(E)
def install_budgie(self, g=False): helper.pkg_install("budgie-desktop", E) helper.pkg_update(E)
def install_updates(self, g=False): helper.pkg_update(E) helper.pkg_sys_upgrade(E)
def install_fluxbox(self, g=False): helper.pkg_install("fluxbox", E) helper.pkg_update(E)
def install_gdebi(self, g=False): helper.pkg_install("gdebi", E) helper.pkg_update(E)
def install_gnome_system_tools(self, g=False): helper.pkg_install("gnome-system-tools", E) helper.pkg_update(E)
def install_kde(self, g=False): helper.pkg_install("@kde-desktop", E) helper.pkg_update(E)
def enable_ppa(self, g=False): helper.pkg_install("software-properties-common", E) helper.pkg_update(E)
def install_garr_it(self, g=False): helper.do("cd") helper.do( "bash -c 'cat << EOF > /etc/apt/sources.list\n# Generated by deepin-installer\n# deb [by-hash=force] http://packages.deepin.com/deepin unstable main contrib non-free\n# deb-src http://packages.deepin.com/deepin unstable main contrib non-free\n##########################################################################################\ndeb [by-hash=force] http://ba.mirror.garr.it/mirrors/deepin/ panda main contrib non-free\nEOF'", True) helper.pkg_update(E)
def install_qapt(self, g=False): helper.pkg_install("qapt-deb-installer", E) helper.pkg_update(E)
def install_gnome(self, g=False): helper.pkg_install("gnome", E) helper.pkg_update(E)