Перейти до основного вмісту

Публікації

Встановлення мовного пакету інтерфейсу LibreOffice

Після встановлення LibreOffice в ElementaryOS за допомогою sudo apt install libreofice відсутній мовний інтерфейс. Для встановлення потрібно вказати sudo apt install libreoffice-l10n-uk Пораду знайшов тут https://www.linux.org/threads/how-to-change-language-libre-office-solved.38651/ А spell checking встановив за допомогою sudo apt-get install aspell-uk Пораду знайшов тут https://askubuntu.com/questions/72099/how-to-install-a-libreoffice-language-tools-spelling-check-thesaurus

Відновлення контейнера LCX на іншій Proxmox VE

Для відновлення  контейнера на інший сервер Proxmox VE використовувся клієнт, бо GUI дозволяє робити restore з сховища dump. Але якщо копіювати за допомогою scp у сховище де просто багато вільного місця, то краще робити через клієнт. Для відновлення контейнерів використовується не qmrestore (для відновлення VM), а команда pct (для відновлення LCX). Синтаксис команди pct тут https://pve.proxmox.com/pve-docs/pct.1.html Перелік наявних сховищ (storage) у /etc/pve/storage.cfg   У результаті команда відновлення виглядає так pct restore 200 vzdump-lxc-100-2023_03_08-02_00_02.tar.zst --storage ssdStore Файл vzdump-lxc-100-2023_03_08-02_00_02.tar.zst був створений у GUI через Datacenter->Backup

S.M.A.R.T в Proxmox VE на DELL не відображає інформацію

На DELL R710 з контролером Perc 6, при намаганні в GUI в Proxmox VE отримати S.M.A.R.T інформацію по ди скам, повідомляє помилку і не відображає жодної інформації. Підказка є тут https://pve.proxmox.com/wiki/Raid_controller#Dell Тобто команда має бути не просто smartctl /dev/sda бо контролер megaraid, то такий рядок smartctl -a -d megaraid,1 /dev/sda Для DELL Perc  пропонується рішення https://forum.proxmox.com/threads/disk-smart-status-no-longer-working.82748/page-2 створити скрипт   #!/bin/bash SMARTCTL=/usr/sbin/smartctl.orig OPTIONS=("$@") # build up map char_index=({a..c}) declare -A num_map for((i=0; i < ${#char_index[*]}; ++i)); do num_map[${char_index[i]}]=$i done for((i=1; i<$#; ++i)); do device_letter="${OPTIONS[i]#/dev/sd}" # only proceed if the given device ends with [a-c] if [[ ! -z "${num_map[$device_letter]:-}" ]]; then mega_device="-d megaraid,${num_map[$device_letter]}" # add the "

Nginx як reverse proxy для Apache

Коли потрібно, щоб частина вебсервісів працювала на nginx, а частина на apache, можна налаштувати nginx, як проксі, котрий прийматиме запрос та перемикати потоки. Тобто деякі вебсервіси можуть працювати через nginx, тому що він швидший, а частина через apache. Причому для HTTPS з використанням сертифікатів, отриманих через certbot, можна вказати порти 443 та 8443 відповідно, а шлях на сертифікат та ключі треба вказати у налаштуваннях як nginx так і apache. Головні налаштування, наприклад для nginx у /etc/nginx/sites-available/domain server { server_name domain.ua; listen 80; if ($host = domain.ua) {      return 301 https://$host$request_uri; } # managed by Certbot } server {      server_name domain.ua;      listen 443 ssl http2;      ssl_certificate /etc/letsencrypt/live/domain.ua/fullchain.pem; # managed by Certbot      ssl_certificate_key /etc/letsencrypt/live/domain.ua/privkey.pem; # managed by Certbot location / {      proxy_pass htt

Клавіши перемикання розкладки в Pop!_OS

Працює такий варіант sudo nano /etc/default/keyboard then changing the value of XKBOPTIONS to XKBOPTIONS="grp:alt_shift_toggle" Пораду знайшов у https://github.com/pop-os/pop/issues/1377

Копіювання файлів на Cisco ASA через scp

Для швикого копіювання конфігурації чи файлів на Cisco ASA можна використати scp. Потрібно 1. Enable SCP on the ASA To use the SCP method, you must first enable it on the firewall: hostname(config)# ssh scopy enable 2. Copying files to the ASA From a Unix/Linux host with OpenSSH or Tectia SSH installed: 1. Enter the following command: scp –v <filename> username@asa_address Example: scp –v asa803-19-k8.bin cisco@x.x.x.x Тут є і способи копіювання чере TFTP, FTP,HTTP, SMB, тощо https://community.cisco.com/t5/security-knowledge-base/asa-how-to-download-images-using-tftp-ftp-http-https-and-scp/tac-p/3109770 Або інший варіант On your linux system, to copy a file to the ASA scp filename myNewUusername@IP.Address.Of.ASA:filename On your linux system, to copy a file from the ASA scp myNewUusername@IP.Address.Of.ASA:filename . Please note – there is a colon ( : ) between the ip address/host name of the asa and the file name!! Пораду знайшов у https://www.seei.biz/using-scp-to-copy-files-

Проблеми налаштування Remote Desktop Server на Windows Server 2019

Для Windows Server 2019, під час звичної активації Remote Desktop Server треба звернути увагу, що для варіанта без Active Directory, тобто Workgroup, потрібно обирати варіант "Per-Device CAL – is the permanent license type assigned to a computer (device) that connects to the RDS server" Але після звичної активації чомусь локальний сервер лійензій не видає ліцензії і RDS пише, що лишився обмежений час користування. Треба внести два додаткових параметри You can specify the name of the RDS licensing server using the Local Group Policy Editor – gpedit.msc). The RD licensing settings are located under the following GPO section: Computer Configuration -> Policies -> Admin Templates -> Windows Components -> Remote Desktop Services -> Remote Desktop Session Host -> Licensing. There are two Remote Desktop settings that we need to configure: Use the specified Remote Desktop license servers – the address of the License Server is set; Set the Remote Desktop licensing mo