Install Valid |
---|
Include this line when you need to use a shell or browser: require_once "/var/www/html/ai-engine/MTS-master/MTS/EnableMTS.php" |
The current user is not allowed to sudo python. This is optional |
You will still be able to instantiate non-root shells. You can then elevate the non-root shell with the following function: \MTS\Factories::getActions()->getRemoteUsers()->changeUser($shellObj, 'root', 'rootPassword') Warning: Giving Sudo access to the webserver user is a security risk. If you want to enable sudo for python follow the steps below Edit /etc/sudoers: 1) Find this line: 'root ALL=(ALL) ALL' Add this line after it: 'www-data ALL=(ALL)NOPASSWD:/usr/bin/python3.11'. 2) Find this line (if it exists): 'Defaults requiretty' Comment out the line by adding a '#' in front of it. |
MS core fonts is not installed. This is recommended |
The standard repos do not have this package Please Google 'ttf-mscorefonts-installer' to find a source, then install This may help: http://serverfault.com/questions/89931/installing-msttcorefonts-on-ubuntu |