Archive for *nix

Instruction how to install Debian using debootstrap

https://gist.github.com/varqox/42e213b6b2dde2b636ef

Создание сертификата Let’s Encrypt для Apache в Debian 10

https://www.8host.com/blog/sozdanie-sertifikata-lets-encrypt-dlya-apache-v-debian-10/

Установка корневого сертификата в браузере SailfishOS (sailfish-browser)

Установить nss-tools:

devel-su pkcon install nss-tools

Или с помощью zypper (если установлен):

zypper install nss-tools

Перейти в нужный каталог:

cd /home/defaultuser/.local/share/org.sailfishos/browser/.mozilla

Просмотреть установленные сертификаты:

certutil -L -d ./

Установить сертификат:

certutil -d ./ -A -t "C,," -n "MY SQIUD CA" -i ./myCA.pem

Удалить сертификат:

certutil -d ./ -D -n "MY SQIUD CA"

How to Install phpMyAdmin with Apache on Debian 10 (Buster)

https://computingforgeeks.com/install-phpmyadmin-with-apache-on-debian-10-buster/

GNS3 — Installation from Source on Debian Buster

https://computingforgeeks.com/how-to-install-gns3-on-debian/
https://computingforgeeks.com/install-gns3-on-arch-linux-manjaro-garuda-endeavouros/

Bring Up Interface in Debian/Ubuntu Without an IP

Again, this is one of those simple configs once you’ve seen it, but it is a bear to track down and find this info. Basically what I want to do here is tell the OS to bring up the interface regardless of it not having an IP assigned to it. Typically linux systems only bring up their interfaces if they have addresses configured for them. Bringing up an address free interface can be handy for network sniffing, virtualization projects, and various bridging configs.

Here’s what you need to place in /etc/network/interfaces for the interface you need to bring up (X = your interface number):

auto ethX
iface ethX inet manual
up ifconfig ethX up

(http://lastoctet.com/2009/04/12/bring-up-interface-in-debian-ubuntu-with/)

Latest Wireshark from Source on Debian

Установим все зависимости wireshark:
$ sudo apt-get build-dep wireshark

Установим некоторые нужные пакеты:
$ sudo apt-get install build-essential checkinstall libcurl4-openssl-dev

Распакуем архив:
$ tar xjf wireshark-*.tar.bz2

Конфигурация и установка:
$ cd wireshark-*
$ ./configure --with-ssl --enable-setcap-install --with-dumpcap-group=wireshark
$ make -j4
$ sudo checkinstall --fstrans=no
$ sudo ldconfig

Запуск без root:
$ sudo groupadd wireshark
$ sudo usermod -a -G wireshark your-user-name
$ sudo chgrp wireshark /usr/local/bin/dumpcap
$ sudo chmod 4750 /usr/local/bin/dumpcap

(https://scottlinux.com/2013/06/07/how-to-install-the-latest-wireshark-from-source-on-debian-or-ubuntu-linux/)

Информация об установленных пакетах с помощью YUM

yum list installed
yum info installed

Как отключить IPv6 в RHEL6 / CentOS 6 / etc

Правильный способ отключения IPv6 в RedHat Linux 6 / CentOS 6

/etc/sysctl.conf : net.ipv6.conf.all.disable_ipv6 = 1

/etc/sysconfig/network : NETWORKING_IPV6=no

/etc/sysconfig/network-scripts/ifcfg-eth0 : IPV6INIT=”no”

disable ip6tables – chkconfig –level 345 ip6tables off

reboot

(http://blog.acsystem.sk/linux/rhel-6-centos-6-disabling-ipv6-in-system)

Serial port to network proxy.

http://ser2net.sourceforge.net/

ser2net предоставляет возможность подключения из локальной сети к последовательному порту.

Пример из конфигурационного файла ser2net.conf

...
2100:telnet:600:/dev/cuau0:9600 NONE 1STOPBIT 8DATABITS -XONXOFF LOCAL -RTSCTS
2200:telnet:600:/dev/cuau2:9600 NONE 1STOPBIT 8DATABITS -XONXOFF LOCAL -RTSCTS
2300:telnet:600:/dev/cuau3:9600 NONE 1STOPBIT 8DATABITS -XONXOFF LOCAL -RTSCTS
2400:telnet:600:/dev/cuau4:9600 NONE 1STOPBIT 8DATABITS -XONXOFF LOCAL -RTSCTS
2500:telnet:600:/dev/cuau5:9600 NONE 1STOPBIT 8DATABITS -XONXOFF LOCAL -RTSCTS
...