
1C Server on Linux, step 1: system preparation — packages, locale, hostname, firewall
🌐 Machine-translated from Russian. Show original
In this part:
Which distribution to choose#
- Most often, the 1C server is installed on Ubuntu Server LTS, Debian, and in the public sector and companies with domestic software requirements — on Astra Linux and RED OS.
- The platform installer is the same for different distributions, with different dependency package names.
- Below are the commands for Ubuntu/Debian. For RED OS and other RPM distributions, use
dnfand similar packages.
Updates and basic packages#
sudo apt update && sudo apt -y full-upgrade
sudo apt install -y fontconfig libfreetype6 libglib2.0-0 unixodbc locales ttf-mscorefonts-installer
- Fonts
ttf-mscorefonts-installerneeded for the correct appearance of printed forms and reports generated on the server. - If the 1C installer reports missing libraries at the next step, deliver them via apt, and it will provide package names.
Locale ru_RU. UTF-8#
The Russian locale is needed by both the 1C server and PostgreSQL. Without it, the database will be created with incorrect sorting or none at all.
sudo locale-gen ru_RU.UTF-8
sudo update-locale LANG=ru_RU.UTF-8
locale -a | grep ru_RU
Log in to have the locale applied.
Hostname and /etc/hosts#
1C is very sensitive to names. The server must know its name and resolve it in the network IP, not in 127.0.1.1:
sudo hostnamectl set-hostname srv1c
File /etc/hosts:
127.0.0.1 localhost
192.168.1.10 srv1c
Remove the 127.0.1.1 srv1cstring if it exists: because of it, the cluster may communicate a local address to clients, and the connection breaks.
On client computers, the srv1c name must also be resolved — via DNS or the hosts file.
Time#
sudo timedatectl set-timezone Asia/Almaty
timedatectl status # NTP synchronized: yes
The correct time is important for scheduled tasks, exchanges, and licenses. Choose your time zone.
Firewall#
Open 1C ports only for the local network:
sudo ufw allow from 192.168.1.0/24 to any port 1540,1541 proto tcp
sudo ufw allow from 192.168.1.0/24 to any port 1560:1591 proto tcp
sudo ufw allow from 192.168.1.0/24 to any port 1545 proto tcp # RAS, если нужен
sudo ufw allow OpenSSH
sudo ufw enable
Do not open PostgreSQL (5432) externally if the DBMS is on the same server.
Discs#
- PostgreSQL data catalog — on a fast SSD/NVMe. It is convenient to mount a separate volume, for example in
/var/lib/postgresql. - The file system is ext4 or XFS. For DBMS disks, the
noatimemounting option is useful.
Checklist#
- System updated, dependencies set
- Locale ru_RU. UTF-8 generated
- Hostname is specified, /etc/hosts without 127.0.1.1 for the server name
- Time zone and NTP
- Firewall: 1540, 1541, 1560–1591 only from the local network
Comments · 0
No comments yet.Sign in to comment, rate and see all comments.