среда, 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