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.

learn more… | top users | synonyms

1
vote
1answer
11 views

RO domain access

I want to open RO access to specific group of domain users on linux server. Solution has to be universal i.e. work for new files, no necessity to constantly add/remove users etc So far the best I can ...
0
votes
1answer
11 views

Linux distribution with out-of-the-box exFAT support

I have to create a live USB media I can boot a machine with that has no network devices. At the same time, it has to be capable of writing to/reading from exFAT formatted devices. I had to find out ...
2
votes
0answers
9 views

Difference between syscalls and raw_syscalls events?

AFAIK different linux tracing tools gather information from /sys/kernel/debug/tracing/events directory where different events are logged. Can anyone explain the difference between "syscalls" event and ...
3
votes
1answer
29 views

Let a process read and write all files inside a certain directory, at any depth

I have a directory, owned by me (e.g. /sync), and a process, run by me, which I want to have full read&write access to this directory (in my case the process is Resilio Sync, formerly known as ...
0
votes
2answers
21 views

How to use find with already written script?

I know how to find last modified files, but how do I use it with my already written script. In folder I have hundreds of files xyz_<yyyymm>, now I use $ find /home/directory/TEST/ -type f -mmin -...
-3
votes
1answer
32 views

Linux with Libreoffice, nothing else!

Is there any distro that lets you to run just one app? No updates, no network access, no other applications installed, only LibreOffice. I was trying to do it by removing all the packages from ...
2
votes
1answer
20 views

Remove the multiple comma's from specific column of tab delimited fileand print the words on new line

Input file jayesh 30,20,50,60 30:20:40,60:55 A AB,KL,CD SM1,SM2 rahul 10,80,50,90 25:55:60,25 SGF AAAA,BCD,RTY SM3,SM4,SM4 pravin 89,78,40,20 25:30:55,96:25 M J ...
4
votes
1answer
36 views

Why is man statfs' FUTEXFS_SUPER_MAGIC equal to bad idea (0xBAD1DEA)?

Doing man statfs on my system tell me that __SWORD_TYPE f_type can be a list of arbitrary values which are defined in header files. Why is FUTEXFS_SUPER_MAGIC defined as 0xBAD1DEA, which obviously ...
0
votes
0answers
23 views

Change default usb names in Linux

I am developing an embedded solution using C and I am working with two USB sensors. If I connect each sensor alone they take this names: Device 1 (I do not know why it takes 6 names...) /dev/ACM0 /...
0
votes
0answers
27 views

What is the meaning of the first line of output of ls -l [duplicate]

When I run ls -l on Ubuntu 14.04 in my home directory, the first line of output, before the listing of the files, is total 196 What does the number 196 refer to here?
0
votes
0answers
26 views

Why does linux kernel hang during boot after I replace the old kernel (3.2.0) with new one (3.4.1)? [on hold]

I am trying to replace the linux kernel (3.2.0) with a new one on Debian7.11 so I download the source code (3.4.1) from https://www.kernel.org/ then compile and install it using the old configuration ...
0
votes
0answers
24 views

A lot of spam being sent with sendmail

I have a Linux server that's running a custom distro, I have a lot of problems with spam running through my server but I have no idea how. This is the sendmail configuration: divert(0)dnl include(`...
0
votes
0answers
21 views

Protect directory from deleting

I have several directories which I backup manually and bunch of other directories. I want to prevent them from being deleted with regular rm command but still be able to have rwx permissions to files ...
0
votes
0answers
10 views

Best front end for MRTG rrd graphs

I am using default MRTG on Ubuntu which creates nice graphs for various servers/instances but it pool data at 5 minute interval therefore I want to move to RRD graphs which can get data at 1 minute ...
0
votes
1answer
13 views

What command in monitrc can I use to start/stop systemd services?

I like using monit for the web interface where I can see running monitored processes. I recently upgraded a server to Ubuntu 16.04 and it is using systemd. I have everything else running but I ...
1
vote
0answers
10 views

Why doesn't my CMI8738 sound card work?

By not working I mean: Speakers make noise when the plug is moved from one receptacle in the back of the card to another. No sound or even noise is produced when running either speaker-test or aplay. ...
1
vote
0answers
8 views

How can I open a debugfs on a partition in an image file?

I am trying to open a debugfs on an image obtained from dd. I'm interested in the 3rd/5th partition. Number Start End Size Type File system Flags 1 32256B ...
1
vote
0answers
17 views

Linux Not Performing Sync on Reboot

The production machines in my shop are running Red Hat Linux Server release 6.3. I have found that Linux appears to not flush file caches to disk upon reboot. Here is the following test I ran under ...
1
vote
0answers
8 views

Mountroot Prompt while installing freebsd 10.3

I am installing free bsd on intel's minnowboard using bootable sdcard. But during installation I got mountroot prompt. I have tried using ? option but No GEOM managed disk devices are shown.
-1
votes
0answers
10 views

Cant use Internet using Virtualbox with KaliLinux [on hold]

I installed VirtualBox today to test KaliLinux. It all went fine. When i have NAT selected i can use the internet without worries. But my ip adress is weierd ( 10.0.2.15) and because of that i cant do ...
1
vote
1answer
31 views

Count number of values within a range in a specific column

I have to count the number of values that are between 0 and 0.05 in column 11 of a dataset. How do I go about doing this?
0
votes
0answers
19 views

Can't connect to WiFi after password is changed

I have every single time when I try to connect to WLAN which password is previously being changed. I can only click on connect and there is no option for settings and no password prompt and it gets ...
1
vote
1answer
25 views

Can I track down where a SIGINT came from if it's not from a user?

I have a long running (3 hours) shell script running on a CentOS 7 machine. The script runs a loop with an inner loop and calls curl in each iteration. I'm starting the script with PM2 because it's ...
0
votes
0answers
7 views

How to reprogram a multi-button gaming mouse?

Recently, I've bought a gaming mouse with 9 buttons (specifically, this one). I've entered a game supporting customizing controls and tried to bind the extra buttons to custom functions, expecting the ...
0
votes
0answers
29 views

Why my script is not terminating after I exit the shell? [duplicate]

As far as I know if we are using & after a command or script, it will exit once the shell is terminated or logged out. So I have a simple infinite loop script and I am executing it like :: [root@...
-2
votes
3answers
41 views

sed command not substituting properly

in a script job.sh I have this string: /home/myname/code_DEM/ > output.txt that I would like to substitute by: /home/myname/code_DEM/ > output_"$datetime".txt where $datetime is a string ...
1
vote
0answers
14 views

How to make laptop switch to external HDMI monitor when plugged in?

I have a KVM switch using an HDMI monitor,kb& mouse between a desktop and laptop. Whenever I switch away from the laptop, it reverts to its internal display, as expected. The problem is it does ...
0
votes
0answers
11 views

Restricting a SSH user in his /home/username and allowing only specific commands

First of all I know this has been many times answered and dealt with, but I am not able to figure out a universal solution to this. I have read about chroot jails and ssh access , http://allanfeid....
0
votes
0answers
12 views

vlan help - computer with one port and router with 3 ports - connect vlans on pc to vlans on router

I have pc with eth0(1 port) and router with eth0(3 ports, each of them can be assigned to specific vlan). I want to create eth.1 and eth.2 on pc, vlan1(vid 1) and vlan2(vid 2) on router(e.g. 2 of ...
0
votes
0answers
8 views

Reducing Load On Server

I am having the strangest of issues with a cPanel server. Basically the server is using very little CPU and Memory in comparisson to what it has available but still the server's load keeps driving up ...
1
vote
1answer
22 views

How does linux kernel Makefile understands .config?

How does linux kernel Makefile understands .config? Does it have a parser of defconfig file? It has to produce a lot of #defines for each enabled option from defconfig and also maintain a lot of minor ...
0
votes
0answers
9 views

How to add padding to all outgoing packets

How can I add a padding so that I appear on an arp scan as having this given padding. If my IP is 192.168.1.2, I would like to appear as arp-scan -l -v 192.168.1.2 02:07:B3:DD:E8:9B Samsung ...
0
votes
2answers
25 views

“You have mail” welcome message with no mail

When I login to one of my stations I get this output saying I have mail. But then running the mail commands Says I don't have any email. What can I do to repair this problem? Debian GNU/Linux comes ...
0
votes
0answers
13 views

ssh to the same host (tmux session) / load balancing server

I am ssh:ing to ssh-share.myorg.com, which then directs me to a host (host1.myorg.com) with low load. At the host I normally starts tmux etc. When I later reconnects, I would like to pick up my tmux ...
1
vote
1answer
28 views

write_enable=YES per user

I'm configuring an FTP server on an embedded Linux system. Iv'e set in my /etc/passwd a number of local users, for example: UserA:14:50:FTP User A:/somepath:/bin/sh UserB:1000:0:FTP User B:/somepath:/...
-1
votes
0answers
16 views

Request rootfs list in linux kernel [on hold]

I need to know what kind of rootfs partion are still available. Tried to request with get_fs_names() but its not working or something wrong.
2
votes
2answers
18 views

Read columns from file, then column into an exsisting csv file

Essentially, I have a csv file that contain multiple columns, called cols.csv 1,a,100 2,b,200 3,c,300 4,e,400 and I have a new csv file that has one column, called col.csv f g h i I want to copy ...
1
vote
2answers
32 views

What exactly is echo '[local]\nlocalhost\n' > /etc?

RUN echo '[local]\nlocalhost\n' > /etc/ansible/hosts This line is in my dockerfile, and I assume it just means add localhost to the ansible/hosts file? Can someone break down what [local]\...
1
vote
0answers
12 views

Java installation on OpenSuse

I have been trying to install a newer version of JRE (version 8 update 111) on my openSUSE 13.1 (x86_64) platform. I extracted the contents of the tar file in the /opt/java/64 folder and then executed ...
0
votes
2answers
32 views

Trying to figure out Linux script

I am a fairly new Linux user and I am trying to put a script together for a class. The script is supposed to allow a user to type in a username, and it will say if the username exists or not. If it ...
1
vote
0answers
14 views

Grep --line-buffered, can I search the same buffer with the results of the first grep?

I'm searching a log file in the following format <date> <connection from: ip> <new connection ID> <info> <date> <connection ID> <info> I'm using the ...
1
vote
0answers
26 views

send json via rsyslog to elasticsearch

in our company we need aggregate services statistics for some reason we decide to use rsyslogd to send applications statistics (json format) to elasticsearch system directly (this tutorial). but we ...
0
votes
0answers
4 views

RHQ install ERROR [org.rhq.server.control.RHQControl] error=2, No such file or directory

When try [root@SMIX-RIGHT logs]# ../bin/rhqctl install 19:37:43,269 INFO [org.jboss.modules] JBoss Modules version 1.3.0.Final-redhat-2 19:37:43,729 INFO [org.rhq.server.control.command.Install]...
-1
votes
0answers
25 views

reboot unexpectedly [on hold]

server : CentOS Linux release 7.2.1511 kernel : 3.10.0-327.el7.x86_64 log : /var/log/messages Nov 16 18:10:56 12-226-IDC systemd: Starting Initrd File Systems. Nov 16 18:10:56 12-226-IDC systemd: ...
-1
votes
0answers
28 views

How to run shell commands at startup [on hold]

I am using openwrt on my board. At startup, I need to run command for taking serial data and send it to an IP. The command is: socat FILE:/dev/ttyUSB2,b57600,raw,crnl, TCP:192.168.1.1:5001 How do I ...
1
vote
1answer
27 views

Exporting public keys using gpg

In this web page GNU, it says that exporting public key using the command below will generate a public key without the secret key. gpg --armor --export [email protected] > mykey.asc If person B ...
0
votes
0answers
34 views

Web page with linux [on hold]

I'm a very Noob on this topic, so excuse me if my question is very basic. What I'm trying to achieve is to embed static pages into my Linux Embedded application. In other words, I want to use a ...
0
votes
0answers
16 views

check if user ID is reserved or not

I have Linux server (Debian 8.6) that has both local users and LDAP users, I want to create users with specific ID (via script), but I want to make sure it (ID) isn't reserved by local or LDAP user, ...
0
votes
0answers
21 views

Linux C programming to get Client IP always get 0.0.0.0 [migrated]

When i try to get client IP,I always get 0.0.0.0 when program running in CentOS,But when the some code running in Ubuntu,It will get the right IP :127.0.0.1 I don't understand that's why. Please ...
1
vote
2answers
17 views

fedora grub rescue

I just installed Windows 8.1 on my system. After installing windows as always grub was replaced with windows bootloader. So I booted my fedora live USB and tried to restore the grub. The installation ...