sudo apt-get autoremove tesseract-ocr
""autoremove tesseract-ocr
- вот это особливо шедеврально!!!remove tesseract-ocr
- правильно!!!sudo apt autoremove
- эт вообще-то системная команда удаления ненужных локальных данных и очистки системы. Также включает в себя и проверку на различные «мусорные» файлы, которые остаются при установке программ. $ cd test
:~/test$ ls -a
:~/test$ . .. .bash_history .bash_test .test
:~/test$ zip test . -9 -r
adding: .bash_test (stored 0%)
adding: .bash_history (stored 0%)
adding: .test/ (stored 0%)
:~/test$ ls
test.zip
:~/test$ unzip -l test.zip | awk -F'/' 'NF<3 && !$2'
Archive: test.zip
Length Date Time Name
--------- ---------- ----- ----
11 2020-10-31 14:05 .bash_test
11 2020-10-31 14:05 .bash_history
0 2020-10-31 14:08 .test/
--------- -------
22 3 files
zip test . -9 -r
command=python3.8 /root/besik.py
command=/usr/bin/python3 /root/besik.py
startsecs = 30
startretries=10
stopasgroup = true
priority = 999 (приоритет очерёдности загрузки процессов. По умолчанию 999 - авто)
stdout_logfile_maxbytes = 50MB - размер лог-файла (у меня 50, вы можете, как вам нужно), иначе будет писать файл, раздувая его до бесконечности и когда-нибудь увидите сообщение, что места нет!
sudo sh -c 'echo_supervisord_conf > /etc/supervisor/supervisord.conf'
childlogdir=/var/log/supervisor ; ('AUTO' child log dir, default $TEMP
- не обязательно. Можно закомментить - ;nodaemon=true ; (start in foreground if true;default false)
minfds=1024 ; (min. avail startup file descriptors;default 1024)
minprocs=200
user=
user=root
;user=root
уже была, но была закомментена, то снять коммент - ;sudo supervisorctl reread; sudo supervisorctl update; sudo systemctl restart supervisor.service
cd ~
dd if=/windows.iso of=/dev/sdX
sudo dd if=/windows.iso of=/dev/sdX
sudo apt install geany geany-plugins
sudo npm install --global verdaccio
sudo apt install supervisor
sudo sh -c 'echo_supervisord_conf > /etc/supervisor/supervisord.conf'
; supervisor config file
[unix_http_server]
file=/var/run/supervisor.sock ; (the path to the socket file)
chmod=0700 ; sockef file mode (default 0700)
[supervisord]
logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
childlogdir=/var/log/supervisor ; ('AUTO' child log dir, default $TEMP)
; the below section must remain in the config file for RPC
; (supervisorctl/web interface) to work, additional interfaces may be
; added by defining them in separate rpcinterface: sections
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=unix:///var/run/supervisor.sock ; use a unix:// URL for a unix socket
; The [include] section can just contain the "files" setting. This
; setting can list multiple files (separated by whitespace or
; newlines). It can also contain wildcards. The filenames are
; interpreted as relative to this file. Included files *cannot*
; include files themselves.
[include]
files = /etc/supervisor/conf.d/*.conf
sudo netplan apply
gedit lamp
#!/bin/bash
sudo apt install apache2 mariadb-server php libapache2-mod-php php-mysql php-cgi php-gd php-zip php-xml php-xmlrpc php-curl php-json php-mbstring php-cli
sudo ufw allow in 80/tcp
sudo a2enmod rewrite
sudo sed -i "s/AllowOverride None/AllowOverride All/" /etc/apache2/apache2.conf
sudo systemctl restart apache2
exit
chmod +x lamp
./lamp
или, если ругнётся, то
sudo ./lamp
#!/bin/bash
sudo apt install apache2 mariadb-server-10.3 php libapache2-mod-php php-mysql php-cgi php-gd php-zip php-xml php-xmlrpc php-curl php-json php-mbstring php-cli
sudo ufw allow in 80/tcp
sudo a2enmod rewrite
sudo sed -i "s/AllowOverride None/AllowOverride All/" /etc/apache2/apache2.conf
sudo systemctl restart apache2
exit
chmod +x lamp
./lamp
или, если ругнётся, то
sudo ./lamp
ExecStart=/home/kokoto/uba/.venv/bin/python
python3-pip
python3-dev
python3-setuptools
python3-venv
/home/kokoto/uba/.venv/bin/python
/home/kokoto/uba/.venv/bin/python3
cd /etc/apt/sources.list.d; echo "deb http://ppa.launchpad.net/ondrej/php/ubuntu $(lsb_release -cs) main" | sudo tee php.list > /dev/null; sudo apt-key adv --recv-keys --keyserver hkps://keyserver.ubuntu.com:443 4F4EA0AAE5267A6C; sleep 10; sudo apt update; cd