All Questions

Filter by
Sorted by
Tagged with
-1
votes
0answers
6 views

end curl command?

curl "https://dummy.net/v1/users/titles/privacy' -XGET \ -H ‘Referer:https://dummy.net/friday/?f’ \ -H ‘Authorization:Bearer xxxxxxxxxxxxxxx’ \ -H ‘User-Agent:Mozilla/5.0 (...
0
votes
2answers
16 views

change format of uniq -c command

I want to get the unique words and its count from a file. When I run the bellow command, sort words.txt | uniq -c 2 america 4 and 1 england 1 file 1 for 1 place But I want the ...
0
votes
2answers
26 views

while loop factorial only works up to 20?

This certain while loop acknowledges it only works up to number 20. After that, it starts to give bad answers, but I can't figure out why. #!/bin/bash n=$1 [ "$n" == "" ] && echo Please give ...
0
votes
0answers
8 views

Create path unit file for 2 events

ALL, I am trying to create a following unit file: #aide.path [Unit] Description=AIDE_Parser [Path] PathChanged=aide.log PathExists=aide.log Basically I'm trying to see if the file is created or ...
0
votes
1answer
17 views

How to prevent my terminal from printing last command?

I have MacOS / iTerm2 / zsh setup. After changing some settings, my terminal started to repeat last entered command. For example, if I'm in folder A, which contains folders B and C: >>ls ls B ...
0
votes
0answers
8 views

Xfce4 themes not shown in Debian Buster

I have Xfce4 installed on one machine using Debian stretch, using the Platinum them. I installed Debian Buster on a new machine and selected Xfce4. Theme Platinum does not exist in the list of ...
0
votes
3answers
26 views

Find and replace after a string after a specific character

I have the following lines in my input file and I would like to replace all the text after "=" sign with a new string, say "good". Again, I would like to do this only for certain strings in the line....
0
votes
0answers
12 views

Why are there missing packages from my distro's groupinstall?

I am running the XFce Desktop and wanted to install MATE. I found the group name: yum grouplist | grep -i mate MATE Desktop And tried to perform an install but several "group packages" were ...
0
votes
0answers
5 views

All menu & panel applications are missing in Mint 18.3 Cinnamon after adding a launcher

My 18.3 Cinnamon install ran flawlessly for two years until now. I'm running it on i7-7700 with 32GB of RAM. I have an application, Ultimaker_Cura_4.1, that sits on my desktop and runs fine, but I ...
0
votes
1answer
31 views

mount /dev/sdc1 /media works but fstab fails to mount

I'm running archlinux and have an ext3 10Tb internal harddrive that is failing to mount on boot through the fstab entry. If I use mount /dev/sdc1 /media, the mount succeeds however attempting to do a ...
1
vote
1answer
23 views

Print to file without clear character

I want to print the output of docker stats to file. For example, I am running: docker stats --format "{{ .Name }},{{ .MemUsage }},{{ .MemPerc }},{{ .CPUPerc }}" > /home/test.txt However, since ...
0
votes
1answer
37 views

Cannot install Debian packages

I'm running a Docker container and having trouble installing packages. I have tried various methods of fixing the issue after a few hours of Googling but nothing seems to be working. I don't ...
1
vote
2answers
14 views

zsh: How to increase the default number of history entries displayed?

When I run the history command I only get 16 lines of output: $ history | wc -l 16 Is there an environment variable that I can set within my .zshrc file or some other way to increase the number of ...
1
vote
1answer
28 views

Multiline regex doesn't work

I'm trying to write a commit-msg hook for my git project that checks if commit message accord with a particular style guide. However, it looks like something works differently into the bash world ...
1
vote
0answers
11 views

Linux: no audio sound for one user logged on at same time as other (for other sound is ok)

