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

Материал из SmartPlayer
(Обновление для соответствия новой версии исходной страницы.)
(Обновление для соответствия новой версии исходной страницы.)
 
(не показано 15 промежуточных версий 2 участников)
Строка 1: Строка 1:
<languages/>
<languages/>
<div class="mw-translate-fuzzy">
== Minimum Requirements ==  
== Minimum requirements ==
* OS: Ubuntu Desktop 16.04  
* OS: Linux 16.04
* Processor: Intel Celeron 1.6 GHz (J3160). <br>  
* Processor: Intel Celeron 1.6 GHz (J3160). <br>
* RAM: 2 GB. <br>  
* RAM: 2 GB. <br>
* Graphics card: integrated Intel HD Graphics 400. <br>  
* Graphics: Integrated Intel HD Graphics 400. <br>
* Disk space: 35 GB.
* Disk space: 35 GB.
</div>
== 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. ...)
<div class="mw-translate-fuzzy">
* Processor: Intel Nuc i3 or more powerful devices. <br>  
== Recommended Requirements ==
* RAM: 4 GB. <br>  
* OS: Linux 18.04
* Graphics card: external graphics card. <br>  
* Processor: Intel Nuc i3 or better <br>
* RAM: 4 GB. <br>
* Video card: external video card. <br>
* Disk space: 100 GB.
* Disk space: 100 GB.
</div>
== 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.''  
<div class="mw-translate-fuzzy">
== Installation ==
* Install Linux ubuntu 18.04. Download from the official site [http://releases.ubuntu.com/bionic/ubuntu-18.04.3-desktop-amd64.iso ubuntu 18.04]
* Before installing the application, you need to change the operating system settings through the graphical interface. [https://drive.google.com/file/d/1LVVqamuGO3O8UH0T5CKtaxdcl-Jlkm54/view?usp=sharing Linux instruction]
* Installing SmartPlayer client:
'' '$ sudo dpkg -i SmartPlayer_1.50.0_x64.deb' ''
* Launching SmartPlayer client:
'' '$ /usr/bin/SmartPlayer/SmartPlayer.sh' ''
</div>
 
Первоначально устанавливаем операционную систему:
# Установить Ubuntu 22.04.04 LTS [https://ubuntu.com/download/desktop Скачать с официального сайта]
# Настройка операционной системы:
## Перед установкой приложения необходимо изменить настройки операционной системы через графический интерфейс. [https://drive.google.com/file/d/1LVVqamuGO3O8UH0T5CKtaxdcl-Jlkm54/view?usp=sharing Linux инструкция]
## Отключение заставки и спящего режима - [[Linux/LockScreen|Инструкция]]
## Установка проприетарных драйверов на видеокарты - [[Linux/VideoDrivers|Инструкция]]
## Отключение системных настроек оповещения (нотификации) - [[Linux/Notify|Инструкция]]
# Установить приложение через терминал '''$ sudo dpkg -i SmartPlayer_*.*.*_api.smartplayer.org_x64.deb'''
# Запуск приложения
## Запустить приложение можно через список приложений
## Запустить приложение через терминал '''$ /usr/bin/SmartPlayer/SmartPlayer.sh'''


Приложение запуститься в режиме киоска, чтобы из него выйти воспользуйтесь комбинацией клавиш Ctrl+F12
=== 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 - [[Linux/LockScreen|Инструкция]]
## Install proprietary drivers for graphics cards - [[Linux/VideoDrivers|Инструкция]]
## Disable system notification settings - [[Linux/Notify|Инструкция]]
# Install the application via terminal '''$ sudo dpkg -i SmartPlayer_..*_api.smartplayer.org_x64.deb'''
# Launch the application
## You can launch the application from the application list
## Launch the application via terminal '''$ /usr/bin/SmartPlayer/SmartPlayer.sh'''


== Удаление приложения  ==
== Exiting Kiosk Mode ==  
Выполнить команду через терминал '''$ sudo dpkg --purge SmartPlayer'''
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:
# 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.
# 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]]


<div class="mw-translate-fuzzy">
== Troubleshooting ==
== Running on weak hardware ==
=== The display does not turn off when the display timeout is set ===  
When working on computers with weak characteristics, video freezes and "slowdowns" are possible, in order to achieve better performance you need to:
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:
# Upload the video to the video editor built into your personal account, change the video bitrate in the editor to an available one (depending on the required quality), process it and save it, use the processed video in the broadcast.
# Run the command sudo nano /etc/gdm3/custom.conf
# In your personal account, go to the device settings and '' '' enable '' hardware acceleration. Settings - Hardware acceleration - register the parameter: file-caching = 3000 - save.
# Remove the comment from the line #WaylandEnable = false (the text will be highlighted in white).
[[File: 21d2054fca88d7ae0fe8e8baada86184.png | 300px]]
# Save (ctrl+O)
</div>
# Run the command sudo service gdm3 restart
[[File:Пример.png|300px|Example]]<br>


== Решение проблем ==
=== Window Interface Switching ===  
=== '''Дисплей не отключается при установленном таймере отключения дисплея''' ===
When the user launches the application on Ubuntu, there is no response.
Для решения задачи необходимо вначале запустить команду в командной строке устройства: '''xset dpms force off''' . Если дисплей выключился, значит заданы неверные настройки в личном кабинете SmartPlayer. Если дисплей не выключился и появилось в командной строке сообщение '''server does not have extension for dpms option''', то необходимо произвести настройки. Для решения требуется отключить Wayland в Ubuntu:
To solve this issue, go to the "About" section and find the line "Windowing system."  
# Выполняем команду sudo nano /etc/gdm3/custom.conf
[[File:Смена_интерфейса.jpg|thumb|center| Location of the "Windowing system" setting.|300px]]  
# Убрать комментарий у записи #WaylandEnable = false. (надпись подсветится белым)
In this line, change the option from "Wayland" to "X11."
# Сохранить (ctrl+O)
==== Alternative Solution ====  
# Выполняем команду sudo service gdm3 restart
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.
[[Файл:Пример.png|300px|Пример]]<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.
=== '''Переключение оконного интерфейса''' ===
У пользователя при запуске приложения на Ubuntu не происходит никакой реакции на приложении.
Для решения данной проблемы необходимо необходимо зайти в раздел "О системе" и перейти к строке "Оконные интерфейс".
[[File:Смена_интерфейса.jpg|thumb|center| Расположение настройки "Оконный интерфейс".|300px]]
В данной строке меняем вариант "Wayland", на вариант "X11".
==== '''Альтернативное решение ''' ====
Существует возможность переключиться с Wayland на систему отображения X11 с экрана блокировки.
Данный метод подходит для тех, у кого нет доступа к sudo для изменения '''''"/etc/gdm3/daemon.conf"''''' или '''''"/etc/gdm3/custom.conf"''''', или если пользователю необходимо временно переключиться с Wayland на систему отображения X11.<br>
Для начала пользователю  нужно выйти из системы, запустив приведенный ниже код, или использовать традиционный метод, чтобы выйти из системы.<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]]
'''Смена оконного интерфейса при помощи терминала'''
* Запустите терминал
* Введите команду ''sudo gedit /etc/gdm3/custom.conf''
* Чтобы отключить режим "Wayland" найдите строчку ''#WaylandEnable=false‍'' , удалите знак "#" и сохраните изменения
* Перезапустите "GDM" используя команду s''udo systemctl restart gdm3''


=='''Аппаратные ограничения платформы'''==
'''Switching the Windowing System via Terminal'''
На устройствах под управлением Linux существуют следующие аппаратные ограничения:
* Open the terminal.
# Наличие включенного антивируса или брандмауэра может повлиять на работу приложения SmartPlayer.
* Enter the command ''sudo gedit /etc/gdm3/custom.conf''.
# Просматривая минимальные системные требования для устройства, пользователь должен понимать что они указаны для корректной работы само приложения SmartPlayer, без учета остальных программ и процессов которые также расходуют ресурсы устройства. Поэтому рекомендуется иметь конфигурацию устройства. которое имеет более производительные компоненты, чем указаны в минимальных системных требованиях. Иначе стабильная работа приложения SmartPlayer и его компонентов не гарантируется.
* 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:
# Having an active antivirus or firewall can affect the SmartPlayer application's performance.
# 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.

Текущая версия от 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.