26
submitted 4 months ago by variants@possumpat.io to c/linux@lemmy.ml

Hello I am using crunchbang plus plus on a dell/wyse 5470 thin client and I want to add a OpenBox menu item to turn on and off my wireguard vpn with the sudo wg-quick up wg0 and sudo wg-quick down wg0 commands

currently I have

<menu id="menu-1473049" label="Wireguard">
      <item label="VPN On">
        <action name="Execute">
          <command>wg-quick up wg0</command>
        </action>
      </item>
      <item label="VPN Off">
        <action name="Execute">
          <command>wg-quick down wg0</command>
        </action>
      </item>
    </menu>

but nothing happens when I click them, also I tried with sudo in the command name and it didnt work either and Im not sure how it would ask for my password from a menu command? is this even possible?

you are viewing a single comment's thread
view the rest of the comments
[-] Snarwin@kbin.social 3 points 4 months ago

You could try the solution suggested in this reddit thread, and use systemctl to start and stop wireguard instead of wg-quick.

this post was submitted on 16 Feb 2024
26 points (93.3% liked)

Linux

45443 readers
1232 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS