Linux/en: различия между версиями

Материал из SmartPlayer
(Новая страница: «=== Installation Steps === First, install the operating system: # Install Ubuntu 22.04.04 LTS [https://releases.ubuntu.com/jammy/ Download from the official website] # Operating system setup: ## Before installing the application, you need to change the operating system settings via the graphical interface. [https://drive.google.com/file/d/1LVVqamuGO3O8UH0T5CKtaxdcl-Jlkm54/view?usp=sharing Linux instruction] ## Disable the screensaver and sleep mode - Linu...»)
(Обновление для соответствия новой версии исходной страницы.)
 
(не показаны 3 промежуточные версии 1 участника)
Строка 1: Строка 1:
<languages/>
== Minimum Requirements ==  
== Minimum Requirements ==  
* OS: Ubuntu Desktop 16.04  
* OS: Ubuntu Desktop 16.04  
Строка 13: Строка 14:
== Installation ==  
== Installation ==  
''The SmartPlayer company has experience launching the client application on Ubuntu 16.04 (x32/x64), Ubuntu 18.04 (x64), and Ubuntu 20.04 (skipped by SmartPlayer, and the client application was not launched). Here, we recommend the latest version, Ubuntu 22.04.04 LTS, for stable operation. If the project uses outdated operating systems mentioned above, we can create a custom distribution package, request it from the project manager.''  
''The SmartPlayer company has experience launching the client application on Ubuntu 16.04 (x32/x64), Ubuntu 18.04 (x64), and Ubuntu 20.04 (skipped by SmartPlayer, and the client application was not launched). Here, we recommend the latest version, Ubuntu 22.04.04 LTS, for stable operation. If the project uses outdated operating systems mentioned above, we can create a custom distribution package, request it from the project manager.''  
=== Installation Steps ===  
=== Installation Steps ===  
First, install the operating system:
First, install the operating system:
Строка 25: Строка 27:
## You can launch the application from the application list
## You can launch the application from the application list
## Launch the application via terminal '''$ /usr/bin/SmartPlayer/SmartPlayer.sh'''
## Launch the application via terminal '''$ /usr/bin/SmartPlayer/SmartPlayer.sh'''
<div lang="ru" dir="ltr" class="mw-content-ltr">
 
== Выход из режима киоска ==
== Exiting Kiosk Mode ==  
Приложение запуститься в режиме киоска, чтобы из него выйти воспользуйтесь комбинацией клавиш Ctrl+F12
The application will start in kiosk mode. To exit, use the keyboard shortcut Ctrl+F12.
== Удаление приложения  ==
== Removing the Application ==  
Выполнить команду через терминал '''$ sudo dpkg --purge SmartPlayer'''
Run the following command in the terminal: '''$ sudo dpkg --purge SmartPlayer'''
== Запуск на слабом железе ==
== Running on Low-End Hardware ==  
При работе на компьютерах со слабыми характеристиками возможны зависания и "подтормаживания" видео, для того что бы добиться большей производительности необходимо:
When running on computers with low specifications, video freezing and lagging may occur. To achieve better performance, you need to:
#Загрузить видео во встроенный в личном кабинете видеоредактор, изменить в редакторе битрейд видео на доступный (в зависимости от требуемого качества), обработать его и сохранить, в трансляции использовать обработанное видео.
# Upload the video to the built-in video editor in your personal account, adjust the video bitrate in the editor to an appropriate level (depending on the required quality), process it, and save it. Use the processed video in the broadcast.
#В личном кабинете зайти в настройки устройства и '''включить''' аппаратное ускорение. Настройки - Аппаратное ускорение - прописать параметр :file-caching=3000- сохранить.
# In the personal account, go to the device settings and enable hardware acceleration. Settings - Hardware acceleration - enter the parameter
:file-caching=3000 and save.
[[File:21d2054fca88d7ae0fe8e8baada86184.png|300px]]
[[File:21d2054fca88d7ae0fe8e8baada86184.png|300px]]
== Решение проблем ==  
 
=== '''Дисплей не отключается при установленном таймере отключения дисплея''' ===
== Troubleshooting ==  
Для решения задачи необходимо вначале запустить команду в командной строке устройства: '''xset dpms force off''' . Если дисплей выключился, значит заданы неверные настройки в личном кабинете SmartPlayer. Если дисплей не выключился и появилось в командной строке сообщение '''server does not have extension for dpms option''', то необходимо произвести настройки. Для решения требуется отключить Wayland в Ubuntu:
=== The display does not turn off when the display timeout is set ===  
# Выполняем команду sudo nano /etc/gdm3/custom.conf
To resolve the issue, first run the following command in the device's command line: '''xset dpms force off'''. If the display turns off, incorrect settings are configured in the SmartPlayer personal account. If the display does not turn off and the message '''server does not have extension for dpms option''' appears in the command line, you need to adjust the settings. The solution requires disabling Wayland in Ubuntu:
# Убрать комментарий у записи #WaylandEnable = false. (надпись подсветится белым)
# Run the command sudo nano /etc/gdm3/custom.conf
# Сохранить (ctrl+O)
# Remove the comment from the line #WaylandEnable = false (the text will be highlighted in white).
# Выполняем команду sudo service gdm3 restart
# Save (ctrl+O)
[[Файл:Пример.png|300px|Пример]]<br>
# Run the command sudo service gdm3 restart
</div>
[[File:Пример.png|300px|Example]]<br>
<div lang="ru" dir="ltr" class="mw-content-ltr">
 
=== '''Переключение оконного интерфейса''' ===
=== Window Interface Switching ===  
У пользователя при запуске приложения на Ubuntu не происходит никакой реакции на приложении.  
When the user launches the application on Ubuntu, there is no response.
Для решения данной проблемы необходимо необходимо зайти в раздел "О системе" и перейти к строке "Оконные интерфейс".
To solve this issue, go to the "About" section and find the line "Windowing system."  
[[File:Смена_интерфейса.jpg|thumb|center| Расположение настройки "Оконный интерфейс".|300px]]
[[File:Смена_интерфейса.jpg|thumb|center| Location of the "Windowing system" setting.|300px]]  
В данной строке меняем вариант "Wayland", на вариант "X11".
In this line, change the option from "Wayland" to "X11."
==== '''Альтернативное решение ''' ====
==== Alternative Solution ====  
Существует возможность переключиться с Wayland на систему отображения X11 с экрана блокировки.
There is a possibility to switch from Wayland to the X11 display system from the lock screen. This method is suitable for those who do not have access to sudo to modify '''''"/etc/gdm3/daemon.conf"''''' or '''''"/etc/gdm3/custom.conf"''''', or if the user needs to temporarily switch from Wayland to the X11 display system.
Данный метод подходит для тех, у кого нет доступа к sudo для изменения '''''"/etc/gdm3/daemon.conf"''''' или '''''"/etc/gdm3/custom.conf"''''', или если пользователю необходимо временно переключиться с Wayland на систему отображения X11.<br>
First, the user needs to log out of the system by running the command below or use the traditional method to log out of the system.
Для начала пользователю  нужно выйти из системы, запустив приведенный ниже код, или использовать традиционный метод, чтобы выйти из системы.<br>
<code>$ loginctl terminate-user $(users)</code><br>
<code>$ loginctl terminate-user $(users)</code><br>
После данного действия необходимо нажать кнопку "Enter" для входа в систему. <br>
After this, press "Enter" to log back into the system.
Далее пользователь находит иконку "шестерёнка" в правом нижнем углу. Кликнув на нее пользователю откроется окно с настройками параметров.
Next, the user should find the "gear" icon in the bottom-right corner. Clicking on it will open the parameter settings window. By default, Ubuntu users work on X11, but if they somehow find themselves on Ubuntu using Wayland, change it to "Ubuntu." For Debian-based users, choose "GNOME on Xorg."
По умолчанию пользователи Ubuntu работают на X11, но если каким-то образом они находятся на Ubuntu на Wayland, тогда измените его на «Ubuntu», а пользователям на базе Debian необходимо выбрать «GNOME на Xorg».
[[File:Пак_1.png|thumb|center| Example for Ubuntu and Debian.|300px]] After that, log back into the system and go to Settings -> About to verify the changes. In the "Windowing system" section, you will find X11 for Ubuntu and Debian-based users.  
[[File:Пак_1.png|thumb|center| Пример для Ubuntu и Debian.|300px]]
[[File:Пак_2.png|thumb|center| Example for Ubuntu and Debian.|300px]]
После этого снова войдите в систему и перейдите в Настройки->О системе, чтобы проверить новые изменения. В разделе Система окон вы найдете X11 для пользователей Ubuntu и на базе Debian.
 
[[File:Пак_2.png|thumb|center| Пример для Ubuntu и Debian.|300px]]
'''Switching the Windowing System via Terminal'''
'''Смена оконного интерфейса при помощи терминала'''
* Open the terminal.
* Запустите терминал
* Enter the command ''sudo gedit /etc/gdm3/custom.conf''.
* Введите команду ''sudo gedit /etc/gdm3/custom.conf''
* To disable "Wayland" mode, find the line ''#WaylandEnable=false‍'', remove the "#" symbol, and save the changes.
* Чтобы отключить режим "Wayland" найдите строчку ''#WaylandEnable=false‍'' , удалите знак "#" и сохраните изменения
* Restart "GDM" using the command ''sudo systemctl restart gdm3''.
* Перезапустите "GDM" используя команду s''udo systemctl restart gdm3''
== Hardware Limitations of the Platform ==  
=='''Аппаратные ограничения платформы'''==
Devices running Linux have the following hardware limitations:
На устройствах под управлением Linux существуют следующие аппаратные ограничения:
# Having an active antivirus or firewall can affect the SmartPlayer application's performance.
# Наличие включенного антивируса или брандмауэра может повлиять на работу приложения SmartPlayer.
# When reviewing the minimum system requirements for the device, the user should understand that these are specified for the proper operation of the SmartPlayer application alone, without considering other programs and processes that also consume device resources. Therefore, it is recommended to have a device configuration with more powerful components than those listed in the minimum system requirements. Otherwise, stable operation of the SmartPlayer application and its components is not guaranteed.
# Просматривая минимальные системные требования для устройства, пользователь должен понимать что они указаны для корректной работы само приложения SmartPlayer, без учета остальных программ и процессов которые также расходуют ресурсы устройства. Поэтому рекомендуется иметь конфигурацию устройства. которое имеет более производительные компоненты, чем указаны в минимальных системных требованиях. Иначе стабильная работа приложения SmartPlayer и его компонентов не гарантируется.
</div>

Текущая версия от 21:12, 16 сентября 2024

Другие языки:

Minimum Requirements

  • OS: Ubuntu Desktop 16.04
  • Processor: Intel Celeron 1.6 GHz (J3160).
  • RAM: 2 GB.
  • Graphics card: integrated Intel HD Graphics 400.
  • Disk space: 35 GB.

Recommended Requirements

  • OS: Ubuntu Desktop 18.04 LTS / 22.04 LTS (support for 22.04 is only possible with the second version of the client application 2. ...)
  • Processor: Intel Nuc i3 or more powerful devices.
  • RAM: 4 GB.
  • Graphics card: external graphics card.
  • Disk space: 100 GB.

Installation

The SmartPlayer company has experience launching the client application on Ubuntu 16.04 (x32/x64), Ubuntu 18.04 (x64), and Ubuntu 20.04 (skipped by SmartPlayer, and the client application was not launched). Here, we recommend the latest version, Ubuntu 22.04.04 LTS, for stable operation. If the project uses outdated operating systems mentioned above, we can create a custom distribution package, request it from the project manager.

Installation Steps

First, install the operating system:

  1. Install Ubuntu 22.04.04 LTS Download from the official website
  2. Operating system setup:
    1. Before installing the application, you need to change the operating system settings via the graphical interface. Linux instruction
    2. Disable the screensaver and sleep mode - Инструкция
    3. Install proprietary drivers for graphics cards - Инструкция
    4. Disable system notification settings - Инструкция
  3. Install the application via terminal $ sudo dpkg -i SmartPlayer_..*_api.smartplayer.org_x64.deb
  4. Launch the application
    1. You can launch the application from the application list
    2. Launch the application via terminal $ /usr/bin/SmartPlayer/SmartPlayer.sh

Exiting Kiosk Mode

The application will start in kiosk mode. To exit, use the keyboard shortcut Ctrl+F12.

Removing the Application

Run the following command in the terminal: $ sudo dpkg --purge SmartPlayer

Running on Low-End Hardware

When running on computers with low specifications, video freezing and lagging may occur. To achieve better performance, you need to:

  1. Upload the video to the built-in video editor in your personal account, adjust the video bitrate in the editor to an appropriate level (depending on the required quality), process it, and save it. Use the processed video in the broadcast.
  2. In the personal account, go to the device settings and enable hardware acceleration. Settings - Hardware acceleration - enter the parameter
file-caching=3000 and save.

Troubleshooting

The display does not turn off when the display timeout is set

To resolve the issue, first run the following command in the device's command line: xset dpms force off. If the display turns off, incorrect settings are configured in the SmartPlayer personal account. If the display does not turn off and the message server does not have extension for dpms option appears in the command line, you need to adjust the settings. The solution requires disabling Wayland in Ubuntu:

  1. Run the command sudo nano /etc/gdm3/custom.conf
  2. Remove the comment from the line #WaylandEnable = false (the text will be highlighted in white).
  3. Save (ctrl+O)
  4. Run the command sudo service gdm3 restart

Example

Window Interface Switching

When the user launches the application on Ubuntu, there is no response. To solve this issue, go to the "About" section and find the line "Windowing system."

Location of the "Windowing system" setting.

In this line, change the option from "Wayland" to "X11."

Alternative Solution

There is a possibility to switch from Wayland to the X11 display system from the lock screen. This method is suitable for those who do not have access to sudo to modify "/etc/gdm3/daemon.conf" or "/etc/gdm3/custom.conf", or if the user needs to temporarily switch from Wayland to the X11 display system. First, the user needs to log out of the system by running the command below or use the traditional method to log out of the system. $ loginctl terminate-user $(users)
After this, press "Enter" to log back into the system. Next, the user should find the "gear" icon in the bottom-right corner. Clicking on it will open the parameter settings window. By default, Ubuntu users work on X11, but if they somehow find themselves on Ubuntu using Wayland, change it to "Ubuntu." For Debian-based users, choose "GNOME on Xorg."

Example for Ubuntu and Debian.

After that, log back into the system and go to Settings -> About to verify the changes. In the "Windowing system" section, you will find X11 for Ubuntu and Debian-based users.

Example for Ubuntu and Debian.

Switching the Windowing System via Terminal

  • Open the terminal.
  • Enter the command sudo gedit /etc/gdm3/custom.conf.
  • To disable "Wayland" mode, find the line #WaylandEnable=false‍, remove the "#" symbol, and save the changes.
  • Restart "GDM" using the command sudo systemctl restart gdm3.

Hardware Limitations of the Platform

Devices running Linux have the following hardware limitations:

  1. Having an active antivirus or firewall can affect the SmartPlayer application's performance.
  2. When reviewing the minimum system requirements for the device, the user should understand that these are specified for the proper operation of the SmartPlayer application alone, without considering other programs and processes that also consume device resources. Therefore, it is recommended to have a device configuration with more powerful components than those listed in the minimum system requirements. Otherwise, stable operation of the SmartPlayer application and its components is not guaranteed.