Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

0 votes
1 answers
410 views
AppArmor message spam about Discord snap in my kernel ring buffer
So I was trying to debug some stuff, and noticed that my snap installation of Discord seems to fill my kernel ring buffer with the same request which is being "DENIED" by the AppArmor. Message in question: ``` [ 1044.201470] audit: type=1400 audit(1732616387.440:44954): apparmor="DENIED" operation="...
So I was trying to debug some stuff, and noticed that my snap installation of Discord seems to fill my kernel ring buffer with the same request which is being "DENIED" by the AppArmor. Message in question:
[ 1044.201470] audit: type=1400 audit(1732616387.440:44954): apparmor="DENIED" operation="ptrace" class="ptrace" profile="snap.discord.discord" pid=5626 comm="Utils" requested_mask="read" denied_mask="read" peer="unconfined"
[ 1044.201478] audit: type=1400 audit(1732616387.440:44955): apparmor="DENIED" operation="ptrace" class="ptrace" profile="snap.discord.discord" pid=5626 comm="Utils" requested_mask="read" denied_mask="read" peer="unconfined"
[ 1044.201491] audit: type=1400 audit(1732616387.440:44956): apparmor="DENIED" operation="ptrace" class="ptrace" profile="snap.discord.discord" pid=5626 comm="Utils" requested_mask="read" denied_mask="read" peer="unconfined"
[ 1044.201499] audit: type=1400 audit(1732616387.440:44957): apparmor="DENIED" operation="ptrace" class="ptrace" profile="snap.discord.discord" pid=5626 comm="Utils" requested_mask="read" denied_mask="read" peer="unconfined"
[ 1044.201514] audit: type=1400 audit(1732616387.440:44958): apparmor="DENIED" operation="ptrace" class="ptrace" profile="snap.discord.discord" pid=5626 comm="Utils" requested_mask="read" denied_mask="read" peer="unconfined"
[ 1044.201522] audit: type=1400 audit(1732616387.440:44959): apparmor="DENIED" operation="ptrace" class="ptrace" profile="snap.discord.discord" pid=5626 comm="Utils" requested_mask="read" denied_mask="read" peer="unconfined"
[ 1044.201535] audit: type=1400 audit(1732616387.440:44960): apparmor="DENIED" operation="ptrace" class="ptrace" profile="snap.discord.discord" pid=5626 comm="Utils" requested_mask="read" denied_mask="read" peer="unconfined"
(the spam is at a point where its very difficult to find any message which isn't this one...) I was wondering if people know what might cause this, and if this is harmful behaviour I should seek to fix (my machine has been a bit unstable, but I'm still unsure if that's a hardware or a software issue...)
Brendan Mesters (111 rep)
Nov 26, 2024, 10:28 AM • Last activity: Nov 26, 2024, 10:52 AM
0 votes
2 answers
657 views
Discord is banned in my country; Is it possible to still acess it in Ubuntu without using VPNs?
I've been using Opera browser and its free VPN to access Discord since my country banned Discord.  Recently I changed my PC to Ubuntu Linux, and I am wondering if I can modify my internet or the Discord app itself so I can access it easily.
I've been using Opera browser and its free VPN to access Discord since my country banned Discord.  Recently I changed my PC to Ubuntu Linux, and I am wondering if I can modify my internet or the Discord app itself so I can access it easily.
NECelestial (1 rep)
Oct 31, 2024, 01:46 PM • Last activity: Nov 6, 2024, 02:28 PM
-1 votes
2 answers
3691 views
Kali Linux Purple: Unable to install 'libgconf-2-4' package
I am attempting to install Spotify and Discord on my Kali Linux (Purple Edition) using `apt install `. However i ran into dependency issues. Typically, Kali would install these dependencies automatically but it appears that it was impossible to install this dependency: `libgconf-2-4` To provide more...
I am attempting to install Spotify and Discord on my Kali Linux (Purple Edition) using apt install . However i ran into dependency issues. Typically, Kali would install these dependencies automatically but it appears that it was impossible to install this dependency: libgconf-2-4 To provide more information here are some additional information:
└─$ sudo apt install ./discord-0.0.29.deb                                                       
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'discord' instead of './discord-0.0.29.deb'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 discord : Depends: libgconf-2-4 but it is not installable
           Recommends: libappindicator1 but it is not installable or
                       libayatana-appindicator1 but it is not installable
E: Unable to correct problems, you have held broken packages.
└─$ lsb_release -a
No LSB modules are available.
Distributor ID: Kali
Description:    Kali GNU/Linux Rolling
Release:        2023.3
Codename:       kali-rolling
└─$ sudo cat /etc/apt/sources.list                                                                                                           
# See https://www.kali.org/docs/general-use/kali-linux-sources-list-repositories/ 
deb http://http.kali.org/kali  kali-rolling main contrib non-free non-free-firmware

# Additional line for source packages
# deb-src http://http.kali.org/kali  kali-rolling main contrib non-free non-free-firmware
I tried to install it manually by sudo apt install libgconf-2-4 as many instructions online told to do so but it results in the package not being found: E: Unable to locate package libgconf-2-4 I have tried to update the package list as well as fully update the entire system with success:
└─$ sudo apt update && sudo apt full-upgrade -Vy && sudo apt autoremove -y && sudo apt autoclean
Hit:1 http://repository.spotify.com  stable InRelease                                                                                                                                  
Hit:2 http://mirror.aktkn.sg/kali  kali-rolling InRelease                                                                                                                              
Hit:3 https://packages.microsoft.com/repos/code  stable InRelease                                                                    
Ign:4 https://repo.hotspotshield.com/deb/rel/all  release InRelease                                                                 
Hit:5 https://repo.hotspotshield.com/deb/rel/all  release Release              
Ign:6 https://repo.hotspotshield.com/deb/rel/all  release Release.gpg
Hit:7 https://artifacts.elastic.co/packages/8.x/apt  stable InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
And finally, I tried to fix broken installs by using:
sudo apt --fix-broken install
All these attempts did not progress the situation. Any help is highly appreciated.
edenfrey (3 rep)
Sep 3, 2023, 04:29 AM • Last activity: Sep 14, 2023, 09:03 PM
0 votes
0 answers
323 views
Discord disconnect when on Cisco VPN (Multi-protocol VPN client (openconnect))
i would like to ask for advice. I have Fedora 38 and I am also using Discord there. Problem is, that anytime I connect to VPN (which I need for work), discord disconnects. I have tried to completely turn off firewalld for a while, I tried to change dns to 8.8.8.8, 8.8.4.4, but nothing helps. When I...
i would like to ask for advice. I have Fedora 38 and I am also using Discord there. Problem is, that anytime I connect to VPN (which I need for work), discord disconnects. I have tried to completely turn off firewalld for a while, I tried to change dns to 8.8.8.8, 8.8.4.4, but nothing helps. When I am on Windows 11 and connected to cisco vpn, I cannot start Discord app, but if its running before connecting to VPN, its ok and it stays connected, so I can use it for communication without any issues. Any help is appreciated. Thank you
Tom (13 rep)
Aug 24, 2023, 01:10 PM
0 votes
2 answers
112 views
Trying to install discord
Trying to install discord but then this happens. ``` Creating config file /etc/gconf/2/path with new version Setting up libdbusmenu-gtk4:amd64 (18.10.20180917~bzr492+repack1-3) ... Setting up libayatana-appindicator1 (0.5.92-1) ... Setting up libc++1-14:amd64 (1:14.0.6-12) ... Setting up libc++1:amd...
Trying to install discord but then this happens.
Creating config file /etc/gconf/2/path with new version
Setting up libdbusmenu-gtk4:amd64 (18.10.20180917~bzr492+repack1-3) ...
Setting up libayatana-appindicator1 (0.5.92-1) ...
Setting up libc++1-14:amd64 (1:14.0.6-12) ...
Setting up libc++1:amd64 (1:14.0-55.6) ...
Processing triggers for libc-bin (2.36-9+deb12u1) ...
Processing triggers for sgml-base (1.31) ...
Processing triggers for mailcap (3.70+nmu1) ...
Processing triggers for desktop-file-utils (0.26-1) ...
Setting up libgconf-2-4:amd64 (3.2.6-8) ...
Setting up gconf-service (3.2.6-8) ...
Setting up discord (0.0.28) ...
Processing triggers for libc-bin (2.36-9+deb12u1) ...
N: Download is performed unsandboxed as root as file '/home/operations/discord.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
root@nothp:/home/operations#
Just Lost in Linux (1 rep)
Aug 16, 2023, 03:28 AM • Last activity: Aug 16, 2023, 10:42 PM
0 votes
1 answers
525 views
Curl produces different results when invoked via systemd vs command line
I have the following unit file: ``` [Unit] Description=Sends a message to a discord channel [Service] Type=oneshot ExecStart=curl --header "Content-Type: application/json" --request POST --data '{"content":"MESSAGE TEXT HERE"}' https://discord.com/api/webhooks/WEBHOOK_ID_HERE/WEBHOOK_TOKEN_HERE Dyna...
I have the following unit file:
[Unit]
Description=Sends a message to a discord channel

[Service]
Type=oneshot
ExecStart=curl --header "Content-Type: application/json" --request POST --data '{"content":"MESSAGE TEXT HERE"}' https://discord.com/api/webhooks/WEBHOOK_ID_HERE/WEBHOOK_TOKEN_HERE 
DynamicUser=yes

# No [Install] since this is meant to be used with a timer
Running the curl command that is in ExecStart manually posts the message to the Discord channel that corresponds to this webhook, while starting the service produces the response {"code": 50109, "message": "The request body contains invalid JSON."} from the Discord server. Is there any notable difference between running a command through systemd and directly? For example, I could not find any indication that there might be a maximum command length for ExecStart.
L12C (11 rep)
Mar 18, 2023, 10:09 AM • Last activity: Mar 18, 2023, 02:15 PM
0 votes
1 answers
4344 views
Discord keeps crashing randomly
Discord on my computer crashes constantly at random intervals. Sometimes I can use it for hours without issues, other times it crashes just 10 minutes after starting. I **thought** that this had to do with the streaming software, **so through the settings I turned off all hardware acceleration on th...
Discord on my computer crashes constantly at random intervals. Sometimes I can use it for hours without issues, other times it crashes just 10 minutes after starting. I **thought** that this had to do with the streaming software, **so through the settings I turned off all hardware acceleration on the app, but it still didn't fix it**. I opened it through the terminal and used it for a while, when it finally crashed this is what I got back: (the crash showed an empty line) Failed to get crash dump id. Report Id: 2d1c5958-f780-43 Segmentation fault When opening the app, the terminal also returned that my Discord was up to date and there were no new updates available. There was also an optional module line which read: Optional module ./ElectronTestRpc was not included. Some information that may be useful: 1. The flatpak version of Discord does **not** crash, but after some hours of use, **whether streaming my screen or not**, the app lags and becomes unresponsive. This does not happen in the regular version. 2. On a post from around 2 years ago I saw people complaining that this crash had something do to with the **glibc** package not being updated or not working, I'm not sure if it still applies. 3. **I have been dealing with this issue since Discord updated to version 0.0.20**, that is exactly when it started and no amount of reinstalling, fixing broken packages and updating and cleaning the system has fixed it. 4. In my personal experience the crashes happen **mostly** when I am streaming my screen, either gaming or not, but not **exclusively**. Sometimes it just happens when I'm in a call. So, how do I fix Discord so that it will stop crashing?
linuxlife (53 rep)
Dec 10, 2022, 11:12 PM • Last activity: Dec 30, 2022, 07:51 PM
1 votes
1 answers
206 views
sending discord notification if changes in bash output (will be put in a cron)
I need to recieve a discord notification if this command does not have the string "No differences discovered" in the last 2 lines of the output. Ive been at it for hours I dont get it! and NO i do not know what amass says if there is a difference. ```#!/bin/sh amass track -d beesy.me | grep "No diff...
I need to recieve a discord notification if this command does not have the string "No differences discovered" in the last 2 lines of the output. Ive been at it for hours I dont get it! and NO i do not know what amass says if there is a difference.
#!/bin/sh 

