12
submitted 2 weeks ago by SpongeB0B@programming.dev to c/linux@lemmy.ml

Hi,

I have a great piece of software, that apparently need HAVE_KPROBES_ON_FTRACE

To config the kernel option I'm using :

make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- menuconfig

The Kernel is Linux/arm64 6.6.63

When I'm doing a search inside menuconfig i get:

Symbol: HAVE_KPROBES_ON_FTRACE [=n]
Type  : bool
Defined at arch/Kconfig:223


Symbol: KPROBES_ON_FTRACE [=n]
Type  : bool
Defined at arch/Kconfig:117
 Depends on: KPROBES [=y] && HAVE_KPROBES_ON_FTRACE [=n] && DYNAMIC_FTRACE_WITH_REGS [=n]

But I found it no where in the menu... and if I add it mannuly in the .config file, then make some more other adapations in menuconfig my manual entry disappear..

Any ideas ?

Maybe HAVE_KPROBES_ON_FTRACE is not supported in 6.6.63 ?

Thanks

[-] SpongeB0B@programming.dev 1 points 2 weeks ago* (last edited 2 weeks ago)

I'm using Devuan ( systemd free ! ) :)

14
submitted 2 weeks ago by SpongeB0B@programming.dev to c/linux@lemmy.ml

Hi,

The SBC Raspberry Pi 4 boot on an sdcard with two partition /boot and /

So I managed to encrypt the partition / with cryptsetup

Here the partition of my sd-card

device FILESYS LABEL UUID
sdb1 vfat BOOT ( 9 characters )
sdb2 crrypto_LUKS ( 36 characters )

I've modified the /boot/cmdline.txt

to ( on one line )

console=serial0,115200
console=tty1
root=UUID=#If I try the UUID of sdb2 it fail and also the UUID when I use `cryptsetup luksOpen /dev/sdb2 b2open`
rootfstype=ext4
fsck.repair=yes
loglevel=5
net.ifnames=0
firmware_class.path=/lib/firmware/updates/brcm
rootwait
cryptdevice=UUID=#I dont know which one:b2open

any ideas ?

Thanks.

[-] SpongeB0B@programming.dev 2 points 3 weeks ago* (last edited 3 weeks ago)

๐Ÿคฉ Woo I didn't know nix. It seem a better way to handle package !!!
But so if I have already apt that handle packages, is it compatible to use both on the same system !?

Nix stores all packages in isolation from each other; as a result there are no /bin, /sbin, /lib or /usr directories and all packages are kept in /nix/store instead.

[-] SpongeB0B@programming.dev 1 points 3 weeks ago

Yes, but it's not reliable. because even if you use a bare linux vm to download the packages and dependency, you never know if the online will have already a dependence that the offline system do not have.

no, the only way is to force the dw of the already downloaded package.

[-] SpongeB0B@programming.dev 1 points 3 weeks ago* (last edited 3 weeks ago)

Thank you very much @connaisseur@feddit.org

I have tried

apt-get -o Dir::Cache::archives="/to/path" install --download-only apt-offline

But it downloaded only the .deb of apt-offline and not all the dependence tree. Most probably because this machine have them already.

now, remain to force to download also all the dependency tree even if already installed...

[-] SpongeB0B@programming.dev 2 points 3 weeks ago* (last edited 3 weeks ago)

indeed .appimage are an amazing thing as they do not require any special runtime or installation process !
I guess I will have to do my own .appimage of software that do not provide them

18
submitted 3 weeks ago by SpongeB0B@programming.dev to c/linux@lemmy.ml

Hi,

I have an air gaped[^1] device. ( Devuan )

How do you manage to install packages/software on off-line[^1] device ?

I've heard of apt-offline but it seem to bug and I don't know if it's still maintained (last release two years ago)

of course I've tried manually but the dependencies relations are too crazy to do that fully manually

Dependence tree (not complete even) to install for example apt-offline

โ”œโ”€โ”€ Depends
โ”‚ย ย  โ”œโ”€โ”€ Depends
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ Depends
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ Depends
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ python3-dbg_3.9.2-3_amd64.deb
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ libcurl4-gnutls-dev_7.74.0-1.3+deb11u14_amd64.deb
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ python3-pycurl-dbg_7.43.0.6-5_amd64.deb
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ python-pycurl-doc_7.43.0.6-5_all.deb
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ python3-httplib2_0.18.1-3_all.deb
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ python3-pycurl_7.43.0.6-5_amd64.deb
โ”‚ย ย  โ”œโ”€โ”€ iso-codes_4.6.0-1_all.deb
โ”‚ย ย  โ”œโ”€โ”€ python3-pysimplesoap_1.16.2-3_all.deb
โ”‚ย ย  โ””โ”€โ”€ python-apt-common_2.2.1_all.deb
โ”œโ”€โ”€ python3-apt_2.2.1_amd64.deb
โ””โ”€โ”€ python3-debianbts_3.1.0_all.deb

