Update Bitrix24 on the Remote Desktop

Check the running Bitrix24 on the tray

Click the right mouse button on the running Bitrix24 icon in the tray:

Open tree dots and click on “About” and Check for Updates:

if the installed version is the latest then the program exposes this:

in otherwise case, it proposes to download the new version.

Before installation log off all users on the server and Exit in the Bitrix24 of your running session on the server

After installation recheck the current version within “About”

install Zabbix agent on Centos 8

get one of the Zabbix agent version

~]# wget https://repo.zabbix.com/zabbix/5.0/rhel/8/x86_64/zabbix-release-5.0-1.el8.noarch.rpm

add Zabbix repository to be able to install

~]# rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/8/x86_64/zabbix-release-5.0-1.el8.noarch.rpm

Retrieving https://repo.zabbix.com/zabbix/5.0/rhel/8/x86_64/zabbix-release-5.0-1.el8.noarch.rpm
warning: /var/tmp/rpm-tmp.Ankajf: Header V4 RSA/SHA512 Signature, key ID a14fe591: NOKEY
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
Updating / installing...
   1:zabbix-release-5.0-1.el8         ################################# [ 50%]
Cleaning up / removing...
   2:zabbix-release-5.0-1.el5         ################################# [100%]

~]# dnf clean all

install the Zabbix agent package

~]# dnf install zabbix-agent

start the Zabbix agent service and start it in boot

~]# systemctl enable --now zabbix-agent

Created symlink /etc/systemd/system/multi-user.target.wants/zabbix-agent.service → /usr/lib/systemd/system/zabbix-agent.service.
[root@cabinet ~]# systemctl status zabbix-agent
● zabbix-agent.service - Zabbix Agent
   Loaded: loaded (/usr/lib/systemd/system/zabbix-agent.service; enabled; vendor preset: disabled)
   Active: active (running) since Sun 2022-07-24 10:54:58 EEST; 19s ago
  Process: 2920207 ExecStart=/usr/sbin/zabbix_agentd -c $CONFFILE (code=exited, status=0/SUCCESS)
 Main PID: 2920209 (zabbix_agentd)
    Tasks: 6 (limit: 49468)
   Memory: 3.8M

install net-tool to run the netstat

~]# yum install net-tools

check listening ports

~]# netstat -nlptu
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
...
tcp        0      0 10.10.10.102:1500       0.0.0.0:*               LISTEN      ...

check firewall state:

~]# firewall-cmd --state
not running

if it’s running then stop and disable the firewall
! this option makes sense due to using the target host behind the other firewall or gateway, otherwise to tune the firewall in the proper way

~]# systemctl stop firewalld
~]# systemctl disable firewalld


if it’s not running then check access to port 10050 from another host:

~ # telnet 10.10.10.102 10050
Trying 10.10.10.102...
telnet: Unable to connect to remote host: No route to host

if it’s blocked then check iptables on the target host:

~]# iptables -S
...
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
...

add the open 10050 port rule to the iptables by command

 ~]# iptables -I INPUT 5 -p tcp -m tcp --dport 10050 -j ACCEPT

check the rule again

~]# iptables -S | grep 10050
-A INPUT -p tcp -m tcp --dport 10050 -j ACCEPT

and check the access from another host by telnet

~ # telnet 10.10.10.102 10050
Trying 10.10.10.102...
Connected to 10.10.10.102.
Escape character is '^]'.
Connection closed by foreign host.

return to the target host and save current iptables settings to backup iptables file and to the actual iptables config file (/etc/sysconfig/iptables)

# save actual working settings to backup file
~]# iptables-save > iptables_rules_20220724

# replace the actual iptables config file with actual working settings
~]# cp iptables_rules_20220724 /etc/sysconfig/iptables

# check expected record
~]# cat /etc/sysconfig/iptables | grep 10050
-A INPUT -p tcp -m tcp --dport 10050 -j ACCEPT

# or the rule could be added inside the /etc/sysconfig/iptables
# -A INPUT -p tcp -m tcp --dport 10050 -j ACCEPT

References links:
https://serverspace.io/support/help/install-configure-zabbix-agent-centos-8/
https://linuxize.com/post/how-to-configure-and-manage-firewall-on-centos-8/
https://linuxhint.com/disable-firewall-centos-8/
https://forums.centos.org/viewtopic.php?t=9059
https://upcloud.com/resources/tutorials/configure-iptables-centos


to Expose created resources in AWS

Hey, someone had the issue with observing resources existing in the account after launching and wished to enclose them to decrease expenses for example, so I think to able to propose this way to get data about running, stopping, and have been created resources:
in AWS console

Then select Tad Editor -> All regions (in Regions) -> All supported resources types (in Resources types) and finally

Hit the Search resources button

The search result will be in the table below with untagged and target resources

To clarify the search it could be filtered by Type

The detected resource could be terminated or deleted for cost savings

Fix a “WARNING/ERROR in budgets, maximum exceeded for initial” in Angular

The warning or an error can appear and be related to the maximum budgets parameter:

Error: bundle initial exceeded maximum budget. Budget 1.00 MB was not met by 22.68 kB with a total of 1.02 MB.

Should be tuned budgets module in the angular.json file of the Angular project

"budgets": [
                 {
                   "type": "initial",
                   "maximumWarning": "500kb",
                   "maximumError": "1mb"
                 },
                 {
                   "type": "anyComponentStyle",
                   "maximumWarning": "6kb",
                   "maximumError": "10kb"
                 }
               ]
"budgets": [
                 {
                   "type": "initial",
                   "maximumWarning": "2mb",
                   "maximumError": "5mb"
                 },
                 {
                   "type": "anyComponentStyle",
                   "maximumWarning": "6kb",
                   "maximumError": "10kb"
                 }
               ]

Set a range of ports in iptables

how to list a range of ports in iptables config file you can read there?

it is pretty easy to get how to:

was a simple task to a forward range of ports for File Zilla FTP Server on a virtual server that is running in Proxmox

to avoid crucial listing of full ports volume like this:

-A INPUT -p tcp -m tcp — dport 20 -j ACCEPT-A INPUT -p tcp -m tcp — dport 21 -j ACCEPT-A FORWARD -d 192.168.1.101/32 -i enp4s0 -p tcp -m tcp — dport 20 -j ACCEPT-A FORWARD -d 192.168.1.101/32 -i enp4s0 -p tcp -m tcp — dport 21 -j ACCEPT-A PREROUTING -i enp4s0 -p tcp -m tcp — dport 20:21 -j DNAT — to-destination 192.168.1.101:20-A PREROUTING -i enp4s0 -p tcp -m tcp — dport 20:21 -j DNAT — to-destination 192.168.1.101:21

we can use listing in the range:

-A INPUT -p tcp -m tcp — dport 20:21 -j ACCEPT-A INPUT -p tcp -m tcp — dport 45000:46000 -j ACCEPT-A FORWARD -d 192.168.1.101/32 -i enp4s0 -p tcp -m tcp — dport 20:21 -j ACCEPT-A FORWARD -d 192.168.1.101/32 -i enp4s0 -p tcp -m tcp — dport 45000:46000 -j ACCEPT-A PREROUTING -i enp4s0 -p tcp -m tcp — dport 20:21 -j DNAT — to-destination 192.168.1.101:20–21-A PREROUTING -i enp4s0 -p tcp -m tcp — dport 45000:46000 -j DNAT — to-destination 192.168.1.101:45000–46000

then it could be applied and saved as rules:

~ # iptables-restore < iptables_rules_20200710_ftp_filezilla~ # iptables-save > iptables_rules_20200710_ftp_filezilla

exactly for File Zilla FTP Server, it should be set the same range of ports for passive mode

To check a Linux kernel

Quick tutor on how to get data about Linux kernel

# uname -r
3.10.0–1062.el7.x86_64

# cat /proc/version
Linux version 3.10.0–1062.el7.x86_64 (mockbuild@x86–040.build.eng.bos.redhat.com) (gcc version 4.8.5 20150623 (Red Hat 4.8.5–39) (GCC) ) #1 SMP Thu Jul 18 20:25:13 UTC 2019

# hostnamectl | grep Kernel
Kernel: Linux 3.10.0–1062.el7.x86_64

add a user to the Docker group

if you got an error like this:

$ docker run hello-world
docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.39/containers/create: dial unix /var/run/docker.sock: connect: permission denied.

add a user to the Docker group then

$ sudo usermod -a -G docker $USER
$ mkdir “$HOME”/.docker
$ sudo chmod g+rwx “$HOME/.docker” -R
$ sudo chmod 666 /var/run/docker.sock
Translate »