amass track -d beesy.me | grep "No differences discovered"

	if [[$? -eq 1]];  
		discord_notify "Changes in beesy.me domain!"
Simm Simmons (11 rep)
Sep 14, 2022, 03:59 AM • Last activity: Sep 14, 2022, 05:03 AM
0 votes
1 answers
173 views
Supress spammy discord log
Everytime I open discord (installed using deb package), my log always spammed with these kind of message every second: ``` Jun 25 20:14:20 pop2104 gnome-shell[102661]: [2022-06-25 20:14:20.833] [102901] (device_info_linux.cc:45): NumberOfDevices Jun 25 20:14:20 pop2104 gnome-shell[102661]: [2022-06-...
Everytime I open discord (installed using deb package), my log always spammed with these kind of message every second:
Jun 25 20:14:20 pop2104 gnome-shell: [2022-06-25 20:14:20.833]  (device_info_linux.cc:45): NumberOfDevices
Jun 25 20:14:20 pop2104 gnome-shell: [2022-06-25 20:14:20.950]  (device_info_linux.cc:45): NumberOfDevices
Jun 25 20:14:20 pop2104 gnome-shell: [2022-06-25 20:14:20.950]  (device_info_linux.cc:78): GetDeviceName
note: previously was using flatpak version of discord, and it has similar problem How to suppress this?
Kokizzu (10481 rep)
Jun 25, 2022, 01:17 PM • Last activity: Jun 26, 2022, 09:46 PM
Showing page 1 of 9 total questions