All Questions

2
votes
2answers
27 views

Using `find` to exclude multiple paths matching patterns

I'm trying to locate nested YAML and HTML files to replace a string with sed after creating the list; I'm not sure I fully understand how to use the -prune option, here's what I have: find . -type f -...
0
votes
0answers
2 views

How to keep track of installed software/sys configuration in linux that I can restore after a fresh linux install?

I have been thinking of writing some sort of utility for linux that keeps track of all my installed software and configuration. Something that after doing a fresh install I can just run it and will ...
13
votes
1answer
3k views

How to enable copy-to-clipboard with zathura-pdf-poppler?

How do I make Zathura copy selected text to the system clipboard? I'm using Zathura with the poppler PDF plugin.
0
votes
0answers
2 views

Configuring programs and services from unstable channel in NixOS

I know that I can install a package from the unstable channel like this: { config, pkgs, ... }: let unstable-pkgs = import <unstable> {}; in { environment.systemPackages = [ unstable-pkgs....
1
vote
1answer
894 views

Ubuntu 16.10 akwardly slow at booting up after kali linux and Windows 10 triple boot

I had Ubuntu 16.10 and Windows (ubuntu's grub as bootloader) on my laptop, yesterday I decided to install Kali with it too, so I shrank the Windows 10 partition of 60 gb and filled the created space ...
8
votes
2answers
2k views

Use a shell variable in awk

Here is my script (to find the files that contain a specified pattern): find . -type f \ -exec awk -v vawk="$1" '/'"$vawk"'/ {c++} c>0 { print ARGV[1]; exit 0 } END { if (! c) {exit 1}}' \{\} \...
0
votes
1answer
21 views

badblocks fails to spot corrupting disk controller

I have file corruption problem on a HDD (the SDD in the same computer works fine): for i in {1..10}; do dd if=/dev/zero of=zeroes_$i.dat bs=512 count=4M done md5sum zeroes_* yields the correct ...
-1
votes
0answers
4 views

Change color of chroot prompt in LFS

I am currently building an lfs and am in the 6th chapter. I am using ssh and a remote droplet for making the lfs. I have a tiny problem that while i am in the chroot environment, the prompt color is ...
0
votes
0answers
11 views

Number of characters in test.txt is 20 Number of words in test.txt is 3 Number of lines in test.txt is 3

Write a shell script which displays the total number of words, characters, lines in a file. Assume the file name is given as command line argument. file=$1 if [ $# -ne 1 ] then echo "$0 fileName" ...
0
votes
0answers
10 views

awk text processing for multiple pattern pairs

This is a repost of my previous query which was well answered by Gerard, search pattern pair using awk Now I have another addition to this query, So here is my query. Below is input string: Policy ...
2
votes
1answer
1k views

Ubuntu 16.04 only recognizes 24GB RAM out of 32GB

I recently purchased a new Desktop PC with 4x8 GB RAM. However, the operating system (Ubuntu 16.04, 64 bit) only reports 24 GB RAM instead of 32. I already checked the sticks physically, they are ...
1
vote
1answer
907 views

Question about CentOS and KVM virtualization and PCI Passthrough

I want to replace Windows Server 2012 R2 and Hyper-V on my homeserver with CentOS and KVM. My plan is to virtualize one Windows 8.1 machine and several smaller Linux machines like on Hyper-V, there is ...
0
votes
1answer
13 views

Windows hangs at random moments after installing Linux in dualboot

So I have recently installed Manjaro Linux in dual boot with Windows 10 (though forgot to turn off fast startup option). Now when I listen to music at Google Play/watch video in VLC player my system ...
0
votes
0answers
13 views

Are there multiple flavors of the GNU tools?

I think that the BSD tools have different flavors, for example the BSD ls tool is not the same tool on FreeBSD and OpenBSD and NetBSD (and even on macOS). Note that by "different flavors" I mean that ...
0
votes
3answers
90 views

Editing text files in WSL with Notepad++

I use WSL (Windows Subsystem for Linux) with Debian, which provides a simple cmd interface. I'd like to open files in Notepad++, which is installed on the Windows side of this PC. is this possible? ...
0
votes
0answers
3 views

dovecot aut-worker Fatal

I have set up a test Server with dovecot and get this error in mail.warn dovecot: auth-worker: Fatal: master: service(auth-worker): child 6169 killed with signal 11 My dovecot.conf is the same like ...
-1
votes
0answers
15 views

comparing two file in different directory

Hi i have two file location in which /projects/staging/mvn_file_data_001.csv, /projects/staging/mvn_file_data_002.csv, /projects/staging/mvn_file_data_003.csv /projects/staging/mvn_file_data_00n....
0
votes
1answer
10 views

How to check status for user level systemd unit

If alice has a user level systemd service unit named foo.service located at /home/alice/.config/systemd/user/foo.service then I can switch user to alice and check the status of the unit using the --...
1
vote
0answers
6 views

Kernel Logical address

Does Kernel logical address go through MMU when used in load/store instruction? Does MMU handle kernel logical address differently from kernel virtual address? Please give reasons for the same. If ...
0
votes
0answers
6 views

Centos 7, VirtualBox, Guest Additions

I installed the new kernel which fixed a mouse issue, but now I do not have full screen anymore. I am trying to get guest additions to work again but I am getting this error:
2
votes
1answer
918 views

selinux is causing “nexus.service: Failed at step EXEC spawning /opt/nexus/bin/nexus: Permission denied” Fedora 26, nexus 3.06

After installing the latest version of nexus, currently 3.6.0, I'm able to start it by using the manual command /opt/nexus/bin/nexus start but when trying to start as a service (per directions ...
0
votes
1answer
6 views

arrow keys for line editing during zsh read builtin

I have a little zsh script for prompting the user for some input: #!/usr/bin/env zsh IFS="$(printf "\n\t")" printf "${1-query}: " 1>&2 read -r query echo "${query}" If I type something at the ...
0
votes
1answer
26 views

How to allow non-roots to connect to WiFi?

/etc/os-release says Debian GNU/Linux 9 (stretch) /proc/version says Linux version 4.4.132+ (jenkins@fdc-06) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9) ) #1 SMP sudo /sbin/...
0
votes
3answers
25 views

What do empty curly brackets mean in bash? [duplicate]

I understand all of this but lose it when i get to the 7th line starting with find. i don't understand the -exec cp {}. I understand that this is executing the copy command but I don't understand ...
-1
votes
0answers
9 views

Weak Strength Wi-Fi issue in Mint Linux

I have been installed Mint Linux. After installation i could't connect with my home Wi-Fi due to low strength. Wi-Fi name not showm in available list. But there no problem with other devices and ...
1
vote
0answers
10 views

Randomly failing services CentOS7 - Monit too

I've recently created a new CentOS 7 setup with Apache, Nodejs, Lfd and Postfix and i'am also using monit to track failed services. For some reason randomly, services are failing including monit as ...
0
votes
5answers
288 views

Why is Linux not an operating system? [closed]

I checked the dictionary definition of an operating system: the low-level software that supports a computer's basic functions, such as scheduling tasks and controlling peripherals. Well, that ...
4
votes
2answers
881 views

dual-monitor bugs during resolution setting

My OS is Slackware 13.37 64-bit. I have two monitors. Primary one supports 1920x1200 and the secondary one 1280x1024. I use this line to enable dual monitors in "non-clone" mode: xrandr --output ...
22
votes
4answers
38k views

Trap, ERR, and echoing the error line

I'm trying to create some error reporting using a Trap to call a function on all errors: Trap "_func" ERR Is it possible to get what line the ERR signal was sent from? The shell is bash. If I do ...
-4
votes
1answer
18 views

What are the differences between `-f` and `-A` of `ss`?

What are the differences between -f and -A of ss? Which of -f and -A is related to -t, -u, -4, -6, -w, -x? Does -A inet,packet imply -A tcp,udp,raw? I know a few socket concepts, but can't figure ...
0
votes
1answer
7 views

Linux bash forking process (inotifywait)

I have a running bash script that is forking. It looks like this: #!/bin/bash /usr/bin/killall inotifywait /usr/bin/inotifywait -mrq -e CREATE --format %w%f /home/sftp/folder1/ | while IFS= read -r ...
11
votes
5answers
12k views

How to use `~/.ssh/config` setting for each server by `rsync`

I'm now using rsync with -e 'ssh -p 10022' option to specify the port. I have already ssh setting in ~/.ssh/config. Host myvps HostName example.com User ironsand Port 10022 Can I use this ...
2
votes
1answer
11 views

redirect awk exec results to another folder [duplicate]

Trying to capitalize the content of the files that match the filename pattern "_base.txt"; then output the results to another folder with the original filename plus the "_cap.txt" in the end. I plan ...
4
votes
2answers
93 views

What does chmod -u do?

By accident I ran chmod -u filename and it removed all of the permissions I had on filename. The man page does not reference a -u option. Experimenting I was able to conclude that it removes not all ...
0
votes
3answers
903 views

how do I copy an .iso file to root in Ubuntu

How can i copy an .iso file to the root directory in Ubuntu? Unetbootin cannot detect my ubuntu.iso unless it will be moved to the root. When I attempt to move it, into the root, the system tells me ...
1
vote
1answer
33 views

Are there binary packages available to upgrade python3 on Debian 9?

I need to upgrade Python on 30 laptops at several remote sites. These laptops have Debian 9 with Python 3.5, and the library they'll be using for the planned activity (arcade) requires Python 3.6. I ...
0
votes
2answers
52 views

What does the action “loop back” mean?

I have some difficulty to picture a diagram for the meaning of loopback. https://en.wikipedia.org/wiki/Loopback#Virtual_loopback_interface Any traffic that a computer program sends to a loopback IP ...
0
votes
2answers
167 views

Installing Linux on 2018 Mac Mini [on hold]

I have the new late 2018 Mac Mini and want to use as an Ubuntu Server. There is a plethora of contradicting posts on the Internet related to the T2 Chip, some saying its not possible and some say it ...
1
vote
0answers
7 views

Server Setup and management tool (akin to MacOS Server)

Does a tool exist (for Linux) that allows you to setup services using a GUI akin to how MacOS Server worked? For those unfamiliar, MacOS Server let you configure services such as HTTP, SMB, VPN, Wiki,...
0
votes
0answers
5 views

Run commands in Vagrant from outside script

I've got a script which checks whether Vagrant is running or not, if so it'll ssh into Vagrant if not then will run vagrant up and then ssh into Vagrant. After logging in, I need to run a couple ...
2
votes
1answer
446 views
+100

how to set custom xkb_keymap in nixos

I have following layout layouts/en_ru xkb_keymap { xkb_keycodes { include "evdev+aliases(qwerty)" }; xkb_geometry { include "pc(pc104)" }; xkb_types { include "complete" }; ...
-2
votes
0answers
31 views

Need way to grep through files for malware

I am running into a lot of issues with some files being infected, however, I figured they are very similar code inside and I was thinking about grep-ing through files to find this snip of code. The ...
0
votes
1answer
10 views

enable debug for kernel but not systemd

I have added the debug parameter on the kernel command line to enable debug in the kernel, unfortunately this also enables debug in systemd causing my /var/log/daemon.log and /var/log/debug to fill up ...
0
votes
2answers
54 views

Writing to a file horizontally

I have a script that I want to run and then write the output to a file in a specific format Currently when I run the script and direct it to standard output it gives it to me in the format I want. The ...
1
vote
2answers
50 views

Why is some virtual network interface assigned private IP address, while some is assigned loopback IP address?

Are docker0, lo and virbr0 are virtual network interfaces? Why are docker0 and virbr0 assigned private not loopback IP address? If private IP address can work like a loopback address, can lo be ...
0
votes
1answer
899 views

Session id using curl_7_35

I want to use curl to get the session id. So, please help me if there is any way to get the session id using Curl. Earlier I was using Open SSL to capture the session id. Now, I don't want to use it. ...
5
votes
2answers
9k views

How to change the default text editor in ranger?

Currently, ranger will only open text files with nano, and I want it to open them with vim. As per the Arch Wiki I have tried adding has xdg-open, flag f = xdg-open "$1" ext txt = vim "$@" to rifle....
0
votes
2answers
53 views
+50

Intentionally create an unresponsive graphical process

Sometimes I want to test how a graphical application behaves in response to SIGTERM, SIGQUIT, xkill, and that pop-up that says "Do you want to terminate this application?" What's a simple and ...
3
votes
2answers
70 views

Does systemctl consider service dependencies when starting or stopping multiple services in one command?

systemctl allows to pass multiple service names in start or stop command. Let's assume in systemd service A is configured to be stopped before service B. When I now execute systemctl stop B A ...
0
votes
0answers
15 views

can't install ecodmsserver on crunchbang++ / Debian 9 stretch distro

I tried to install "ecodms Server" on linux according to the installation manual. but i have several issues installing the software, which leads me to the assumption that i am missing in general some ...

15 30 50 per page