1
vote
0answers
2 views

PHP running as root on Apache2 running as daemon

On one of my servers, Apache2 is running as daemon user: [root@sbecby07 ~]# ps -ef | grep httpd root 1114 29432 0 10:13 pts/2 00:00:00 grep httpd root 29773 1 0 09:03 ? ...
1
vote
0answers
11 views

Extract files with cpio where one or more paths may contain spaces

We have a cpio archive that was created by generating a file that contains a list of absolute paths to be included in the archive. (one absolute path per line of a plain text file) The command to ...
0
votes
0answers
1 view

crytpsetup on device or partition?

I am creating an encrypted block device (for data) that will use BTRFS on top of LUKS. This device will not hold the root filesystem. With BTRFS, I can create subvolumes. I don't see any need for ...
0
votes
0answers
5 views

Can I run NixOS in an LXC container?

Can I run NixOS in an LXC container? To run debian on top of debian, one would use LANG=C SUITE=jessie MIRROR=http://httpredir.debian.org/debian lxc-create -n debian8 -t debian What should one ...
1
vote
1answer
10 views

Nautilus-script to move file into same name directory

How can I create a Nautilus script that moves a the selected file into a new folder with the same name? My starting point: /home/user/123 here 123 is a file with no extension My goal here is to ...
1
vote
1answer
19 views

Detemine “which device a file is in” in chroot environment?

According to this: Determine what device a directory is located on I can find which device a file is in by df command in a normal environment: fpemud-workstation / # df /bin Filesystem ...
5
votes
0answers
32 views

Untrusting an intermediate CA in Linux?

From this blog. Intermediate CAs are certificates signed by a root CA that can sign arbitrary certificates for any websites. They are just as powerful as root CAs, but there's no full list of ...
5
votes
3answers
171 views

How do I create a terminal-based gui?

I'm looking to create a terminal-based environment to adapt my bash script into. I want it to look like this:
0
votes
3answers
18 views

cut column 2 from text file

My text file has no delimiter to specify separator just spaces, how do I cut out column 2 to output file, 39 207 City and County of San Francisc REJECTED MAT = 0 78 412 Cases and ...
0
votes
1answer
12 views

Using TFTP on Fedora 22

I am trying to troubleshoot tftp on my Fedora 22 to see if it is working or not. All I want to do is transfer a file between two systems. The commands I am finding online are not working. All I need ...
2
votes
1answer
35 views

Join arbitrary lines to output as one line

