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
0answers
17 views

Suspend and resume X session?

I use GNU Screen for terminal multiplexing, and I was wondering if a similar solution existed for desktop environments. This is not the same concept as locking the screen, or logging out of the ...
1
vote
1answer
1k views

Number of open file descriptors won't change when I set them in CentOS 6.3?

uname -a Linux lab.testing.com 2.6.18-164.el5 #1 SMP Thu Sep 3 03:33:56 EDT 2009 i686 i686 i386 GNU/Linux ulimit -Hn 1024 ulimit -Sn 1024 ulimit -n 1024 I opened /etc/sysctl.conf in vi and added ...
4
votes
3answers
3k views

/usr/lib/tracker/tracker-store causes very heavy CPU load on Debian “Buster”

After the last upgrade on: Operating System: Debian GNU/Linux buster/sid Kernel: Linux 4.18.0-2-686-pae Architecture: x86 /usr/lib/tracker/tracker-store eats a huge load of CPU. ...
1
vote
2answers
2k views

locale error. cannot open locale definition file `fa_IR'

Here is my locale list: locale -a ... en_ZM.utf8 en_ZW.utf8 fa_IR fa_IR.utf8 POSIX I set LC_ALL=fa_IR.UTF-8 with this command: export LC_ALL=fa_IR.UTF-8 and when I run sudo dpkg-reconfigure ...
0
votes
1answer
21 views

Script for calling jar file, which is updated with new name

I have created this script #!/bin/bash java -jar /opt/elcor/web/elcor-web-0.1.1-SNAPSHOT.jar and everytime I upload a new version in /opt/elcor/web/ I have to manually modify the script, because ...
1
vote
1answer
2k views

BlueZ error setting privacy on Raspbian

I am trying to use BlueZ 5.45 on a raspberry pi running Raspbian Jessie and cannot set up BlueZ to use LE Privacy. When I start the bluetooth daemon I get the following messages: Jul 26 22:00:19 ...
0
votes
2answers
26 views

Enabling tmpfs on an already installed system

Right now a system uses LVM on LUKS, with only 2 lvm partitions / and /home. If I now want to make use of tmpfs for /tmp and /var/tmp, can I just add the necessary changes to /etc/fstab and it will ...
-2
votes
1answer
37 views

using case statement to read from a variable/file while creating a MENU

read -p 'enter your choice [ 1-5 ]' choice case $choice in 1)abcrequest 2)defresponse 3)afgRequestReply 4)FSfReply 5)ghjrequest I want the case ...
-1
votes
1answer
1k views

How to dual boot Fedora 30 along with Windows 10 in the same SSD boot drive?

I have a desktop with a 1 TB hard drive and a 240 GB SSD where the SSD is my boot drive (Windows 10 is installed in it already, with GPT partition in UEFI mode) and the hard drive is just a data drive....
3
votes
0answers
25 views

RFC4821 Path MTU discovery for IPv6 on Linux

I have configured an IPv6-over-IPv4 tunnel via Hurricane Electric on my Linux machine. While I can ping ipv6.google.com: bash-4.4# ping ipv6.google.com PING ipv6.google.com(lhr48s09-in-x0e.1e100.net (...
0
votes
1answer
14 views

Wireless adapter set to auto mode. Not changing back to managed mode

I tried to change my wireless adapter to monitor mode from managed mode using airmon-ng and iwconfig method both and I ended up with 'auto' mode for my adapter which I am not able to change back to ...
0
votes
0answers
43 views

How to create a process in Linux?

I am a research student working on an experiment involving Linux, and for it I need to create processes. I know how to create them with the fork() system call, but I was wondering if there was an ...
0
votes
0answers
109 views

“A stop job is running” for a long time when shutting down Kali Linux

When I power off my Kali system, it takes forever to power off. The stop job starts with 1min30sec but keeps increasing; So, I am not able to shutdown it properly and I have to force the computer to ...
0
votes
3answers
27 views

How to slice a horizontal tail of a single line

given file1 1:b:c:4 file2 1:3:47:8:aa:2 file3 1:4:5:8:9:11:aaaaa:2:3:4:88:9:10 I want to find the tail of this line after the ':'. To note each file only contains one line always For example ...
0
votes
1answer
1k views

Yum not working at all

I ran the command yum clean metadata and then ran the command yum update. When I ran the yum update I now get the following errors Loaded plugins: product-id, security, subscription-manager This ...
0
votes
0answers
18 views

Displaying a message once a user is logged out due to TMOUT

On my server, I have a read-only variable named TMOUT in my /etc/profile set to 600, meaning that all user accounts will be logged out automatically if the user account remains inactive after a period ...
1
vote
1answer
2k views

Set environment variable for all login scenarios

I'm using Microsoft's dotnet in linux (ubuntu), and it has dial-home telemetry. I want to disable it, and the instructions say: The .NET Core tools collect usage data in order to help us improve ...
0
votes
0answers
20 views

How to downgrade Ubuntu releases

I have a Alienware laptop which has Windows 10 and Ubuntu 19.04 installed. In my project, I want to use .NETCore, which is not compatible with Ubuntu 19.04, so I have to downgrade to 16.04. How can I ...
1
vote
2answers
34 views

Deploy different roles on different servers using one playbook

F.e. I created two roles via "ansible-galaxy init": deploy_back and deploy_front Also I wrote a playbook.yml file. - name: Create cluster become: yes hosts: all roles: - deploy_front - ...
364
votes
8answers
251k views

Execute vs Read bit. How do directory permissions in Linux work?

In my CMS, I noticed that directories need the executable bit (+x) set for the user to open them. Why is the execute permission required to read a directory, and how do directory permissions in Linux ...
0
votes
1answer
35 views

How can I retain a specific RegExp in several lines using sed command?

I need to retain a specific RegExp in several lines using command sed. example: Input: ARCH_17|gi|299883390|ref|NC_014300.1| Halalkalicoccus jeotgali B3 plasmid 3, complete sequence Output: gi|...
1
vote
1answer
24 views

How should I go about safely checking if performing dd on /dev/random is going to block?

I'm developing a shell script that only uses /dev/random in the following manner: dd if=/dev/random of=%{outputFile} count=512 bs=1 2>/dev/null I explicitly do not want to use /dev/urandom, even ...
1
vote
1answer
906 views

Vega 56 drivers, missing firmware

In void linux kernel 4.13.3_1 I'm having trouble getting the amdgpu drivers to work. Relevant output from dmesg: [ 0.944960] [drm] amdgpu kernel modesetting enabled. [ 0.945421] [drm] ...
0
votes
0answers
19 views

Why is my static IP configuration not working in CentOS 7?

I installed a fresh version of Minimal CentOS 7. I can ping google.com when it is set to dhcp. When I run nmcli -p dev I receive: enp2s0f0 ethernet connected enp2s0f0 lo loopback unmanaged -- ...
1
vote
2answers
170 views

How wait for eth0 interface before running “ip link”, “ip addr” and “ip route” commands?

I have the following script that I need to run on my Synology NAS at boot-up. The Synology NAS has built-in scheduled tasks with the ability to trigger tasks at boot-up. The script I need to run is ...
1
vote
1answer
76 views

What mechanism allows the unprivileged graphical session to control the backlight device?

Wayland (or unprivileged Xorg) is able to access DRM and input devices by fd-passing from systemd-logind or equivalent. I can see these devices (for the first seat) in loginctl seat-status seat0. ...
0
votes
0answers
17 views

buildah: use different directory than /tmp for temporary files

My /tmp directory is too small which results in an error when I try to commit an image via buildah: $ buildah commit $container foo:bar ... error storing layer "42" to file: write /tmp/...
0
votes
0answers
13 views

Systemd output in Docker without -t switch

When Docker image is started in terminal mode like: docker run --mount type=tmpfs,destination=/run --mount type=tmpfs,destination=/run/lock -v /sys/fs/cgroup:/sys/fs/cgroup:ro --entrypoint '/bin/bash'...
0
votes
1answer
34 views

Do Linux directory permissions overrule file permissions? [duplicate]

drwxrwxrwx 2 user1 user1 4096 Jun 21 11:25 . drwxr-xr-x 16 user1 user1 4096 Jun 21 11:25 .. -rw-r--r-- 1 user1 user1 15 Jun 21 11:25 access.txt The file access.txt is owned by user user1 but the ...
0
votes
1answer
48 views

Shell Script cannot find python3.6 interpreter

I have a file called update.sh which looks like this: #!/bin/sh python3.6 When this file is located in /bin directory it works and python3.6 starts like this: Python 3.6.7 (default, Oct 22 2018, ...
1
vote
0answers
99 views

What is an up-to-date equivalent of LARTC How-To?

The Linux Advanced Routing and Traffic Control How-To was a guide on configuring things like the quality of service modules, iptables, multicasting and IPv6. Since work stopped on it, Linux has ...
0
votes
1answer
34 views

My low and high watermarks seem higher than predicted by Documentation/sysctl/vm.txt

Motivation I wrote an answer here: How large are the "watermark" memory reservations on my system? The "min" watermark for the "Normal" zone appeared as 31449 pages. This is 125796 ...
0
votes
1answer
302 views

How to remove 'top' command's header?

I have top as above, and would like to remove header. I tried to look into its sourcecode but can't find what should be changed to remove its header, trying to modify and create a patch.
-1
votes
1answer
37 views

how to get expanded path from `ls -l /a/*/b` to a variable

I created a folder structure like the following mkdir -p test/f{1..4}/inside while running ls -l test/*/ i got test/f1/: total 0 drwxr-xr-x 2 s ff 68 Jun 21 18:37 inside test/f2/: total 0 ...
1
vote
1answer
1k views

