- /opt/jumpscale7/lib/JumpScale/baselib/platforms/ubuntu/Ubuntu.py
- Properties
Methods
def addSourceUri
arguments
def addUser2Group
arguments
def changeSourceUri
arguments
def check
arguments
check if ubuntu or mint (which is based on ubuntu)
def checkInstall
arguments
@param packagenames is name or array of names of ubuntu package to install e.g. curl
@param cmdname is cmd to check e.g. curl
def checkroot
arguments
def createGroup
arguments
def createUser
arguments
- name
- passwd
- home
- creategroup = True
- deletefirst = False
def downloadInstallDebPkg
arguments
- url
- removeDownloaded = False
- minspeed = 20
will download to tmp if not there yet
will then install
def existsGroup
arguments
def existsUser
arguments
def find1packageInstalled
arguments
def findPackagesInstalled
arguments
def findPackagesRepo
arguments
def generateLocalSSHKeyPair
arguments
- passphrase = ''
- type = 'rsa'
- overwrite = False
- path = '/root/.ssh/id_rsa'
def getPackage
arguments
def getPackageNamesInstalled
arguments
def getPackageNamesRepo
arguments
def getVersion
arguments
returns codename,descr,id,release
known ids" raring, linuxmint
def initApt
arguments
def install
arguments
def installDebFile
arguments
def installVersion
arguments
Installs a specific version of an ubuntu package.
@param packageName: name of the package
@type packageName: str
@param version: version of the package
@type version: str
def listFilesPkg
arguments
list files of dpkg
if regex used only output the ones who are matching regex
def listSources
arguments
def remove
arguments
def restartService
arguments
def serviceDisableStartAtBoot
arguments
def serviceEnableStartAtBoot
arguments
def serviceInstall
arguments
- servicename
- daemonpath
- args = ''
- respawn = True
- pwd
- env
- reload = True
def serviceUninstall
arguments
def startService
arguments
def statusService
arguments
def stopService
arguments
arguments
def upgradePackages
arguments
def whoami
arguments