SpongeB0B

joined 2 years ago
[–] SpongeB0B@programming.dev 3 points 3 months ago* (last edited 3 months ago)

Thank you @skami@sh.itjust.works
Xpra works ! tons of features, floss and Python 🐍 ! ❤

13
submitted 3 months ago* (last edited 3 months ago) by SpongeB0B@programming.dev to c/linux@lemmy.ml
 

Hi,

I'm trying, without success so far, to initiate (or reconnect to an existing one) a remote desktop session (xfce here)

I've tried rustdesk, but this is sharing desktop[^1]

I've tried nomachine, but even if it's look like it can do Remote desktop[^2] I see the login screen, and screen of the active user :/ not the one I give crendential for...

Xrdp fail.. plain and simple..

Is that possible or am I dreaming ?

Thanks.

[^1]: an active user (in front of the computer) can share his desktop with someone remotly, both are seeing the same. Generally the all screen is sended to the remote user trough video compress.

[^2]: a remote user can connect this his desktop session held (or not) open on the server. A user sitting in front of the acced computer and the remote user, do not see the same ! like tty

 

Hi,

I'm currently busy with this project: MX_Linux_Respin_RPI_SysVinit

I want to enable luks encryption on the main (aka root) partition

I'm forking / portage https://github.com/gitbls/sdm/blob/master/sdm-cryptconfig to do so.

But there is a bug with copy_file from /usr/share/initramfs-tools/hook-functions see at : https://github.com/gitbls/sdm/discussions/352#discussioncomment-14997358

I don't understand WhyTF the function copy_file report $DESTDIR/sdmcryptfs as already existing while is being tested before, and it's not existing...

Any ideas ?

Thanks.

[–] SpongeB0B@programming.dev 5 points 7 months ago

Thanks everyone,

I figured out also the missing ./ but meanwhile I got already 4 reply ! \

Thanks so much !

18
submitted 7 months ago* (last edited 7 months ago) by SpongeB0B@programming.dev to c/linux@lemmy.ml
 

Hi

When I setup a cron job like this crontab -e

*/1 * * * * echo $A_VARIABLE > /home/user/Desktop/test.txt

no problem, the file is created whether the variable exist or not.

BUT doing

*/1 * * * * cd /Path/To/Script && Script.sh
#The Script.sh
echo $A_VARIABLE > /home/user/Desktop/test.txt

Do not generate the file ! and The CRON log give me

(CRON) info (No MTA installed, discaring ouput)

and yes, the  Script.sh has the execution bit.

Any ideas ?

Thanks.

[–] SpongeB0B@programming.dev 2 points 10 months ago

Ideally running the .py python foobar.py will be ideal, otherwise an .appimage

I think I will have to build it my self (the .appimage ) :)

[–] SpongeB0B@programming.dev 1 points 10 months ago

I like light system and moreover I like the simplicity of .appimage

Unlike some systems such as Snap and Flatpak, AppImages work with very little support from the base distribution.

To run the app, an user simply needs to run this file — there’s no intermediate installation step.

source: https://www.booleanworld.com/creating-linux-apps-run-anywhere-appimage/

[–] SpongeB0B@programming.dev 2 points 10 months ago

Thanks @fratermus@lemmy.sdf.org But graph-easy is text to graph. and I'm looking to draw ! so draw to ~graph(ASCII) but it's a nice program too.

[–] SpongeB0B@programming.dev 1 points 10 months ago

I'm not, I'm on MX Linux with SysVinit.

[–] SpongeB0B@programming.dev 1 points 10 months ago (1 children)

Thanks @Strit@lemmy.linuxuserspace.show , "Packaging" is not mandatory when creating a software, like it's was written It could run as .py trough python executable. but here it seem not

Otherwise I'm ok with .appimage format/packing.

 

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

Hi,

I'm looking for a soft to create ASCII diagram like (or better) https://asciiflow.com/

ideally:

  • FLOSS
  • for linux
  • offline
  • no javascript.

I've found a candidate ascii-draw and it's write in Python ❤️ 🐍, but it's only available as flatpack.. :/

 

Hi,

I'm looking for a soft to create ASCII diagram like (or better) https://asciiflow.com/

ideally:

  • FLOSS
  • for linux
  • offline
  • no javascript.

I've found a candidate ascii-draw and it's write in Python ❤️ 🐍, but it's only available as flatpack.. :/

 

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

Hi,

I would like to forward packets that come from a wireguard connection to a local subnet

