Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [linux]

These questions are about Linux in general -- NOT specific to a particular distribution. If the question just happens to be in a Linux environment, please specify your Linux distribution in the body of your question, but do NOT use the /linux tag.

-1
votes
0answers
5 views

Can someone please help me connect to the internet on Kali Linux?

The two networks I have found are labed 'lo' and 'eth0'. Neither have wireless extensions. I cannot access the internet on Kali Linux right now. I am not sure what I have to do to do so. I have a ...
0
votes
0answers
5 views

Why is udisksctl loop-setup so slow?

udisksctl $ time udisksctl loop-setup -f Windows.iso Mapped file Windows.iso as /dev/loop0. real 3m0.784s user 0m0.015s sys 0m0.010s losetup # time ...
2
votes
2answers
1k views

How do I check cgroup v2 is installed on my machine?

I want to try cgroup v2 but am not sure if it is installed on my linux machine >> uname -r 4.14.66-041466-generic Since cgroup v2 is available in 4.12.0-rc5, I assume it should be available in ...
0
votes
0answers
40 views

Choose right Java on JNLP

I have a problem running JNLP files (mostly for server ILOM consoles). ILOM consoles are different and run on different java versions, so I want to choose which java to use each time. I have 3 Oracle ...
5
votes
1answer
43 views

What are nvme namespaces? How do they work?

I've recently begun supporting Linux installed on devices with built-in nvme ssds. I noticed the device files had an extra number, beyond a number identifying the drive number and the partition number....
0
votes
1answer
11 views

make headers_install not working as expected

I have Ubuntu 16.04 LTS installed and have installed linux-headers. I am in the middle of trying to build uClibc and it needs the linux headers. So when I run the following command from the linux-...
0
votes
1answer
12 views

What '\t' mean with 'tab' delimiter with 'cut' in BASH [duplicate]

in this command : cut -f2 -d$'\t' ('\t') what is it mean ? i saw it another question, i got the idea about 'tap' delimiter but still want to know '\t' shortcut or sign or command for something How ...
0
votes
1answer
1k views

Cannot ping VirtualBox VM using bridged network

I have a Fedora 22 laptop with a VirtualBox VM on it. All worked fine when I attached the VM to my wireless network card, but I want to attach it to my hardwired card because the wireless changes. But ...
0
votes
0answers
9 views

Send Shift PgUp to the console

With a little help from an answer found here I was able to use below script to send keystrokes to the VGA console /dev/tty1 #!/usr/bin/perl use warnings; use strict; open( my $TTY1 , '>' , '/dev/...
3
votes
0answers
18 views

Hybrid RAID (SDD+HDD) gives unexpected results

