0
votes
0answers
3 views

Alternative to Iptables for packet filtering in OVS interfaces

I just realised that all the iptables rules I have been applying to my open Vswitch interfaces never match. I am using iptables to mark some packets, and then I use TC (traffic control) filters to ...
0
votes
0answers
4 views

Archlinux + GSSapi + kerberos

I am trying to use ssh supporting GSSAPI with KeyExchange protocol with some servers that authenticate using kerberos. I have installed aur/openssh-gssapi. The problems is after getting the key from ...
0
votes
0answers
3 views

Put the display to sleep with DPMS on Wayland

Seems like GNOME updated to Wayland which caused a few issues, the biggest is the periodic crash that brings you back to the login screen. Another issue that is hopefully easier to fix is that I can ...
0
votes
0answers
4 views

Error “Connection to host closed” while using pseudo terminal

I am trying to run the below command. But it is giving me an error that connection is closed. ssh host -l user -t "nohup sh path_of_the_sh_file &" If i run only ssh host -l user -t.. its working ...
1
vote
0answers
7 views

ansible pass shell command result to variable

I stuck a bit with ansible and autogenerated id, I have multiple mysql master - slaves server for that I need to generate a server-id. my idea was to do something like this: - name: generate ...
0
votes
0answers
4 views

ShortCut Aliase BackSpace

I'd like to create a kind of shortcut aliase to do the equivalent of BackSpace key do. Something revert like :  $ xmodmap -e "keysym Control_L + t = BackSpace" An idea ?
1
vote
0answers
16 views

How to avoid broken pipe in commands with cat?

Why does this simple command fails? cat file.txt | wc I have a file with 10241 lines. Each line has less than 50 characters. Around 90% of the times I launch this command, it gives the wrong result,...
0
votes
0answers
5 views

appending list output to another -python

I am trying to write output of one list to another and I opened an empty list and did an .append(). How ever it gives me an error? I Have mentioned the error below. What I need?: the output of list ...
0
votes
0answers
3 views

Is there a way to make socat not open the target connection until it receives a listener connection?

I want to run socat as a server - against a target that will go up and down intermittently (cloud microservice environment). I want socat to listen - and open the port when it gets a listener ...
0
votes
0answers
7 views

What file system to use on embedded static ram device?

On an embedded system, we have a a 512Kb static ram on a character device /dev/mem. We're currently using it by memory-mapping the file directly in our application with a mmap. I would like to ...
0
votes
0answers
4 views

How do I install “non-free firmware” (wifi driver) from USB?

I'm dual-booting kali linux with windows 10. While boot installation kali linux asks for: Some of your hardware needs non-free firmware files to operate. The firmware can be loaded from removable ...
1
vote
1answer
16 views

How to select job ids using grep/sed/awk

