84 lines
2.6 KiB
Plaintext
84 lines
2.6 KiB
Plaintext
install "minimized server"
|
|
|
|
*** after install: ***
|
|
# sudo su -
|
|
# apt purge -y cloud-init
|
|
# rm -rf /etc/cloud
|
|
# rm /etc/netplan/50-cloud-init.yaml
|
|
# apt purge -y unattended-upgrades
|
|
# rm -rf /var/log/unattended-upgrades
|
|
# apt autoremove -y
|
|
# apt install -y netplan.io isc-dhcp-client mc
|
|
|
|
# touch /etc/netplan/00-installer-config.yaml
|
|
# This is the network config written by 'subiquity'
|
|
network:
|
|
version: 2
|
|
ethernets:
|
|
eth0:
|
|
dhcp4: no
|
|
addresses:
|
|
- 192.168.1.109/24
|
|
nameservers:
|
|
addresses: [192.168.1.1]
|
|
routes:
|
|
- to: default
|
|
via: 192.168.1.1
|
|
|
|
# chmod 600 /etc/netplan/00-installer-config.yaml
|
|
# netplan try
|
|
# netplan apply
|
|
# systemctl restart systemd-networkd
|
|
# apt-get update
|
|
# apt-get install -y mc net-tools iputils-ping inetutils-traceroute htop ca-certificates apt-utils aptitude locales
|
|
# aptitude install console-cyrillic
|
|
# dpkg-reconfigure locales
|
|
select [392] ru_RU.UTF-8 UTF-8
|
|
|
|
# reboot
|
|
# sudo su -
|
|
|
|
# wget https://raw.githubusercontent.com/hestiacp/hestiacp/release/install/hst-install-ubuntu.sh
|
|
# bash hst-install-ubuntu.sh --lang ru --hostname [HOSTNAME] --email [EMAIL] --password [PASSWORD] --postgresql yes --dovecot no --clamav no --spamassassin no
|
|
# reboot
|
|
|
|
# usermod -aG sudo admin
|
|
** relogin
|
|
|
|
# sudo su -
|
|
# apt-get install -y memcached php-memcached php8.2-memcached
|
|
|
|
*** install odbc-driver
|
|
** Add the signature to trust the Microsoft repo
|
|
** For Ubuntu versions < 24.04
|
|
# curl https://packages.microsoft.com/keys/microsoft.asc | sudo tee /etc/apt/trusted.gpg.d/microsoft.asc
|
|
** For Ubuntu versions >= 24.04
|
|
** curl https://packages.microsoft.com/keys/microsoft.asc | sudo gpg --dearmor -o /usr/share/keyrings/microsoft-prod.gpg
|
|
|
|
** Add repo to apt sources
|
|
curl https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/prod.list | sudo tee /etc/apt/sources.list.d/mssql-release.list
|
|
|
|
** Install the driver
|
|
# sudo apt-get update
|
|
# sudo ACCEPT_EULA=Y apt-get install -y msodbcsql18
|
|
** optional: for bcp and sqlcmd
|
|
# sudo ACCEPT_EULA=Y apt-get install -y mssql-tools18
|
|
# echo 'export PATH="$PATH:/opt/mssql-tools18/bin"' >> ~/.bashrc
|
|
# source ~/.bashrc
|
|
** optional: for unixODBC development headers
|
|
sudo apt-get install -y unixodbc-dev
|
|
|
|
# apt-get install -y php8.2-odbc
|
|
# v-add-database admin rfclass_pg rfclass_pg [DB_PASSWORD] pgsql localhost
|
|
# v-add-database admin eis_pg eis_pg [DB_PASSWORD] pgsql localhost
|
|
|
|
*** copy archive ***
|
|
|
|
*** restore database: admin_rfclass_pg
|
|
# grep -Eo "PASSWORD='[a-zA-Z0-9]+'" /usr/local/hestia/conf/pgsql.conf | awk -F "PASSWORD=" '{print $2}' | awk -F "'" '{print $2}'
|
|
|
|
# exit
|
|
# cd /home/admin/web/[SITE]/public_html
|
|
# php composer.phar install
|
|
|