I am doing some experiments with hybrid RAID in Linux. My test consists of the following: 2x256GB SSD in RAID 0 (/dev/md1) 2x256GB HDD in RAID 0 (/dev/md2) Then I made md1 and md2 into a RAID 1 (/...
3
votes
1answer
4k views

Audit on changes to the running iptables configuration

I'm aware of how to audit for changes to the /etc/sysconfig/iptables file in CentOS/RHEL 6 and earlier, but how do I audit for changes made only to the running configuration?
1
vote
1answer
279 views

Use dbus to get name of mediaplayer currently playing

EDIT: I removed and rewrote most of the post to make the question more direct and to make the post a lot shorter. You can of course view the edit history to get the previous version. Using bspwm on ...
3
votes
1answer
175 views

Systemd Unit File - WantedBy and After

I have a question regarding making my own unit (service) file for Systemd. I've read the documentation and had some questions. After searching around, I found this very helpful answer that gives some ...
0
votes
0answers
1 view

Pulseaudio does not find my docking station's audio

Short: my updated pulseaudio does not find the USB audio device of my docking station. Debian Stretch, XPS 13 9360, docking station WD15. I just built pulseaudio from source, and got this version: $...
1
vote
0answers
41 views

82MB of “reserved memory” on 512MB system

I reinstalled a fresh debian 10 on an old x86 system with 512MB RAM (everything works ok). Available memory is 431MB. (No graphic card plugged right now) I don't think that that much memory was "...
1
vote
2answers
857 views

vagrant user able to switch to any user without any password while running command “sudo su - <username>” but other users doesn't

I have installed two vagrant hosts on my machine. I login using user/pass: vagrant/vagrant Created a user user1. When I am in vagrant user and type below command : [vagrant@host1]sudo su - I am ...
0
votes
1answer
28 views

Using tree with tar.gz file without extracting contents

I am wondering if it's possible to output the contents of a tar.gz file using tree without having to extract the contents of the file to a temp directory then using tree with that directory. I know ...
-1
votes
2answers
69 views

How come my script won't function properly?

I am trying to use my ./script.sh like so: ./compile.sh -n NAME_ALBUM -f 000 000 000 000 -l 000 000 000 000 where -n is ALBUM_NAME and corresponds to the outputted filename being saved where -...
0
votes
0answers
30 views

How to have Linux wait till my program finishes its SIGTERM action?

How to have Linux wait till my C++ program completes its cleanup routine. The program initially calls function sigaction(2) to register a custom SIGTERM handler. If test the handler by running kill -s ...
0
votes
1answer
37 views

Ansible: difference between “shell” and “command” modules

Ansible wiki says: The given command will be executed on all selected nodes. It will not be processed through the shell, so variables like $HOME and operations like "<", ">", "|", ";" and "&" ...
0
votes
2answers
32 views

Unix get last field

I am having a requirement where I need to extract couple of fields from a file with last field. structure of file can be different so cannot hardcode the last field. lets take example of two different ...
2
votes
0answers
29 views

Linux Memory Allocation

Why linux is not clearing Cache memory and assigning it to other process which are requesting ? I am getting out of memory error but could see lot of cache .
1
vote
2answers
27 views

How to Preserve last most directory structure when copying files using find

Using "parents" command works but it copies complete directory structure, whereas I need to preseve only the last most directory find /tmp/data/ -type f -name "*.txt" -exec cp --parents {} /u01/ABC/ \...
0
votes
1answer
29 views

Can't add a child process in the foreground process group

I am trying to add a child process in the foreground process group. After forking I am calling execve() to spawn a new process(In this case the unix echo program). Before calling execve() i am ...
-2
votes
0answers
10 views

Http proxy - different ports forward to different hosts

I need to create a HTTP proxy to forward requests to 4 different sites. If a request goes to port A, forward to site AA.com (with the same URL and headers) If a request goes to port B, forward to site ...
0
votes
1answer
17 views

How to get type=USER_TTY record in audit.log

What audit rule to be added to get USER_TTY record whether it will record all the executed commands under msg field?
0
votes
0answers
16 views

Unable to connect to docker services

I am on a Fedora 29, and I tried both with fedora upstream package (docker version 1.13.1-67) and with docker-ci repository (version 18.09.6), but the issue is still here. It does not matter if I am ...
0
votes
1answer
34 views

How to change file permission of shell files

I have a directory where a lot of bash scripts or .sh files exist. I want to change their permissions to 770 (rwxrwx---) with the chmod command. How can I accomplish that?
0
votes
1answer
25 views

LVM + use the space of the OS in order to increase the partition

from the lsblk I have the following output NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT fd0 2:0 1 4K 0 disk sda 8:0 0 300G 0 disk ├─sda1 ...
1
vote
1answer
1k views

How to run update-grub at load time in Debian 8?

OS: Debian 8 logged with rescue image HDD LVM Set a password for grub, and it seems did missed some hash digit when copied encrypted password in 40_custom, I managed to removed login/password ...
0
votes
0answers
8 views

htaccess: disable pdf caching - is it possible on hosted site?

I would like to know if I can make sure with .htaccess that I can send headers to browsers so that PDF files from that directory are not cached. I do understand what to send, but my question is - ...
5
votes
3answers
12k views

Changing hostname reboot reverts back to original

So, What I'm trying to do is simply change the hostname permanently. I can update the hostname but when a reboot is issued the original hostname is used! I'm aware there is a file hostname located ...
3
votes
2answers
2k views

Running QEMU with a root file system directory instead of disk image

In order to test the root file system i need to run QEMU with created disk image as root file system, the QEMU accepts -kernel which can be used for specifying kernel directly without deploying it ...
2
votes
1answer
2k views

accessing stdin/stdout of a process started in another tty [duplicate]

I logged in to my linux physically(say tty1) and started a process that watches stdin for commands and has some stdout-put. How can I access/use this process from a SSH session?
0
votes
0answers
8 views

Cursor not moving/Touchpad not responding

Recently my touchpad hasn't been working. I tried running the following commands and they fixed the problem but only temporarily: sudo modprobe -r psmouse sudo modprobe psmouse proto=imps sudo apt ...
4
votes
4answers
2k views

Is there any way to see how much data I sent via Internet?

A big German ISP (Telekom) recently decided to volume limit their DSL internet connection to 75GB per month. Now I would like to know how much I download / upload. I use Linux Mint 14 Nadia and I ...
0
votes
0answers
35 views

How can I Improve the Performance of My Linux Netfilter module? [closed]

I wrote a very simple netfiter module. In it, I defined 3 hooks: localout and forward to change packets that go out of my PC and prerouting to do the inverse process. localout & forward hooks: ...
0
votes
1answer
18 views

Pivot file values

I have a file where the first column is the key. The rows can have up to 2800 delimiters. I need to pivot the data from rows to columns. Below is the sample input and required output. Source File ...
4
votes
3answers
6k views

How to get the finger print reader working on Fedora 27

I have a new Dell Inspiron 13 7000 series (2017) The dell comes with a finger print reader that works in Windows 10 (I am not sure how I can get the name manufacturer of the hardware). However, I ...
0
votes
2answers
769 views

Wi-Fi Network Device Not Ready (firmware missing)

I have installed Debian 9 Stretch on my PC. I cannot connect to the Wi-Fi because it says that a firmware is missing. I didn't have this problem when I have Lubuntu installed. It was looking for brcm/...
1
vote
1answer
1k views

Unable to compile Linux Kernel 4.7-rc2

I was trying to compile Linux Kernel from source. I've compiled the kernel previously and never got any error. But this time I am facing an error. The error is CHK include/generated/asm-...
0
votes
1answer
36 views

Grep: Find 3 consecutive char and then follow another char or end of the line

I want to find 3 consecutive characters and then another character or the end of the line. I tried this: egrep '(.)\1{2}' file but I need less results.
0
votes
0answers
45 views

Launch ec2 instance using boto3 with security group

ecx = boto3.resource('ec2' , region_name='eu-west-1') mysg = ecx.create_security_group(GroupName='testgroup11',Description='testme') mysg.authorize_ingress(IpProtocol="tcp",CidrIp="0.0.0.0/0",FromPort=...
1
vote
1answer
2k views

How to mount a drive from command line

I normally mount my drives just by opening it from filesystem. It automatically mount when I click on a drive. But I wanted to mount a drive from command line. I did ran this command sudo mount -o ...
0
votes
0answers
15 views

Gnome-keyring: “Automatically unlock this key whenever I'm logged in”

I don't seem to have the option to "automatically unlock this key whenever I'm logged in" when trying to SSH into another computer. This is a screenshot of my prompt: This is an example I found on ...
0
votes
0answers
29 views

How to run script via cron and get same results as terminal? (Centos 7.2)

I have a complicated question (I understood that's related to environment variables). I'm running a script via termial as follows: "bash install_version.sh" script contains: #!/bin/bash /root/...
6
votes
3answers
2k views

How can a file manager mount a drive without root?

I've been reading this question about why mount must be run as root (with some exceptions), and I was wondering, if mounting a drive requires root (generally), how does a graphical file manager (...
0
votes
0answers
19 views

How does linux arbitrate access to devices

I would like to know the different methods linux uses to control access to a peripheral device. e.g. for example you have a spi temperature sensor. And multiple threads are trying to get a reading. ...
-1
votes
2answers
36 views

Specifying the range of the arguments to print in every record line

We have a sample data as below EMP_ID|EMP_NAME|AGE|SALARAy|DepId|DepName 123456|XXXXXXXXX|30|10000000|1234|XYZWE I have used below code to split the data as below awk -F\| ' BEGIN { print "EMP_ID|...
0
votes
0answers
18 views

BTRFS unknown space usage

I have 1 TB hard drive with btrfs on it used for /home. When moving to new ubuntu (with fresh install), I've moved my @home subvolume to @home-old, installed and configured system, copied needed files ...