Page 2 of 2

Conky anyone?

Posted: 19 Sep 2021, 04:08
by Ed_P
There is no .tar file in the .tbz file when opened with the Cinnamon Archive Manager.

Your terminal commands idea looks interesting though. Thanks ncmp. :)

Conky anyone?

Posted: 19 Sep 2021, 08:43
by M. Eerie
ncmprhnsbl wrote:
18 Sep 2021, 22:30
now available: https://github.com/aristocratos/btop
Great!

Trying in 10,9,8...

Conky anyone?

Posted: 19 Sep 2021, 12:31
by ncmprhnsbl
Ed_P wrote:
19 Sep 2021, 04:08
There is no .tar file in the .tbz file when opened with the Cinnamon Archive Manager.
i think you'll that's the case with any .tar.bz2.. the archive manager unbzips and untars in the one motion..
and if you look at the makefile, it basicly just copies files..
so..

Code: Select all

cd <extracted btop folder>
su
mkdir -p /tmp/btop/usr/share/btop
cp -a bin /tmp/btop/usr 
chmod 755 /tmp/btop/usr/bin/btop 
cp -a themes /tmp/btop/usr/share/btop
dir2xzm /tmp/btop /tmp/btop-1.0.1-linux-x86-64.xzm
doesn't seem to need to setuid part to run properly in porteus(edit.. ah maybe for "sending signals to any process" without running as root)

i imagine compiling the source nonstatically would possibly get it a lot smaller..

Conky anyone?

Posted: 19 Sep 2021, 17:36
by M. Eerie
In my tests:

Code: Select all

RAM: 4M (btop) vs 41M (bpytop)
CPU: 0.1% (btop) vs 1% (bpytop) while not measuring
CPU: 1% (btop) vs 5,6% (bpytop) while refreshing values
Btop static binary is just 4,2 Mb, so I think it is worthy

Conky anyone?

Posted: 20 Sep 2021, 02:56
by Ed_P
ncmprhnsbl wrote:
19 Sep 2021, 12:31
so..

Code: Select all

cd <extracted btop folder>
su
mkdir -p /tmp/btop/usr/share/btop
cp -a bin /tmp/btop/usr 
chmod 755 /tmp/btop/usr/bin/btop 
cp -a themes /tmp/btop/usr/share/btop
dir2xzm /tmp/btop /tmp/btop-1.0.1-linux-x86-64.xzm

Code: Select all

root@porteus:/home/guest# activate /tmp/btop*.xzm
mount: /: mount point not mounted or bad option.
btop-1.0.1-linux-x86-64.xzm: Can't insert module to union

Conky anyone?

Posted: 20 Sep 2021, 03:30
by ncmprhnsbl
Ed_P wrote:
20 Sep 2021, 02:56
root@porteus:/home/guest# activate /tmp/btop*.xzm
mount: /: mount point not mounted or bad option.
btop-1.0.1-linux-x86-64.xzm: Can't insert module to union
move it somewhere outside the live system or get yourself a better kernel : the last one Blaze posted works ok: Porteus Kernel Builder (Post by Blaze #84110)

Conky anyone?

Posted: 20 Sep 2021, 03:51
by Ed_P

Code: Select all

root@porteus:/mnt/sda6/porteus5.0/Guest/Downloads# ./btop2xzm.sh
Parallel mksquashfs: Using 4 processors
Creating 4.0 filesystem on /tmp/btop-1.0.1-linux-x86-64.xzm, block size 262144.
[=================================================================/] 30/30 100%

Exportable Squashfs 4.0 filesystem, xz compressed, data block size 262144
	compressed data, compressed metadata, compressed fragments,
	compressed xattrs, compressed ids
	duplicates are removed
Filesystem size 1226.98 Kbytes (1.20 Mbytes)
	28.05% of uncompressed filesystem size (4374.41 Kbytes)
Inode table size 322 bytes (0.31 Kbytes)
	45.35% of uncompressed inode table size (710 bytes)
Directory table size 314 bytes (0.31 Kbytes)
	69.47% of uncompressed directory table size (452 bytes)
Number of duplicate files found 0
Number of inodes 20
Number of files 14
Number of fragments 1
Number of symbolic links 0
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 6
Number of ids (unique uids + gids) 2
Number of uids 2
	guest (1000)
	root (0)
Number of gids 1
	root (0)
root@porteus:/mnt/sda6/porteus5.0/Guest/Downloads# ls -lg /tmp
total 1228
drwxr-xr-x 3 root       60 Sep 19 23:37 btop/
-rw-r--r-- 1 root  1257472 Sep 19 23:39 btop-1.0.1-linux-x86-64.xzm
srwxrwxrwx 1 users       0 Sep 19 23:28 dbus-udRtPEIwwA=
root@porteus:/mnt/sda6/porteus5.0/Guest/Downloads# activate /tmp/btop*.xzm
mount: /: mount point not mounted or bad option.
btop-1.0.1-linux-x86-64.xzm: Can't insert module to union
root@porteus:/mnt/sda6/porteus5.0/Guest/Downloads# 

root@porteus:/mnt/sda6/porteus5.0/Guest/Downloads# uname -a
Linux porteus.example.net 5.13.11-porteus #1 SMP Tue Aug 17 22:15:07 AEST 2021 x86_64 Intel(R) Core(TM) i3-6100U CPU @ 2.30GHz GenuineIntel GNU/Linux
root@porteus:/mnt/sda6/porteus5.0/Guest/Downloads# 
ncmprhnsbl wrote:
20 Sep 2021, 03:30
get yourself a better kernel : the last one Blaze posted works ok: Porteus Kernel Builder (Post by Blaze #84110)
Is that the 5.0rc3 base we should be testing now? I thought there was a concern between the kernel version and the current base file's compiler.

Conky anyone?

Posted: 20 Sep 2021, 04:22
by ncmprhnsbl
i'm just saying that if you encounter not be able to activate a module from within the live system, it's the kernel that's at fault ..(idk why, just some build option was out that day, i suppose)
so the choices are: move the module or use a kernel that allows it.. as per linked..
for the most part, you can use any kernel with any porteus version..

Conky anyone?

Posted: 20 Sep 2021, 04:51
by Ed_P
The btop app does work when the xzm file is activated on the harddrive. :good:

Added in 11 hours 31 minutes 14 seconds:
And when it is on the /tmp drive when using the 5.14.3 kernel. :) Thank you ncmp.

Added in 6 hours 5 minutes 27 seconds:
But the forgeofempires.com game's video hangs up again when playing. Backgrounds disappear.