environment
  • Client: connected to server trough wireguard IP 192.168.X.2
  • server: connected to Client trough wireguard IP 192.168.X.1 and 192.168.Y.1 ( it's not systemd free ¯\(ツ)/¯  )
  • aMachine: on the same subnet as server IP 192.168.Y.2

   

on the server I've done

#I don't know if this is necessary ?
echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf
sysctl --system

I've added the following rule to my nftables config but it seem the packet get lost ?

#added inside existing table `table ip Tip {}`
chain chPreRoute {
type nat hook prerouting priority 0; policy accept;
iif wg0 icmp type echo-request dnat to 192.168.Y.2
}
 

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

Hi,

I've recompiled my kernel[^moreinfo] of my raspberry pi 4 than run under Devuan rpi

some of the command used on the rpi to compile

apt install build-essential libncurses-dev bison flex libssl-dev libelf-dev
mkdir /RaspKernel_6_1_y && cd /RaspKernel_6_1_y
git clone --depth=1 --branch rpi-6.1.y https://github.com/raspberrypi/linux
cd linux
cp /boot/config-6.1.93 /RaspKernel_6_1_y/linux/.config
KERNEL=kernel8
make menuconfig
time make -j$((`nproc` - 2)) Image.gz modules dtbs
make -j$((`nproc` - 2)) modules_install
cp arch/arm64/boot/Image.gz /boot/broadcom/$KERNEL.img
cp arch/arm64/boot/dts/broadcom/*.dtb /boot/broadcom/
cp arch/arm64/boot/dts/overlays/*.dtb* /boot/firmware/overlays/
cp arch/arm64/boot/dts/overlays/README /boot/firmware/overlays/
reboot
apt install cryptsetup


In addition to have enabled some cipher/algorithm in the kernel config I have set a string ( TESTversionA ) in CONFIG_LOCALVERSION , may be I shouldn't have :/ ?

I'm currently following this guide LUKS on Raspberry Pi ( for context my related lemmy post )

So now that the kernel has been updated, the cryptsetup benchmark -c xchacha20,aes-adiantum-plain64 command is successful

So in order to enable luks in initramfs I'm following the preparing-linux section of this guide.

we can read:

initramfs has to be recreated

I followed the guidance and edited the initramfs-rebuild file to match my setup

initramfs-rebuild file

#!/bin/sh -e

# Rebuild initrd.gz after kernel upgrade to include new kernel's modules.
# https://github.com/Robpol86/robpol86.com/blob/master/docs/_static/initramfs-rebuild.sh
# Save as (chmod +x): /etc/kernel/postinst.d/initramfs-rebuild

# Remove splash from cmdline.
if grep -q '\bsplash\b' /boot/cmdline.txt; then
  sed -i 's/ \?splash \?/ /' /boot/cmdline.txt
fi

# Exit if not building kernel for this Raspberry Pi's hardware version.
version="$1"
current_version="$(uname -r)"
case "${current_version}" in
  *-v7+)
    case "${version}" in
      *-v7+) ;;
      *) exit 0
    esac
  ;;
  *+)
    case "${version}" in
      *-v7+) exit 0 ;;
    esac
  ;;
esac

# Exit if rebuild cannot be performed or not needed.
[ -x /usr/sbin/mkinitramfs ] || exit 0
[ -f /boot/broadcom/initrd.gz ] || exit 0
lsinitramfs /boot/broadcom/initrd.gz |grep -q "/$version$" && exit 0  # Already in initramfs.

# Rebuild.
mkinitramfs -o /boot/broadcom/initrd.gz "$version"


and when I run mkinitramfs -o /boot/broadcom/initrd.gz I got

grep: /boot/config-6.1.93TEST+: No such file or directory

I've did

cp /RaspKernel_6_1_y/linux/.config /boot/config-6.1.93TEST+
mkinitramfs -o /boot/broadcom/initrd.gz

and it seemed worked. I've edit the remaining files

  • /boot/broadcom/cmdline.txt
  • /etc/fstab
  • /etc/crypttab

rebooted. Landed in the initramfs shell as expected

but benchmark -c xchacha20,aes-adiantum-plain64 is no longer successful :'(

Cipher xchacha20,aes-adiantum-plain64 (with 256 bit key) is not available

Any ideas where might lay the problem ?

Thanks.

[^moreinfo]: --branch rpi-6.1.y https://github.com/raspberrypi/linux

 

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

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.

1
submitted 2 years ago* (last edited 2 years ago) by SpongeB0B@programming.dev to c/inkscape@lemmy.world
 

Hi,

is it possible to convert a path like this one

To a series of "line" stroke that are draw in the middle ? Like this (in green)

Thanks.

 

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

Hi,

Is it possible with Inkscape to squeeze a shape in a mirror way (sorry I don't know how to phrase it better) \

Here a gif from a rasterize/pixel editor with what I'm looking for

The same question on the official inkscape forum WTF the fuck happen to peoples ? Internet should not be a place where everyone could express, share what he want ?!

I'm glad their is Lemmy, so quick and easy

 

Hi,

Is it possible with Inkscape to squeeze a shape in a mirror way (sorry I don't know how to phrase it better) \

Here a gif from a rasterize/pixel editor with what I'm looking for

The same question on the official inkscape forum WTF the fuck happen to peoples ? Internet should not be a place where everyone could express, share what he want ?!

I'm glad their is Lemmy, so quick and easy

 

Hi,

No matter what I try


<style>
.FlexColumn {display: flex;flex-flow: column nowrap }
</style>

<div class="FlexColumn">
	<div>X</div>
	<div>X</div>
	<div>X</div>
	<div>X</div>
	<div>X</div>
</div>
<!-- I tried many CSS trick here... -->
<div>
   <span>X</span><br><span>X</span><br><span>X</span><br><span>X</span>
</div>

I always get a vertical gap between the characters !

Any ideas ?

Thanks.

view more: next ›