Corsair

joined 2 years ago
 

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

Hi,

I would like to found a regex match in a stdout

stdout

 /dev/loop0: [2081]:64 (/a/path/to/afile.dat)

I would like to match

/dev\/loop\d/

and return /dev/loop0

but the \d seem not working with awk ... ?

How to achieve this ? ( awk is not mandatory )

 

Hi,

I would like to found a regex match in a stdout

stdout

 /dev/loop0: [2081]:64 (/a/path/to/afile.dat)

I would like to match

/dev\/loop\d/

and return /dev/loop0

but the \d seem not working with awk ... ?

How to achieve this ? ( awk is not mandatory )

[–] Corsair@programming.dev 1 points 4 weeks ago* (last edited 4 weeks ago)

a more accurate diagram of what I'm targeting..

┌──────┐       ┌───────┐         ┌───┐  
│Node 1│       │Node 2 │         │DVR│  
└──┬───┘       └┬──────┘         └─┬─┘  
   │            │                  │    
   │            │                  │    
vlan10         vlan10             vlan20
   │            │                  │    
   └─────────□  □  □───────────────┘    
             ┌───────────┐              
             │hEX refresh│              
             │E50UG      │ □            
             └───────────┘              
                 □                      
                 │                      
                 │                      
                 │                      
              trunking                  
                 │                      
                 │                      
                 │                      
                 □                      
               ┌───┐  □                 
               │hEX│  □                 
               └───┘  □                 
                      □                 

□ = port

So it should be possible for Node 1 to reach DVR ? Either trough Firewall or VLAN rules ?

[–] Corsair@programming.dev 1 points 4 weeks ago* (last edited 4 weeks ago) (1 children)

Thanks @fraksken@infosec.pub

with Firewall I get how to do it, but with VLAN ??
I was thinking an access port could be only on VLAN at the time no ?

 

Hi,

Is it possible in a router to route traffic from one specific node ( here the laptop to the DVR) but not the other way around ( DVR to 192.168.10.0/28 ) ?

        192.168.10.1/28             
            ┌──────┐                
            │laptop│                
            └───┬──┘                
                │                   
                │                   
                │                   
                ▼                   
             ┌──────┐               
        ┌────┤router├──┐            
        │    └──────┘  │            
        │              │            
        ▼              ▼            
     ┌──────┐        ┌───┐          
     │server│        │DVR│          
     └──────┘        └───┘          
192.168.10.2/28      192.168.20.1/28
                             ──     

Meaning, I want to keep the DVR in it's subnet only. But allow the laptop to reach it.

Thanks.

3
submitted 4 weeks ago* (last edited 4 weeks ago) by Corsair@programming.dev to c/meta@programming.dev
 

Hi,

I saw that someone replied to one of my topics, and I wanted to react or reach him back. But I've saw the following :

I suppose it's only the Network community ? (where the post was hosted ? )

I've discovered the modlog

https://programming.dev/modlog?page=19&actionType=ModBanFromCommunity&userId=1227688

But this user seem to have a lot of activity :) So I don't find why on Network he was Banned ?
is there an easy way ?

Thanks.

[–] Corsair@programming.dev 0 points 3 months ago* (last edited 3 months ago)

Thanks @testman@lemmy.ml

StackOverflow says that it can be done by editing xrdp.ini

This post date from 2013 O_o

default /etc/xrdp/xrdp.ini in my version

[Xorg]
name=Xorg
lib=libxup.so
username=ask
password=ask
ip=127.0.0.1
port=-1
code=20

[Xvnc]
name=Xvnc
lib=libvnc.so
username=ask
password=ask
ip=127.0.0.1
port=-1

[vnc-any]
name=vnc-any
lib=libvnc.so
ip=ask
port=ask5900
username=na
password=ask

[neutrinordp-any]
name=neutrinordp-any
lib=libxrdpneutrinordp.so
ip=ask
port=ask3389
username=ask
password=ask

so I don't have [xrdp1]

   

To summarize:

Edit the xrdp.ini file set port = ask connect from the remote machine, and at login if you have no existing session, specify port -1 to resume a session enter the default of 5910

I believe this i working if the previous session was already made remotely.. ?otherwise how I get the port of the local X session ?

   

Is there a specific reason for choosing RDP?\

rdp is usefull if you have windows client client, but that it's.

   

And RustDesk is also a good, more advanced alternative.

great piece of software, but too heavy in my case, I want something simple, that just do one thing good. I don't need

  • End-to-end encryption
  • File transfer
  • Chat features
 

Hi,

I've installed xrdp on Devuan(debian with sysvinit)

when I connect from other machine (linux, windows) with rdp, I get a fresh new desktop (even the wallpaper is the default one) and none of the opened windows on the server (same account) is displayed on the remote client.

