Показаны сообщения с ярлыком debian. Показать все сообщения
Показаны сообщения с ярлыком debian. Показать все сообщения

среда, 27 августа 2025 г.

Обновление PocketHandyBox v0008

Обновление PocketHandyBox v0008

Скачать .iso образы:
github.com/PocketHandyBox/pocket-handybox/releases

  1. Обновлен NVIDIA драйвер 570.172.08 -> 580.76.05 (с поддержкой RTX 5050 Desktop)

  2. Исправлена проблема вылета X11 при запуске на встроенной в материнские платы Soc-775 с чипсетами Intel G31 графике.
    Для Bookworm: откат версии mesa 25.0.7-bpo -> 24.2.8-bpo (версия с поддержкой DRI2 - требуется для i915 и r300)
    Для Trixie: добавлен mesa-amber 21.3.9 i915_dri

  3. Исправлена работа скрипта apt2squashfs в Trixie версии (не монтировалась overlayfs)

среда, 29 января 2025 г.

PocketHandyBox Portable Linux (Debian with NVIDIA drivers OOTB)

PocketHandyBox portable Linux distribution (based on Debian and Devuan) with NVIDIA drivers OOTB. Designed for hardware testing, servicing PCs and laptops.

Available versions based on Debian 12 "Bookworm" (Devuan "Daedalus") and Debian 13 "Trixie" (Devuan "Excalibur")

Download .iso images:
github.com/PocketHandyBox/pocket-handybox/releases

Provides the Xfce desktop, and applications such as CPU-X, GSmartControl, GParted, Partimage, Partclone, TestDisk, ddrescue, WHDD.

Linux kernel versions: 6.12 and 5.10 for x86_64, 6.1 for i686. OpenZFS modules is included for x86_64 kernels. Kernel 5.10 is patched with intel-nvme-remap (from EndlessOS) to support NVMe SSDs if the "Intel RST Premium With Optane" option is enabled in UEFI setup (relevant for 6th-10th generation Intel Core). Broadcom WL 802.11n WiFi driver is included, run bcmwload script to enable it.

Versions of NVIDIA proprietary drivers included: 580.x, and legacy 470.x, 390.x, 340.x. GPU detection is implemented in initrd. Module with supported driver will be loaded automatically. For legacy 340.x driver, select kernel 5.10.

The distribution size is optimized for use in copy2ram mode (make possible to remove the USB drive / network cable after booting). Only the used .squashfs modules will be copied to RAM, not the entire .iso image.

Initrd is based on the Porteus code adapted for Debian and OverlayFS by the DogLinux project. Use the SysVinit, pup-volume-monitor (instead of gvfs and udisks2) and ALSA for sound output. The ntfs3 driver is used by default (for 6.12 and 6.1 kernels), ntfs-3g is also included.

Provides the mod-get script for download applications from their websites, and create .squashfs modules with it: DMDE, Hard Disk Sentinel Linux Edition, R-TT R-Linux, Geeks3D FurMark2 and GpuTest, Unigine Heaven and Valley. Save the additional .squashfs modules to folders phb/modules and phb/modules32 (for i686 version) on USB drive and it will be automatically loaded during startup.

For laptops with switchable GPUs, the gpu-switch-launcher script helps to run FurMark2, GpuTest, Unigine Heaven and Valley on dGPU. The script supports NVIDIA drivers, and Mesa drivers (for AMD and Intel GPUs). For legacy 390.x и 340.x drivers (because lack of PRIME render offload support) only NVIDIA GPU will be used.

Additional software can be installed from the Debian repositories using apt-get or synaptic. Tools for creating .squashfs modules apt2squashfs and changes2sfs are included. Additional .squashfs modules can be activated using the loadmodule script or the Activate module custom action of the Thunar file manager.

Shell scripts and config files will be automatically copied from the phb/rootcopy folder during boot. And they will be applied without the need to rebuild the .iso image and modules.

Both UEFI and Legacy/CSM supported. Boot the .iso image from Ventoy / grub2 / grub4dos.
Supported boot from USB/SATA/NVMe devices, from FAT32/exFAT/Ext2/3/4/NTFS filesystems.
Network PXE boot with NFS is supported.
Secure Boot is not supported and must be disabled. Boot from ZFS is not supported.

PocketHandyBox Wiki:
github.com/PocketHandyBox/pocket-handybox/wiki

четверг, 11 декабря 2008 г.

Пересборка libwxgtk2.8 в Debian, без зависимостей от gconf и gstreamer

libwxgtk2.8-0 мне понадобился для amule. Оказалось он зависит от libgconf2-4. Хотя самого gconf он не требует, я всё же решил пересобрать. Убедится в том, что ни gconf, ни gstreamer этой версии wxgtk не требуются мне помог gentoo-portage.com.

wxGTK-2.8.8.1

dev-libs/expat

odbc?
( dev-db/unixODBC )

sdl?
( media-libs/libsdl )

X?
( >=x11-libs/gtk+-2.4 >=dev-libs/glib-2.4 media-libs/jpeg media-libs/tiff x11-libs/libSM x11-libs/libXinerama x11-libs/libXxf86vm gnome?
( gnome-base/libgnomeprintui )
gstreamer?
( >=media-libs/gstreamer-0.10 )
opengl?
( virtual/opengl )
)
Стабильная версия в Gentoo чуть свежее. Как видно gstreamer и libgnomeprintui - опциональны. Скачал wxGTK-2.8.8.1.ebuild на всякий случай.

