User Tools

Site Tools


управление_по_в_linux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
управление_по_в_linux [2019/07/09 14:13]
val [Настройка репозитория]
управление_по_в_linux [2025/06/08 09:41] (current)
val [Что за дистрибутив?]
Line 4: Line 4:
  
   * [[Выбор дистрибутива Linux]]   * [[Выбор дистрибутива Linux]]
 +  * [[https://​wiki.alpinelinux.org/​wiki/​Comparison_with_other_distros|Comparison distros]]
  
 ===== DPKG ===== ===== DPKG =====
  
   * [[https://​ru.wikipedia.org/​wiki/​Dpkg|Dpkg - Википедия]]   * [[https://​ru.wikipedia.org/​wiki/​Dpkg|Dpkg - Википедия]]
 +  * [[https://​packages.ubuntu.com/​search?​keywords=asterisk]]
  
 <​code>​ <​code>​
Line 17: Line 19:
   * [[Сервис OpenFire#​Установка]] сервиса OpenFire (!!! требует JRE)   * [[Сервис OpenFire#​Установка]] сервиса OpenFire (!!! требует JRE)
  
 +<​code>​
 +# dpkg-deb -I gitlab-runner_amd64.deb
 +...
 + ​Version:​ NN.N.N-N
 +...
 +
 +# dpkg-deb -i gitlab-runner_amd64.deb
 +</​code>​
 ==== Установленные пакеты ==== ==== Установленные пакеты ====
 <​code>​ <​code>​
Line 56: Line 66:
 ==== Настройка репозитория ==== ==== Настройка репозитория ====
  
-=== Debian ​10 ===+  * [[https://​www.debian.org/​mirror/​list|Мировые серверы-зеркала ​Debian]] 
 +  * [[https://​wiki.debian.org/​SourcesList#​Component]] main contrib non-free non-free-firmware
  
 <​code>​ <​code>​
-cat /etc/apt/​sources.list +# apt install netselect-apt
-</​code><​code>​ +
-deb http://​deb.debian.org/​debian/​ buster main contrib non-free +
-deb http://​deb.debian.org/​debian buster-updates main contrib non-free +
-deb http://​security.debian.org/​ buster/​updates main contrib non-free+
  
-#deb-src http://​deb.debian.org/​debian buster main contrib non-free +netselect-apt
-#deb-src http://​deb.debian.org/​debian buster-updates main contrib non-free +
-#deb-src http://​security.debian.org/​ buster/​updates main contrib non-free +
-</​code>​ +
-=== Debian 9 ===+
  
-<​code>​ +less /​etc/​apt/​sources.list
-cat /​etc/​apt/​sources.list +
-</​code><​code>​ +
-deb http://​deb.debian.org/​debian/​ stretch main contrib non-free +
-deb http://​deb.debian.org/​debian stretch-updates main contrib non-free +
-deb http://​security.debian.org/​ stretch/​updates main contrib non-free+
  
-#deb-src http://​deb.debian.org/​debian stretch main contrib non-free +sed -i -e 's/​deb.debian.org/​mirror.docker.ru/g' ​/etc/apt/sources.list
-#deb-src http://deb.debian.org/debian stretch-updates main contrib non-free +
-#deb-src http://security.debian.org/ stretch/​updates main contrib non-free +
-</​code>​+
  
-=== Ubuntu 16 === +# apt update
- +
-<​code>​ +
-cat /etc/apt/​sources.list +
-</​code><​code>​ +
-deb http://​ru.archive.ubuntu.com/​ubuntu/​ xenial main restricted universe multiverse +
-deb http://​ru.archive.ubuntu.com/​ubuntu/​ xenial-updates main restricted universe multiverse +
-deb http://​security.ubuntu.com/​ubuntu xenial-security main restricted universe multiverse +
- +
-#deb-src http://​ru.archive.ubuntu.com/​ubuntu/​ xenial main restricted universe multiverse +
-#deb-src http://​ru.archive.ubuntu.com/​ubuntu/​ xenial-updates main restricted universe multiverse +
-#deb-src http://​security.ubuntu.com/​ubuntu xenial-security main restricted universe multiverse+
 </​code>​ </​code>​
 +
  
 ==== Подключение сторонних репозиториев ==== ==== Подключение сторонних репозиториев ====
  
   * [[https://​docs.microsoft.com/​ru-ru/​sql/​linux/​sql-server-linux-setup-ubuntu|Install SQL Server on Ubuntu]]   * [[https://​docs.microsoft.com/​ru-ru/​sql/​linux/​sql-server-linux-setup-ubuntu|Install SQL Server on Ubuntu]]
 +  * [[https://​vk.com/​wall-95686747_13620|Для установки Elasticsearch и остальных продуктов Elastic, можно использовать репозиторий https://​mirror.yandex.ru/​mirrors.]] 
 +<​code>​ 
 +# cat /​etc/​apt/​sources.list 
 +... 
 +deb [trusted=yes] https://​mirror.yandex.ru/​mirrors/​elastic/​8/​ stable main 
 +... 
 +</​code>​
 ==== Обновление списка доступных пакетов ==== ==== Обновление списка доступных пакетов ====
 <​code>​ <​code>​
Line 124: Line 115:
 <​code>​ <​code>​
 # apt install clamav-daemon # apt install clamav-daemon
 +
 +# DEBIAN_FRONTEND=noninteractive apt -y install postfix
 </​code>​ </​code>​
  
Line 136: Line 129:
 <​code>​ <​code>​
 # apt purge snort # apt purge snort
 +</​code>​
 +
 +==== Отключение автоматических обновлений ====
 +
 +<​code>​
 +# apt purge unattended-upgrades
 </​code>​ </​code>​
  
Line 164: Line 163:
 ==== Поиск пакета (в том числе среди неустановленных) в который входит файл ==== ==== Поиск пакета (в том числе среди неустановленных) в который входит файл ====
 <​code>​ <​code>​
 +# apt install apt-file ​
 +
 # apt-file update # apt-file update
  
 # apt-file search stddef.h # apt-file search stddef.h
 +
 +# apt-file search identify | grep '/​bin'​
 +</​code>​
 +
 +==== Удаление архива установленных пакетов ====
 +<​code>​
 +# apt clean
 +</​code>​
 +
 +==== Загрузка пакетов и зависимостей для offline установки ====
 +
 +  * [[https://​stackoverflow.com/​questions/​16919114/​run-sudo-apt-get-install-without-internet-connection|Run sudo apt-get install without internet connection]]
 +
 +  * [[#​Удаление архива установленных пакетов]]
 +
 +<​code>​
 +# apt install -d zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-agent
 +
 +# find /​var/​cache/​apt/​archives/​
 +
 +# cd /​var/​cache/​apt/​archives/​
 </​code>​ </​code>​
  
 +  * Сервис NFS [[Сервис NFS#​Установка,​ настройка и запуск сервиса]]
 +  * Сервис NFS [[Сервис NFS#​Установка nfs клиента]]
 +  * Сервис NFS [[Сервис NFS#​Установка ПО]]
 ==== Исправление состояния базы данных APT ==== ==== Исправление состояния базы данных APT ====
  
Line 176: Line 201:
 # apt -f install # apt -f install
  
 +# reboot
 # dpkg --configure -a # dpkg --configure -a
  
Line 195: Line 221:
  
 ==== Настройка на использование http_proxy ==== ==== Настройка на использование http_proxy ====
-<​code>​ + 
-# export http_proxy="​http://​gate.isp.un:​3128/"​ +  * [[Переменные окружения]]
-</​code>​+
  
 ===== RPM ===== ===== RPM =====
Line 216: Line 241:
 # wget -O openfire-4.3.2-1.x86_64.rpm https://​www.igniterealtime.org/​downloadServlet?​filename=openfire/​openfire-4.3.2-1.x86_64.rpm # wget -O openfire-4.3.2-1.x86_64.rpm https://​www.igniterealtime.org/​downloadServlet?​filename=openfire/​openfire-4.3.2-1.x86_64.rpm
  
-rpm -i rpm -i openfire-4.3.2-1.x86_64.rpm+# rpm -i openfire-4.3.2-1.x86_64.rpm
 </​code>​ </​code>​
  
Line 289: Line 314:
 # yum grouplist # yum grouplist
  
-# yum -y groups install "GNOME Desktop"​+centos# yum -y groups install "GNOME Desktop"​ 
 +almalinux# yum groupinstall "​Server with GUI" 
 + 
 +almalinux# systemctl set-default graphical && reboot 
 +</​code>​ 
 + 
 +===== APK Alpine Linux ===== 
 +<​code>​ 
 +# apk update 
 + 
 +# apk search git 
 + 
 +# apk add --no-cache git 
 + 
 +# rm -rf /​var/​cache/​apk/​*
 </​code>​ </​code>​
  
Line 345: Line 384:
   * [[https://​tutorials.ubuntu.com/​tutorial/​basic-snap-usage|Basic snap usage]]   * [[https://​tutorials.ubuntu.com/​tutorial/​basic-snap-usage|Basic snap usage]]
   * [[https://​askubuntu.com/​questions/​979233/​how-to-list-files-installed-by-a-snap-package|How to list files installed by a snap package?]]   * [[https://​askubuntu.com/​questions/​979233/​how-to-list-files-installed-by-a-snap-package|How to list files installed by a snap package?]]
 +  * [[https://​snapcraft.io/​docs/​installing-snap-on-debian|Installing snap on Debian]]
 +  * [[Инструмент Gitea]]
  
 <​code>​ <​code>​
 +debian# apt install snapd
 +
 # snap refresh # snap refresh
  
Line 364: Line 407:
 </​code>​ </​code>​
  
 +===== Docker =====
 +
 +  * [[Технология Docker]]
 +  * [[Сервис TACACS+]]
 +  * [[Сервис Grafana]]
 +
 +===== Список desktop приложений =====
 +
 +  * [[https://​unix.stackexchange.com/​questions/​20979/​how-do-i-list-all-installed-programs]]
 +
 +<​code>​
 +$ ls /​usr/​share/​applications | awk -F '​.desktop'​ ' { print $1}' -
 +</​code>​
 ===== Работа с исходными текстами ===== ===== Работа с исходными текстами =====
  
Line 372: Line 428:
 === Debian/​Ubuntu === === Debian/​Ubuntu ===
 <​code>​ <​code>​
-# apt install build-essential autoconf automake ​checkinstall+# apt install build-essential autoconf automake
 </​code>​ </​code>​
  
Line 384: Line 440:
 ==== Примеры сборки программ из исходных текстов ==== ==== Примеры сборки программ из исходных текстов ====
  
-  * [[Сервис SNORTSAM#​Сборка Snort с поддержкой Snortsam в Ubuntu]] 
   * [[Сервис Asterisk#​Сборка asterisk из исходных текстов]]   * [[Сервис Asterisk#​Сборка asterisk из исходных текстов]]
  
Line 450: Line 505:
  
 === Использование сервера Ubuntu === === Использование сервера Ubuntu ===
 +
 +  * [[https://​help.ubuntu.ru/​wiki/​apt-mirror|Создание зеркала репозиториев с помощью apt-mirror]]
 +
 <​code>​ <​code>​
 root@rep:~# apt-get install apt-mirror root@rep:~# apt-get install apt-mirror
управление_по_в_linux.1562670780.txt.gz · Last modified: 2019/07/09 14:13 by val