среда, 29 сентября 2021 г.

не устанавливается EthOverUsb АТОЛ

# add-apt-repository ppa:rock-core/qt4
# apt install libqt4-xml libqt4-network -y
# mkdir -p /etc/ATOL/EoU

для 64 битной системы:
# ln -sf /lib/x86_64-linux-gnu/libudev.so.1 /lib/x86_64-linux-gnu/libudev.so.0

для 32 битной системы:
# ln -sf /lib/i386-linux-gnu/libudev.so.1 /lib/i386-linux-gnu/libudev.so.0

# mcedit /etc/systemd/system/eou.service

#----
[Unit]

Description=запуск сервиса EthernetOverUsb

[Service]
Type=forking
User=root
ExecStart=/home/user/Archive/EoU/EthOverUsb.sh
ExecStop=/home/user/Archive/EoU/EthOverUsb.sh -t

Restart=on-failure
RestartSec=5s

[Install]
WantedBy=multi-user.target
#----

# systemctl daemon-reload
# systemctl enable eou.service
# systemctl start eou.service
# systemctl status eou.service

lubuntu 20.04 sddm autologin

# mcedit /etc/sddm.conf

[Autologin]
Session=Lubuntu
User=user

не стартует dnsmasq ubuntu 18.04, 20.04 b т.д.

необходимо отключить systemd-resolved

# systemctl disable systemd-resolved
# rm /etc/resolv.conf
# mcedit /etc/resolv.conf

nameserver 8.8.8.8

Отключение ipv6 ubuntu 20.04,18.04 и т.д.

1 способ:

# mcedit /etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1"

# update-grub

2 способ:
# mcedit /etc/sysctl.conf

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

# sysctl -p

x11vnc lubuntu 20.04

# sudo su
# x11vnc -storepasswd "mypassword" /etc/x11vnc.pass
# chmod ugo+r /etc/x11vnc.pass
# mcedit /lib/systemd/system/x11vnc.service

[Unit]
Description=Start x11vnc at startup.
After=multi-user.target

[Service]
Type=simple
ExecStartPre=/usr/bin/bash -c "/usr/bin/systemctl set-environment SDDMXAUTH=$(/usr/bin/find /var/run/sddm/ -type f)"
ExecStart=/usr/bin/x11vnc -display :0 -auth ${SDDMXAUTH} -forever -loop -noxdamage -repeat -rfbauth /etc/x11vnc.pass -rfbport 5900 -shared

[Install]
WantedBy=multi-user.target

# systemctl daemon-reload
# systemctl enable x11vnc.service
# systemctl start x11vnc.service

вторник, 4 февраля 2020 г.

Удаление netplan ubuntu 18.04

# mcedit /etc/default/grub
GRUB_CMDLINE_LINUX="netcfg/do_not_use_netplan=true"

# update-grub
# apt update && apt install net-tools ifupdown -y

# mcedit /etc/network/interfaces

# для примера

auto lo
iface lo inet loopback

auto ens3
iface ens3 inet dhcp

auto eth0
iface eth0 inet static
address 192.168.0.1
netmask 255.255.255.0
gateway 192.168.0.254
dns-nameservers 192.168.0.254 8.8.8.8


# rm -rf /etc/netplan/*.yaml
# reboot

Включение rc.local ubuntu 18.04

# mcedit /etc/systemd/system/rc-local.service

[Unit]
Description=/etc/rc.local Compatibility
ConditionPathExists=/etc/rc.local

[Service]
Type=forking
ExecStart=/etc/rc.local start
TimeoutSec=0
StandardOutput=tty
RemainAfterExit=yes
SysVStartPriority=99

[Install]
WantedBy=multi-user.target

# mcedit /etc/rc.local

#!/bin/sh -e

exit 0

# chmod +x /etc/rc.local
# systemctl enable rc-local
# systemctl start rc-local.service

не стартует dnsmasq ubuntu 18.04

Failed to start dnsmasq - A lightweight DHCP and caching DNS server.

# systemctl disable systemd-resolved
# rm /etc/resolv.conf
# mcedit /etc/resolv.conf

nameserver 8.8.8.8

Отключение ipv6 ubuntu 18.04

# mcedit /etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1"

# update-grub

понедельник, 27 февраля 2017 г.

proxmox backup to lvm


vgs
lvs
lvcreate -V 150G --thin -n restore pve/data
mkfs.ext4 /dev/pve/restore
mkdir /mnt/restore
# temporary mount
mount /dev/pve/restore /mnt/restore
# scp from other node the backupfile to /mnt/restore/
qmrestore /mnt/restore/vz...