Скачиваем wxwidgets2.8_2.8.7.1-1.1.dsc, wxwidgets2.8_2.8.7.1.orig.tar.gz, wxwidgets2.8_2.8.7.1-1.1.diff.gz и копируем их в папку wxwidgets2.8 в домашнем каталоге.

Нам понадобятся dpkg-dev и fakeroot.

1. Извлечём исходники с наложением патчей:
~/wxwidgets2.8$ dpkg-source -x wxwidgets2.8_2.8.7.1-1.1.dsc
2. Перейдём в каталог с распакованными исходниками (wxwidgets2.8-2.8.7.1). Чтобы избавиться от зависимостей нужно отредактировать опции сборки. Они находятся в файле rules в каталоге debian. Обнаружим:
# build options
COMMON_CONFIGURE_OPTIONS = \
--prefix=/usr \
--cache-file=$(config_cache) \
--with-flavour=$(DEBIAN_WXFLAVOUR) \
--with-zlib=sys \
--disable-reserved_virtual \

BASE_CONFIGURE_OPTIONS = $(COMMON_CONFIGURE_OPTIONS) \
--disable-gui \

GTK_CONFIGURE_OPTIONS = $(COMMON_CONFIGURE_OPTIONS) \
--with-gtk \
--enable-mediactrl \
--enable-sound \
--with-sdl \
--enable-display \
--enable-geometry \
--enable-graphics_ctx \
--with-libjpeg=sys \
--with-libpng=sys \
--with-libtiff=sys \
Опции сборки мы нашли, но что нужно убрать/добавить нам подскажет wxGTK-2.8.8.1.ebuild:
# wxGTK options
# --enable-graphics_ctx - needed for webkit, editra
# --without-gnomevfs - bug #203389

use X && \
myconf="${myconf}
--enable-graphics_ctx
--enable-gui
--with-libpng
--with-libxpm
--with-libjpeg
--with-libtiff
$(use_enable gstreamer mediactrl)
$(use_enable opengl)
$(use_with opengl)
$(use_with gnome gnomeprint)
--without-gnomevfs"
Итак нас интересуют опции mediactrl и gnomeprint. Из файла configure.in в каталоге исходников узнаём что mediactrl по умолчанию выключена, а gnomeprint включена, но игнорируется, если libgnomeprintui не найден. Следовательно нам нужно удалить --enable-mediactrl из файла rules.

3. Просмотрим файл control в каталоге debian на предмет определения зависимостей пакета libwxgtk2.8-0:
Package: libwxgtk2.8-0
Architecture: any
Section: libs
Depends: ${shlibs:Depends}
Suggests: libgnomeprintui2.2-0
В зависимостях указано ${shlibs:Depends}. Данная конструкция позволяет программе dh_gencontrol заполнить данное поле названиями пакетов разделяемых библиотек, которыми пользуется программа (Руководство начинающего разработчика Debian). Так и оставляем. Рекомендации Suggests: libgnomeprintui2.2-0 удаляем.

4. Устанавливаем пакеты, необходимые для сборки (Build-Depends), узнать их можно в файле wxwidgets2.8_2.8.7.1-1.1.dsc. Разумеется не все: debhelper, gettext, python-central, bc и dpatch у меня в системе есть (притянуты по зависимостям), а чтобы не устанавливать libgnomeprintui2.2-dev, libgconf2-dev, libgstreamer0.10-dev, libgstreamer-plugins-base0.10-dev мы всё это и затеяли. Я выполнил:
# apt-get install flex bison libgtk2.0-dev python-all-dev python-all-dbg zlib1g-dev libjpeg62-dev libpng12-dev libtiff4-dev libsm-dev libgl1-mesa-dev libglu1-mesa-dev libesd0-dev
5. Всё готово, можно приступить к сборке. Переходим в каталог исходников и выполняем:
~/wxwidgets2.8/wxwidgets2.8-2.8.7.1$ fakeroot debian/rules build
6. Если сборка прошла успешно, создаём пакеты (как собрать и создать только libwxgtk2.8-0 я не знаю):
~/wxwidgets2.8/wxwidgets2.8-2.8.7.1$ fakeroot debian/rules binary
Пакеты будут созданы на каталог выше, т.е. в ~/wxwidgets2.8. Проверяем:
$ dpkg --info ~/wxwidgets2.8/libwxgtk2.8-0_2.8.7.1-1.1_i386.deb | grep Depends
Depends: libatk1.0-0 (>= 1.20.0), libc6 (>= 2.7-1), libexpat1 (>= 1.95.8), libgcc1 (>= 1:4.1.1), libgl1-mesa-glx | libgl1, libglib2.0-0 (>= 2.16.0), libglu1-mesa | libglu1, libgtk2.0-0 (>= 2.12.0), libjpeg62, libpango1.0-0 (>= 1.20.3), libpng12-0 (>= 1.2.13-4), libsm6, libstdc++6 (>= 4.1.1), libtiff4, libwxbase2.8-0 (>= 2.8.7.1), libxinerama1, zlib1g (>= 1:1.1.4)
Как видите ни gconf, ни gstreamer нет, можно устанавливать.

Пакет нужно заPin'нить, чтобы пересобранная локальная версия не была заменена на версию из репозитория при обновлении. Добавьте в /etc/apt/preferences следующие строки:
Package: libwxgtk2.8-0
Pin: origin Local
Pin-Priority: 1001
Конструктивная критика и дополнения приветствуются.