игрушки RetroArch
Добавлено: 16 янв 2022, 15:13
По заданию владельца тонкий клиент HP T520 разбираюсь с этой консолью стареньких игр для детей...
Форум по операционной системе GNU/Linux и свободному программному обеспечению
http://linux-ru.ru:80/
RetroArch
Ключ к детству: обзор эмулятора RetroarchRetroArch - оболочка для эмуляторов, игровых движков, видеоигр, медиаплееров, ретроконсолей и других приложений, благодаря которой можно запускать на своем ПК игры для NES, Sega MegaDrive, Super Nintendo, Sony Playstation, Sega Saturn, Nintendo64 и пр. Также с помощью RetroArch можно запускать оригинальные диски с играми (CD). Приложение обладает такими расширенными возможностями, как шейдеры, netplay, перемотка, время отклика следующего кадра, машинный перевод, возможности доступа для слабовидящих и многое другое.
Для каждой консоли автоматически загружается ядро-эмулятор, разработанный сторонними разработчиками. В программе содержится огромный выбор эмуляторов для всех известных консолей и даже некоторых устройств и операционных систем (например, PalmOS). Для каждой консоли доступно несколько эмуляторов, что позволяет выбирать наиболее оптимальный.
Как пользоваться RetroArch — эмулятором Dendy, Sega Mega Drive и других старых консолей23 февраля 2021
Специально даты публикаций посмотрел - в 2020-2021 годах в это ещё играют и об этом пишут!20 марта 2020
Пришлось последовательно решать целый ряд задач:
Код: Выделить всё
root@t520:/# inxi -Dxxx
Drives: Local Storage: total: 7.46 GiB used: 3.11 GiB (41.7%)
ID-1: /dev/sda vendor: SanDisk model: SDSA6MM-008G-1006 size: 7.46 GiB speed: 6.0 Gb/s serial: 144367407406
rev: 006 temp: 44 C scheme: GPT
3. инсталлировать выбранный Linux (скорее всего без Xorg ... но уж точно без навороченных DE) ... на эту войну с клиентом HP убил 2 дня :СРЕДА, 15 ИЮЛЯ 2020 Г.
Всю дальнейшую работу после этого пункта делаю по SSH подключению:
Код: Выделить всё
olej@R420:~$ ssh -l olej 192.168.1.133
olej@192.168.1.133's password:
Welcome to Ubuntu 20.04.3 LTS (GNU/Linux 5.4.0-94-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Вс 16 янв 2022 12:01:13 UTC
System load: 0.0 Processes: 127
Usage of /: 45.8% of 5.80GB Users logged in: 1
Memory usage: 4% IPv4 address for enp1s0: 192.168.1.133
Swap usage: 0%
* Super-optimized for small spaces - read how we shrank the memory
footprint of MicroK8s to make it the smallest full K8s around.
https://ubuntu.com/blog/microk8s-memory-optimisation
0 updates can be applied immediately.
Last login: Sun Jan 16 11:30:20 2022 from 192.168.1.14
Код: Выделить всё
olej@t520:~$ aptitude search retroarc
p retroarch - Simple frontend for the libretro library
p retroarch-assets - RetroArch assets for XMB, GLUI and Zarch
Код: Выделить всё
olej@t520:~$ sudo -i
[sudo] password for olej:
root@t520:~#
Код: Выделить всё
root@t520:/# apt install retroarch
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
adwaita-icon-theme at-spi2-core fontconfig fonts-mplus fonts-roboto fonts-roboto-unhinted gtk-update-icon-cache
hicolor-icon-theme humanity-icon-theme i965-va-driver intel-media-va-driver libaacs0 libaom0 libasyncns0 libatk-bridge2.0-0
libatk1.0-0 libatk1.0-data libatspi2.0-0 libavahi-client3 libavahi-common-data libavahi-common3 libavcodec58 libavformat58
libavutil56 libbdplus0 libbluray2 libcairo-gobject2 libcairo2 libchromaprint1 libcodec2-0.9 libcolord2 libcups2 libdatrie1
libdouble-conversion3 libegl-mesa0 libegl1 libepoxy0 libflac8 libgbm1 libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-bin
libgdk-pixbuf2.0-common libgme0 libgomp1 libgraphite2-3 libgsm1 libgtk-3-0 libgtk-3-bin libgtk-3-common libharfbuzz0b
libigdgmm11 libinput-bin libinput10 libjack-jackd2-0 libjbig0 libjpeg-turbo8 libjpeg8 liblcms2-2 libminiupnpc17 libmp3lame0
libmpg123-0 libmtdev1 libopenal-data libopenal1 libopenjp2-7 libopenmpt0 libopus0 libpango-1.0-0 libpangocairo-1.0-0
libpangoft2-1.0-0 libpcre2-16-0 libpixman-1-0 libpulse0 libqt5core5a libqt5dbus5 libqt5gui5 libqt5network5 libqt5svg5
libqt5widgets5 librest-0.7-0 libretro-core-info librsvg2-2 librsvg2-common libsamplerate0 libsdl2-2.0-0 libshine3 libsnappy1v5
libsndfile1 libsndio7.0 libsoup-gnome2.4-1 libsoxr0 libspeex1 libssh-gcrypt-4 libswresample3 libswscale5 libthai-data libthai0
libtheora0 libtiff5 libtwolame0 libv4l-0 libv4lconvert0 libva-drm2 libva-x11-2 libva2 libvdpau1 libvorbisenc2 libvpx6
libwacom-bin libwacom-common libwacom2 libwavpack1 libwayland-cursor0 libwayland-egl1 libwayland-server0 libwebp6 libwebpmux3
libx264-155 libx265-179 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-render-util0 libxcb-render0 libxcb-util1
libxcb-xinerama0 libxcb-xinput0 libxcb-xkb1 libxdamage1 libxkbcommon-x11-0 libxkbcommon0 libxss1 libxvidcore4 libzvbi-common
libzvbi0 mesa-va-drivers mesa-vdpau-drivers ocl-icd-libopencl1 qt5-gtk-platformtheme qttranslations5-l10n retroarch-assets
ubuntu-mono va-driver-all vdpau-driver-all
Suggested packages:
i965-va-driver-shaders libbluray-bdj colord cups-common gvfs jackd2 liblcms2-utils minissdpd libportaudio2 opus-tools pulseaudio
qt5-image-formats-plugins qtwayland5 librsvg2-bin sndiod speex opencl-icd libvdpau-va-gl1 nvidia-vdpau-driver
nvidia-legacy-340xx-vdpau-driver nvidia-legacy-304xx-vdpau-driver
The following NEW packages will be installed:
adwaita-icon-theme at-spi2-core fontconfig fonts-mplus fonts-roboto fonts-roboto-unhinted gtk-update-icon-cache
hicolor-icon-theme humanity-icon-theme i965-va-driver intel-media-va-driver libaacs0 libaom0 libasyncns0 libatk-bridge2.0-0
libatk1.0-0 libatk1.0-data libatspi2.0-0 libavahi-client3 libavahi-common-data libavahi-common3 libavcodec58 libavformat58
libavutil56 libbdplus0 libbluray2 libcairo-gobject2 libcairo2 libchromaprint1 libcodec2-0.9 libcolord2 libcups2 libdatrie1
libdouble-conversion3 libegl-mesa0 libegl1 libepoxy0 libflac8 libgbm1 libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-bin
libgdk-pixbuf2.0-common libgme0 libgomp1 libgraphite2-3 libgsm1 libgtk-3-0 libgtk-3-bin libgtk-3-common libharfbuzz0b
libigdgmm11 libinput-bin libinput10 libjack-jackd2-0 libjbig0 libjpeg-turbo8 libjpeg8 liblcms2-2 libminiupnpc17 libmp3lame0
libmpg123-0 libmtdev1 libopenal-data libopenal1 libopenjp2-7 libopenmpt0 libopus0 libpango-1.0-0 libpangocairo-1.0-0
libpangoft2-1.0-0 libpcre2-16-0 libpixman-1-0 libpulse0 libqt5core5a libqt5dbus5 libqt5gui5 libqt5network5 libqt5svg5
libqt5widgets5 librest-0.7-0 libretro-core-info librsvg2-2 librsvg2-common libsamplerate0 libsdl2-2.0-0 libshine3 libsnappy1v5
libsndfile1 libsndio7.0 libsoup-gnome2.4-1 libsoxr0 libspeex1 libssh-gcrypt-4 libswresample3 libswscale5 libthai-data libthai0
libtheora0 libtiff5 libtwolame0 libv4l-0 libv4lconvert0 libva-drm2 libva-x11-2 libva2 libvdpau1 libvorbisenc2 libvpx6
libwacom-bin libwacom-common libwacom2 libwavpack1 libwayland-cursor0 libwayland-egl1 libwayland-server0 libwebp6 libwebpmux3
libx264-155 libx265-179 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-render-util0 libxcb-render0 libxcb-util1
libxcb-xinerama0 libxcb-xinput0 libxcb-xkb1 libxdamage1 libxkbcommon-x11-0 libxkbcommon0 libxss1 libxvidcore4 libzvbi-common
libzvbi0 mesa-va-drivers mesa-vdpau-drivers ocl-icd-libopencl1 qt5-gtk-platformtheme qttranslations5-l10n retroarch
retroarch-assets ubuntu-mono va-driver-all vdpau-driver-all
0 upgraded, 145 newly installed, 0 to remove and 0 not upgraded.
Need to get 116 MB of archives.
After this operation, 412 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
...
Код: Выделить всё
olej@t520:~$ aptitude search retroarc
i retroarch - Simple frontend for the libretro library
i A retroarch-assets - RetroArch assets for XMB, GLUI and Zarch
Код: Выделить всё
olej@t520:~$ which retroarch
/usr/bin/retroarch
Чтобы не возиться с хлопотным и некомфортным устройством:
Для этого нужен дополнительный сеанс SSH с туннелированием графики, X-протокола, сквозь канал SSH:
Код: Выделить всё
olej@R420:~$ ssh -Y -l olej 192.168.1.133
olej@192.168.1.133's password:
Welcome to Ubuntu 20.04.3 LTS (GNU/Linux 5.4.0-94-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Вс 16 янв 2022 12:08:43 UTC
System load: 0.08 Processes: 135
Usage of /: 51.7% of 5.80GB Users logged in: 1
Memory usage: 5% IPv4 address for enp1s0: 192.168.1.133
Swap usage: 0%
* Super-optimized for small spaces - read how we shrank the memory
footprint of MicroK8s to make it the smallest full K8s around.
https://ubuntu.com/blog/microk8s-memory-optimisation
0 updates can be applied immediately.
Last login: Sun Jan 16 12:01:14 2022 from 192.168.1.14
/usr/bin/xauth: file /home/olej/.Xauthority does not exist
Код: Выделить всё
olej@t520:~$ retroarch
sh: 1: xdg-screensaver: not found
Настройки RetroArch, как было сказано выше, это не моя проблема ... пока, по крайней мере, не моя проблема
7. создать там какого-то отдельного игрового пользователя...
Код: Выделить всё
root@t520:/etc# adduser --shell /bin/bash gamer
Adding user `gamer' ...
Adding new group `gamer' (1001) ...
Adding new user `gamer' (1001) with group `gamer' ...
Creating home directory `/home/gamer' ...
Copying files from `/etc/skel' ...
New password:
Retype new password:
No password supplied
New password:
Retype new password:
Sorry, passwords do not match.
passwd: Authentication token manipulation error
passwd: password unchanged
Try again? [y/N] y
New password:
Retype new password:
passwd: password updated successfully
Changing the user information for gamer
Enter the new value, or press ENTER for the default
Full Name []:
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n] y
Код: Выделить всё
olej@t520:~$ su - gamer
Password:
gamer@t520:~$ whoami
gamer
gamer@t520:~$ echo $LOGNAME
gamer
gamer@t520:~$ exit
logout
Код: Выделить всё
root@t520:/etc# passwd -d gamer
passwd: password expiry information changed.
root@t520:/etc# cat /etc/shadow | grep gamer
gamer::19008:0:99999:7:::
Код: Выделить всё
olej@t520:~$ su - gamer
gamer@t520:~$
По SSH на удылённый хост оно стартует ... но при запуске локально на клиенте командой retroarch - имеем чёрный экран ...
Код: Выделить всё
root@t520:~# startx
Command 'startx' not found, but can be installed with:
apt install xinit
Код: Выделить всё
root@t520:~# apt install xinit
Reading package lists... Done
Building dependency tree
...
0 upgraded, 341 newly installed, 0 to remove and 0 not upgraded.
Need to get 111 MB of archives.
After this operation, 432 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
...
Processing triggers for rygel (0.38.3-1ubuntu1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
Processing triggers for dbus (1.12.16-2ubuntu2.1) ...
Processing triggers for systemd (245.4-4ubuntu3.15) ...
Processing triggers for sgml-base (1.29.1) ...
Код: Выделить всё
root@t520:~# df
Filesystem 1K-blocks Used Available Use% Mounted on
udev 3477960 0 3477960 0% /dev
tmpfs 704592 1384 703208 1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv 6082688 3602988 2150996 63% /
tmpfs 3522940 0 3522940 0% /dev/shm
tmpfs 5120 0 5120 0% /run/lock
tmpfs 3522940 0 3522940 0% /sys/fs/cgroup
/dev/loop0 56832 56832 0 100% /snap/core18/2128
/dev/loop1 63488 63488 0 100% /snap/core20/1270
/dev/loop2 72064 72064 0 100% /snap/lxd/21029
/dev/loop3 56960 56960 0 100% /snap/core18/2284
/dev/loop4 33152 33152 0 100% /snap/snapd/12704
/dev/loop5 68864 68864 0 100% /snap/lxd/21835
/dev/loop6 44416 44416 0 100% /snap/snapd/14295
/dev/sda2 999320 111392 819116 12% /boot
/dev/sda1 523248 5356 517892 2% /boot/efi
tmpfs 704588 0 704588 0% /run/user/1000
tmpfs 704588 0 704588 0% /run/user/1001