• 3 Posts
  • 73 Comments
Joined 2 years ago
cake
Cake day: June 12th, 2023

help-circle




  • bravemonkeytoraspberrypi@lemmy.mlRDP stopped working
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    1 month ago

    From the Windows side (assuming you’re using Windows to connect, considering it’s RDP and not VNC), you can open PowerShell and test to see if the Raspberry Pi is even listening for RDP connections with:

    Test-NetConnection x.x.x.x -port 3389

    Replace x.x.x.x with the IP address of the Raspberry Pi. If it shows successful, then the Raspberry Pi is listening for RDP connections.

    Do you know what RDP package you installed, and what operating system you’re running (Bookworm, Bullseye, etc)? I don’t have a raspberry pi with a desktop to test on, but if you’re using xrdp you could try:

    sudo systemctl status xrdp

    Does this give any input? If not, then you’ll need to know what package you installed to get RDP, assuming one is still installed even. If it does give you a message it might be a hint as to why it’s not working.

    If you get output from the above command you can also try:

    sudo journalctl -b | grep -C 2 xrdp

    There are much better ways of searching journalctl but I’m a noob too. The -b returns only errors from the last boot time, the -C returns that many lines before and after a match is found.






  • bravemonkeyOPtolearnpython@lemmy.mlIf statement behaving oddly
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 months ago

    Yeh, that initialization was doing it. Not sure there’s a way to initialize it without powering it on, but at least I know!

    A lot of the code I posted came from both trying to get a working test showing me if it got to the place I wanted as well as wanting a third option without multiple elif statements. I’m really just learning Python so lots of ways it could be better, I’m sure.


  • bravemonkeyOPtolearnpython@lemmy.mlIf statement behaving oddly
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 months ago

    Found the problem, as mentioned in another reply. I really appreciate your response here though - I’m coming from a PowerShell scripting background with my day job, and learned about arguments in Python just this morning. I didn’t know about ‘choices’, but that’s super handy.

    I had tried ‘is not None’ and didn’t have any luck so then tried == with the same outcome.