Search
Can't connect to host after enabling WireGuard tunnel
I installed WireGuard on my host and set this configuration /etc/wireguard/wg0.conf
:
``` [Interface] Address = 10.0.0.1/24 ListenPort = 51820 PrivateKey = [REDACTED] PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -t nat -A POSTROUTING -o ens3 -j MASQUERADE PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -t nat -D POSTROUTING -o ens3 -j MASQUERADE
[Peer] PublicKey = [REDACTED] PresharedKey = [REDACTED] AllowedIPs = 10.0.0.2/32
[Peer] PublicKey = [REDACTED] PresharedKey = [REDACTED] AllowedIPs = 10.0.0.3/32
[Peer] PublicKey = [REDACTED] PresharedKey = [REDACTED] AllowedIPs = 10.0.0.4/32
[Peer] PublicKey = [REDACTED] PresharedKey = [REDACTED] AllowedIPs = 10.0.0.5/32
[Peer] PublicKey = [REDACTED] PresharedKey = [REDACTED] AllowedIPs = 10.0.0.6/32
[Peer] PublicKey = [REDACTED] PresharedKey = [REDACTED] AllowedIPs = 10.0.0.7/32
[Peer] PublicKey = [REDACTED] PresharedKey = [REDACTED] AllowedIPs = 10.0.0.8/32
[Peer] PublicKey = [REDACTED] PresharedKey = [REDACTED] AllowedIPs = 10.0.0.9/32
[Peer] PublicKey = [REDACTED] PresharedKey = [REDACTED] AllowedIPs = 10.0.0.10/32
[Peer] PublicKey = [REDACTED] PresharedKey = [REDACTED] AllowedIPs = 10.0.0.11/32
``` Nmap scan when wg0 is down:
``` Starting Nmap 7.93 ( https://nmap.org ) at 2024-08-16 03:26 CDT Host is up (0.050s latency). Not shown: 998 closed tcp ports (conn-refused) PORT STATE SERVICE 22/tcp open ssh 179/tcp filtered bgp
Nmap done: 1 IP address (1 host up) scanned in 1.93 seconds ```
Nmap scan when wg0 is up:
``` Starting Nmap 7.93 ( https://nmap.org ) at 2024-08-16 03:27 CDT All 1000 scanned ports are in ignored states. Not shown: 1000 filtered tcp ports (no-response)
Nmap done: 1 IP address (1 host up) scanned in 201.43 seconds
``` I also cannot connect to host via ssh. How to fix this issue?
Upd. Fixed my changing server WireGuard IP to 10.0.1.1. 10.0.0.1 was already taken
What's the best way to hide the preinstalled software you don't need from the KDE menu?
![](https://lemmy.ml/pictrs/image/e43d90ea-77f5-4fdb-b121-59b3a5177e98.png?format=webp&thumbnail=128)
![](https://lemmy.ml/pictrs/image/e43d90ea-77f5-4fdb-b121-59b3a5177e98.png?format=webp)
shared from: https://feddit.org/post/1848262
> I like the Slackware approach of installing the kitchen sink by default. Disk space is cheap.
> But I find that the cluttering of the menus in KDE is a bit annoying. I use search to start my applications, and a lot of the time I have to type almost the full program name to get to the app I actually use.
> What's the easiest way to hide a large number of programs from the menus, which is also easily reversible?
>
> My first idea was renaming the .desktop files in /usr/share/applications to .hidden
> But they seem to be recreated automatically.
>
> Another idea was to copy .desktop files from /usr/share/applications to ~/.local/share/applications and then do:
> printf "\nHidden=True" | tee -a ~/.local/share/applications/*.desktop
>
> But I tried to add this manually with one test file and it didn't seem to have any effect.
> Is there a config file somewhere that specifies in which paths .desktop files are parsed?
>
> Or is there a better way?
>
> Thanks a lot, and happy slacking!
[Solved] Slackware comes with kmenuedit which can be accessed by right-clicking the app menu.
Disk utility to use in scripts
Is there any good alternative to parted, that I can use in scripts? Parted main problem is that it requires user confirmation one each action.
New Ubuntu update just wiped out my enitre drive
I don't usually update, but today I opened Xubuntu and the update manager popped up, so I clicked to install - it was just a 13 MB update. After updating, I opened Floorp and started seeing that all my icons at the taskbar, everything, started disappearing. It's like I did "sudo rm -rf"! I'm not even mad. I always wanted to try EndeavourOS, and now Xubuntu has given me the opportunity to install it. Now downloading the EndeavourOS ISO and will install KDE on it. Enough rant/vent for now - REAL QUESTION: can anyone tell me how to theme GTK-based GNOME apps on KDE?
How to copy existing Timeshift Snapshot to another drive?
I want to copy (not move) my Timeshift Snapshots (Rsync) from my existing drive to another drive. Both drives are ext4. As far as I searched I am not able to find any viable results.
If not possible, just why?
--- ---
Solved
https://www.cyberciti.biz/faq/linux-unix-apple-osx-bsd-rsync-copy-hard-links/
TLDR
sudo rsync -az -H --delete --numeric-ids /path/to/timeshift path/to/destination/
Where,
-a
: Archive mode (i.e. recurse into directories, and preserve symlinks, file permissions, file modification times, file group, file owner, device files & special files)
-z
: Compress file data during the transfer
H
: Preserve hard links (i.e. copy hard links as hard links)
--delete
: Delete extraneous files from the receiving side (ones that aren't on the sending side), but only for the directories that are being synchronized i.e. keep exact replica of your /path/to/timeshift
directory.
--numeric-ids
: Transfer numeric group and user IDs rather than using user and group names and mapping them at both ends.
--progress
: Show progress during transfer.
--log-file="/var/log/my-rsync-script.log"
: Log what rsync command is doing to the /var/log/my-rsync-script.log file.
---
Thanks to @[email protected]
Original Comment: https://lemmy.world/comment/11611743
I seem to have nuked my Debian DE (Gnome)... Could someone help me with this?
![](https://lemmy.ml/pictrs/image/8c1594d8-9473-4463-a7cf-6f4eb25c64ff.jpeg?format=webp&thumbnail=128)
![](https://lemmy.ml/pictrs/image/8c1594d8-9473-4463-a7cf-6f4eb25c64ff.jpeg?format=webp)
The messages here are mostly in German, but I'll try to translate mist of it:
**dpkg:** Error when editing the package linux-image-6.9.7+bpo-amd64 (--configure): <<Installed posts installation script of the package linux-headers-6.9.7+bpo-amd64<<-subprocess returned error code 1 **dpgk:** dependency error hinders configuration of <that Linux header package>: linux-headers-6.9.7+bpo-amd64 depends on linux-image-6.9.7+bpo-amd64 (= 6.9.7-1~bpo12+1) | linux-image-6.9.7+bpo-amd64 -unsigned (= 6.9.7-1~bpo12+1); but: Package linux-image-6.9.7+bpo-amd64 is not configured yet. Package linux-image-6.9.7+bpo-amd64-unsigned is not installed. **dpgk:** Error while editing the Package linux-headers-6.9.7+bpo-amd64 (--configure): Dependency problem - remains unconfigured **dpkg:** Dependency problem hinder configuration of linux-headers-amd64: linux-headers-amd64 depends on linux-headers-6.9.7+bpo-amd64 (= 6.9.7-1~bpo12+1); but: Package linux-headers-6.9.7+bpo-amd64is not configured yet. **dpkg:** Errow while editing package linux-headers-amd64 (--configure): Dependency problem - remains in configured Errors occurred while editing these: linux-image-6.9.7+bpo-amd64 linux-headers-6.9.7+bpo-amd64 linux-headers-amd64
I really hope someone can help me out here..
EDIT: I kinda forgot to actually mention my problem. When booting nornall, I get stuck at a lonely white blinking cursor on a black screen, so startx seems to make some problems. I enter a TTY and run startx and this is what I get when running startx:
SOLUTION
- Uninstall your current nvidia driver (for example using sudo apt remove nvidia-driver on Debian)
- Install the headers for your kernel. your kernel you can check rather easily by running neofetch
- Install the headers required for your kernel. Do that by listing all packages with your kernel name in it. For example like this:
apt list *6.9.7+bpo*
- reboot, install your nvidia driver again and rovoot again. Should be done.
First time installing linux (Debian). Got this error. Please help
![](https://lemmy.world/pictrs/image/1e073a39-e832-42c9-9375-2a64f5fc5a1c.jpeg?format=webp&thumbnail=128)
![](https://lemmy.world/pictrs/image/1e073a39-e832-42c9-9375-2a64f5fc5a1c.jpeg?format=webp)
I installed it from the Calamaries Installer found in the LIVE USB ISO this time. And Instead of my primary hdd, I installed it on the other one. Works now, thanks for all of your support, dear nerds.
sharing audio over network with obs studio
i want to share audio over network so that i can use my tv as a wireless speaker. so i chose obs studio to make a stream out of my system audio coz i had it installed already. i went to settings -> output (advanced) -> recording (custom)
and set ffmpeg output
to output to url
and set the url to udp://192.168.43.87:8081
and set container format
to mp3
just to get started. so to test things out i ran mpv udp://192.168.43.87:8081
on the same machine and it plays audio. but when i tried accessing it from my android phone with mpv client, it doesnt play the audio, it just shows black screen for while and return to main menu of mpv app. thanks in advance.
--- edit
iptables: ``` Chain INPUT (policy ACCEPT) target prot opt source destination ACCEPT tcp -- anywhere anywhere ACCEPT udp -- anywhere anywhere
Chain FORWARD (policy ACCEPT) target prot opt source destination
Chain OUTPUT (policy ACCEPT) target prot opt source destination ```
solution
I set the sender's IP address as output URL in obs studio, thats the issue. To fix this, set the receiver's IP address as output URL. Yeah you can't broadcast with this ig.
Using clangd with vscode to develop a flatpak
I'm developing a program in C++ targeting flatpak, since I'm on an immutable system I'd rather develop for flatpak than try using a container (plus I can't get SDL to open a window in a container anyway). Everything works with GNOME Builder but it's not as nice to use as vscode: less syntax highlighting, doesn't reopen where I left off, can't debug multiple instances (Not to say I don't like GNOME Builder - it's really good and will only get better, it's just slowing me down at this point). I managed to get the flatpak building and debugging from within code, using the vscode-flatpak extension the only thing not working properly is clangd. I am using the meson build system.
This is probably a bit of a long shot, but has anyone else tried to do this?
BTW I'm not talking about using clangd with the vscode flatpak package
Is there a way to turn off the "Show Apps" hover effect?
![](https://lemmy.world/pictrs/image/fc122100-4ff9-4874-8b47-2d56ba6c9c50.png?format=webp&thumbnail=128)
![](https://lemmy.world/pictrs/image/fc122100-4ff9-4874-8b47-2d56ba6c9c50.png?format=webp)
[SOLVED] Go to Gnome Settings > Multitasking > Disable Hot Corners
I'm on NixOS 24.05 and I'm using GNOME 46.2 (Wayland) and whenever I hover over the upper left corner of my screen all apps are showing as if I clicked the "Show Apps" button. Is there any way to turn it off? It's driving me insane. Since I'm working with multiple monitors, it's happening quite frequently. Thanks in advance.
Fedora 40 won't boot with Kernel 6.8.10 or above
![](https://lemmy.ml/pictrs/image/fc97ab02-ca0f-436e-b996-43d04d1e04f0.jpeg?format=webp&thumbnail=128)
![](https://lemmy.ml/pictrs/image/fc97ab02-ca0f-436e-b996-43d04d1e04f0.jpeg?format=webp)
My Fedora 40 system won't boot with any kernel over 6.8.10.
I've had this problem for about a month now and have been putting it off, as I haven't really been using my computer recently, but it needs to be addressed.
I'm running a Fedora 40 KDE 6 distro, which was upgraded from Fedora 39. It's been working pretty well for the half year I've been using it but recently I've encountered an issue. About a month ago, after upgrading my system to kernel 6.8.10, my system started to hang while in boot.
usb 1-10 device descriptor read/64, error -71 [ OK ] Started plymouth-start.service - Show Plymouth Boot Screen [ OK ] Started systemd-ask-password-plymoūquests to Plymouth Directory Watch [ OK ] Reached target paths.target - Path Units. [ OK ] Found device dev-disk-by\x2duuid-dūsung SSD 970 EVO Plus 500GB fedora. [ OK ] Reached target initrd-root-device.target - Initrd Root Device. [ *** ] Job dev-mapper-cl\x2dswap.device/start running (xxs / no limit)
Fortunately Fedora saves the previous 2 kernels versions and I was able to boot into my computer using Kernel 6.8.9. When I went to check what was wrong I noticed that with kernel 6.8.10 it always hangs at this part of the boot process.
[ *** ] Job dev-mapper-cl\x2dswap.device/start running (xxs / no limit)
I understood that this has something to do with swap but I'm unsure what the issue is exactly. My Fedora install doesn't have a swap partition, it uses zram. I'm unsure if that's an issue.
I've reinstalled kernel 6.8.10 and it didn't fix the issue. I've also upgraded my machine to use kernel 6.8.11 and see if that would fix anything, but it did nothing, and upgrading to 6.8.12 probably won't fix anything either. I've installed a dnf plugin called versionlock meant to pin certain kernels as to not delete them and have already pinned kernel 6.8.9, but I'd still rather avoid upgrading.
What I really don't understand is what changed. Why does my system boot successfully in kernel 6.8.9 but fails in 6.8.10. I've read that others have had a similar experience with the 6.8.10 kernel on fedora, albeit for different reasons.
If someone can point me to the answers that would be great, but an explanation as to how to read that log and steps I could take to identify and troubleshoot would be just as welcomed.
UPDATE: In my /proc/cmdline I had an argument known called resume=/dev/mapper/cl-swap
which was trying to find a swap partition that didn't exist.
I used the command cat /proc/cmdline
to view my boot arguments and then ran the command sudo grubby --remove-args=<resume=UUID=xxx> --update-kernel=ALL
where <resume=UUID=xxx
was replaced with resume=/dev/mapper/cl-swap
.
Thank you [email protected] for linking the thread.
Usb keyboard unavailable during boot until all usb devices are initialised (solutions?)
Without other usb devices the keyboard works immediately. With them it takes 5 ish seconds for it to start responding. This is regardless of which device is discovered first (which I can manipulate), it seems to just wait for all of them. Is there a way to make it not do that?
Edit: This is specifically about linux boot. It otherwise works fine in bios / bootloader
Hidamari is not loading on Linux Mint
I recently downloaded linux mint and I wanted use a live wallpaper so I found out I can do that with hidamari.
I've downloaded from the software package manager but it doesn't launch when I click launch.
What am I doing wrong?
Swaync volume slider not showing when using all:unset
I always use all:unset in my css files and I did the same when configuring the swaync notification but somehow when using it inside global selector *{} it doesn't show the volumeslider which is shows in a notification, related pictures will be attached. I wanna use all:unset and so I want to know how to re-enable volumeslider without removing all:unset. I've found this config to also use it but its in scss so I didn't test it.
with all:unset !using all:unset
without all:unset !without all:unset
Full style.css -> ```css
- { all: unset; font-family: "FiraMono Nerd Font"; font-size: 10pt; font-weight: normal; }
.notification { background: #3c3836; border: 1px solid #504945; border-radius: 8px; padding: 7px; }
.notification-content { background: #3c3836; color: #ebdbb2; }
.notification-row { margin: 2px; }
.close-button { background: #cc241d; border-radius: 50%; color: #282828; }
.close-button:hover { background: #fb4934; transition: all 0.15s ease-in-out; }
.time { color: #98971a; font-size: 9pt; margin-right: 24px; }
.control-center { background: #3c3836; border: 1px solid #504945; border-radius: 8px; padding: 8px; }
.control-center-list-placeholder { background: #3c3836; color: #7c6f64; }
.widget-title { background: #3c3836; color: #ebdbb2; }
.widget-title > button { background: #98971a; color: #282828; border-radius: 4px; padding: 2px; }
.widget-title > button:hover { background: #b8bb26; color: #282828; transition: all 0.15s ease-in-out; }
.widget-dnd { background: #3c3836; color: #ebdbb2; }
.widget-dnd > switch { background: #665c54; border-radius: 4px; }
.widget-dnd > switch:checked { background: #d65d0e; }
.widget-dnd > switch slider { background: #282828; border-radius: 4px; }
```
what command do I need in debian to see package suggestions?
In every ubuntu derivative, if I open a terminal and type an unrecognized command I always get suggestions.
This is so far not what happens with debian 12.5. What package do I need?
And what do debian users use to find new packages from the terminal?
cannot play audio on a fresh installed debian 12 xfce
I don't know if I didn't install non free firmware. Pavucontrol is installed. If I type alsa on a terminal it returns: bash: alsa: command not found.
ETA: turns out I only had to update the system
debian graphical installation, question about partition tables
I'm on partition disks, configuring LVM on a computer with 2 drives: /dev/nvme01 is the device I want to install in, SCSI2 is a storage HDD I do not want to format, I need the data.
What bugs me is 'the partition tables of the following devices are changed': both drives.
Am I going to lose data in the second drive, SCSI2, if I proceed? Should I physically remove the second drive instead?
ETA: thanks for your input
still cannot open a transmission port, what am I doing wrong?
os: xubuntu 24.04
firewall: ufw
torrent program: transmission
On transmission I opened port 51401
On a terminal I executed sudo ufw allow 51401, which opens both tcp and udp ports for both ipv4 and ipv6. This is called forwarding, right?
I'm following https://github.com/transmission/transmission/blob/main/docs/Port-Forwarding-Guide.md but apparently I still don't get it
ETA: thanks for your input, issue has been solved
do I have to install language packages to write in languages other than English on xubuntu 24.04?
I sometimes write in German and French, which means non ASCII characters.
I don´t know if I just need to edit keyboard preferences to a different kind of keyboard (like US international) or if I must install whole language packages. I wouldn´t mind having the dictionaries and autocorrect for libreoffice, but after selecting the languages it also downloaded help guides in these languages and several regional variants of English (za, gi, ca...), which I don´t need.
if I copy a ff profile (folder) in a new computer I should see the bookmarks as well, right?
or is copying the bookmarks as a html file the only way?
ETA: thank you for your input, problem solved.