СОФТ и инструкции для Porteus-5.x

Добро пожаловать!

Moderator: Blaze

User avatar
SaintAnd
Shogun
Shogun
Posts: 254
Joined: 02 Sep 2018, 13:45
Distribution: Porteus-v4-x64 (LXDE)
Location: Russia, Southern Federal District

СОФТ и инструкции для Porteus-5.x

Post#361 by SaintAnd » 09 Apr 2023, 21:01

Blaze, Жаль что не всё так просто.
Blaze wrote:
09 Apr 2023, 08:24
Если горит, то можете затестить PorteuX
Думал, что всё будет прекрасно, но возникают проблемы с запуском не из корня. Такое чуство, что даже версии stable не стабильны, потому что если запускать из корня систему, то либо запустить можно систему от root, либо вылетают ошибки сразу при входе в рабочий стол.

Image Image Image

Но решать проблемы перепрыгиванием на другую систему - не комельфо

Roader
Black ninja
Black ninja
Posts: 43
Joined: 30 Jan 2017, 19:48
Distribution: Porteus 3.2 XFCE
Location: Russian Federation

СОФТ и инструкции для Porteus-5.x

Post#362 by Roader » 17 Apr 2023, 07:02

Blaze wrote:
09 Apr 2023, 08:24
Если горит, то можете затестить PorteuX https://github.com/porteux/porteux/releases/tag/v0.2
Не скажу, что в особом восторге от данной сборки. Скачал заценить. Кроме свежака от хрома ничего оттуда не вынес :hmmm: Попробовал перенести теже абиворд с гнумерил из пятерки - ругань на отсутствие библиотек. По итогу заморачиваться не стал. До сих пор и на обычном дрючусь с поднятием удаленки по l2tp. (выхлоп в виде протокол не поддерживается). На рунту все с полпинка :cry:

User avatar
Blaze
DEV Team
DEV Team
Posts: 3885
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

СОФТ и инструкции для Porteus-5.x

Post#363 by Blaze » 17 Apr 2023, 18:53

Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

User avatar
SaintAnd
Shogun
Shogun
Posts: 254
Joined: 02 Sep 2018, 13:45
Distribution: Porteus-v4-x64 (LXDE)
Location: Russia, Southern Federal District

СОФТ и инструкции для Porteus-5.x

Post#364 by SaintAnd » 21 Apr 2023, 22:04

Blaze wrote:
17 Apr 2023, 18:53
Обновление https://github.com/porteux/porteux/releases/tag/v0.3
Скачал версию porteux 0.3

Не понимаю как прописывать чит-код from, чтобы система загружалась не из корня.
Каталог с системой лежит в /mnt/sdax/port/porteux
Прописывал from=/port или from=/port/porteux и результат вывода ошибок разный, но система всё равно не загружается не из корня.

Результат from=/port/porteux
Image

User avatar
SaintAnd
Shogun
Shogun
Posts: 254
Joined: 02 Sep 2018, 13:45
Distribution: Porteus-v4-x64 (LXDE)
Location: Russia, Southern Federal District

СОФТ и инструкции для Porteus-5.x

Post#365 by SaintAnd » 24 Apr 2023, 20:32

Blaze wrote:
17 Apr 2023, 18:53
Обновление https://github.com/porteux/porteux/releases/tag/v0.3
Вообщем разобрался, что битый оказался файл initrd.zst, потому что если заменить его на тот что в porteus, например initrd.XZ, переименовать каталог в porteus, и положить туда porteus-v5.0-x86_64.cfg, то загружается без проблем, но это нужно решить.

User avatar
SaintAnd
Shogun
Shogun
Posts: 254
Joined: 02 Sep 2018, 13:45
Distribution: Porteus-v4-x64 (LXDE)
Location: Russia, Southern Federal District

СОФТ и инструкции для Porteus-5.x

Post#366 by SaintAnd » 25 Apr 2023, 21:14

Blaze wrote:
17 Apr 2023, 18:53
Обновление https://github.com/porteux/porteux/releases/tag/v0.3
Нашёл причину такого поведения системы. Как писал выше, проблема в initrd.zst[
brokenman зачем-то убрал из linuxrc эти строки:

Code: Select all

	     if [ $? -eq 0 ]; then
	        DIR=`echo $LPTH | rev | cut -d/ -f3- | rev`; [ $DIR ] && FOLDER=$DIR/porteux
Поэтому на 81 строке перед

Code: Select all

            if [ $? -ne 0 ]; then
добавить код выше и вместо if писать elif.
И получится:

Code: Select all

            if [ $? -eq 0 ]; then
	        DIR=`echo $LPTH | rev | cut -d/ -f3- | rev`; [ $DIR ] && FOLDER=$DIR/porteux
            elif [ $? -ne 0 ]; then
Нужно внести изменения в ваш проект. Но конечно смущает странная sh: true: unknown operand.

Исправляю это как-то так, но размер initrd.zst чуть больше получается...

Code: Select all

cd /boot/syslinux/
zstd -d initrd.zst
mv initrd.zst{,.back}
mkdir initdir
mv initrd initdir
cd initdir
cpio -i < initrd

#Добавляем многострочный патч
echo -en '--- a/linuxrc	2023-04-26 00:25:17.703357000 +0300
+++ b/linuxrc	2023-04-26 00:58:36.180482000 +0300
@@ -78,7 +78,9 @@
 else
 	if [ $FROM ]; then
 		locate $FROM/porteux/$CFG
-		if [ $? -ne 0 ]; then
+		if [ $? -eq 0 ]; then
+			DIR=`echo $LPTH | rev | cut -d/ -f3- | rev`; [ $DIR ] && FOLDER=$DIR/porteux
+		elif [ $? -ne 0 ]; then
 			echo -e "${YELLOW}from= cheatcode is incorrect; searching through all devices${RST}"
 			FindPorteuxUnit
 		fi
' > patch-initrd

patch -p1 < patch-initrd
rm initrd
find . | cpio -o -H newc > ../initrd
cd ../
zstd initrd

P.S. пожалуйста научите меня делать патчи
Last edited by SaintAnd on 26 Apr 2023, 07:44, edited 1 time in total.

porteux
Samurai
Samurai
Posts: 175
Joined: 12 Mar 2023, 22:10
Distribution: PorteuX

СОФТ и инструкции для Porteus-5.x

Post#367 by porteux » 26 Apr 2023, 01:49

@SaintAnd, there is indeed a bug related to the 'from' cheatcode. I have just fixed it and it will be officially available in PorteuX 0.4.

In the meantime you can try this hotfix: https://we.tl/t-YmxCkuwE74

Thanks for the feedback! :)

User avatar
SaintAnd
Shogun
Shogun
Posts: 254
Joined: 02 Sep 2018, 13:45
Distribution: Porteus-v4-x64 (LXDE)
Location: Russia, Southern Federal District

СОФТ и инструкции для Porteus-5.x

Post#368 by SaintAnd » 26 Apr 2023, 08:15

porteux wrote:
26 Apr 2023, 01:49
@SaintAnd, there is indeed a bug related to the 'from' cheatcode. I have just fixed it and it will be officially available in PorteuX 0.4.

In the meantime you can try this hotfix: https://we.tl/t-YmxCkuwE74

Thanks for the feedback! :)
Hello porteux!!!

1. Thanks for the feedback, but I downloaded your fix and it doesn't work properly. When I specify the full path (from=/dev/sda1/port/) everything is fine, but I usually use a relative path (from=/port) and it doesn't work. I need it to work because I can rearrange the disks and then all this is useless.
In addition, I don't use UUID because those numbers are just confusing.

2. The variant that I indicated above works with relative paths, and I would like to keep it that way.

3. How do you create an initrd and compress it initrd.zst? I ask you because my size is 200 Kilobytes larger than the original.

P.S.
I still don’t understand how to get rid of sh: true: onknown operand in case when initrd cannot find porteux files

Roader
Black ninja
Black ninja
Posts: 43
Joined: 30 Jan 2017, 19:48
Distribution: Porteus 3.2 XFCE
Location: Russian Federation

