Questions tagged [linux]
A family of Unix-like operating systems using the Linux kernel. If your question is about a certain distribution only, use a more specific tag.
58,872
questions
9
votes
4
answers
14k
views
How to Mint 19 Cinnamon taskbar application remove grouping
I am a new Mint Linux user and I found that all applications are groped. I don't like this kind of grouping. I would like to remove all grouping. Please check the screenshot. There are 5 terminal and ...
0
votes
1
answer
80
views
Changing Target Environment at Boot Time interactively
Is there a way to change the target when Linux starts? What I would like is to change the target interactively at boot time so that I can decide if, for example, start Linux in multi-user or in ...
0
votes
1
answer
209
views
What's the right way to check the available memory in Linux
Sorry for this entry level question,but I am got confused,so I want to let others to to help me clarify it
I use free command in linux to see the available memory inside it.
At first I think the ...
1
vote
1
answer
1k
views
Is it normal for process ids in Linux to continually increment into the high thousands after a few weeks?
I'm not an expert with Linux and have no idea how to begin debugging this issue or whether it's an issue at all.
I'm running a Linux server on a Windows machine (dual booting) and every few days ...
1
vote
1
answer
683
views
How to make speaker render silence output for 2 sec in ALSA (Advanced Linux Sound Architecture)
I want make the audio speaker on a computer silence for 2 sec by writing 0's data to "default" device using ALSA (Advanced Linux Sound Architecture). Below is code snippet.
int val
int size = 24000;
...
1
vote
1
answer
8k
views
1080p monitor displays flickering red pixels on dark greyed pixels or lose sync using a Sapphire RX470 Mining Edition
I've got a very strange/annoying problem that I can't pinpoint exactly the source with a new 1080p monitor (a refurbished Dell UZ2315) and a graphic card (a Sapphire RX470 Mining Edition) I bought ...
0
votes
0
answers
357
views
Linux Mint 19.1 lagging/freezing when run off pen drive
I've "installed" LM 19.1 to a PNY 16Gb (2.0) pendrive. From the outset, it has lagged (severely) and sometimes freezes.
Example: from "splashscreen" to fully operable "homepage" takes 8-10 mins.
...
0
votes
1
answer
374
views
Unexpected response to ATZ when attempting to configure USB modem?
I'm trying to use a Conexant USB modem from a C program. The modem is located at /dev/ttyACM0.
In the source code I send the AT, then ATZ to reset the modem. I receive the response:
$ sudo ./modem....
1
vote
0
answers
239
views
How to remap a file mmap(2)-ed in memory like shmget
I have a massive file ie 1TiB owned as 'filehandler', permitted rwx------. I mmap(2)-ed it into the 64bit address space, and all works successfully. This file handled by a process running as user '...
2
votes
1
answer
92
views
pass correctly script.sh $@ wrapped around single quotes
I have to execute scripts inside a docker container, example
composer install
or
bin/another-script another-script-arg-1 another-script-arg-2
in order to execute this command inside the container ...
2
votes
2
answers
542
views
Linux console equivalent to gui copy/paste file/directory scenario
How to simply recreate copy/paste functionality like in gui environments?
My typical scenario for copying file/directory in Linux console is:
cp source_path target_path
Sometimes paths are relative,...
5
votes
1
answer
13k
views
How to open systemd journal files on a Mac
I have a list of journal files I copied over from a Linux machine. How do I read these on my Mac?
system.journal
[email protected]~
system@00057f81c3578ad2-...
2
votes
2
answers
1k
views
Kde Plasma Task Manager is Broken after an update in Ubuntu 18.04
This is the error I get for Kde plasma task Manager after an Update
Error loading QML file: file:///usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/ui/main.qml:26:1: plugin cannot be ...
1
vote
0
answers
410
views
How to install Wine / wireshark offline in an Ubntu box
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 ...
1
vote
1
answer
861
views
Stuck at Asus Logo
My laptop model is Asus p2540uv. It has Fedora 29 as my primary OS alongside with Linux Mint and Windows 10. I was using Fedora(I wasn't upgrading system at that moment) and suddenly the screen ...
1
vote
2
answers
760
views
Bash trap command behaves differently under two terminals
I'm trying to write signal handlers in Bash scripts, testing under a Ubuntu 16.04 machine. Here I'm using the trap command:
#!/bin/bash
trap "echo hi!" SIGINT SIGTERM
echo "pid is $$"
while true; ...
0
votes
1
answer
900
views
How to extract a particular string by reading an XML file and store it in an another file using shell script?
I have an XML file content as below:
<?xml version="1.0" encoding="utf-8"?><testsuite errors="0" failures="0" name="pytest" skips="0&...
0
votes
1
answer
137
views
Install AIDE in Slackware in 14.2
I want to install aide in slackware but the package manager cannot download aide package. I tried the code below with no luck :
slackpkg install aide
The output shows :
Looking for aide in package ...
1
vote
1
answer
330
views
Why won't my Linux machine start?
In November I bought a Librem 15, which is a Linux laptop running PureOS. PureOS isn't Ubuntu but it is a Debian-variant that has a lot of security/privacy settings enabled by default, so it's very ...
3
votes
1
answer
6k
views
I really need help installing vundle for neovim
I've been trying to get neovim running with vundle for two months or so without success.
I'll try to make this a little detailed to make it easier for you to understand what I've done so far.
Linux ...
1
vote
2
answers
360
views
File upload to Linux server from Windows Desktop without providing system credentials (for server)
I want to periodically upload data from Desktop PC to Linux server (to which I have root access). They are not on the same network (server has public static IP, client is syn up broadband) I would ...
1
vote
1
answer
3k
views
Ansible: change `remote_user` depending on server status
Most servers will be initially deployed with a direct SSH access for root with a SSH key or only a password so you can configure the server. Because of security issues, I want to configure a new user ...
1
vote
1
answer
1k
views
Allow network interface access and usage to root only
I have several unprivileged users on my system and do not want them to directly use a network interface, but use my network-bridge application instead. In my specific case it is a CAN interface on a ...
1
vote
0
answers
25
views
Veem to offsite storage fails after 2 hours
Site A has the Veem application installed on a Windows server.
Site B has Ubuntu server 18.04 LTS with mounted drive as storage location.
Site A to Site B utilizes 1Gig connection over VPN to ...
0
votes
0
answers
292
views
Fn+f7 key is not working
Keybinding fn+f7? which previously switched screen backlight, stopped working after kernel update 4.20 on my laptop Asus X540SA. Can I get it back?
0
votes
2
answers
226
views
How to detect if Kali is run from Live CD in Bash?
What is the most reliable way to detect if Kali is run from Live CD or installed to disk?
0
votes
0
answers
161
views
Broken apt system prevents running wireshark
I have trouble running wireshark:
$ wireshark
wireshark: error while loading shared libraries: libQt5Widgets.so.5: cannot open shared object file: No such file or directory
According to Ubuntu, ...
1
vote
1
answer
453
views
Accidentally ran blkdiscard on root drive, screwed?
Long story short. I screwed up badly and managed to run blkdiscard on my root drive instead of the intended disk. Am I completely screwed?
0
votes
1
answer
1k
views
NGINX refused to connect localhost on CentOS VM
I am running Centos7 on a VM as a guesthost on a MAC. I have followed the following tutorial
https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-centos-7
I have two network ...
1
vote
0
answers
5k
views
Can't delete the file with rm command
I have a file which can't deleted by rm.
/var/www/html/symfony4proj/var/cache/pool/+m7exph6c3/X/3/tCcgRMw5TEmYO-kHpJ0t
file satus
-rw-r--r-- 1 app app 2781 Jan 1 1970 tCcgRMw5TEmYO-kHpJ0t
Change ...
0
votes
1
answer
363
views
Mint 19: For "power is critically low" How to enable Hibernate option?
I have hibernate/suspend option available during closing the lid. Its not the hardware problem as this option is available on Windows and it works. But there's no suspend option when the power is ...
1
vote
1
answer
81
views
Error uninstalling Google chromium
I downloaded Google chromium in /tmp directory in Linux. I want to uninstall it and by mistake I deleted /tmp directory. Chromium is not uninstalling now. What can I do now?
1
vote
0
answers
864
views
kdeinit5: Segmentation fault
I am experiencing a problem with KDE in my OpenSuse 42.1 Leap OS.
Basically, everything that requires Qt does not work (kate, Libreoffice, dolphin etc).
When I click on an icon's application I get an ...
1
vote
1
answer
1k
views
How to disable the redirection to Windows lock screen during a remote desktop session?
I was searching a Linux alternative to TeamViewer, for a remote desktop session on Windows 10, and so I discovered Remmina.
I understood how to configure everything making it work, except for the ...
0
votes
1
answer
5k
views
How to pass multiple files to a Bash script as variables?
I have a bash script, let's call it myscript, that is supposed to accept files in the current working directory as variables and perform various actions on them.
I've been able to set up this:
#!/...
1
vote
1
answer
175
views
How to use find with regex to delete files beginning with certain letters
I have a nested directory structure that looks like this:
top_dir
└── nested_1
└── nested_2
├── a_file.txt
├── b_file.txt
├── directory
├── other_directory
...
7
votes
2
answers
4k
views
Why does 'apt' do not store downloaded packages anymore?
I was used to apt storing downloaded packages in /var/cache/apt/archives/, but it does not do it anymore and I can't figure out why.
Configuration is set accordingly IMHO:
# apt-config dump | grep -...
7
votes
2
answers
3k
views
Why isn't `tail -f … | grep -q …` quitting when it finds a match?
I'm doing a pretty standard tail + grep:
tail -f some_log_file.txt | grep -q known-string
If I run the command without the -q:
tail -f some_log_file.txt | grep known-string
I see output:
[Tue Feb ...
1
vote
1
answer
950
views
Install a specific version of Docker CE on Amazon EC2 Linux
Due to a recent vulnerability with Docker CE I need to update our fleet of EC2 instances running Amazon Linux base AMI to the latest version. How do I install a specific version of Docker CE for ...
0
votes
1
answer
785
views
pip install PyGreSQL failed with fatal error
command executed : pip3 install PyGreSQL
It fails with following error.
fatal error: linux/limits.h: No such file or directory
error: command 'cc' failed with exit status 1
failed with ...
0
votes
1
answer
2k
views
ssh -o options hang client on windows 10 clients connecting to linux servers
This hangs on a windows 10 client, but I really do need to use windows 10 client lately:
ssh -4 -X -i my.pem [email protected] -o ConnectTimeout=604800
Contrastingly, this worked good on a linux ...
0
votes
1
answer
1k
views
Android Studio Code not updating with install of new APK in system/priv-app
A little background:
Android Studio project compiled with a submodule
Module imported from .aar package
Working code, freshly cloned from Git. Main app operates as intended
Single line addition to ...
0
votes
1
answer
655
views
`sysctl` not available in script started by swanctl on NixOS
I use strongswan-swanctl on a VPN server running NixOS.
Basically it is working and I can connect to the VPN server from clients.
services.strongswan-swanctl = { ...
1
vote
1
answer
2k
views
Invoking wget from java (runtime.exec) hangs and limits the download to a specific file size (while same with curl does not)
Issue details
I am trying to invoke wget from java to download a file but I keep hitting a weird issue where the file size will be capped.
For example, when issuing "wget https://speed.hetzner.de/...
2
votes
1
answer
960
views
Is it possible to tell rsync to abort if the source directory is empty?
I want to prevent situations where the source filesystem is temporarily unmounted when I run
rsync -av --delete $source $target
It seems that if I could tell rsync to refuse to work on an empty ...
0
votes
1
answer
4k
views
'tr' command on linux: LF to CRLF not possible?
echo "foo" > test.txt
od -c test.txt shows me f o o \n as expected.
Now I try to convert the LFs to CRLFs and check the result after the pipe:
tr '\n' '\r\n' < test.txt | od -c
But the ...
1
vote
4
answers
27k
views
how to dowload libgl.so.1?
So I am running 64-bit hardware with Ubuntu and I am trying to play Quake 3 but I can't install Libgl1.
sudo apt-get install --reinstall libgl1-mesa-glx:i386
Reading package lists... Done
Building ...
1
vote
0
answers
1k
views
Auto mount/umount USB and SD Card at runtime
USB and SD Card is mounted at boot time. Below is my fstab :
/dev/sdg1 /mnt/usb1 auto defaults,nosuid,nodev,nofail 0 0
/dev/sdh1 /mnt/usb2 auto defaults,nosuid,nodev,nofail 0 0
/...
0
votes
1
answer
332
views
Installation of Plasma Mobile on Nexus 5x failed "./fetch-demo.sh: 16: ./fetch-demo.sh: pushd: not found"
I recently bought a used Nexus 5X that has already been rooted and had Lineage OS installed on it. I wanted to convert it to Plasma Mobile but every time I try to flash it with the command
sudo ./pm-...
0
votes
2
answers
184
views
Writing a script to startup through multiple server layers [closed]
Each day, I need to begin work on a set of jupyter notebooks. The jupyter notebooks must be started on a docker, which is located on a remote server, which I have ssh connection to via my laptop. Thus ...