All Questions

0
votes
0answers
9 views

Need to convert output to curly braces

host1:3183,host2:3183,host3:3183 Need to convert the above as below { "host1", "host2", "host3" }
1
vote
1answer
18 views

Grep to check filesystem mount and test to check for file path is providing incorrect information

Even though the path exists, this script reports that it does not. What is the flaw in the logic? #!/bin/bash mount="/fileserver" if grep -qs "$mount" /proc/mount && { test -d '/fileserver/...
0
votes
0answers
4 views

How to migrate VPS from an openQRM server with version 5.1 to another openQRM server with version 5.1 through GUI?

Is it possible to migrate a VPS from an openQRM installed server with the version 5.1 to another openQRM server with the same version through GUI?
0
votes
0answers
5 views

Using Terminal to determine percentage of torrent file downloaded

I am busy downloading files over Deluge and would like to know how to check the percentages of the files downloaded, using the Terminal. Ideally, I would like to be able to check individual files as ...
0
votes
1answer
30 views

What does ${!#} mean in Shell scripting?

Found this in an obfuscated malicious shell script, beginning with: ${!#}${*^} <<<... Could not find any reference to ${!#}, but when echo'd, it outputs -bash. Is this a secret referene to ...
0
votes
0answers
4 views

Can't run composer update in a subdomain because the php version is lower that required

I have to run a Laravel command from SSH to install packages (the command is 'composer update') and when I run it puts an error that the php version is 7.0.3 and that it requires 7.1.3 The command is ...
1
vote
2answers
10 views

How to change the system cooling policy on Linux laptop

I'd like to essentially turn off the fan or at least lower the fan speed on my laptop, this laptop was on Windows 7, and it had a function called 'System Cooling Policy' and I had it on passive ...
0
votes
0answers
5 views

NixOS: Modifying config files on a buildFHSUserEnv environment

On NixOS, I'm using a FHS environment to supply libraries (unixODBC and sqlite-odbc) to libreoffice. { pkgs ? import <nixpkgs> {} }: ( pkgs.buildFHSUserEnv { name = "odbc-sqlite-libreoffice";...
0
votes
0answers
2 views

Why does bluetooth “hci_inquiry” function always returns num_res = 1?

According to bluetooth specification "hci_inquiry" function - loosely quoted here " sends inquiry from local Bluetooth device to nearby remote ( not local) bluetooth devices and records some data - ...
0
votes
2answers
19 views

AWK - sum plus and minus values into separate variables

I have a CSV file like this: 2019.04.15;3.75; 2019.04.29;-5.17; 2019.05.01;7.5; 2019.05.06;0.5; 2019.05.13;0.25; 2019.05.20;-8.5; I want to get the sum of the plus and the minus values off the ...
0
votes
1answer
26 views

Writing continuously to named pipe

I have a problem that I can't seem to solve involving two named pipes. Basically, I have two processes that I don't have control over. They are communicating via named pipes (mknod pipe p). Process ...
1
vote
1answer
26 views

Why checksums give different results?

I encountered a rather strange issue, and although have found a few similar results here and on related sites like AskUbuntu, nothing that accurately demonstrates my particular case. The checksum ...
0
votes
1answer
39 views

Why is my bash shell script changing spaces to linefeeds?

I started out writing a simple bash shell script to find duplicate files within a given directory using SHA1 to detect matches. Everything worked until I encountered file names with spaces. The ...
0
votes
0answers
4 views

How to I simulate Apple propellor key for Google Docs in GNOME Web?

I have opened a Google Docs spreadsheet in GNOME Web. In Firefox I can copy-paste with Ctrl + C then Ctrl + V but this doesn't work in Web. If I try, I get this message: These actions are ...
1
vote
1answer
19 views

What is the difference between kali release numbers (kali1-5)?

The output of uname -r on my system is 4.19.0-kali1-amd64. I notice at the repository listing that there are multiple linux-image-4.19.0-kali# each with a different number, from kali1 to kali5. What ...
0
votes
0answers
5 views

How do you use auditd for logging when files and folders are opened, read, moved, deleted or modified?

How do you use auditd for logging when files and folders are opened, read, moved, deleted or modified? Looking at the information here, i don't see how to accomplish the task. I'm trying to get a ...
0
votes
0answers
7 views

Sharing internet using Network-Over-USB in Raspberry Zero based on ( BeagleBone Black method)

need to connect my pi via USB Ethernet to my WIFI PC (Linux Mint LMDE 3 Cindy) to connecting to the internet. I have changed my pi IP to 192.168.7.2 by this instruction. After that, I have done the ...
0
votes
0answers
21 views

fetch line in a file if first column match from another file?

I have two text files (tab delimited). I am looking to fetch a line from file 2 if first column or ID matches in file 2. Example is below: File 1: 115 147 222 322 File 2: 0 ...
0
votes
2answers
18 views

Replacing string in file with MAC OSX

I need to replace a string in a (large) file on a MacOSX 10.10. My file looks like this: Y16-TUL-SUB_ Y16-TUL-SUB_ Y16-TUL-SUB_ Y16-TUL-SUB_ Y16-TUL-SUB- Y16-TUL-SUB_ Y16-TUL-SUB_ and I need to ...
0
votes
2answers
15 views

Wheezy still doesn't update! 404 errors

I run the following command on my internet facing repo server and get the following errors for Wheezy. I have to leave Wheezy on the repo server. Due to being required to roll back by a customer.
2
votes
1answer
19 views

Perl Script in Bash Here Document (does not output variable)?

How come the following perl code, mkdir("foo"); print "foo: $!\n"; mkdir("foo"); print "foo: $!\n"; Will output the following (in a directory without a foo) perl ./asdf.pl foo: foo: File exists ...
0
votes
0answers
6 views

Live CD/USB distro with most recent (or mainline) kernel

Out there in the Linux kernel, and related camps, impressive progress is constantly made with regard to support for new and shiny hardware. And I am wondering why there is no (at least no popular/...
0
votes
0answers
20 views

Run bash script upon change

I am running a FreeBPX on centos server and I would like to monitor phone extensions when they go offline. I have a script that is doing the job and I am running it on cron job every 30 minutes but I ...
0
votes
1answer
20 views

Forgot correct syntax to mv millions of files around on the same partition

I had a command line instruction to move a 100k’s of jpgs to the correct directory on the same disk/volume/partition and without using xargs. The quirk is that the jpgs have spaces and multiple ...
0
votes
0answers
9 views

What CCTV software is available for Debian?

Is there any good open source ip camera software out there? I have tried zoneminder but my computer isn't compatible, and shinobi seems to only be for CentOS, Unbuntu and others but not Debian and ...
0
votes
0answers
15 views

Why is stdin closed in Git hooks?

Based on how to prompt a user from within a Git hook it looks like stdin is closed by default within Git hooks. What is the reason for this behaviour? It's causing problems both with commands no ...
0
votes
0answers
9 views

File permissions on Nextcloud/Apache2 Debian

I am facing a problem with a nextcloud installation on an apache web server which runs on debian. I have a domain pointing to the /var/www/html directory. In this directory I have the directory ...
0
votes
3answers
21 views

How to write a bash script to trigger next command if and only if the previous command's process is completed

I have a command like this which will trigger a process ./extract.sh 1553212800 1554854400 & This will give a process id for example 1234 and I want to run next command only if 1234 is ...
1
vote
2answers
24 views

Bash command to rename files and convert datestamp from 'dd[st/nd/rd/th] mmm yyyy' to 'yyyymmdd'?

Is there a simple bash command that will match the date string in a filename like this... File Name 20th May 2019 descr.txt (File Name and descr are strings of variable length) ...and convert it to a ...
1
vote
0answers
17 views

Suitable filesystem for heavily fragmented files

I often do data recovery jobs using ddrescue or similar programs. The disk image is written sparsely, because often only parts of the disk is being imaged (using ddrescue domain files and the like). ...
-6
votes
0answers
21 views

Creating A new filesystem [on hold]

one linux server has been installed fedora with lvm now you need to create a new filesystem with 500gb mounted on /doc. Assume there is 700gb free space on disk /dev/sda. As a system Administrator, ...
0
votes
0answers
9 views

Locale does not work with “file” command output

I have some JPEG files with Description metadata I added in MAC OS. exiftool (in MAC) displays them in correct locale. I copied those files to a Raspbian OS. From command line or bash script ...
0
votes
0answers
29 views

What is a great way to list files found in a directory that add up to a certain file size

This list will then be used to create tar balls for easy movement. This is what I came up with so far. Add up files that are just greater than 10GB list them to file. find . -type f -exec ls -al {} ...
0
votes
0answers
18 views

what will happen when a NFS sharing directory cannot be loaded remotely?

If a NFS server network fails, the client will have a problem to load a shared NFS directory from the server. In this case, if a local directory does exist, will the client visit the local directory ...
0
votes
0answers
6 views

Wsl kali startup

i set up sshd on kali,but i'm un able to set it up as an automatic process My server is 70 km far away i can Wake on lan the machine with my mobile,then i can not ssh cause Windows 10 pretend to give ...
-2
votes
0answers
13 views

Parsing sftp Log FIles

I am trying to use a grep command (or any other command that will work) to get the following extracted from the sample portion of my sftp user log activity file. Date/Time user connected Username IP ...
2
votes
0answers
10 views

OpenWRT hairpin L2 traffic

I have an OpenWRT Router with embedded switch. I have a KVM machine with macvtap network access. I need guest to host communication. By connecting the host to my Cisco switch hairpin traffic is ...
0
votes
2answers
14 views

Merging csv files with Key columns

I need to write a shell script to merge csv files. Both the files have same columns with fixed number of columns designated as "Keys". If the Keys are same, then I want to merge them by adding the non ...
1
vote
0answers
11 views

X2Go: How to enable/disable

Documentation and various internet answers suggest x2goserver will have a service on systemd systems which can be started (or stopped, etc) with systemctl start x2goserver. However, there is no such ...
-1
votes
1answer
10 views

Can I use rsync to mirror two directories using the later of two conflicting files? [duplicate]

I've been using rsync to backup my "main" hdd quite successfully with the following command rsync -aivr --delete --progress /src/my-files/ /dest/my-files But I carry my external drive on the go and ...
0
votes
1answer
20 views

I am not able to update a variable through sed command

I have assigned two variables but not able to update x=$(cat /scratch/env.properties | grep ConfigPath) y=$(ConfigPath=/scratch/a/b) then sed to replace ConfigPath in env.properties sed 's/$x/$y/' ...
0
votes
0answers
27 views

Continuously detect a change of chksum of files under folder with inotify-tools [duplicate]

I just installed inotify-tools. I would like to continuously detect change of chksum of files under folder /path Once a change was detect ( under /path ) then it will print echo “chksum of files ...
2
votes
0answers
30 views

Extract Kernel from Running System

Is it possible to get the kernel image from a running system? I have a device that boots from the network, and the network that it's on when it finishes booting (static IP) does not have access to the ...
1
vote
2answers
15 views

GRUB still seeing Ubuntu after formatting in Kali installation. How to proper configure boot?

I recently formatted my Ubuntu hard disk to install Kali on it. I formatted the entire hard disk through the Kali installation process. Now, my pc boots to "GNU GRUB Version 2.02" with "grub>" command ...
0
votes
0answers
21 views

Include index info in pdf man pages

I know that I can get to output manual page content with man -Tpdf. Many pdf readers can display and jump to specific points or sections in the document (i.e. by hitting tab from inside zathura). I ...
-4
votes
0answers
31 views

Modify a Bruteforce source [on hold]

i found a source of bruteforce for ssh. and i try to modify it but doesn't want to work...can anyone help me please? The Source i wanted directly when bruteforce connects on the vulnerable server to ...
0
votes
1answer
17 views

can not use mount.cifs: mount error(2): No such file or directory w/o password

I know there are several topics regarding this however, none of these solve my problem. I've tried the different options mendtioned here I have a router which exposed an attached disk via smb: \\192....
0
votes
0answers
15 views

2 version of Debian on external update server [duplicate]

Right now I am rolling out jesse (8.11) to a bunch of Linux devices. I am required to leave and use updates for Wheezy. I have posted pictures of errors I am getting and my /etc/apt/sources.list It'...
1
vote
0answers
19 views

why does these partition gaps occur? [duplicate]

I am doing an experimental project on NTFS and I just discovered every time I create a new partition there seems to be a (nearly 1MB) partition gap created just before the new partition. I searched ...
0
votes
0answers
8 views

Manjaro-> Widgets freeze while playing CS:GO in Windowed Fullscreen

As the Title says. I have a didtal clock, binary clock and a CPU load monitor. They all freeze at seemingly random values when ever I launch CS:GO via setam, In windowed fullscreen, native res cat /...

15 30 50 per page