All Questions

Filter by
Sorted by
Tagged with
3 votes
5 answers
236 views

How to let sed un-comment one of multiple paragraphs separated by newlines?

Clarification: Using GNU sed. Status quo - ~/.screenrc, last lines: # name synthpop # screen -t script emacs -nw /home/$USER/bin/synthpop # name thrashmetal # screen -t script emacs -nw /home/$USER/...
futurewave's user avatar
0 votes
0 answers
16 views

local proxy port forward error with SSH: SSS_SSH_knownhostsProxy: connection refused

I am using redhat enterprise edition 8.9 where I am trying to connect to remote server via local proxy method: When I run the command in the shell: ssh 127.0.0.1 -p 35856 I get the below error: ...
Anisha goyal's user avatar
0 votes
0 answers
17 views

Prevent OOM killer inside guest in LXC

I have a python program myprogram.py. I realized that my python program is being killed due to Out Of Memory (OOM). But, I noticed also that my VPS is inside LXC and has swap 1GB, when the memory full ...
Muhammad Ikhwan Perwira's user avatar
0 votes
0 answers
19 views

How can I resize my Fedora Btrfs root partition to take up Windows space with my boot partition in the way?

I have a UEFI system on a laptop that's currently dual-booting Windows and Fedora 39 (KDE Plasma). I don't use Windows much, and need extra space on my Fedora partition. So, I need to shrink nvme0n1p3 ...
undonepotato's user avatar
0 votes
0 answers
19 views

Entering distrobox changes the display resolution

In a Fedora 39 kinoite VM, I have a Distrobox container with Ubuntu22.04. When I first created the container the display had a resolution of 1280x800. I changed the display resolution to 1280x1024 and,...
pablo's user avatar
  • 3
-1 votes
1 answer
31 views

Portable logging from Python?

I am writing a small plugin for Postfix using python and want to it to emit logging messages. I am not particularly familiar with python and was advised to use loguru. This was certainly easy when I ...
symcbean's user avatar
  • 5,557
0 votes
1 answer
135 views

Convert swf files to mp4

I came accross this nice web. There are swf and mp3 files. I'd like to convert them to mp4 or something, so it is viewable. I tried gnash and ffmpeg without success. I'm on Lubuntu 22.04
xralf's user avatar
  • 15.4k
0 votes
0 answers
39 views

Unable to copy using wl-copy (wl-clipboard) - issue with `xdg-mime`