Any ideas ?

Thanks.

[^1]: air gaped, off-line
https://en.wikipedia.org/wiki/Air_gap_(networking)

[-] SpongeB0B@programming.dev 1 points 4 months ago

Thank you @gerbercj@lemmy.world sadly it's hosted on google ... :/ https://issuetracker.google.com

If I post here on lemmy, me feature request somebody would be kind to submit to google ?

Thanks.

[-] SpongeB0B@programming.dev 2 points 4 months ago

it's related to the GPS fix. So which is it ?

14
submitted 4 months ago by SpongeB0B@programming.dev to c/foss@beehaw.org

Hi,

I was a very long time I didn't need to created a animated gif... I had a program before to take a static images (.jpg, .png etc..) and convert then into an animated gif..

All the web search engine push for online (aka SaaSS) tool ๐Ÿคฎ

Do you know a program that do that ( Linux )

Thanks.

6

Hi,

I would like to use a rectangle that move (left to right) to reveal an element / image

like this

The white box shall be the image to display

But I'm already block at my svg animation

<svg viewBox="0 0 265.135 68.642" xmlns="http://www.w3.org/2000/svg">
<g x="-55.790085" y="0.79151762">
    <rect
       style="fill:#ffcc00;stroke-width:2.46513;stroke-linecap:round;stroke-linejoin:round;paint-order:stroke fill markers;stop-color:#000000"
       width="55.465603"
       height="151.60599"       
       transform="rotate(45)" />
       <animate
      attributeName="x"
      values="-55.790085;265"
      dur="5s"
      repeatCount="indefinite" />
  </g>
</svg>

Because the rectangle is not moving :'(

Any ideas ?

Thanks.

34

Hi everyone,

Does someone know where I can submit a feature suggestion for Android ?

Thanks

[-] SpongeB0B@programming.dev 2 points 4 months ago

Thank you ! it works !

Actually this is working :

path/to/venv/bin/gunicorn A_Web_App:app

Some other poster, claim it's dirty.. but which problems could it generate ? (if any)

Thanks all !!!!

[-] SpongeB0B@programming.dev 1 points 4 months ago* (last edited 4 months ago)

I don't want to make the venv portable...
I want to use the gunicorn that is installed in one venv accessible to other venv

4
submitted 4 months ago by SpongeB0B@programming.dev to c/python@lemmy.ml

cross-posted from: https://programming.dev/post/17866168

Hi,

I use gunicorn in my venv

I have quite few venv that run gunicorn.

I would like to reuse gunicorn for other venv

I launch my web application like this

#PWD = venv dir
source ./bin/activate
gunicorn A_WebApp:app
#A_WebApp is my python file A_WebApp.py

I supposes that gunicorn is a shell program ? if yes I should use $PATH ?
or gunicorn is a Python program only ? and then what I should do to use gunicorn in another venv ?

Thanks.

12
submitted 4 months ago* (last edited 4 months ago) by SpongeB0B@programming.dev to c/python@programming.dev

Hi,

I use gunicorn in my venv

I have quite few venv that run gunicorn.

I would like to reuse gunicorn for other venv

I launch my web application like this

#PWD = venv dir
source ./bin/activate
gunicorn A_WebApp:app
#A_WebApp is my python file A_WebApp.py

I supposes that gunicorn is a shell program ? if yes I should use $PATH ?
or gunicorn is a Python program only ? and then what I should do to use gunicorn in another venv ?

Thanks.

[-] SpongeB0B@programming.dev 2 points 7 months ago

Thank you very much @taaz

So you say 2 but with unix socket so it the same as my proposal number 3 ? no ?

I'll check capabilities

[-] SpongeB0B@programming.dev 3 points 7 months ago

indeed I need it to be scriptable.

22
submitted 7 months ago by SpongeB0B@programming.dev to c/linux@lemmy.ml

Hi everyone,

I have a Python program (A) that run under a regular user account. (good)

When some events occur in (A) I need to modify my nftables and only the root is allowed to do so.

I've come up with 3 ways to do that (if you know other please share) but I don't which would be the best.

  1. Make a sudo call from (A) with from subprocess import run but I will need to store the password ! and I don't think is possible to keep it encrypted and decrypted when need it (it's a flaw)
    .
  2. Make (A) writing a file with the requests. Create a (B) daemon (that run as root) that check that file every X and do the necessary
    .
  3. Make (A) do an IPC ( Linux socket ) to (B) daemon (that run as root) and does the necessary.

I suppose that the solution 2 is less heavy that the 3 ? But if I'm not mistaken it will react also slower ?

Thanks.

๐Ÿง

view more: next โ€บ

SpongeB0B

joined 8 months ago