(Strangely) I now have logged-on two users on Linux Mint 19.1 (Cinnamon desktop) and one have sound working normally (e.g. youtube in browsers), but for other user (when I switch Ctr-Alt-F#) laptop is ...
1
vote
0answers
5 views

Separate config files for different Desktop Environment

How can i have separate .bashrc or config files for different desktop environment. Like i have i3gaps and XFCE installed but i want to have different configuration for those desktop environment
0
votes
2answers
22 views

Show progress of a for loop after it was started

I started a for loop in an interactive bash session. For this question we can assume the loop was something like for i in dir/*; do program "$i" done > log The command ran a lot longer than ...
2
votes
2answers
45 views

Re-number a list, but not the order

In Kali Linux, is there a way to ONLY re-number the list, but not the order? For example: 3. cat 1. hat 2. mouse and change it to: 1. cat 2. hat 3. mouse Thank you. ****** It says Kali Linux, but ...
0
votes
0answers
20 views

can't read the string in file properly in my bash

In following bash segment ,when assigning variable "vid" directly to string, curl responsed correctly. But when assigning vid from a file,first and second "echo" result is same as before(like in green ...
-2
votes
1answer
13 views

wifi-menu works without error but still don't connect to internet

guys! I've installed Arch Linux and sometimes I'm bothered by this error: I use wifi-menu in a known network and it seems to work, since I don't get any errors, but then the internet just won't ...
1
vote
1answer
18 views

word frequency from file using partial match

I have a text file like this: tom and jerry went to america and england I want to get the frequency of each word. When I tried the following command cat test.txt |sort|uniq -c I got the following ...
0
votes
0answers
11 views

OpenVPN with systemd: Ask for password with pkttyagent

openvpn has the ability to ask for passwords and systemd can prompt on the command line for it: # systemctl start openvpn@name Enter Auth Username: asd Enter Auth Password: *** Is it also possible ...
0
votes
0answers
7 views

Add Wine app to Cinnamon task bar

I want to add cmd.exe (a wine app) to the cinammon task bar. If I right click on the app it not has this option and if I right click on the running app and "pin to Panel" the app is pinned but when I ...
0
votes
1answer
20 views

Need an “at” Command Timestamp That Runs Command Monthly at Given Day

Need an at command timestamp that run some command at given day monthly, like for example, every day 15, as would follow: $ at every 15 day So that on every day 15, it would run some command. How ...
-1
votes
0answers
7 views

Fedora30: Why my bluetooth is not working? How to make it work?

Here my output from dmesg $ dmesg | grep -i blue [ 221.929974] Bluetooth: Core ver 2.22 [ 221.930000] Bluetooth: HCI device and connection manager initialized [ 221.930002] Bluetooth: HCI socket ...
1
vote
1answer
21 views

Can we get address of a variable in a C program using GDB?

Actually, I was learning about buffer overflow attack. So, can we buffer figure out buffer address (I am using buffer variable in my program so that while writing in the buffer I will make changes in ...
2
votes
3answers
34 views

bash script if variable equals [duplicate]

How do i add a variable as the name of the variable i want to checks value. My code is as below, when i run this i get the error: [: A_variable: integer expression expected I think this is because ...
0
votes
0answers
10 views

hooking to stop docker run or other processes when the ssh connection drops/terminated

So we have a server that many users use and they use a variety of docker containers. The issue is that when a connection unexpectedly terminates unlike other processes docker run continues to operate. ...
2
votes
1answer
51 views

Compare archlinux package size and popularities

I have this command: $ expac -SsH M "%m: %n$\t%d" lynx | sort -h | tr '$' '\n' 7.24 MiB: links A text WWW browser, similar to Lynx 4.99 MiB: lynx A text browser for the World Wide Web Which ...
1
vote
1answer
46 views

sed command works with e flag but not with E

I have a string and I need to add #, in the beginning,i.e. convert [ -n "$ID" -a "$ID" -le 200 ] && return to #[ -n "$ID" -a "$ID" -le 200 ] && return. I can use below command: echo '[...
0
votes
0answers
11 views

How to specify cryptopp library paths in geany IDE for c++

I've written a code in visual studio 2019 in c++ language and it involves various cryptographic mechanisms. It also includes Elliptic curve library named cryptopp. I want to simulate and test the ...
-3
votes
1answer
21 views

How Do I install debian packages onto mac-osx-mojave (10.14)

How Do I install debian packages onto mac-osx-mojave (10.14)
0
votes
0answers
16 views

Passing environmental variable to docker

I am trying to pass my machine's environmental variables to a docker container. This is what I've tried so far: export name="prasanth" envvar=`printenv` docker run -e $envvar -it ubuntu I also tried ...
0
votes
0answers
58 views

Unix script not working

I have a script where I am checking for file name in the error folder then exit with 1. It is working in testing but not in production. What could have caused the difference: if [ $exit_code -ne 0 ] |...
2
votes
1answer
19 views

SED; adding # in front of matching line with various special characters

Okay even though I looked through a ton of posts here and elsewhere, I cannot get a # in front of the following line: [ -n "$ID" -a "$ID" -le 200 ] && return I tried several solutions for ...
0
votes
0answers
19 views

Select returns immediately on the fd returned by the accept function [migrated]

My question is exactly as it says in the header. It is a traditional server program, where in the main thread I am creating, binding and listening on a socket. Once the socket is created I am waiting ...
1
vote
0answers
13 views

Can i make the LightDM greeter wider?

I am using LightDM on my work laptop (under Ubuntu 18, to log in to Cinnamon). We use LDAP (well, Active Directory) for authentication; when i am in the office, my password is checked against the ...
2
votes
3answers
28 views

Collate three or more consecutive terms in a column with bash

I ask help to solve a problem I tried to figure out myself with no success. Shortly, I need to process very large tabular data files with structure: 14 R 16 I 21 B 22 C 23 ...
0
votes
1answer
36 views

sed display line number and add / remove comment

I can display specify line number use the command sed -n '22p; 24p; 27p' blah.conf output A B C I need to insert comment # in this beginning of this 3 specify line number, I only successful run ...
0
votes
1answer
10 views

execute script on remote machine from jump host without password prompt

I have a script fixa.sh deployed in all my client machine. I want to run this script from my jump host through a for loop script. Script on execution, prompts for sudo password. How can i make it as ...
0
votes
0answers
6 views

rsyslogd missing message?

I set up a logging host in the ryslogd config using python, restart daemon etc and get a correct message: Sep 20 09:03:20 Desk-r6 CLI[13845]: (admin) (root) (192.168.1.10) startup : Success Code to ...
0
votes
3answers
34 views

How to remove email addresses from a particular field from a file?

I'm trying to get rid of all the records that contain email addresses in the 7th field. I tried sed, but i'm not able to select the field that i wanted to remove. How to pick and choose the field that ...
0
votes
1answer
17 views

Remove specific field if the column matches on the other column

I have a file contains duplicate fields. Sample file: ID |Date|id |date|name|...(up to 71 fields) 1313335|xxx |1313335|xx |Zuan| 1677783|xxx |1677783|xx |Zen| 11106A7|xxx |Zack | If ...
0
votes
1answer
37 views

Accidentally deleted files an hour ago with rm - ideas for recovery?

I accidentally deleted files on my MAC under my website folder /Library/Server/Documents/mysite I have a copy of the folders on my remote server except for about 30 files I recently created. Most of ...
0
votes
0answers
7 views

How I can fix “iio-sensor-proxy” detect orientation problem?

I am a Arch Linux user and I have a Laptop that has a built in sensor to detect orientation .and according this sensor the screen will be rotate. but the main problem here is that this sensor detect ...
1
vote
2answers
24 views

How to add a column with a number or string that changes every time it finds a number on other column?

I have a file with different columns (three in this simplified example). The rows contain data of different replicates (Replicate_A, Replicate_B, Replicate_C). However, there is not the same amount of ...
0
votes
0answers
15 views

Embed a Windows shared clickable path in the mail

want to send a mail by embedding a clickable link to a shared windows NAS path. I checked solutions where we can use something like "<html><body><a href= But I am not sure how to put ...
-5
votes
2answers
28 views

How to make website working in kali linux?

I have given the name of adapter Realtek PCIe GbE Family Controller but whenever I ping it with ip address it works but giving website, it gives me message ping: google.com: Name or service not known. ...
0
votes
0answers
10 views

LDAP disable local account, and pub/private key on centos

I am currently setting LDAP/krb5 on Centos7. I followed the instruction on: https://wiki.cac.washington.edu/display/LDI/Configuring+Linux+Clients+for+LDI (thanks to Eric) http://staff.washington.edu/...
-1
votes
0answers
14 views

Lutris - World of Warcraft Classic - Performance Issue when playing html5 video in Background

I am running into problems - System: Linux Mint 19 Cinnamon/Mate GTX 1050 Max-Q Driver: 430.50 Ubuntu I-Core 7 gen 8 16GB RAM Lutris: WoW Classic The game runs just fine, system runs fine. But ...

15 30 50 per page