systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
Źródło:
https://www.tecmint.com/disable-suspend-and-hibernation-in-linux/
1. Packages
apt-get update
apt-get install aptitude sudo vim mc nmap screen make cmake gcc make apache2 libapache2-mod-perl2 libapache-dbi-perl libapache-db-perl libapache2-mod-php mariadb-server mariadb-client software-properties-common php7.3 libapache2-mod-php7.3 php7.3-common php7.3-sqlite3 php7.3-mysql php7.3-gmp php7.3-curl php7.3-mbstring php7.3-gd php7.3-cli php7.3-xml php7.3-zip php7.3-soap php7.3-json php-pclzip git curl perl libxml-simple-perl libcompress-zlib-perl libdbi-perl libdbd-mysql-perl libnet-ip-perl libsoap-lite-perl libio-compress-perl libapache-dbi-perl libapache2-mod-perl2 libapache2-mod-perl2-dev
2. Mysql
sudo mysql_secure_installation
sudo mysql -u root -p
Zobacz całość
sudo crontab -e
@reboot sh /home/user/test.sh
https://stackoverflow.com/questions/12973777/how-to-run-a-shell-script-at-startup
1. Base packages
su apt-get update apt-get install aptitude vim nmap mc screen traceroute sudo aptitude install apache2 mariadb-server aptitude install php php-mbstring php-gd php-xml php-bcmath php-ldap php-mysql
Zobacz całość
instalacja
apt-get install xen-tools xen-system-amd64
sprawdzamy czy host obsluguje HVM
egrep '(vmx|svm)' /proc/cpuinfo
jesli tak - doinstalowujemy
apt-get install xen-qemu-dm-4.0
zmieniamy priorytet bootowania sie systemu z jadra z obsluga xen
dpkg-divert --divert /etc/grub.d/08_linux_xen --rename /etc/grub.d/20_linux_xen
Zobacz całość