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
2answers
18 views

Deleting lines by matching 3rd and 4th character only

I am running a script that fetches me the data as given below, 1400d2b8 1f4d1e2507 1200781e As you can see the 3rd and 4th character is 0 in line 1 and line 3. I am trying to write a single line ...
-1
votes
1answer
48 views

Getting “Permission denied” when trying to create a file despite correct permissions

I’m using Amazon Linux and running a script through a Jenkins job, including this line touch /usr/java/jboss/standalone/deployments/myproject.war.dodeploy which results in the error … touch: ...
2
votes
0answers
15 views

Can not seem to get the jp2 delegate to work in ImageMagick on Ubuntu 15.10

As the title says, I have tried to install the library on both 14.04 and 15.10. Every time I type in convert -version the delegates do not contain jp2000. I have installed libopenjpeg-dev and ...
1
vote
0answers
18 views

VPN Connected but url not not open

I have use CentOS 7 system and developing a SOAP web service. I connected FortiClient CLI using the terminal to the VPN server that is hosted on a windows server and it's working perfectly. But ...
3
votes
1answer
87 views

Filesystem still showing the old value after reduction in linux, however showing the correct value in LVM

We have a task to resize the filesystem from 8T to 7T which is in LVM. We have given resize2fs command, while the command is still being run we have got the error "Write failed: Connection reset by ...
0
votes
1answer
28 views

Simple BASH script treating flags as commands

I've been trying to write a really simple bash script as follows: #!/bin/bash gcc –Werror –std=c99 client.c –o client gcc –Werror –std=c99 server.c –o server Each of the commands works fine when ...
-3
votes
0answers
14 views

how can I address the root cause of the high “in” and “cs” at the vmstat output

root@wis-virtual-machine:~# vmstat 1 procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu----- r b swpd free buff cache si so bi bo in cs us sy id wa st ...
0
votes
1answer
12 views

why rc and rc.x are linked

May I know why we have them linked ? is there any reason behind this ? lrwxrwxrwx. 1 root root 7 Aug 7 2015 rc -> rc.d/rc lrwxrwxrwx. 1 root root 15 Aug 7 2015 rc.sysinit -> ...
0
votes
0answers
12 views

stop dm-cache from caching temporarily

I am want to benchmark my system(Centos) IOPS with dm-cache and without dm-cache.I have taken benchmark result for my system dm-cache .Now I want dm-cache to stop temporary so that I can take ...
2
votes
1answer
15 views

How can I find out the ownership of a tap interface?

I can set up a persistent Linux tap interface and make it owned by a specific user and group with one of these: tunctl -u someuser -g somegroup -t example.tap ip tuntap add dev example.tap mode tap ...
1
vote
1answer
32 views

/bin/bash No such file or directory Connection closed [closed]

I try to connect to a server using ssh (authentification is fine). I got this: /bin/bash: No such file or directory Connection to xxx closed. Before, everything is working fine, Until I have ...
1
vote
0answers
10 views

Tmpfs with overflow on disk?

I'm looking for a way to have a tmpfs-like file system that can be unlimited in size, but will use a specified amount of RAM after which the "oversize" data will be stored on another disk-backed ...
0
votes
0answers
13 views

searching through command line history [duplicate]

I use reverse search when looking for a particular command on the command line by pressing CTRL + R. That returns the first command it finds in reverse order. To go back to the next further command I ...
0
votes
0answers
14 views

Script to hard-link copy new files in a source directory? [duplicate]

I am using Emby's media auto-organize feature. This features takes a watch folder and moves the media to the appropriate directory. It's not perfect so sometimes it moves the media to the wrong ...
0
votes
3answers
20 views

Is there a script to update (almost) any Linux distribution? [closed]

I know of apt-get update and yum update, but I'm wondering what others there are to update other Linux OSes. Could all these be combined into a script which could be run on any Linux distro?
0
votes
2answers
12 views

Shared, read-write, photo directory tree, for normal users

I.e. what I want is the Linux equivalent of Windows Public/Pictures. The problem is that Linux file manager Nautilus doesn't apply default ACLs when you move a file into a folder/directory (nor good ...
-1
votes
1answer
39 views

Principles of file indexing in Linux [closed]