I want to join the 3rd and 5th line of a file to the output of a script without trailing new lines. Is it possible to implement this construction by using the code: { echo 'Some text' echo 'Some ...
0
votes
0answers
9 views

Generic multiple monitor layout on RHEL/CENTOS 7

By default, RHEL7 seems to think multiple monitors are next to each other. I need to have them vertically spanned instead of horizontal. I found that modifying xorg.conf or xorg.conf.nvidia to set ...
0
votes
1answer
30 views

Count and compare files in Linux

I want to just compare the number of lines in two files. Below is the list of names of files. One file contains names/location of fastq files; the other file contains names/location of bam files. ...
0
votes
1answer
23 views

Issue passing parameters to /bin/sh -c

I am trying to use /bin/sh -c to execute a .sh script with a date parameter. The -c option is not optional as it's what the framework my team has uses. I can't get the date epoch parameter to pass ...
0
votes
0answers
8 views

taking snapshots of a BTRFS volume mounted with nodatacow?

I plan to create two subvolumes on a BTRFS-formatted spinning disk. I plan to mount one of those subvolumes with nodatacow so that I can efficiently store virtual machine images and database files ...
1
vote
0answers
10 views

Record fullscreen program with avconv/ffmpeg?

I'm trying to record a fullscreen program (snes9x) with avconv, aka ffmpeg. I have avconv set up to use my whole screen, but it doesn't capture snes9x when I run it. #!/bin/bash avconv \ -f ...
0
votes
0answers
9 views

Amend perl script so that words are matched on a word for word basis

This is a follow on issue I have from a question answered here: Matching 3 or more words from fields in separate csv files I have been using this perl script (thanks to Jeff Schaller and meuh) to ...
0
votes
2answers
24 views

troubles working on a script with $# and a loop

i have the following script: #!/bin/bash for ((i=1; i<=$#; i++)); do if [ ! -d $i ] then echo $i its not a directory >> file.txt else ...
0
votes
0answers
9 views

Make Guake Float in i3wm

I want to default Guake to open as a floating window under i3. I created an entry under ~/.i3/config that reads as the following. My code is - for_window [class="guake"] floating enable My xprop ...
0
votes
2answers
25 views

simple for loop script to build out ipv6 subnet

I am trying to use nmap to scan a /119 IPv6 network. (512 addresses). Before I do this I want to generate a file that will populate all of the ip addresses in that range. The network info is as ...
0
votes
1answer
12 views

Systemd pause boot while script runs

I have a script that I want to run at boot, and whilst it runs I would like it to pause the boot process. I have tried the systemd service [Unit] Description=setup script Before=default.target ...
0
votes
0answers
16 views

tcsh prompt changes with change of directory

I am trying to change my prompt to be permanent no matter what directory I am in. I put set prompt = "%n@%M %T>" in my .cshrc and upon opening a console it looks as expected. However as soon as I ...
0
votes
0answers
9 views

How to install and build HPL LINPACK on Scientific Linux? [on hold]

How would I install, build, and run HPL Linpack on a scientific linux desktop computer? Already did some research and I'm having trouble finding a solution that applies to a scientific linux desktop.
1
vote
1answer
7 views

Can't delete dovecot-managesieved

When I want to install / delete or whatever a package, I get an error from dovecot-managesieved. So I tried to delete it with this line: $ sudo apt-get purge dovecot-managesieved reading package ...
-4
votes
1answer
42 views

how to fix this command?

Can anyone help me this problem? what right package source need to download?
0
votes
0answers
2 views

VirtualBox web service not recognised by PhpVirtualBox

A Debian 8 machine is running VirtualBox 5 and PhpVirtualBox, a web gui for managing VirtualBox. PhpVirtualBox requires the service vboxwebsvc to be running and it can be done easily by issuing the ...
0
votes
1answer
12 views

How to automatically fetch new name server on VPN connect

I am running ubuntu xenial 16.04 We are using openvpn to connect to a virtual private cloud. That cloud has it's own DNS server (as does our local route - home or office). When I connect to the VPN ...
0
votes
0answers
8 views

Installing F23 with custom partitioning (after hapilly dual booting U16.04 and W10). Can no longer boot into the W10 partition

Ok, so I know it is a classic, but none of the solutions I found could do the trick;( I already had an Ubuntu 16.04 and a Windows 10 on said disk (and could use the grub to boot on either at ease). ...
1
vote
0answers
7 views

Pci device file identifier?

As regards disk devices, Linux systems represent them through a /dev/ file. /dev/sda is a hard drive, and so on. Is there also a file representing a PCI device, for example a graphic card? If not, ...
1
vote
2answers
32 views

Discover Static IP of connected ethernet cable

Ok, so my question is a bit out there, and I've read a lot of similar questions but they never actually are doing what I am trying to accomplish. So the best way to describe it is with this scenario: ...
1
vote
1answer
15 views

Find PCI configuration

In this page, Figure 6.1 shows an example of PCI configuration, with two buses. Using Linux (Ubuntu), is it possible to get the PCI configuration of the actual motherboard? I mean: determine how many ...
0
votes
1answer
21 views

Difference between su and su - [duplicate]

I wonder what's the exact difference between these 2 commands:1. su 2. su - . Can anyone please explain?
0
votes
0answers
20 views

Files not appearing immediately on remote system after SFTP put command

I'm encountering a bizarre issue. I'm sending files to a remote machine using SFTP's put command. However, even though my machine says the transfer is finished, the files don't appear immediately in ...
1
vote
0answers
15 views

how to fix install gnome desktop in CentOS 7?

I do like tutorial : How to install Desktop Environments on CentOS 7?, but I meet a trouble,see in this picture. How can I fix this for "startx" successed. in all install command line, i just see ...
0
votes
0answers
17 views

What's the best book to learn linux? [on hold]

What's the best book to learn linux which ranges from basic to advanced level?
1
vote
0answers
7 views

Enable audio on remote Windows computer through xfreerdp

I'm using xfreerdp to login to a windows machine (runnning windos 7 64bit) on my desk next to my linux machine (running RHEL7). Normally I use: xfreerdp -k uk -g 1280x950 --no-nla --plugin cliprdr ...
0
votes
1answer
11 views

CentOS: How to force pip to install Django with latest Python 3.5

I'm running CentOS, and it has pre-installed Python 2.6.6. But I want to use Python 3.5, the latest version. So I have installed Python 3.5 on my server. It's working properly. I just compile Python ...
0
votes
1answer
9 views

cross comile net snmp for arm processor

i just want to cross compile net snmp for arm cortex a9 (cyclone v soc altera). can anybody tell me how to proceed step by step?in custum board my ram is 4 gb and sd card 8 gb .i want to compile full ...
1
vote
0answers
10 views

Touchscreen on embedded Linux can't tab or click

I use a 7" display with resistive touchscreen, embedded Linux for ARM CPU. Manufacturer Engicam, design is similar to Freescale / NXP i.MX6 Sabre board. With Yocto 1.7.3 and Engicam board support ...
0
votes
1answer
11 views

Why are processes run with nohup in rc.local killed?

I have the following script under raspbian jessie: file test.sh contains: #!/bin/sh -e nohup sleep 321 & sleep 120 false exit 0 When run as normal user in a terminal session, I have the ...
0
votes
0answers
13 views

can two android devices in different network(3g) comunicate themselves with ssh connection?

I have two rooted android devices with different isp(i use different 3g connection for them) and created a double ssh connection(i can with a public ip server)comunicating both to this server(i have ...
0
votes
0answers
11 views

How to fix the autofs procedure used for preserving the USB mount point in between reboots and USB reconnects?

I read the answers in this excellent Unix Stack Exchange article; Automounting USB sticks on Debian and tested it earlier yesterday on an Ubuntu Linux 16.04 instance , Lenovo Thinkstation quad core ...
1
vote
1answer
11 views

Alias folder of executables with prepended keyword

I have several executable files in a folder /opt/chefdk/embedded/bin/. Examples are ruby bundler chef. Ideally I want to be able to run these files by simply prepending the keyword chef-$1 or chef ...
0
votes
2answers
19 views

Skeleton directory - how to add my own directories

I want to add a few directories to the skeleton directory. When I add new user I want to add my own directories to the new home directories.
0
votes
0answers
7 views

Gnome with Xmonad crashes on login

I recently discovered Xmonad, and installed it on all of my computers; however, on my desktop computer, vanilla xmonad has mirrored screens and poor resolution. The 'gnome with xmonad' desktop ...
0
votes
1answer
35 views

Why can't i delete file when i have the file's ownership? [duplicate]

As a root user, I created a file in / directory. I can only read this file when logged in as normal user (say A) as expected.I changed the ownership to A.Now A can read as well as write.But when I try ...
1
vote
0answers
12 views

detecting sound from speakers

I have decided to make a radio from my old laptop. I installed Puppy linux and set special features, like: after waking up, it turns on my favorite online radio (openFM) and switches off the screen. ...
3
votes
2answers
34 views

Looking for a convenient way to create a “constant array”

In zsh, is there a convenient way to create an array of n copies of the same integer? Context: In a shell script, I need to create an array, tile_lengths, consisting of two longish constant blocks. ...
1
vote
1answer
22 views

Understanding sparse files, dd, seek, inode block structure

At work we use sparse files as part of out Oracle VM environment for the guest disk images. After some questions from a colleague (which have since been answered) I am left with more questions about ...
1
vote
0answers
10 views

SLURM: Custom standard output name

When running a SLURM job using sbatch, slurm produces a standard output file which looks like slurm-102432.out (slurm-jobid.out). I would like to customise this to (yyyymmddhhmmss-jobid-jobname.txt). ...

15 30 50 per page