All Questions

Filter by
Sorted by
Tagged with
0
votes
1answer
13 views

Replace content of a specific column in a CSV with sed

I have several CSV log files and want to replace the status codes stored in the 8th column of these log files with a description The log files looks like this: ip,date,time,zone,cik,accession,...
-1
votes
0answers
8 views

Trying to get ip address after cloning virtual machine CentOS8

I have been using linux 6 for a long time. However now need to upgrade to linux 7 and 8. However when I am cloning my virtual machines having linux 7 and 8 now, I am getting the same ip from my dhcp ...
1
vote
2answers
55 views

How to redirect only stdout in crontab?

I want to only redirect stdout to a logfile from crontab, and let crontab notify me by mail on errors. If I'd want to redirect both std and err stream, I'd go for 2>&1: MAILTO=john@me.com 0 23 *...
0
votes
1answer
18 views

grep -Pzo: how to make redirected output be an ASCII text (instead of data)?

$ cat t2.c xxx $ grep -Pzo xxx t2.c xxx $ grep -Pzo xxx t2.c > out1 && file out1 out1: data Here we see that out1 is a data (instead of an ASCII text). How to make it be an ASCII text? ...
0
votes
0answers
4 views

Nginx reverse proxy for nested URL

I am building nginx https reverse proxy to open remote URL which is http. Initial tests are looking good but I am stuck in issue I have many remote URL's like http://example.com, http://example1.com, ...
1
vote
3answers
2k views

Yum install php v5.4 packages while I have installed php 7

I have installed PHP version 7 on my centOs. Now I got an error says: undefined function mb_internal_encoding() So I decided to install php-mbstring (using yum install php-mbstring) but I face the ...
0
votes
0answers
8 views

hostname and /etc/hosts

On a server I have had issues with sudo saying sudo: unable to resolve host Now I don't know if this is related but someone else has modified /etc/hostname but not /etc/hosts so that the new ...
0
votes
0answers
7 views

udevadm shows offline message logs

I am debugging an issue using udevadm monitor -u. I get continuous logs as under not knowing what it translates to. please help UDEV [9415.844741] offline /devices/platform/68000000.ocp/48070000.i2c/...
0
votes
1answer
13 views

Ansible - replace first occurrence of certain expression in file - path includes hostname

I need to replace the first occurrence of a certain string in a specific file. I think about to use the replace module of Ansible for this. - hosts: abc tasks: - name: Replace first occurence of ...
3
votes
1answer
4k views

Segfault in Google Chrome - is it Nvidia card related? How do I find out?

System Linux Mint 19.3 Cinnamon 64-bit, based on Ubuntu 18.04 LTS. Related Hardware GPU: NVIDIA, GeForce GTX 1060, Max-Q Design, 6 GB VRAM CPU: Intel Core i7-7700HQ Could anyone tell me if the ...
0
votes
1answer
14 views

how to install blackarch tools in debian based distro?

Black Arch have wide ranges of tools, we can install all those tools in arch based linux with strap.sh. Offsec repo does not have this much tools. Please share some solution to install those tools ...
-1
votes
0answers
12 views

chrome: Passthrough is not supported, GL is swiftshader

I'm trying to run headless Chrome in a container using Alpine Linux, I'm getting Passthrough is not supported, GL is swiftshader The commands to get this are pretty simple, podman run -ti alpine:3 /...
-1
votes
1answer
26 views

sed command to replace pattern including newline pattern with blank

I have a yaml file which include text: - name: flexvol-driver-host hostPath: type: DirectoryOrCreate path: /usr/libexec/kubernetes/kubelet-plugins/volume/exec ...
4
votes
1answer
7k views

How to limit frame rate for all games on Linux Mint?

Affected OS Linux Mint 19.1 "Tessa" - Cinnamon (64-bit), based on Ubuntu 18.04 LTS. (Unimportant, but later updated to 19.3 version.) the above system was later upgraded to: Linux Mint 20....
2
votes
2answers
115 views
+100

Only one ip-address visible / usable in Debian 11 (Bullseye)

After upgrading to Bullseye from Buster, only one interface has a working IPv4 configuration. I have a dual-nic Intel PCIx-card, and a onboard RealTec-nic (currently disabled in bios), and I'm unable ...
2
votes
1answer
2k views

Starting nextcloud-snap

As per https://help.nextcloud.com/t/how-to-install-an-always-up-to-date-version-of-nextcloud-on-linux/596 I have succesfully run: sudo snap install nextcloud This downloads nextcloud and mounts it. ...
0
votes
0answers
11 views

Have ssh fail if control socket already exists with `ControlMaster yes`