I have read a lot about indexing in Mysql and I know that Linux has a great utility locate to find files. Maybe Linux has the same principle to do indexing as Mysql have provided. But I think the ...
1
vote
1answer
39 views

Aligning Hexdump Data in a Specific format?

I am reading serial data from my Raspberry Pi and all I am doing is a Hexdump I have to find the header and then go to the 2nd byte of data from header for ex: ed 13 74, I have to take the value 4 , ...
2
votes
1answer
21 views

FFMpeg : Converting a video file to a gif with multiple images from video

I am working on a project in which the user can upload videos. Is there any way with FFmpeg I can take some images from the video and create a GIF out of it? As the project is in Java, I have a way ...
1
vote
2answers
33 views

How to determine if a custom kernel improves system performance?

In addition to measuring boot time and kernel size before and after re-compilation, what are some other useful metrics for determining if a custom-compiled kernel improves system performance? I know ...
0
votes
2answers
30 views

Centralized system information

Does anyone know of a software capable of keeping track of Linux/UNIX systems configurations centralized on a server? Possibly with a web GUI and history capabilities? I am looking for something that ...
0
votes
1answer
51 views

Touchpad and Sound card undetected Debian 8 - asus R547U

I just installed Debian 8 on my new machine (an ASUS laptop i5/SSD 256Go/...), but I find myself stuck with two main problems. First, my touchpad is not recognized by Debian. To be more precise, I ...
1
vote
1answer
24 views

Debian : Setting path for Node with root accessible globally

I have downloaded NodeJS setup and have it inside at /home/deploy/nodejs. I am trying to set its path, but it's not working out. I am logged in as root, and I would like to access nodejs and npm ...
-4
votes
0answers
29 views

Need Help in Shell Scripting [closed]

Want to create shell script At 00:00 AM I have GlobalFile.csv From GlobalFile.csv I want to find out repeated entries from column one and those are repeated I will add them to Escalate.csv and non ...
1
vote
0answers
41 views

Creative CA0132 no sound

I'm trying to get my sound card of my gigabyte g1 gaming ga-z170x-gaming 7 working. I've installed fedora 23, kernel 4.4.7-300.fc23.x86_64, there is no sound, however hdajacksensetest -a shows my ...
0
votes
0answers
22 views

Unable to use USB sound card with ALSA programming

I am trying to decode LTC data from an audio source coming to my USB sound card. For this I download sample program from this link. As jltcdump.c file use audio card 0 as defualt, so I make USB sound ...
0
votes
3answers
40 views

How to check which network interface is active and providing internet?

ip link show 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: eno1: ...
0
votes
0answers
10 views

add 10G fiber NIC however not able to see it go to up state

I have added a 10G Intel PCIe card to my Linux machine. I have connected both sides of the cable and the remote side comes up when I plug the cable into my linux machine and goes down when I remove ...
0
votes
0answers
9 views

How to get Ansible to reload Playbooks after update from Git/Rsync?

I want to have a playbook that Rsync (or check out from a version control system) Playbooks from another server then use the new Playbooks. Is there a way to tell Ansible to reload Playbooks after ...
0
votes
0answers
39 views

Cannot install mysql binaries for linux x64 to another directory

I am watching the install mysql-5.6.22-linux-glibc2.5-x86_64 binaries instructions as : Example A : shell> groupadd mysql shell> useradd -r -g mysql -s /bin/false mysql shell> cd ...
0
votes
5answers
60 views

copy file from user to another in linux

I'm trying to copy a file from my home directory to another user's directory. I have a sudo access for the other user with no password. I tried doing something like: sudo secondUser cp ...
0
votes
0answers
15 views

Linux:how java applications having 1000 threads are managed by 2 CPU's os?

Linux: 2CPU's, 16gb ram Let's say, for example, tomcat having 1000 threads. How this application threads will be shared between two CPU's, and what is the value of run queue length? In my case when ...
0
votes
0answers
2 views

Using Bluetooth inside a netns

Is there a way to use Bluetooth inside a network namespace? For some reason, almost no program is able to work with Bluetooth devices at all. To simplify, here are the (almost) last lines from strace ...
3
votes
1answer
44 views

Keep a process in RAM (prevent it from swapping)

I want to keep a process in RAM. It should never go into swap. Is this possible? The process is a Java program. I'm running CentoS 7.
1
vote
0answers
29 views

