sudo apt-get -y update && sudo apt-get -y dist-upgrade  sudo reboot now susudo -i cd /root mv /etc/apt/sources.list /etc/apt/sources.list.bak touch /etc/apt/sources.list nano /etc/apt/sources.list  # deb http://ru.archive.ubuntu.com/ubuntu/ trusty main restricted deb-src http://ru.archive.ubuntu.com/ubuntu/ trusty main restricted deb http://ru.archive.ubuntu.com/ubuntu/ trusty-updates main restricted deb-src http://ru.archive.ubuntu.com/ubuntu/ trusty-updates main restricted deb http://ru.archive.ubuntu.com/ubuntu/ trusty universe deb-src http://ru.archive.ubuntu.com/ubuntu/ trusty universe deb http://ru.archive.ubuntu.com/ubuntu/ trusty-updates universe deb-src http://ru.archive.ubuntu.com/ubuntu/ trusty-updates universe deb http://ru.archive.ubuntu.com/ubuntu/ trusty multiverse deb-src http://ru.archive.ubuntu.com/ubuntu/ trusty multiverse deb http://ru.archive.ubuntu.com/ubuntu/ trusty-updates multiverse deb-src http://ru.archive.ubuntu.com/ubuntu/ trusty-updates multiverse deb http://ru.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse deb-src http://ru.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse deb http://security.ubuntu.com/ubuntu trusty-security main restricted deb-src http://security.ubuntu.com/ubuntu trusty-security main restricted deb http://security.ubuntu.com/ubuntu trusty-security universe deb-src http://security.ubuntu.com/ubuntu trusty-security universe deb http://security.ubuntu.com/ubuntu trusty-security multiverse deb-src http://security.ubuntu.com/ubuntu trusty-security multiverse deb http://archive.canonical.com/ubuntu trusty partner deb-src http://archive.canonical.com/ubuntu trusty partner ## deb http://extras.ubuntu.com/ubuntu trusty main ## deb-src http://extras.ubuntu.com/ubuntu trusty main deb https://download.webmin.com/download/repository sarge contrib deb http://download.virtualbox.org/virtualbox/debian trusty contrib  wget http://www.webmin.com/jcameron-key.asc wget https://www.virtualbox.org/download/oracle_vbox_2016.asc wget https://www.virtualbox.org/download/oracle_vbox.asc apt-key add jcameron-key.asc apt-key add oracle_vbox.asc apt-key add oracle_vbox_2016.asc apt-get update  apt-get install mysql-server apache2 php-soap webmin mc unzip traceroute apt-get install virtualbox-5.2  usermod -aG vboxusers { }  wget https://download.virtualbox.org/virtualbox/5.2.20/Oracle_VM_VirtualBox_Extension_Pack-5.2.20.vbox-extpack VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-5.2.20.vbox-extpack  wget https://github.com/phpvirtualbox/phpvirtualbox/archive/5.2-0.zip unzip 5.2-0.zip mv phpvirtualbox-5.2-0 /var/www/html/phpvirtualbox  chown -R www-data:www-data /var/www/html/phpvirtualbox chmod -R 755 /var/www/html/phpvirtualbox  cp /var/www/html/phpvirtualbox/config.php-example /var/www/html/phpvirtualbox/config.php nano /var/www/html/phpvirtualbox/config.php  var $username = 'user'; var $password = 'password'; nano /etc/default/virtualboxVBOXWEB_USER={ 8} reboot now http://{ip }/phpvirtualbox , and webmin, a powerful server management interface, will be accessible at https://{ip }:10000 . To log in to the virtual machine management interface, use the standard username and password admin: admin (changes in the interface itself), and for authorization in webmin, use the real user account with root privileges (you can directly root if you unblocked it).Source: https://habr.com/ru/post/427945/
All Articles