I run physics analysis jobs in a computer grid. Sometime the jobs go wrong and I have to kill them (one by one) which is painful. Can you please suggest me how can I select only the numeric values (...
0
votes
1answer
17 views

awk with multiple if and replacement

I'd like to do the equivalent of this in awk (for every line, from command line): items = split(',') if items[2] >= 10: return items[0], items[1], 7 if 4 < items[2] < 10: return items[0],...
0
votes
1answer
8 views

How to reduce the memory utilization by lsof.log?

lsof.log is consuming lot of space. The log file size has increased upto 7 GB. How do I optimize the space utilization by lsof.log file. Should I be deleting it on regular basis or is there a way ...
0
votes
1answer
19 views

What is the unit of this value

I was trying to get frequecy from my device at run time. I used this device node sudo cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq It gave me 60000. I tried this one cat /sys/devices/...
0
votes
0answers
15 views

Chown permission denied on samba share

I have a linux device with samba and it shares a drive inside the network and allow to everyone to write, read etc I have another linux device which mount the samba shared drive and I would execute, ...
0
votes
0answers
27 views

syntax error near unexpected token ('

I am trying to do below A="/usr/local/gem5" B="/Project1_SPEC-master/401.bzip2/src/benchmark" C="/Project1/401.bzip2/data/input.program" D="l1d_size=" + str(L1D[l1d_tmp]) + "kB --" E="l1i_size=" + ...
-2
votes
0answers
13 views

NFS cache and Kernel upgrade [on hold]

I want to confirm that NFS client cache on a Linux machine will be cleared on upgrading the kernel.
0
votes
0answers
19 views

Advice about buying a laptop [on hold]

I'm looking to buy a laptop to use it only with linux os installation. And i'm having problems making the right choice because i want it to be cheap and in the same time i should be able to run some ...
-3
votes
0answers
7 views

Linuxmint 18 Cinamon. How to join Active Directory [on hold]

Likewise won't work anymore. Is there any program to join Active Directory?
1
vote
1answer
19 views

Shell variable in <a href> tag

I wrote a simple bash script, those send mail with html link. #!/bin/bash ASS=10 sendmail [email protected] <<EOF Subject: Simple title <html> <body> this is just a link URL: <a ...
0
votes
0answers
4 views

Automount OSX home folders (NFS & OPENLDAP)

this is driving me crazy, I've been searching for a good answer why this doesn't work for months now.. So basically, what I'm trying to do is to sync home folders with NFS to a server. This is the ...
0
votes
0answers
22 views

How to import python variable in shell script

I have a shell script like below. If I have a test.py that has a variable a=5, how can I import the variable to the following shell script? python test.py b=10 if [ $a == $b ] then echo "a is ...
0
votes
0answers
9 views

How mount a .img with read and write permissions in linux mint

I have a .img file with luks in Linux Mint 18. When I mount the file from cinnamon (Open With Disk Image Mounter), it ask password and mount ok but as readonly. When I mount it with a little sript it'...
0
votes
0answers
21 views

fail2ban not available in EPEL 7.6 in Centos 7.2?

Is fail2ban really available in Centos 7. A lot of tutorials say it does, but I can't find it. yum --enablerepo=extras install epel-release Returns: Package matching epel-release-7-6.noarch already ...
2
votes
1answer
76 views

Replacment of word from .docx file using a linux command

I want to change a word in a .docx file using a shell command. I tried using the sed command, but it is not working. Does anyone know a solution? I want to change a word e.g. exp5 and replace that ...
0
votes
1answer
8 views

Background ping script error “fork: retry: Resource temporarily unavailable”.. will failing lines be retried?

I'm running a ping script that backgrounds ping calls. #!/bin/bash for ip in $(seq 100 210); do ping x.x.x.$ip -c1 |grep "bytes from" |cut -d " " -f4|cut -d ":" -f1 & done If I receive ...
0
votes
0answers
11 views

mySQL memory usage increasing day by day

I'm using New Relic to monitor our servers, one for web, another for mysql, and the mySQL one worries me because the physical memory usage increases everyday. Every week it uses up 2% more than the ...
1
vote
0answers
15 views

How to download portion of video with youtube-dl command? (2)

This question has already been posted. However, I want to know if it is possible to only download a portion of a youtube video using a combination of youtube-dl and ffmpeg without downloading the ...
0
votes
1answer
12 views

Mysql_connect(): Can't connect to local MySQL server through socket in Linux

i am trying to connect mysql DB with xampp in linux centos . but i am getting error like this . Mysql Error : 2002- mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/...
0
votes
1answer
12 views

Solarized colorscheme in fbterm?

I have fbterm installed and I'm attempting to use it with the solarized color scheme. I have not been able to find any information about this. The colors are already added to my .Xresources and ...
-1
votes
1answer
6 views

Find file generated 1 day ago and the name has pattern “performance-team(A/B/C-(yesterday's date)”

Trying to find how to regularly find any file generated 1 day ago and the name has pattern "performance-team(A/B/C)-(yesterday's date)". And then email it to certain mail-address from Tuesday to ...
0
votes
0answers
9 views

Do I need to restart the machine after the machine joined a realm?

I am configuring the authentication & authorization for Hadoop security. I need Kerberos implementation system for authentication and LDAP implementation system for username group mapping, ...
0
votes
0answers
4 views

Nylas N1 Setup without a VM

Does anyone have a set of instructions to install Nylas N1 without getting Virtualbox? Running Ubuntu GNOME 16.04, and I'm a bit of a newbie, so detailed steps/a guide would be great!
0
votes
4answers
34 views

How to identify, sort descending and display the top 10 blocks of text, by category

The history of transactions done on an entity within our systems look like below: 1 BYM1 TSTAB 09NOV 0035 CAB Sometext 01 2 BYM1 TSTAB 09NOV 0035 CAB Can be done - question 3 BYM1 TSTAB ...
-1
votes
0answers
9 views

Start and Stop Multiple processes from terminal [on hold]

I want to test arpspoofing so I list some ip in my network and the router ip. Then for every client I want to run the commands: arpspoof -i interface -t ip1 -r routerIP arpspoof -i interface -t ip2 -...
0
votes
0answers
12 views

bash : send rsync status using notify-send

I'm using rsync to push some changes to a server, for that I made a bash script and I want to show a status notification in the desktop (I'm using Linux Mint 18 Cinnamon) Is it possible to send the ...
0
votes
0answers
6 views

Ubuntu - Udev is mounting RAID array before system can mount in fstab

I tried to use the following Udev rule from https://www.axllent.org/docs/view/auto-mounting-usb-storage/ KERNEL!="sd[a-z][0-9]", GOTO="media_by_label_auto_mount_end" # Import FS infos IMPORT{...
-1
votes
2answers
27 views

Command for the default in-terminal text editor

I often see instructions that include vim or nano, meaning to open the file in that step in your text editor of choice. Is there an agnostic command I can use in place of the specific program that ...
1
vote
1answer
31 views

Recursive bash function (directory iterator)

I know that my following task could be accomplished using simpler 'find' comment, but I am trying to implement a solution using a recursive call. I am looking through a specific directory and trying ...
-4
votes
0answers
24 views

How to draw process tree [migrated]

I am working on an assignment were I'm supposed to draw a process tree for the code below. I was wondering if someone can confirm whether my answer is correct, if not do you have any pointers. Draw a ...
0
votes
0answers
5 views

Remove RAID 1 and extend hard drive

How am I able to remove RAID 1 and extend the first hard drive? To make my Proxmox LVM 400GB+ Device Boot Start End Sectors Size Id Type /dev/sda1 * 4096 40962047 40957952 ...
0
votes
0answers
12 views

Can't add i386 architecture

I've been trying to add i386 architecture to Kali Linux with: sudo dpkg --add-architecture i386 but it throws out the error: Odd number of elements in hash assignment at /usr/share/pkg-config-...
-2
votes
1answer
24 views

I want to start learning Unix and Linux [on hold]

I am new to Unix and Linux and I would like to start learning about them. Can anyone give me a sources and some tips for a beginner like me? Thank you.
0
votes
0answers
9 views

Unable to find root device ''

ERROR: device '' not found. Skipping fsck. ERROR: Unable to find root device ''. You are being dropped to recovery shell I've been trying to install Arch Linux for some time, and keep running into ...
0
votes
1answer
21 views

First time crontab user, trying to learn by putting date/time periodically to stdout

I'm trying to learn how to use crontab to regularly execute bash commands. I thought I'd try something simple first, like having crontab read the date and time to stdout every minute. But when I try ...
0
votes
2answers
24 views

dig -x www.google.com

I'm trying to learn more about the dig command and have come across the -x option which is meant for reverse lookup, i.e. you give an IP address and get back a domain name. I tried doing dig -x www....
0
votes
1answer
13 views

How can I selectively update Debian Jessie programs, that is without moving to Testing?

For many years, when I had software troubles, the first, best step was to make sure I using the very latest software. Not the unstable version still in the lab, but the latest released version. This ...
0
votes
0answers
9 views

Gnome error after update (caused probably by Clutter) and I cannot rollback this update

I have a problem with GMONE 3 that has stopped working after an update, which I cannot undo/rollback. I found out what probably causes this defect (inabilty to initialize Clutter), but however I don't ...
1
vote
1answer
10 views

Does /usr/bin/top tool aggregate CPU and GPU usage in a single value?

I'm recently trying some crypto-coin mining and both on my desktop equipped with a decent GPU as well as on an AWS virtual machine with GPU support, CPU time is always reported at 99% by /usr/bin/top ...

15 30 50 per page