Deleted file being written to by running process, can I recreate it? [duplicate]

I've started a long running process with nohup and redirected it's output to a log file Example: nohup ./bin/zkServer.sh start-foreground > /usr/local/myuser/logs/zkout.log 2>&1 & I ...
2
votes
0answers
36 views

Why would all our CLOSE_WAIT connections have 24 bytes in the receive queue?

We have an Apache reverse proxy that is having connectivity issues with the back-end. This results in timeout errors such as this: [Thu Apr 21 12:12:26.031207 2016] [proxy_http:error] [pid 64620:tid ...
0
votes
2answers
49 views

python virtual environment

I have to install python package locally/globally on a machine using pip, so for I do not want to install pip on local machine. I can successfully create a new virtual environment using easy_install ...
0
votes
3answers
47 views

Grep file modified in 24 hours unix

I need to get the files which have been modified in the last 24 hours, and get owner and group of these files. How can I do that? The command ls -lrt /dirpath | grep 'Util' only gives this output: ...
0
votes
0answers
15 views

How can I run GUI emacs (using a shortcut) in a very light xmonad installation? [migrated]

I am trying to launch Emacs through a keyboard shortcut on my Debian/xmonad system. Relevant lines from my xmonad.hs: ~$ cat .xmonad/xmonad.hs import XMonad ... main = xmonad =<< xmobar ...
1
vote
2answers
34 views

Get full directory of $file

My first shell script #!/bin/bash echo "Input your file" read $file path=(readlink -f $file) echo "$USER, $path" >> scriptlog.txt it said missing operand. How can I fix it?
1
vote
0answers
23 views

Numlock on by default on Linux Kali

I am fairly new to this version of Linux. I have it set so that when it boots, it automatically boots into the GUI for the operating system. This means when I load up the OS I am greeted with a login ...
0
votes
0answers
10 views

ORA-12560: TNS: protocol adapter error

I have tried to install Oracle 11g R2 on Solaris 10 in Virtual Box. While installing it get completed 95% but while it try to install "Database Configuration Assistant" it shows "ORA-12560: TNS: ...
1
vote
0answers
24 views

Strange X11 forwarding issue [closed]

I have a strange issue regarding ssh x11 forwarding. Assume I have an host named node71. Firstly, I start Cygwin/X and mintty in Windows, now the local DISPLAY=0.0 Next, I can do ssh root@node71 -Y, ...
1
vote
0answers
39 views

Is compatibility technically easier to achieve for Darling than for Wine?

I hope this question isn't too theoretical. I find it very interesting. A project called Darling is attempting to create an OS X compatibility layer for Linux. If successful, this will allow users to ...
0
votes
1answer
17 views

xclock not runnnig for another user

I have install new solaris 10 in Virtual box in my pc. I have set below command as a root user. bash-3.2#export DISPLAY=":0.0" DISPLAY bash-3.2#xclock It is working fine for root user but I have ...
0
votes
0answers
8 views

Open HDMV PGS subtitles in GNU/Linux

I wanted to know if there's any software in GNU/Linux which can read BluRay subtitles (HDMV PGS). I'm not talking about making an OCR to convert them to SRT like everyone asks, but just reading them ...
0
votes
0answers
22 views

Linux stops booting after eth0 link up. How to make it show more log?

I compiled the latest OpenWRT with Linux kernel 4.4.7 and flashed it into a Netgear WNDR3700v2. Here's the boot log from serial port. U-Boot 1.1.4 (Jan 15 2015 - 11:30:07) AP96 (AR7161 rev 2) U-Boot ...
2
votes
1answer
34 views

run Mac OS X applications on Linux

According to this Wikipedia article: OS X is a series of Unix-based graphical interface operating systems developed and marketed by Apple Inc. so i was thinking: is there any similar ...
0
votes
0answers
13 views

Is there a synaptic package manager for Scientific Linux?

I am wondering if there is a package management system available for Scientific Linux. So far I'm downloading and installing one package at a time, and running into conflicts/dependency issues. A ...
1
vote
0answers
22 views

Native Linux installation on Allwinner tablet

I would like to know if it is possible to do a clean install (I mean a native install, just like on a computer) of a Linux distro on an Allwinner a33-based tablet (or more generally speaking on an ...