linux

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

Mikelius, in How to exclude SSH port from VPN so you can remote access while VPN is up

Out of curiosity, why not just leave ssh access to the local network so you can only reach it by VPN in the first place? Note I might be misunderstanding what the goal of this was, so feel free to lmk if I’m off the field with my question lol

luthis,

I have protonVPN, therefore no way to forward packets from their endpoint to my pc.

WeAreAllOne,

Proton has port forwarding anyhow…

luthis, (edited )

I was surprised to learn this was a thing, impressive, however;

‘the VPN app sends a request to the VPN server to open a random port’

‘the active port number will change when you disconnect and reconnect the VPN.’

This will not work OOTB with Plex for example, you would need to change the port in the app every time. It becomes difficult to serve anything statically, like a XMPP server or anything that doesn’t let you configure the port.

You also would need to be at home to check which port you’ve been assigned eg if the connection drops and you get assigned a new port, defeating the whole ‘remote access’ thing.

Mikelius,

Oh gotcha, I misunderstood this post as talking about a self hosted VPN, not external provider. That explains it! :D

stargazingpenguin, in Looking for a "couch laptop"

What price bracket are you looking at? The two laptops that I normally use in that situation is a used Thinkpad X1 Carbon I got on eBay, and a HP Dev One that works pretty well for that.

parallax,
@parallax@local106.com avatar

I am fine with refurbished but ideally looking for around 13" and under a couple hundred bucks

stargazingpenguin, (edited )

The Thinkpad link that was shared below looks pretty nice, they tend to be fairly cheap and easy to get replacement batteries and parts. There’s a lot available in that $150 to $200 bracket on eBay. Edit: I just saw it’s 14", so a bit bigger than what you wanted. You can filter by screen size and price on eBay to give you an idea of what you can get. You may need a new battery depending on the age, so keep that in mind.

aida, in How to fix?

