Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [linux]

These questions are about Linux in general -- NOT specific to a particular distribution. If the question just happens to be in a Linux environment, please specify your Linux distribution in the body of your question, but do NOT use the /linux tag.

0
votes
1answer
19 views

NAT ETH1 PORT 5000 Traffic to PPP0

I have a Digi i.MX6UL running a variant of Linux. I have attached to the ETH1 (169.254.0.1) port an Advantech EKI-6332GN Router (169.254.0.5). I have a Zebra MC67 (169.254.0.3) device running ...
1
vote
0answers
34 views

Installing software in home partition instead of root partition?

/home (the rest) / (100GiB) /swap (6GiB) /boot (200MiB there are vital basic operating system packages like the coreutils and binutils, then there's the "optional" like virtualbox or okular thing ...
0
votes
0answers
29 views

pip install + get the errors about Retrying (Retry(total=4, connect=None, read=None, redirect=None))

we are trying to install the following Jinja ( on redhat machine version 7.2 ) pip install Jinja2-2.10-py2.py3-none-any.whl Processing ./Jinja2-2.10-py2.py3-none-any.whl Collecting MarkupSafe>=0....
-1
votes
2answers
44 views

How to trim the spaces from first and last of the variable string in Linux? [closed]

I am trying to remove white spaces from each variable string. I tried with below command but no use. a="HARISH , SAM" echo $a|sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//'
0
votes
0answers
34 views

Updating grub showing “error: invalid volume”

Googling this issue does not yield any substantial results Here is output : Generating grub configuration file ... error: invalid volume. error: invalid volume. error: invalid volume. error: invalid ...
1
vote
0answers
22 views

What happens to a TCP connection when the network is abruptly terminated

Say a user space application has a TCP connection with some non local endpoint. At some point, network gets abruptly broken (i.e. connection deleted in network manager, unplug the wifi dongle, cut the ...
1
vote
1answer
23 views

update params of variable ksh88 [closed]

I'm trying to update a variable: FLUX=first DATE=`date +%Y%m%d_%H_%M` justName=$FLUX DIR_LOG=$REP_LOG_TD/DDL_TABLES_LOG/$justName'_'$DATE if [ condition ] then justName=other DIR_LOG=$DIR_LOG fi ...
0
votes
1answer
32 views

What happens if we, recursively, change folder permissions after changing files in it?

What will these below commands actually do? chmod 777 /yoda/htdocs/cups/logs/* chmod -R -f 777 /yoda/htdocs/cups/logs/ When I check the file permissions in ..../logs folder, they are showing as -...
0
votes
1answer
43 views

Regular expression used in sed not giving the desired result between intervals [duplicate]

I am using the sed command to get the data between 2 dates. I am using regular expression matching the pattern for the dates. The sample data I am using is somewhat like: 192.168.0.123 - - [25/Nov/...
0
votes
1answer
25 views

How to execute a bash script when my systemd service crashes?

I'm using a systemd service. I want to execute a bash script when my systemd service goes down -- fails. I don't want to execute a bash script when I restart the service myself. But only when it or ...
0
votes
0answers
32 views

What happened when I press a key on linux? [closed]

I know a key event with keycode will be generated in the kernel, userland apps will read this event. But I want to know the following things happend in the userland. When I'm using a tty, which is ...
0
votes
1answer
20 views

Require command line argument for script to run [closed]

I'm trying to require a script to only run if the command line argument provided is a specific text file called dailyUserProcs.20181203 in the same directory as the script. I am also running Putty. ...
0
votes
3answers
32 views

Linux Bash and Scripting - Count rows from text file

I'm having issues with displaying the row count displayed from a script I am currently working on and I am using Putty. This script reads a text file that looks similar to user1|login|1 user2|login|...
-1
votes
1answer
20 views

Giving specific permissions to a group of users [closed]

I'd like to give a certain groups permissions to edit on a folder and every subfolder that would be created under it in the future, is there a way to do that? Can I also give them permission to use ...
1
vote
0answers
16 views

GNOME 3: Changing datetime format for lock screen?

I'm using GNOME Shell 3.22.3 on Debian GNU/Linux 9 (stretch). I've edited the settings for the way time and date is displayed in the Status bar using the excellent Datetime format extension. However, ...
-1
votes
0answers
18 views

Printing a disk to the terminal [migrated]

I am writing a program to play connect-4. The output to the terminal is shown below, the 0s are color coded on the terminal doesn't seem to be possible on stack exchange. Anyway, what I want to try ...
1
vote
2answers
47 views

Equalizer APO Equivalent for Linux

Is there a Linux app with the same features of Equalizer APO second link for Windows? Something that would accept such setup, like Equalizer APO does? | Band| Type |Freq(Hz)|Gain(dB)| Quality | ...
0
votes
0answers
15 views

pen drive Ubuntu install, will it still work when is the usb drive is ejected and overlayroot=“tmpfs”

Install ubuntu to a pen drive. Setup overlayfs for / with tmpfs option. I'm talking about this: https://spin.atomicobject.com/2015/03/10/protecting-ubuntu-root-filesystem/ Put the pen drive to any ...
0
votes
2answers
48 views

Get time of the last session in seconds

I'm getting the time of the last session of an specific user using the last command like below: last -aiF -n 1 fakeuser The output of this command is something like: fakeuser pts/0 Tue Nov 27 11:...
1
vote
2answers
33 views

Linux Service Cannot Open Display

On my Odroid running Ubuntu 16.04.3 LTS I have a python2 program that interacts with a display device (projector). When I run this program from the command line: python ~/imgProc/torcam.py ...
-1
votes
0answers
16 views

How to rename a file named '-I'? [duplicate]

So I used the curl command curl -o -I and now I have a file named -I in my current directory. I'd like to rename it to curl.out Neither mv -I curl.out nor mv "-I" curl.out nor mv \-I curl.out work....
0
votes
0answers
14 views

yum + get the list with the right order

I am use yum list from some reason the last line ( the second field ) - "7-2.el7" jump to the next line yum list Loaded plugins: langpacks Installed Packages GConf2.x86_64 ...
1
vote
0answers
10 views

I Node and Data Retrieval

Is there a way possible to open a data block without the file if we know the i node number that it's linked to ? Is it possible to open the content in data block without the file ?
1
vote
0answers
13 views

External hard drive invisible [closed]

I have an issue with 1 TB WD MyPassport external hard drive. I have formatted it to ExFAT about a year ago to make it accessible both in Mac and Windows, but it has been mounted to Orange Pi machine (...
0
votes
0answers
9 views

Qnap management via SSH

Unable to access directories on a Qnap storage device, I logged in via SSH to try and manipulate the files and folders from there. Unfortunately the Qnap uses a limited kernel and I am unable to use ...
-1
votes
0answers
17 views

In my ubuntu laptop i have problem , It showing the system is running low-graphics mode..and also it showing some additional errors and warnings

In my ubuntu laptop i have problem , It showing the system is running low-graphics mode..and also it showing some additional errors and warnings. i tried to solve this but iam getting different ...
1
vote
1answer
21 views

After Receiving an signal, which exception handler invoked first?

Let's say we have a program in C that uses the sleep() function. The program executes and goes to sleep. Then we type ctrl-c to send a SIGINT signal to the process. We know that the default action ...
1
vote
1answer
51 views

how to resize / lvm partition

I have a debian linux with this output of df command: root@debian:~# df -Th Filesystem Type Size Used Avail Use% Mounted on udev devtmpfs 973M 0 ...
2
votes
1answer
33 views

Linux utility to bench mark clock speed of CPU

I have a Linux PC with a 3.4 GHz CPU. I must check this processor to see if it actually runs at that speed. Is there a benchmark available? I ran sysbench but it only provides time of completion, and ...
0
votes
1answer
7 views

lxde desktop shortcut remove prompt that ask action (open execute)

I've create a simple file.desktop from chromium but every time I click on it it prompt : this file seems a script whatn you want to do? Execute Execute in terminal Open Cancel This ...
0
votes
1answer
16 views

Specify default value in systemd (PassEnvironment)

So, in systemd we have a mechanism to pass environment variables to the process using PassEnvironment [https://www.freedesktop.org/software/systemd/man/systemd.exec.html] Is it possible to specify ...
0
votes
0answers
46 views

How to extract html between tags?

I need to extract HTML between two tags in shell script. For example: A html document can have multiple <h2> tags like below <h2> <a id="id1" name="name1"></a> test1 &...
1
vote
1answer
11 views

How to extract data from csv file with modification to data

For eg i have a file called test.csv containing emp1,dep1 emp2,dep2 emp3,dep1 emp4,dep3 emp5,dep2 expected output is emp1 works in dep1 emp2 works in dep2 . . emp5 works in dep2
1
vote
0answers
11 views

Systemd service for a ruby rake job and environmental variables

I have many environmental variables that are required to run my ruby rake job. This job will be supervised by systemd. How can I export all the environmental variables? And also export them in such ...
0
votes
0answers
33 views

Using CapsLock as a Function key

I want to do 2 things: Disable CapsLock key so that pressing it doesn't toggle CapsLock. Be able to set up custom combinations with CapsLock like: CapsLock + j to map to Down key CapsLock + k to map ...
-1
votes
0answers
34 views

grep zimbra log [closed]

I need to get a list of the ip from the audit.log file in my server zimbra, from all those IP that have had more than 8 failed attempts, and if possible exclude my local network grep "invalid ...
1
vote
1answer
60 views

Linux cannot detect 2560x1440 144z capability of Vega 64 [duplicate]

Using KDE Neon, a Vega 64, and a Pixio px277h, I have tried to manually make xrandr use the setting for 144hz because it does not seem to detect this properly. The monitor has 144hz capability, the ...
1
vote
0answers
19 views

Why does postfix main.cf contain configuration like readme_directory, manpage_directory etc? [closed]

I am setting up yet another mailserver with postfix. So while configuring I see these configurations in main.cf. Can someone tell me why these are in the main.cf? I mean, why would a daemon config ...
1
vote
0answers
7 views

Linux Bonding Driver Mode 0 And Fault Tolerance

I've been testing a bonded network based on Ubuntu Server 16.04 LTS. The far end of the bond is a VM also running Ubuntu Server 16.04 LTS. The two servers are tied together by two OpenVPN tunnels in ...
0
votes
1answer
27 views

In Linux, how can I set a Function globally

In AIX, I have a, FPATH set function, which is globally accessible by just calling the function name. I am trying to replicate this functionality in Linux. I set the function in $PATH variable, I ...
0
votes
0answers
14 views

Python Netsnmp and snmpwalk [migrated]

I am trying to use snmpwalk to gain some info and stats on some interfaces. I use this: import netsnmp serv = "172.16.1.1" snmp_pass = "private" oid = netsnmp.VarList('IF-MIB::ifName','IF-MIB::...
0
votes
0answers
26 views

Access denied homes samba [duplicate]

I need to configure Samba on my Linux, Ubuntu machine where we can login as a users and see our home directories. To achieve that I've added (uncommented and added) some lines in smb.conf file: [...
0
votes
1answer
23 views

Dirstack: index starts with 0

Zsh: 5.6.2 I use dirstack from archwiki: https://wiki.archlinux.org/index.php/zsh#Dirstack All setopts in script are on, script is sourced in ~/.zshrc, It works before and somehow change index to 0,...
-3
votes
0answers
46 views

Linux shell-script bash [duplicate]

This is part in a code that i have and it is not related to he rest of the code. I think it want us to display the path of the computer. pwd directoryname = `pwd` echo "We are now" $directoryname ...
-1
votes
0answers
23 views

Expand a filesystems size

I have a preconfigured raspberry pi running a linux os that has several filesystems mounted. Now (I assume for security purposes) the extra modules installed for python are placed on a seperate ...
0
votes
1answer
24 views

Counter in seperate text file

I have a script that processes files based on drop folders, I created a function to do the processing and based on a set of variables I process a folder funtion filedetect { // <some processing ...
1
vote
0answers
29 views

`apt-get`, `dpkg` fails from a bluetooth serial port, but succeed from the physically attached console

On Linux, is there some configuration setting or feature that could explain some commands can work from the system attached console, but not from a serial console? I post here because the remote ...
0
votes
0answers
23 views

sudoers based on Active Directory groups and wildcards

We have many applications in our environment. Each app will have a READ group and an ADMIN group configured in Active Directory and the groups are to be used in the sudoers file for fine grained ...
0
votes
1answer
22 views

Editing multiple iptables rules

i am using iptables to allow certain IPs(users) to allow specific ports. Like so - ACCEPT tcp -- 1.2.3.4 anywhere tcp dpts:4358:4362 So for each IP address I have multiple ...
1
vote
0answers
42 views

PCL to PDF with colors

I need to convert .pcl files to .pdf files. I did some searching and found that gplc6 (from the Ghostscript family) is the tool I need. I ran the command like this: gpcl6 -o test.pdf -sDEVICE=...