OS: Arch linux (linux-6.8.1.arch1-1) WM: Hyprland When I run echo 'hello' | wl-copy, I get the following output: echo "hello" | wl-copy Usage: file [-bcCdEhikLlNnprsSvzZ0] [--apple] [--...
chaitanya sharma's user avatar
0 votes
1 answer
27 views

Trying to understand iptables log messages

I have set up iptables to log outgoing traffic from all but a limited set of users, and I'm trying to understand the log messages that this produces. Looking at /var/log/syslog, I see requests from ...
user1636349's user avatar
1 vote
1 answer
24 views

How do I automatically set the target context for a .sock file to be **httpd_var_run_t** so that nginx can connect to and write to the socket?

The original file context for /run/unicorn.sock is tcontext=system_u:object_r:var_run_t:s0 How do I have the file context automatically be system_u:object_r:httpd_var_run_t:s0 when I start the socket ...
siralbert's user avatar
1 vote
1 answer
32 views

ssh is picking up other keys [closed]

ssh utility is adding keys and doing stuff with known_hosts, and I get this error: ubuntu@${addr}: Permission denied (publickey). I have this code: #!/usr/bin/env bash ssh-add -D ssh -vvv -i 'my.pem'...
Alexander Mills's user avatar
0 votes
1 answer
18 views

In gnome files: how do I remove credentials I told it save permanently to connect to a share under the smb protocol

If I have incorrect credentials saved, should it prompt me for a username and password? I'm getting "Connection Refused" and I'm assuming it's the bad credentials I know I put in there. os ...
Pompey Magnus's user avatar
0 votes
0 answers
16 views

Modsecurity port issue

background: For my uni project I would like to locally host 3 virtual machines (1 attacker and 2 different WAF) to simulate the effectiveness of certain web application firewalls under malicious ...
Ismael Magro's user avatar
1 vote
0 answers
30 views

How to make a virtual tty (tty0tty) look like a real serial port?

I'm using tty0tty. The virtual serial ports appear as /dev/tntX where X is an integer between 0 and 7. Problem is, many apps require "real" serial ports, such as lightburn. So /dev/tntX ...
mo FEAR's user avatar
  • 192
4 votes
1 answer
360 views

Can I use SELinux to add an extra layer of protection against 0-day VM escape exploits in KVM/QEMU?

My host is Fedora, and I want to add an extra layer of protection against 0day KVM/QEMU exploits that execute code on the host. For example there have been CVEs where if we run a specially crafted ...
OneAndOnly's user avatar
-1 votes
1 answer
21 views

How to stop xfce from full-screening a window when dragging the title bar and it hits the top of the screen?

When I am trying to position a window against the top of the screen, as the mouse get within a few pixels of the top , the window flips to full screen size, which is totally annoying. The<same on ...
martinwguy's user avatar
2 votes
1 answer
88 views

How to pass a parameter to a command that's being executed by exec in bash?

I'm trying to start a subprocess with a unique process name from a bash script. This works: bash -c "exec -a MyUniqueProcessName './start_service' &" but my problem is that I want to ...
Adam Arold's user avatar
0 votes
0 answers
21 views

how to change gtk default font in xfce4?

I'm not sure if this is Debian 12 issue or an xfce4 (4.18) issue or a GTK (3.24) issue: various applications let you choose fonts for this or that, but, particularly in pop up dialogue boxes, there ...
Ray Andrews's user avatar
  • 2,349
1 vote
1 answer
19 views

Rendering video with Blender on Pop!_os

I have been using blender as a video editor for a few years now, but it has always rendered very slowly. I worry that I've installed a few too many drivers and something has gotten mixed up at some ...
JonesCode's user avatar
0 votes
0 answers
43 views

How does the auto format of the join command work?

Here is an example: $ cat file1 hello there $ cat file2 some,very,long,line,hello,csv some,very,long,line,nope,csv $ join -t, -1 1 -2 5 file1 file2 hello,some,very,long,line,csv This works as ...
Jeenu's user avatar
  • 101
-1 votes
5 answers
71 views

multiline grep search into separate files per occurence

I have a file as following: example.txt -1 15 1 0 0 11 -1.0000E+001 1.0000E+001 -1.0000E+001 2 0 0 11 1.0000E+001 1.0000E+001 ...
Honza S.'s user avatar
  • 101
0 votes
0 answers
11 views

Issues with Pulseaudio - combined output hdmi + analog

For a kiosk installation (Xubuntu) I need to have sound to output at the same time through HDMI and headphone jack on Dell Optiplex 7040 micro. The computer has an onboard card with analogue and ...
Štefan Hudáč's user avatar
2 votes
1 answer
232 views

Don't truncate the COMMAND column in ps

I want to list process by their executable name, using the comm column. But it always gets truncated even when it's the last column: $ ps -C systemd-tty-ask-password-agent -o %cpu,%mem,comm %CPU %MEM ...
Kyle Richards's user avatar
-3 votes
1 answer
48 views

what is storage virtualization in contrast to? [closed]

i'm reading up on storage virtualization https://en.wikipedia.org/wiki/Storage_virtualization and i'm trying to understand what this is in contrast to, or a solution to, or why it exists at all? some ...
How To Linux's user avatar
-1 votes
3 answers
67 views

cron "@reboot" schedule not executing network configuration script

Version: Ubuntu 20.04.6 LTS In my crontab I have the following: @reboot /home/<user>/startup.sh Other output: <user>@eveng-gcp-v3:~$ ls -la | grep start -rwxr-xr-x 1 root root ...
Strider's user avatar
0 votes
1 answer
21 views

create dictionary of the play_hosts and their eth0 IP address in ansible

How would I create a list of all hosts in the play and their eth0 IP address? I would like a list like this: host2ip: - host1: 10.0.0.1 - host2: 10.0.0.2 - host3: 10.0.0.3
Daniel Kupfer's user avatar
0 votes
2 answers
41 views

Check server's free and reserved CPU

I want to check the free and reserved CPU in a linux server. I found this command mpstat and below is the output: CPU %usr %nice %sys %iowait %irq %soft %steal %guest %gnice %idle ...
DrGenius's user avatar
  • 103
0 votes
0 answers
35 views

Pressing the power key does not trigger a shutdown

Pressing the power key does not trigger a shutdown. I do see "Power key pressed" in journalctl, but nothing more. $ sudo journalctl --unit systemd-logind --boot -- Logs begin at Fri 2020-02-...
user2240373's user avatar
0 votes
0 answers
40 views

UFW does not block any ports (Ubuntu 22.04)

On my fresh Hetzner Cloud server, the ufw seems to be ineffective. The status output is the following: Status: active To Action From -- ------ ...
TheRyco's user avatar
  • 11
0 votes
0 answers
7 views

xkb utf8 symbols but no syms

Fedora 39 here, but this should apply in general for any linux. My ~/.xkb/symbols/my has this (part): replace key <FK01> { [ F1, F1, {H,e,l,l,o}, {W,o,r,l,d}, XF86_Switch_VT_1 ] }; ...
Robert D.'s user avatar
0 votes
1 answer
63 views

Command Logging in Linux

I am seeking guidance on how to set up logging for executed Linux commands into a designated log file with specific details. My objective is to create a mechanism, possibly a daemon or background ...
Teresa's user avatar
  • 9
0 votes
0 answers
46 views

Unexpected password authentication problem

I have been using a properly configured system with no authentication changes for over a month now. And suddenly I get this error message: Sorry, password authentication didn't work. Please try again. ...
someonewhoknows's user avatar
1 vote
0 answers
76 views

Bluetooth Manager in Linux Mint not working

I have a problem with bluetooth on my Linux device: I did some troubleshooting and reinstalled bluetooth and blueman. I then did the following: /etc/init.d/bluetooth start /etc/init.d/bluetooth ...
PaiThon's user avatar
  • 15
0 votes
0 answers
31 views

nftables rules apparently blocking ssh traffic - could it be special characters?

I have a set of nftable rules of the following form: chain INPUT { type filter hook input priority filter; policy drop; ip saddr 11.37.79.97/29 counter packets 0 bytes 0 log prefix ...
wolfsshield's user avatar
0 votes
1 answer
41 views

How to run `docker exec` with ssh command

Not a fun one - #!/usr/bin/env bash ssh -i 'my.pem' "ubuntu@${addr}" "docker exec -ti '$name' bash" I get this lame error: the input device is not a TTY with no context at all. ...
Alexander Mills's user avatar
0 votes
1 answer
45 views

Detecting if monitor is on/off

I want to detect if my monitor is on/off. This is because I need to record my screen time as an assignment. Numerous google searches haven't helped, as they return answers saying that it's not ...
quest1onable's user avatar
0 votes
1 answer
41 views

Magic Trackpad tap-to-click Debian 12 Xfce, how to enable

Xfce Version 4.18 GTK Version 3.24.38 Kernel Version 6.1.0-18-amd64 First SE question. I tried to comment here instead but do not have sufficient reputation. How do I enable tap-to-click for a Magic ...
seanbethard's user avatar
1 vote
1 answer
52 views

One user cannot run startx anymore

As root, I changed one user’s home directory to a soft link to another drive (while the user was not logged in). Then this user could not run startx anymore, though other users with the same .xinitrc ...
Alexandre Oberlin's user avatar
0 votes
1 answer
31 views

Passing ETag as Bash Variable to cURL

I'm struggling passing my etag to cURL and getting a successful response. I get the etag with: etag=$( curl \ -SIXGET \ -u $token \ -H "Accept: application/json" \ "$api_url/...
Concerto's user avatar
0 votes
0 answers
19 views

elasticsearch cannot read certificate file - linux file permissions

I generated a certificate file with certbot. It is placed in /etc/letsencrypt/.... I created a group called elk where I added the elasticsearch user, and I recursively set it as the owning group for /...
Vivere's user avatar
  • 203
1 vote
3 answers
65 views

How to tail continuously a log file that is being deleted and recreated?

I need to extract information from a log file that is deleted and recreated every time a program runs. After detecting that the file exists (again), I would like to tail it for a certain regexp. The ...
user2066480's user avatar
0 votes
2 answers
17 views

systemd service terminates with error because the script (expectedly) returned

Searched extensively, many questions related but none that I found actually worked. So I have a shell script which I want to automate via a systemd service. The script: #!/usr/bin/env bash SESSION=&...
unsafe_where_true's user avatar
1 vote
1 answer
46 views

Why is keyboard and mouse unable to be hotplugged in FreeBSD jail?

I have an entire system with xorg-x11 running in a jail. My only issue is that I am unable to add or remove a keyboard or mouse while X is running. If I restart X, the newly connected keyboard or ...
John Doe's user avatar
1 vote
0 answers
23 views

Gnome Top bar and window switcher on all monitors?

In Gnome (v45+), is there a way to have the top bar (and the window/app switcher overlay) mirrored on all monitors?
joaocandre's user avatar
4 votes
2 answers
556 views

Displaying "current" key in jq

I have a dictionary keyed on usernames, like: "userinfo": { "alice": { "key1": 1, "key2": 2}, "bob": { "key1": 11, "key2": 22}, ......
Chip Seraphine's user avatar
1 vote
0 answers
21 views

Hadoop + warnings as slow block-receive from data-node machines

We have Hadoop cluster with 487 data-nodes machines ( each data-node machine include also the Service node-manager ) , all machines are physical machines ( DELL ) , and OS is RHEL 7.9 version. Each ...
yael's user avatar
  • 13.2k
0 votes
0 answers
17 views

External usb SSD Restic/Backrest backup automation

I've a zimaboard micro server with proxmox and a debian 10 CT that is delegate for backup system (Restic/Backrest) with an external usb ssd always attached. It is possible to pilote the external usb ...
Alessandro's user avatar
1 vote
0 answers
24 views

Yocto Implementation of QEMU

What exactly is the difference between the Yocto Implementation of QEMU and QEMU in general? It is clearly stated right at the beginning of the relevant chapter in the Yocto documentation that they ...
notanothernoob's user avatar
1 vote
0 answers
23 views

NetBSD - how to display information about kernel memory in GDB?

I'm debugging the NetBSD kernel with gdb, but I would like to be able to display information about the memory region an address is in. I'm mainly interested in finding out the permissions of a page of ...
Isaac's user avatar
  • 111
1 vote
0 answers
36 views

btrfs size issue

According to my calculations, my btrfs should have a total size of 153 GB by totalling the Exclusive component from btrfs qgroup show, but it actually shows up as around 700 GB using other disk usage ...
Mark Warburton's user avatar

15 30 50 per page
1
15 16
17
18 19
4774