Is it the nature of the rdp protocol or is it possible to reconnect to the same xfce session ?

Thanks.

[–] Corsair@programming.dev 1 points 3 months ago

it works back, it's just super slow.....

8
submitted 4 months ago* (last edited 3 months ago) by Corsair@programming.dev to c/programming@programming.dev
 

Hi,

Is it just me, or posting image is not working anymore on programming.dev ?

Thanks.

 

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

Hi,

I would like to create a LAN where each node need to authenticate before gaining access to the LAN.

and secondly be able to monitor the data consumption of each node and even limit the speed for a node when exceeded.

I'm looking for something FLOSS. For example a single-board computer with a gnu/Linux etc...

Maybe some distribution or solution already exist for this ?

Thanks.

 

Hi,

I would like to create a LAN where each node need to authenticate before gaining access to the LAN.

and secondly be able to monitor the data consumption of each node and even limit the speed for a node when exceeded.

I'm looking for something FLOSS. For example a single-board computer with a gnu/Linux etc...

Maybe some distribution or solution already exist for this ?

Thanks.

 

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

Hi,

I would like to make some simple network simulations

I've tried to make run few (under Linux or Windows)

  • Kathara
  • GNS3
  • EVE-NG (3.1 GB ! to download )
  • omnetpp
  • ns-3
  • Cisco Packet Tracer (Not FLOSS, if I'm not mistaken )

The only one that I managed to install, run and use (set some nodes) was sadly the Cisco Packet Tracer ...

They other have their install process way to much complex or with such layer of dependency or more simply they way the works is too complex (running side VM for each nodes etc..) make it challenging to installing.

Do youn know a FLOSS Network Simulator , this is easy to install ?

Thanks.

 

Hi,

I would like to make some simple network simulations

I've tried to make run few (under Linux or Windows)

  • Kathara
  • GNS3
  • EVE-NG (3.1 GB ! to download )
  • omnetpp
  • ns-3
  • Cisco Packet Tracer (Not FLOSS, if I'm not mistaken )

The only one that I managed to install, run and use (set some nodes) was sadly the Cisco Packet Tracer ...

They other have their install process way to much complex or with such layer of dependency or more simply they way the works is too complex (running side VM for each nodes etc..) make it challenging to installing.

Do youn know a FLOSS Network Simulator , this is easy to install ?

Thanks.

[–] Corsair@programming.dev 1 points 10 months ago* (last edited 10 months ago)

I think I found the cause.

one of the parent div have is properties perspective and it seem to be the problem... (Firefox 115*)

So I created an dirty workaround ;)

 

Hi everyone,

I would like one of my div to have an background-attachment: fixed

But the background still scroll 😤

This div is under html body div div div div div

and it CSS properties are

#TheDiv {
    min-height: 100vh;
    min-width: 100vw;
    background-image: url('/anImage.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center center;
    position: absolute;
    left: 0;
    padding: 40px;
    box-sizing: border-box }

Any Ideas, what could cause the background to scroll anyway ?

Thanks

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

Thank you @nnullzz@lemmy.world & @bjorney@lemmy.ca & @fubarx@lemmy.ml

for those explanations ! So, as I have my hand on a raspberry , I will give a shot with that first :)

 

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

Hi everyone,

I would like to learn to program and built project using MicroControllers

I'm a Python dev. Therefore I would like to use it to program those.

But I've no idea where to start..

  • For the hardware:
    • What will be the best Raspberry Pi or Arduino ?
      I know they are not the same thing but could tell me in which situation you use more one than the other ? Or do you use something else ?
  • Software
    • I've already my IDE VisualCodium
      What is MicroPython Vs CircuitPython ?

If you have any resources I'm all eras.

Thanks.

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

Thank you very much for your feedback @anzo@programming.dev & @rimu@piefed.social

[–] Corsair@programming.dev 2 points 11 months ago (1 children)

Thanks @pietervdvn@lemmy.ml unfortunatly ikea is quite the opposite of

... ~strong ...

[–] Corsair@programming.dev 0 points 1 year ago (1 children)

Thanks @Max_P@lemmy.max-p.me weird because I can use XHR as async.. see: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/open open(method, url, async)

[–] Corsair@programming.dev 2 points 1 year ago* (last edited 1 year ago)

Thank you all for your input's !! 🤗

I've put the files on a USB flash drive formatted as a classic FAT. Then I mounted it in the VM (I confirm no need the VMware-tools for that :)

[–] Corsair@programming.dev 1 points 1 year ago

Really cool ! (bookmarked*)
Just the essential !
to bad there isn't either a difference between versions or a history of the changes

[–] Corsair@programming.dev 1 points 1 year ago

Thank you very much @Windex007@lemmy.world , any names for GitHub alternatives ?

view more: next ›