deleted_by_author

  • Loading...
  • MasterNerd,
    @MasterNerd@lemm.ee avatar

    No u

    KISSmyOS, (edited ) in on arch btw.

    I hate moving windows around.
    All windows open maximized without window decorations. Meta+WSAD moves the active window to the upper/lower/left/right half of the screen.
    Meta+PgDown minimizes, Meta+PgUp maximizes. Meta+Q tiles windows horizontally, Meta+E vertically. Meta+X closes the window, Meta+Spacebar shows the desktop, Meta alone shows the workspace overview.
    Fuck hunting for window borders, clicking and dragging. And fuck configuring all this in a text file.

    (I use OpenSUSE with KDE by the way)

    worsedoughnut,
    @worsedoughnut@lemdro.id avatar

    Ever considered trying out a tiling window manager?

    KISSmyOS, (edited )

    No. I need the functionality of a full desktop environment.
    And KDE’s workspace overview is awesome. One keypress and I see all open windows, all workspaces and a global search field that switches to a program when it already has an open window and opens a new window if not.
    And a tiling WM on top of KDE would be pointless to me since the behavior of a tiling WM can be configured through the GUI in KDE without installing anything extra.

    MusicPiano,

    What kde provides that sway or hyprland don’t?

    KISSmyOS, (edited )

    I’m not familiar with sway or hyprland, but KDE automatically finds and configures any modern scanner and printer in the network, makes all programs use the same theme, saves my passwords and certificates, auto-mounts attached drives, auto-starts programs and services, handles which program opens which file type, has a nice workspace overview, lets me configure the firewall, grub, bootsplash screen, VPN, network settings, monitors, keyboard layout, etc… all with sane defaults out of the box, localized to my language, and easy GUI configuration.

    Hexarei,
    @Hexarei@programming.dev avatar

    For what it’s worth, a large number of the things you listed are actually portable into Sway, i3wm, and a lot of other tiling wms just by way of running the KDE settings daemons - I do the same kinds of things (network printer, theming, auto-mount, auto-start, XDG config, firewall, vpn, network settings, monitors, keyboard layout) just by having i3wm start up xfce-settings-daemon.

    I’m not familiar enough with KDE to make promises about grub and splash, but I would imagine those would also work exactly the same as well. In fact, a little bit of searching and it looks like if you’re on Wayland you could even just replace KWin (the KDE window manager) with Sway in the startup files and be 95% of the way there. Might just need to configure a system bar or something to that effect.

    worsedoughnut,
    @worsedoughnut@lemdro.id avatar

    Yeah I also use KDE on my desktop, though I have my laptop running QTile because the tile hotkeys are much more convinient than navigating with the trackpad.

    KISSmyOS,

    You can freely configure tiling and any hotkeys in KDE as well.

    worsedoughnut,
    @worsedoughnut@lemdro.id avatar

    Sure, but that’s not the only benefit to having full control over the entire tiling interface. I enjoy building out the features and visuals I want in python. It’s fun to have that level of control.

    KISSmyOS, (edited )

    I enjoy building out the features and visuals I want in python. It’s fun to have that level of control.

    I respect that, but I have different hobbies.

    worsedoughnut,
    @worsedoughnut@lemdro.id avatar

    lol totally fair

    Emma_Gold_Man, (edited )

    kwin supports a tiling mode which it sounds like they’re already using, so … yes?

    MycoBro,

    I3 baby

    sirico,
    @sirico@feddit.uk avatar

    Gnome with forge is a good time

    smpl, (edited ) in help me port this simple extension to GNOME 45
    @smpl@discuss.tchncs.de avatar

    GNOME Shell 45 moved to ESM (ECMAScript modules). That means you MUST use the standard import declaration instead of relying on the previous imports.* approach.

    gjs.guide/extensions/…/gnome-shell-45.html

    So the imports in your extensions is changed from:

    
    <span style="color:#323232;">const Clutter = imports.gi.Clutter;
    </span><span style="color:#323232;">const Gio = imports.gi.Gio;
    </span><span style="color:#323232;">const Main = imports.ui.main;
    </span><span style="color:#323232;">const Volume = imports.ui.status.volume;
    </span>
    

    to

    
    <span style="color:#323232;">import Clutter from 'gi://Clutter';
    </span><span style="color:#323232;">import Gio from 'gi://Gio';
    </span><span style="color:#323232;">import * as Main from 'resource:///org/gnome/shell/ui/main.js'
    </span><span style="color:#323232;">import * as Volume from 'resource:///org/gnome/shell/ui/status/volume.js';
    </span>
    
    dysprosium,

    well that’s what I tried, but how would I know where Volume is located in the path 'gi:// … '. Is there any way of browsing / exploring the jave files to that I can actually know what the path is?

    smpl,
    @smpl@discuss.tchncs.de avatar

    I edited my comment with an example for your code and my best advice for figuring out the path of gnome shell imports is by browsing /usr/share/gnome-shell/js/, the docs are not very helpful.

    dysprosium,

    Aha I see. Except I’m not sure if the path /usr/share/gnome-shell/js/ is correct? The folder/file js does not exist on my end.

    smpl,
    @smpl@discuss.tchncs.de avatar

    It is very likely the wrong path, I just extrapolated the path from the gnome-shell git repo. I don’t use Gnome myself, I’m on the enemy team using LXDE on Devuan ;)

    smpl,
    @smpl@discuss.tchncs.de avatar

    Just to clarify. The gi:// resources are GObject Introspection modules which are used for multilanguage bindings to native libraries. On my system, GI modules are found in /usr/share/gir-1.0/ . They’re just imported by name and sometimes version using gi:// (there are examples in the link in my first comment).

    As I don’t have Gnome installed I can’t be sure of the path to gnome shell modules imported using resource://, but it’s probably the path I wrote, but without js/.

    Eufalconimorph, in Use cases over 'distro' discussions

    People use computers to accplish tasks. That requires running software on an OS, but nobody runs software or an OS just to sit & watch it exist. They run it to accomplish tasks.

    Different distros mostly vary in how easy it is to accomplish various tasks. No one distro is the easiest for everything, so people make different choices depending on their needs.

    kungen, in How to exclude SSH port from VPN so you can remote access while VPN is up

    If you’re looking for more improvements, I’d recommend using a non-default SSH port and to include the destination IP in the rules.

    luthis, (edited )

    Ahead of you with the non-default port, I just didn’t use it in the example.

    But for the destination IP, I won’t always be connecting remotely from the same one. Or am I misunderstanding what you mean?

    kungen,

    Aha, I think I misunderstood your situation then? I assumed you’re running these routing rules on your client machine, so you’re able to access your ssh server without it going over the VPN – not that your server is running a VPN active that blocks external connections…?

    But if I didn’t misunderstand, I’d mean the (assumingly static) ssh server’s IP.

    luthis,

    No it’s the second one; server (home pc) is running ProtonVPN and there is a default route that makes all (ie ssh replies) traffic go through the VPN.

    I added some clarification, but basically this sets up a port-based default route to the home router instead of the VPN, so that SSH etc works.

    TCB13, in How to exclude SSH port from VPN so you can remote access while VPN is up
    @TCB13@lemmy.world avatar

    Finally someone who learnt how to use systemd.

    luthis,

    learnt

    learning… it’s extensive!

    TCB13,
    @TCB13@lemmy.world avatar
    luthis,

    Woooah awesome thanks!

    There goes my whole day again on systemd…

    EinfachUnersetzlich,

    We really need a ConfidentlyIncorrect community on Lemmy.

    skullgiver, (edited )
    @skullgiver@popplesburger.hilciferous.nl avatar

    deleted_by_author

  • Loading...
  • CmdrShepard,

    This (and “tyre”) is why we won the war.

    luthis,

    Yes but… I am learnING??

    llothar, in Framework 13 With AMD Ryzen 7040 Makes For A Great Linux Laptop (Review)

    Wanted to buy framework laptop for the longest time, but they dont ship to Norway :(

    maggio,

    Ship it to Berlin and I’ll bring it when I go home for xmas. No really, Im sure you know someone in EU

    joyjoy, in help me port this simple extension to GNOME 45

    FYI There’s an active fork that supports Gnome 45.

    dysprosium,

    Ah good. I couldn’t find any. But still, I’m wondering how to port extensions. I’ve got more, even some self-made.

    joyjoy,

    I would suggest looking at the GNOME developer guide.

    markstos, in Ubuntu 24.04 LTS Committing Fully To Netplan For Network Configuration

    How is it better than using NetworkManager or systemd-networkd directly?

    Why is it worth the extra complexity?

    curve,

    I like yaml generally but netplan was a huge unnecessary pain in the ass.

    dauerstaender, (edited )

    It has a structured yaml with a test command for potentially destructive config changes over ssh. Other than that: none. It was a real pain upgrading some servers, as always with Ubuntu.

    aairey,

    I just moved to Ubuntu from Fedora Silverblue, for some $reasons. I regret it already.

    moonpiedumplings,

    You know what can also test destructive changes?

    Cockpit’s networkmanager interface.

    It literally has no benefits, and is only a pain to use.

    Actually, it does have one benefit: it integrates with Canonical’s other tech. For example, MAAS uses ot for networking, and I bet lxc uses it somehow.

    agressivelyPassive, in SBC's with better mainline Linux support than Raspberry Pi?

    Are you married to SBCs? There are dirt cheap, pretty powerful and small thin clients floating around in ebay. HP G3 mini for example.

    SapphironZA,

    Agree on this. Servethehome on YouTube has a series on different 1 litre PCs they review in detail.

    rmuk,

    Can’t even being to agree enough on this. Unless you specifically need something that an SBC - ARM or X86 - offers, a second hand thin client or USFF computer will be a better fit, plus they come with high-quality power supplies and solid cases.

    cyclohexane,

    They seem to be the only product that occupies negligible space and is relatively affordable.

    The other options are either more expensive or significantly larger.

    agressivelyPassive,

    Well, not really. The HP g3 mini is roughly the size of a paperback book and costs around 100€, depending on the specs. Similar devices of slightly older makes are even cheaper.

    So, yes, they are physically larger, but still pretty small. Chances are, you don’t actually need a tiny device like a Pi, so you should at least consider SFF PCs.

    Perroboc, in Help. Various games stopped working and i have no idea how to diagnose the issues

    How do you handle which GPU is used in which game? I would guess you have an AMD iGPU, and a Nvidia GPU for games, right? Maybe something along those lines got updated?

    dynamo,

    That’s correct, but i mostly let the laptop handle it, unless i know for a fact that a game needs/doesn’t need the N GPU, in which case i either manually switch it over or (and this is the case for wine apps through bottles) i configure the program to only use the iGPU

    Perroboc,

    What are you using to switch the GPU? Have you tried alternatives? EnvyControl for example.

    Also, have you checked if you’re using ONLY Radeon-Vulkan for the AMDGPU, and not AMDVLK also?

    dynamo,

    No clue, since mint cinnamon (afaik) doesn’t have a GUI for managing gpu drivers i don’t know how to approach it.

    TerraRoot,

    Can you simplfy the issue by disabling the nvidia in bios?

    imgel, (edited ) in This week in KDE: Panel Intellihide and Wayland Presentation Time

    Yo this update is crazy.

    Max_P, in Ubuntu 24.04 LTS Committing Fully To Netplan For Network Configuration
    @Max_P@lemmy.max-p.me avatar

    What is even the value of Netplan on… desktop? Most people just pick their WiFi in the menu in Gnome. That sounds like a lot of unnecessary complexity.

    For servers, sure, it’s fairly nice. But, desktop? Why?

    astraeus,
    @astraeus@programming.dev avatar

    24.04 LTS is a distribution intended primarily for servers, desktop is not the priority environment.

    Max_P,
    @Max_P@lemmy.max-p.me avatar

    Netplan’s been the default since 20.04 on the server side and the article says it’s coming to the desktop release with 24.04.

    GnomeComedy,

    I think it was actually the default on 18.04 LTS as well.

    astraeus,
    @astraeus@programming.dev avatar

    For Ubuntu 24.04 LTS, Canonical plans to polish the Netplan codebase and deliver a Netplan 1.0 release with API/ABI stability. They are also hoping other Linux distributions begin adopting Netplan. Debian so far has decided to go with Netplan for their nework stack on Debian Cloud images.

    That’s probably the reason for pushing it to desktop builds.

    vanderbilt,
    @vanderbilt@beehaw.org avatar

    For what it’s worth I didn’t even notice they changed it. Can’t be the end of the world but I’d like to hear what network admins opinion’s are.

    Max_P,
    @Max_P@lemmy.max-p.me avatar

    If you’re just using DHCP, you won’t. What Netplan does is take a YAML input file and renders it as a systemd-networkd or NetworkManager configuration file. It’s a very quick and easy way to configure your network, and even have a try command that auto reverts in case you get kicked out of your SSH session.

    It seems like what they’re doing for the desktop is hacking up NetworkManager so that it saves back its config as Netplan configs instead of regular NetworkManager configs. That’s the part I’m confused about, because NetworkManager is huge and Netplan doesn’t support close to every option. Their featuresets are wildly different. And last time I checked, the NetworkManager renderer was the least polished one, with the systemd-networkd one being close to a 1:1 match and more reliable.

    It made a lot more sense when it was one way only. Two way sounds like an absolute mess.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 22357344 bytes) in /var/www/kbin/kbin/vendor/symfony/http-kernel/Profiler/FileProfilerStorage.php on line 174

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 10402568 bytes) in /var/www/kbin/kbin/vendor/symfony/error-handler/ErrorRenderer/HtmlErrorRenderer.php on line 339