СОФТ и инструкции для Porteus-5.x

Post#369 by Roader » 27 Apr 2023, 05:22

Blaze wrote:
17 Apr 2023, 18:53
Обновление https://github.com/porteux/porteux/releases/tag/v0.3
наткнулся еще на одну "интересную" ( :( ) особенность, которая в принципе объяснила мои заморочки с l2tp. По команде slackpkg file-search l2tp выдало
несколько неустановленных пакетов kernel... таким образом ядро из коробки просто не поддерживает данный протокол :(

porteux
Samurai
Samurai
Posts: 175
Joined: 12 Mar 2023, 22:10
Distribution: PorteuX

СОФТ и инструкции для Porteus-5.x

Post#370 by porteux » 27 Apr 2023, 10:09

@SaintAnd, gonna take a look at this relative path issue. Thanks for reporting

Regarding how to extract/compress initrd, I'm using the following:

Extract:

Code: Select all

zstd -d < initrd.zst | cpio -i | rm initrd.zst
Compress:

Code: Select all

find | cpio -H newc -o | zstd -19 --check > /tmp/initrd.zst
@Roader, could you provide a step by step on how to replicate the issue?

User avatar
Blaze
DEV Team
DEV Team
Posts: 3885
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

СОФТ и инструкции для Porteus-5.x

Post#371 by Blaze » 27 Apr 2023, 12:04

Roader wrote:
27 Apr 2023, 05:22
По команде slackpkg file-search l2tp выдало
несколько неустановленных пакетов kernel...
Что именно выдает?
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

Roader
Black ninja
Black ninja
Posts: 43
Joined: 30 Jan 2017, 19:48
Distribution: Porteus 3.2 XFCE
Location: Russian Federation

СОФТ и инструкции для Porteus-5.x

Post#372 by Roader » 28 Apr 2023, 05:40

Blaze wrote:
27 Apr 2023, 12:04
Что именно выдает?
В обычном 64 битном портеусе:
guest@porteus:~$ uname -a
Linux porteus.example.net 5.18.8-porteus #1 SMP PREEMPT_DYNAMIC Sat Jul 2 10:05:31 MSK 2022 x86_64 Intel(R) Core(TM) i5-6400 CPU @ 2.70GHz GenuineIntel GNU/Linux
Из syslog:
Примерно такая же картина и в Porteux только там ругается еще и на протокол l2tp

User avatar
Blaze
DEV Team
DEV Team
Posts: 3885
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

СОФТ и инструкции для Porteus-5.x

Post#373 by Blaze » 29 Apr 2023, 12:39

Roader, попробуйте обновить ядро (скачать можно из этого сообщения) >>> Porteus Kernel Builder (Пост Blaze #93847)
Для справки: Как обновить kernel (ядро) в Porteus
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

User avatar
SaintAnd
Shogun
Shogun
Posts: 254
Joined: 02 Sep 2018, 13:45
Distribution: Porteus-v4-x64 (LXDE)
Location: Russia, Southern Federal District

СОФТ и инструкции для Porteus-5.x

Post#374 by SaintAnd » 01 May 2023, 06:42

Blaze wrote:
29 Apr 2023, 12:39
Roader, попробуйте обновить ядро (скачать можно из этого сообщения) >>> Porteus Kernel Builder (Пост Blaze #93847)
Для справки: Как обновить kernel (ядро) в Porteus
Привет!
Есть вопрос. Как устанавливать программы flatpak или snap?

User avatar
Blaze
DEV Team
DEV Team
Posts: 3885
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

СОФТ и инструкции для Porteus-5.x

Post#375 by Blaze » 01 May 2023, 09:19

SaintAnd, Мир! Труд! Май!
Сам лично не юзал :)
Собрать из SBo https://slackbuilds.org/repository/15.0 ... p/flatpak/ или скачать готовый https://pkgs.org/search/?q=flatpak
инструкция как настроить https://slackware-alive.ru/category/package/

Возможны зависимости:

Code: Select all

appstream
bubblewrap
libostree
xdg-dbus-proxy
xdg-desktop-portal-gtk
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

Post Reply