Why is this ALSA configuration file preventing aplay and arecord from listing PCM devices?

In my embedded system I have this configuration file in /etc/asound.conf: pcm_slave.sl2 { pcm "hw:0,0" rate 48000 channels 2 format S16_LE } pcm.rate_convert { ...
1
vote
1answer
20 views

Hiding lines from getting displayed

Can anybody tell me how to hide an error output. For example. I want to hide the below lines from getting displayed on command line. Usage: grep [OPTION]... PATTERN [FILE]... Try `grep --help' for ...
2
votes
2answers
72 views

How does Linux check permission for file descriptor?

When a process successfully get an fd using open(flags=O_RDWR), it will be able to read/write to that file as long as the fd isn't closed (Regular file on local filesystem), even if some other process ...
3
votes
3answers
17k views

How do I install/update drivers on Debian 9?

I just installed Debian 9 on my laptop, however Wifi isn't working and I'm not sure if my graphic card is either. I'm sure that it's just a lack of drivers, but I've never actually had to update ...
0
votes
1answer
9 views

Am getting the error when i tried to start the python server in collectd servcie in ubuntu machine?

I installed collectd in my ubuntu machine. Python server is installed by default. I need to push all my system metrics to browser using collectd. For that i need to run python server. But when i tried ...
-3
votes
1answer
47 views

How to get this output

I want to prinf like this; I want a any command producing this output 124.156.1.1 124.156.1.2 124.156.1.3 124.156.2.1 124.156.2.2 124.156.2.3 124.156.3.1 124.156.3.2 and so on.
0
votes
0answers
16 views

Os-prober doesn't detect Arch initramfs.img

I have Fedora managing GRUB2 and everything seems normal except i can't boot Arch, the entry appears in grub but checking the menuentry commands i realised that the initrd line points only to /boot/...
1
vote
0answers
45 views

Random freezes with AMD Ryzen on Linux

Since I've bought an AMD Ryzen 7 1700 I've been having constant freezes while using Linux. Recently I had a freeze with Debian 10. The last line I could find on my kern.log before the freeze is IPv6: ...
0
votes
0answers
12 views

why linux(GCP) machine is booting up after deleting the /etc/fstab

I have deleted the /etc/fstab file purposely. How is my machine still booting up normally? I think it is using intiramfs but once the kernel starts the init process is forked, then it should crash ...
0
votes
1answer
31 views

terminate ssh session on host reboot

assume I have a ssh session to a remote host like ssh user@host tail for example and now somehing causes that host to reboot. How can I configure the session to terminate immediately and return back ...
0
votes
0answers
14 views

Error within /var/log/messages for new SSD

'm getting this message on a new server build running CentOS 7 and am confused by it. This was a brand new 500gb Crucial SSD drive I bought and installed only a couple months ago. I get this every ...
1
vote
1answer
8 views

Custom Firmware Boot Issue For Linksys EA6350

I am trying to connect a custom device to this Linksys router. This device has a firmware file which I copy and paste into the /lib/firmware folder. The issue I am facing is, on bootup if the device ...
0
votes
1answer
30 views

Unzip tbz files

I have a huge list of tbz files, approximately 1000 tbz, which I want to UNZIP TO dm4 files. How do I go about it one shot.
3
votes
2answers
2k views

How to make a USB visible in LXD Container

I am fairly new to LXD Conatiners. I have a Host ubuntu 16.04 machine running which has a single container : root@ubuntu-blade1:/etc/udev/rules.d# lxc list +-------------+---------+-------------------...
2
votes
1answer
38 views

How does the Linux kernel arrange the Page tables when running 32-bit code in x86_64 Long mode?

the x86_64 architecture allows 32-bit code run natively while operating in Long mode. Therefore a submode called "compatibility mode" was added. Now the the memory managment mode goes through the ...
0
votes
1answer
58 views

Embedded Linux or Desktop Linux [on hold]

I am an Electronics engineer trying to transition from using custom firmware on microcontrollers to using full blown processors that can run the linux operating system. My strategy was to first learn ...