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
vote
1answer
40 views

bash expansion with linux command

I want to pass info to the command using positional parameters within my script but it's not working. Is it possible with parameter expansion? lvresize -r -L 4G /dev/mapper/vol-opt lvresize -r -...
2
votes
1answer
38 views

How to discard particular Severity's in the Rsyslog Server

I have an rsyslog server that's having the data from multiple remote clients; now I want to discard particular Severity types like warn , info and debug and the rest of the messages I want to be ...
0
votes
2answers
30 views

How to find the names of partitions of a given block device?

Given a block device (e.g, /dev/sda), how to determine the names of its partitions (if any) in a script (i.e. without user interaction)?
2
votes
2answers
38 views

Given a block device, how to detect if names of partitions must contain “p”?

I want to automatically partition a block device with sfdisk. This might be an SD card, a hard disk, SATA or NVME device. Initially I thought that sfdisk requires these names and thus I was looking ...
3
votes
0answers
20 views

How to cleanly remove a non-storage USB device

Is there a way in Linux to cleanly remove (i.e. 'safely remove') a USB device that is not a mass storage device before it is unplugged? My problem: I have a USB TV stick - a 'Mygica T230 DVB-T/T2/C'....
0
votes
0answers
15 views

problem with gpu: can't boot

Afterinvoluntary shutdowns of my computer I have been problem with my AMD gpu: kern.log: [rhizome@tensor:~$ cat kern.log | grep 'radeon' Feb 14 10:56:20 tensor kernel: [ 11.412441] [drm] radeon ...
2
votes
1answer
51 views

Prevent Bash from removing zero-bytes in double-quoted string?

I need to supply arbitrary bytes for an argv argument of a C program. However, if the bytes are put within double-quotes, the zero-bytes are removed as can be seen below: v="$(python -c 'import sys;...
0
votes
1answer
44 views

traceroute command: replacement or alternative

On recent Linux based operating systems there is no ifconfig and traceroute. Some functionality has been incorporated into the ip utility (see here for examples), but I have not found a replacement ...
1
vote
0answers
20 views

Trying to use local APIC timer

I'm trying to use the local APIC timer to send interrupts after a certain interval (for a kernel module I am writing). This is not related to scheduling in Linux. I set the clocksource in Linux to ...
-1
votes
0answers
19 views

It is correct to run X from single user terminal?

Linux is running with init 3 mode. Is it's correct to run X startx from a single user (non sudoers) terminal?
0
votes
0answers
16 views

How to free all buff/cache in Linux? (still not zero after after sync; echo 3 > /proc/sys/vm/drop_caches) [on hold]

I want to free all buff/cache w/out restart of Linux. How to do that? Below are some details of what I found: Why buff/cache is still large (2.6Gb) right after after sync; echo 3 > /proc/sys/vm/...
-1
votes
0answers
11 views

SearX search engine with shared hosting? [closed]

I know SearX can be used on a Dedicated Server -but- can it be used on Linux Shared Hosting ?
1
vote
1answer
28 views

What is causing my rsyslog timezone offset and / or time to be incorrect?

I have a central logging server running rsyslog 7.x on RHEL 6 The logs are coming in with a UTC time but an EST offset for a device. Here are some relevant configs. $template TEMPLATE_NAME,"%...
1
vote
3answers
53 views

DOS command to Bash command conversion

I need to make Bash take DOS commands in with arguments and then convert the main command to a Bash command and still use the arguments if there are any arguments. The part I am lost on is how to ...
3
votes
3answers
37 views

How to find out time taken by Linux system for cold boot?

I am trying to find out the time taken by a Linux machine to boot up after a cold reboot. Looks like the uptime command or /proc/uptime gives you the time since init process is up. This does not take ...
0
votes
0answers
12 views

PAM successful authentication limits

I have a question regarding PAM and the possibility that it throttles too many 'auth' attempts if they happen in a short time. I have posted my question on the PAM mailing list, but to no avail. I ...
0
votes
1answer
19 views

Bash script to start Docker containers

This script works: #!/bin/bash for i in {1..10} do echo “yes $i” done But when attempting to start several Docker containers it only starts the first container and exits: docker_run.sh #!/bin/...
0
votes
0answers
32 views

restrict linux page cache (buffer cache) to only certain address range

Is there a way to restrict linux page cache to only certain address range of the physical memory? More specifically, I want the OS page frame allocator to allocate page cache only to certain addresses ...
0
votes
1answer
30 views

Confusion about stdout and stderr on the start-up terminal

I have an embedded Linux system with different programs running from start-up. Some of these programs write to stdout and stderr with printf(). When I first log into the system via SSH, I can see all ...
2
votes
2answers
42 views

Is it possible to detect file or folder creation/deletion in real time?

I want to monitor file or folder creation/deletion instantaneously, is it possible? EDIT:I am using Ubuntu 16.04
2
votes
1answer
30 views

Redirecting stdout and stderr from a bash script inside a bash script

I know that I can re-direct stdout and stderr from a script to a file such as follows, if this is executed directly on the command line : sh myscript1.sh &>output.txt & However if I ...
0
votes
0answers
13 views

How to install OpenGL and GLUT on openMandriva “One2011” or Lx2014.2"? [closed]

I need to install OpenGL and GLUT on either OpenMandriva One2011 or OpenMandrivaLX-2014.2
0
votes
0answers
59 views

CentOS 6.6 - Another df vs du issue

I know this has been discussed many times, but I couldn't find my solution anywhere. I have a CentOS 6.6 system that has the root filesystem with 28GB used when I use df command. However, du shows me ...
1
vote
1answer
20 views

Building a custom linux (ubuntu) distro [closed]

I'm planning to build a custom ubuntu distro by removing unnecessary packages and installing only what i need and then rolling over the distro as an iso file and ready to be deployed. Can anybody ...
0
votes
0answers
13 views

Error in io.elementary.greeter

I am using archlinux. When using io.elementary.greeter with lightdm the screen remained black. You can start the virtual terminal, but it will be returned to the black screen immediately. As I saw ...
0
votes
1answer
21 views

UTF8String example for seagull

I am trying to test a diameter application using seagull. In the captured PCAP file I have 3GPP-SGSN-MCC-MNC, which is defined as UTF8String. In seagull, I defined UTF8String in base_cc.xml as: &...
0
votes
2answers
39 views

How to create a keyboard shortcut that checks if a program is already open if yes it opens its window instead of the new instance

Example on hyper terminal: I press alt+h, the script should check if hyper is already running in the background. If yes, it should open already the opened window. If not, open a new window. OS: ...
-1
votes
0answers
46 views

Conky variable concatenation

My problems is to merge these two functions into one: ${fs_bar 6 dev/sr0} or ${fs_bar 6 /run/media/'home folder name'/'dvd label'} blkid -s LABEL -o value /dev/sr0 I want to obtain a sort of this: ...
6
votes
2answers
890 views

Create unique random numbers (UUIDs) in bash

I want to create random unique numbers (UUIDs) as the following node.id=ffffffff-ffff-ffff-ffff-ffffffffffff First I tried this $ rndnum=` echo $RANDOM"-"echo $RANDOM"-"echo $RANDOM"-"echo $RANDOM"-...
1
vote
0answers
15 views

Linux is caching routing and IP information for established connection. Asymmetrical routing issue

We have following setup : client (10.10.0.2) balancer (eth1: 10.11.0.3, eth2: 10.12.0.1) web-server (eth1: 10.11.0.4, eth2:10.12.0.2 and eth1:10.11.0.3 see below how) Masquerading router to route 10....
0
votes
0answers
21 views

How to install Wine / wireshark offline in an Ubntu box [closed]

I need to install wireshark on my new offline Ubuntu 180.4 box. I understand that if we have wine then we can install windows Wireshark in Ubuntu and execute it. If my understanding is correct I was ...
0
votes
0answers
13 views

Running libvirt with VirtualBox driver doens't work on 4 different distributions

I'm trying to run libvirt with VirtualBox driver without luck. We are planning to use libvirt for running out software tests in virtual machines on CI servers. Now we are testing our testing framework ...
1
vote
0answers
11 views

Why does the address of an internal symbol needs to be recorded in .got?

I am reading the blog https://eli.thegreenplace.net/2011/11/11/position-independent-code-pic-in-shared-libraries-on-x64 In the part "x64 PIC with data references - an example", it seems that the ...
0
votes
0answers
20 views

After installing Windows 10 LTSC on a separate intenal HD, the Linux portion of my “fdisk -l” output has a column it didn't have prior

I have two harddrives in this computer—one is a regular SSD, the other is an M2 SSD. I installed Arch on the regular one and, after a little over a week of having it, installed Windows 10 LTSC on the ...
1
vote
1answer
22 views

Can't remove file from terminal folder

I would like to remove the .xlsx file below in terminal folder. When I right click and do delete, it gives error: no such file. When I do 'ls' in command line it is not listed either. I refresh the ...
0
votes
1answer
63 views

Which field(s) can be a key in the table in /etc/services?

In /etc/services, a service name can have multiple (transport protocol, port number) pairs. For example, The Linux Programming Interface says: The /etc/services file consists of lines containing ...
0
votes
0answers
27 views

Logging Chrooted Users SFTP Activity

So I'm having the issue where I can't seem to log users SFTP activity. I can see when a new session was created by a specific user, but can't see where they've been or what they may have dropped ...
0
votes
0answers
13 views

What is Hostapd interworking? How to use it?

I am very excited to use the interworking functionality of hostapd! I aim to do a network redirection once a client connects to my RPI access point. I am following this tutorial for RPI AP. In the ...
2
votes
1answer
34 views

Does a tmpfs (/dev/shm) use Linux Page Cache? If it does, then how?

AFAIK, Linux has a page cache to improve performance (example, if you open a file, linux caches that file in RAM), then if file is requested again and it's cached, the OS avoids read the file from ...
0
votes
0answers
19 views

Installing Ubuntu on Acer aspire 7 A717-72G-79RO

I am having trouble with figuring out how to install Linux (Ubuntu) on my Acer aspire 7, I am a newbie with Linux so I am not sure how to go forth with solving the problem. I have read extensively, ...
0
votes
1answer
33 views

How to merge files in Linux while deleting the source files

I have 2 large files (of about 27 GB each), which I need to merge. They were originally one whole ZIP file, but I split it. The problem with the cat command is that it creates a new file which has the ...
1
vote
1answer
24 views

How do I make MIDI files sound the same in Linux as in Windows?

I have created a MIDI file using Anvil Studio in Windows. When playing the file with the MIDI editor Rosegarden in Linux (openSUSE Tumbleweed), the MIDI file sounds different. Now, I know that MIDI ...
0
votes
1answer
17 views

MemAvailable higher than expected

$ free -h total used free shared buff/cache available Mem: 7.7Gi 4.5Gi 692Mi 305Mi 2.5Gi 2.6Gi Swap: 2.0Gi ...
0
votes
0answers
39 views

How do i capture /proc/<pid>/stat file of a process | linux kernel

As you may know, the /proc/stat file contain the numbers of ticks the different CPU's have spent their time. Same goes to /proc/pid/stat where the tics are measured based on pid (process id) But when ...
1
vote
1answer
39 views

No root permission in a docker container image

I test a Docker container (created from Nvidia CUDA image) started with the command: docker run -i -t xxxxxx /bin/bash I can see the root prompt, but still don't have privileges for some operations; ...
0
votes
1answer
25 views

How to check system management interrupt count? [closed]

we can check interrupt count by: cat /proc/interrupts Is there any command to check system management interrupt count? SMI here means system management interrupt: https://en.wikipedia.org/wiki/...
0
votes
1answer
33 views

how to validate an VM is allocated much memory than it need and set an appropriate memory size?

I want to check if one VM is allocated much memory than it needs. If so, want like to recycle some free memory back. how to validate it ? From vmware client,if one VM's guest physical memory usage of ...
-2
votes
1answer
19 views

File Body as email from Linux to Outlook [closed]

mail -s "File content in Message body" < report.txt someone@example.com The above command works in AIX, But not on Linux. We are not able to receive the text as message body, Rather it displays as ...
4
votes
3answers
221 views

How do I add the bin subdirectory of the first directory in GOPATH to PATH?

echo $GOPATH will print: /mnt/star/program/go/package:/mnt/star/git_repository/workspace/go_workplace There are 2 directories, I want to append the first directory's sub-directory bin/ to $PATH. If ...
1
vote
1answer
76 views

Linux 3/1 split and physical map

I'm trying to understand the Linux 3/1 split (or 2/2, 1/3, any) and how mapping to physical memory work. Let's assume x86. What I don't understand in particular is why the kernel's 1GiB in va[3GiB, ...