I am calling ssh with the session I want to be the control master so I am using -M flag (equivalent would be having ControlMaster yes). However, if the previous session failed and left a zombie ...
1
vote
1answer
45 views

How to replace lines which has no data with the previous line's data

Input Time Value Flag 06:15:10 49.95 Actual 00:00:00 0.00 NoValue 06:22:50 49.94 Actual 06:23:00 49.93 Actual 06:23:10 49.93 Actual 06:23:20 49.93 Actual 06:23:30 49.93 Actual 06:...
0
votes
0answers
4 views

kwin_x11 becomes defunct after restarting display-manager

I am running into an issue that after stopping and starting display-manager through systemctl the original kwin_x11 process will become a zombie. (I am doing this to run a VM with a single passthrough ...
0
votes
0answers
8 views

Unable stop service using systemd the process created by using command

I managed to start the service in 2 different ways Using normal command root@ip-172-31-35-92:/#/usr/bin/mongod --config /etc/mongod_27018.conf & Using systemd service. service mongod_27018 ...
0
votes
1answer
16 views

Unexpected behavior when checking file size

I'm trying to write a 1 line bash script that will get all PIDs of processes that look like kernel processes, and check to see if they have contents in /proc/*/maps, which indicated kernel process ...
0
votes
1answer
2k views

Cannot change UDP fragmentation offload

I have a Dell PowerEdge R740. I have installed RHEL 8 on it. I am trying to enable UDP fragmentation offload like this: $ sudo ethtool --offload eno1 ufo on I get this message: Cannot change UDP ...
-5
votes
0answers
37 views

Edit json in shell

I have a json file where I need to sequence occurrence of id element. Need to write a script to do it. Input: 1 2 3 4 id:958 6 7 id:925 8 9 10 id:785 Output: 1 2 3 4 id:1 6 7 id:2 8 9 10 id:3
0
votes
1answer
21 views

Cannot get IP on cloned VM LINUX7,8

I have cloned a virtual machine running RHEL 7 and 8. I am not getting an ip address. After cloning the virtual machine, networking no longer functions. The ifconfig command does not show the network ...
0
votes
1answer
16 views

E: Unable to locate package postgresql-server-dev-10 in Ubuntu 18.04

I am writing a Django app with postgresql, using Docker. However, for some reason building returns the error "E: Unable to locate package postgresql-server-dev-10 The command '/bin/sh -c apt-get ...
1
vote
1answer
6k views

How to change the login and grub background image on Kali Linux

As the title explains I would like to change both of those background images but I was trying without success. What I've tried already: GRUB Added GRUB_BACKGROUND="/home/jose/Imágenes/backgroundSea....
1
vote
0answers
21 views

can someone explain what is this non-clickable permanent window called @!0,35;BDHF always open on wayland?

Pop!_OS 21.10, amdgpu, ryzen 5 4500u, issue only on Wayland. Linux 5.15.5-76051505-generic snap attached below (i couldn't even screenshot that thing).
0
votes
1answer
66 views

Fixed tty device assignments for SPI-UART adapters in Linux/Raspberry Pi OS

I need to use the serial ports that i get from a SC16IS752 adapter. I already set them up from /boot/config.txt, and they appear in /dev as ttySC0, ttySC1, ttySC2 and ttySC3 and they work. The problem ...
1
vote
1answer
1k views

vncserver -compatiblekbd fails with unrecognized option

I found that when I connect to my computing cluster via vnc Alt-x is not recognized correctly asM-. I tried vncserver -compatiblekbd but I get Unable to start Xvnc, exiting Actually once my ...
0
votes
0answers
10 views

Unable to auto-mount encrypted filesystem.squashfs of Debian Live CD

Part 1 I've created a live ISO image of my system using 'live build' tool on a Debian system. For automated installation i've used a preseeding file. To protect my senstive data I'm using LUKS ...
6
votes
1answer
4k views

Backlight control not working on Lenovo IdeaPad Gaming 3 with Renoir / AMDGPU

The brightness (LCD backlight) controls on a Lenovo IdeaPad Gaming 3 (15ARH05, LCD display, AMD Renoir CPU Ryzen 5 4600H, discrete NVIDIA GeForce 1650 Ti Mobile) are not working: Fn keys show the ...
0
votes
1answer
59 views

"Failed to write entry … read-only file system ... EXT-FS Error": sudden crashes of Debian 11

Debian 11 Stable KDE Plasma 5.20.5 About once per day my system is crashing. I wrote down on paper what seems to be the most pertinent errors: [83262.955525] systemd-journal [301]: failed to write ...
1
vote
1answer
29 views

Could making `.bash_logout` `.bashrc` `.profile` 600 render my OS unusable?

I rely heavily on aliases in my .bashrc and it crossed my mind that I could improve my privacy / security and somewhat harden my Ubuntu 20.04 Desktop by changing recursively the permissions of my home ...
2
votes
3answers
45 views

Kali Linux on WSL break after upgrade

so my problem is as follows. I install Kali Linux from the wsl store with $wsl --install -d kali-linux. Following has been installed PRETTY_NAME="Kali GNU/Linux Rolling" NAME="Kali GNU/...
-1
votes
1answer
47 views

Debian 11 failed to resolve .local names

Update (6 Dec 2021): It seems like there is a bug somewhere in avahi or libnss_mdns, see https://github.com/lathiat/nss-mdns/issues/81 Bad timing. I have 2 single board computers running Debian 11, ...
0
votes
1answer
35 views

prevent inode reuse

We are using Logstash to ingest our logs and we are facing some issues due inodes being reused. We tried all possible options on Logstash side so we are exploring the OS side. As far as I can see, if ...
1
vote
1answer
2k views

Calibrate Touchscreen

I am having trouble with the calibration of a touch screen for kiosk system. I have install xinput_calibrator and executed: $ xinput_calibrator -v DEBUG: XInputExtension version is 2.3 DEBUG: ...
0
votes
1answer
18 views

Growing a zpool raidz2 with larger disks?

I have Linux PC with RaidZ2 over 6 disks, 3T each. Disks is shared between several partitions; the zpool lays only on part 6 on each disk; other partitions are used for other purposes. I am going to ...
-1
votes
1answer
14 views

Triggering a script when new TCP connection is established

So I need to run a script whenever a new TCP connection is established. I found the BCC - Tools tcpconnect.py to monitor the TCP connections but I can't find a way to leverage that tool to trigger my ...
1
vote
1answer
59 views

Colors become distorted randomly in Linux, not in Windows

Currently running Fedora, but my issue is not exclusively pointed to this distribution! I have been experiencing this issue of my screen colors inverting/distorting from time to time. And this bug is ...
0
votes
1answer
12 views

Where to place a bash command while building debian package

I need to build a debian package using sbuild. This package has dependencies that it can't automatically resolve - specifically the dependencies point to versions for which there are already newer ...
-1
votes
1answer
34 views

What is the significance of /etc/protocols in linux?

What is the use case and usage of /etc/protocols. I can see it lists the number of protocols avaiable. But what is the significance? For example, my linux machine is not running OSPF but I see OSPF in ...
0
votes
0answers
12 views

printer not available

I work on a recent DELL tower with an old Lexmark Optra E310 (Linux Mint 20.2 Uma). cups is installed. I can reach the printer to print as many test pages as I want but no text: Waiting for printer ...
0
votes
1answer
31 views

if col1 matches with col4/col5 print all values from col4/col5 respectively in empty rows in col1

I have a comma delimited text file on a Linux machine. First I want to match col1 with col4 and col5, if col1 matches with col4 then print all values from col4 in all rows where col1 is empty and if ...
41
votes
2answers
3k views

How to combine zsh autocomplete for wrapper function arguments and existing command

I work mostly in gvim and many terminals. Originally, I preferred to open all my files in a single vim instance. To that end I used an alias to open files from my terminals in the current 'vim ...
0
votes
1answer
19 views

syslog-ng does not include severity in its lines

I'm trying to configure syslog-ng in an embedded distro. I added the syslog-ng package. I was expecting the /var/log/ files to include their log severity / log level, but it isn't to. Any way to ...
1
vote
0answers
39 views

Shell process substring

I know I can replace a substring with sed and integrate command evaluation with $(...). But what if I want the replacement to be calculated from the string to be replaced? Example I have a formatted ...
0
votes
0answers
16 views

Unable to resolve against local DNS server

I have a Bind9 server set up on my local server (at 192.168.0.15, named "groth") and I've just built a Ubuntu 20.04 laptop (jedi-u20) which I'm trying to set up to query the Bind server. On ...
7
votes
7answers
11k views

Share memory between a virtual machine and the host

Through shmget and shmat, I am able to access the data stored in one program from another program. Here's the gist of the code: key=ftok("shared.c",'c'); shmid=shmget(key,1024,0644|IPC_CREAT); data=...
0
votes
0answers
18 views

Undefined reference to libraries while building

I am trying to install tgs2apng in Ubuntu on WSL. As instructed I installed the 3 libraries- rlottie, libpng and apngasm. However When I run make I get undefined references to rlottie and apngasm Here'...

15 30 50 per page
1
2 3 4 5
4230