0
votes
0answers
3 views

Mounted NAS permission issues when www directory on it

So I am messing around with my Pi (Raspbian) and I have setup an apache server on it with php. I have set the apache server to use a folder on the mounted NAS drive (works and shows website as ...
0
votes
0answers
3 views

Is it possible to bind ^/ and M-/ in nano

I've been configuring nano with the hopes of giving it the same keybindings as emacs, so that I can use nano for quick edits and emacs when I'm working on actual projects. However, I've run into a ...
0
votes
0answers
3 views

How do I install minecraft Forge?

I've downloaded minecraft via the PPA & wanna use mods, the only mods I can find need Forge to run, on Microsoft doing so is easy, anyone know how to on Linux? (I prefer to do it via terminal) (I'...
0
votes
0answers
2 views

freerdp - relationship between printer drivers on thinclient & Windows

I have a Linux ThinClient that is connecting to a Windows host using freerdp and redirecting the local printer. I am unable to get a Linux driver for my printer "Laserjet Pro M402dn" so I have it ...
0
votes
0answers
8 views

How to mount an USB disk attached to a NAS

I tried and failed mounting an USB drive attached to a NAS. I’ve created those directories: sudo mkdir -p //mnt/rsynclacie sudo chown -R osmc:osmc /mnt/rsynclacie sudo mkdir -p //mnt/...
0
votes
0answers
9 views

best option for accessing multiple servers through central server

I have close to 30 linux servers, I have multiple DMZ and one of the server (in a separate zone) is being used to access all other servers through ssh. Most of others servers are not connected to ...
1
vote
0answers
4 views

FreeBSD for PPC any good?

I have a G4 ppc Emac that I have had trouble with Mac OS on, so I have been messing around with Linux. To my surprise support for Linux on the PowerPC architecture is pretty solid, considering it has ...
1
vote
1answer
14 views

How to set per process disk quota?

I want to set disk quota (limit maximum space used in the file system) that a particular process can use under Linux. There seems to be plenty ways to limit disk quota for a user, but not at a per ...
0
votes
1answer
7 views

How can I get a dependency of “default-jre” to work for .rpm packages?

After asking the question Can I indicate that a .deb package depends on Java, but not specify what implementation (e.g. OpenJDK, IcedTea, Oracle)?, I was helpfully informed that I could include a ...
0
votes
1answer
10 views

Looking for an old linux distro for testing

I'm currently looking for a very old Linux distro that has an old kernel, doesn't support PAE/XD bit, doesn't support VASLR (Virtual Address Space Layout Randomization) and doesn't have X^W memory ...
-1
votes
0answers
7 views

triggering file transfer with a criteria for time and validity of file with the specific words

i want monitor directoryX/folderA for new files and trigger a copy of all those files that have a specific list of words/ headers in the first line of my file to a different directoryY/folderB . And ...
0
votes
1answer
17 views

Is there a way to use apostrophes in sed commands?

Is there a way to use apostrophes ' with the sed command? I mean this: - sed '-2 a\\ What's up?' text I am talking about the apostrophe in "What's up". If I do it like this it gives me an ...
0
votes
0answers
9 views

Will multiarch give negative impact to linux OS?

In order to runing 32bit application in 64bit linux OS, AFAIK i need to have multiarch library. But will it give negative impact to the OS performance or maybe will using too many resource of the ...
0
votes
0answers
2 views

Gentoo network applet in KDE plasma is not working

For some reason every time I connect to the network it drops the connection no matter what connection I use, Hotspot or Soho router. I don't know if the problem is my Netgear WNA 1100 adapter or not. ...
0
votes
1answer
23 views

Regular Expression ^$ not working on UNIX using grep command

I'm facing a problem in using the regular expression ^$ on UNIX. When I type grep '^hello$' text on the command line, as a result it should match the "hello" word because it is the only word on a ...
0
votes
0answers
21 views

How to set HDMI sound output as default on Ubuntu 16.04

I am using an old laptop as a dvd player, so I want the sound to always play via HDMI, but whenever I suspend the sound switches back to the internal speakers. I can change the sound back to HDMI with ...
0
votes
0answers
30 views

Is there a linux distro that's UNIX certified?

Is there a Linux distribution certified with the Single UNIX Specification? What are the primary reasons that most distributions don't get certified?
1
vote
2answers
21 views

Find a specific file in the nearest ancestor of the current working directory

I'd like to find a way to find a given file by looking upward in the directory structure, rather than recursively searching through child directories. There's a node module that appears to do ...
1
vote
1answer
14 views

Print stderr only if nothing gets written to stdout, otherwise print just stdout discarding stderr

There's a command that always prints stuff to stderr. Such information is never useful except when it doesn't write anything to stdout. So, is there a simple shell way, tool or command to help ...
0
votes
0answers
27 views

Is there a bash IDE like there is for R?

Just wondering if there is a bash IDE like there is for R, meaning you type commands in a text area and send lines, blocks or selection to bash just like you would do with let's say Rstudio. My goal ...
-1
votes
2answers
27 views

Find first unique occurance of match in file using regex

I would like to find the first unique occurrence of a match within a file. In the example data below, I would like to find the first occurrence of each Chunk Chunk 1 some text second line of random ...
1
vote
1answer
11 views

Can I recover filenames from a failed RAID0 (Linux Debian 5.0.8)

Linux Debian version 5.0.8 is running on my Iomega NAS and it has a RAID0 array of four 3TB disks that failed on the "third" disk. I am aware of the non-redundancy of RAID0 but I would like to ...
0
votes
0answers
7 views

Kali Linux with Dual Monitors on Docking Station

I have a Lenovo Thinkpad P50 (Running the latest Kali OS) docked to a Thinkpad Docking station and the issue I am having is that it seems like the monitors and the laptop keeps switching from Mirror ...
0
votes
1answer
15 views

Create directory from files and move files

I want to move files based on a specific pattern. I was working with this code, but it does not work well with the task. for file in *.fastq.gz do dir="${file%R*}" mkdir -- "$dir" mv -- "$file" "$...
1
vote
0answers
9 views

Remove silence from audio files while leaving gaps

Currently we're using this command within a shell script to remove silence from audio files: ffmpeg -i $INFILE -af silenceremove=0:0:0:-1:1:${NOISE_TOLERANCE}dB -ac 1 $SILENCED_FILE -y This works ...
0
votes
1answer
10 views

How to use the setarch uname command in a shell script

I am trying to create a korn shell script in RHEL7 to silently install an agent at my job. However the agent requires an old version of the agent be installed before being upgraded to the new version ...
-1
votes
0answers
28 views

sed replace or add variables into file

I'd like to use the following function (which is working for me): if grep -q HOSTNAME=noob hostname.ini; then sed -i "s/HOSTNAME=noob/HOSTNAME=pro/g" hostname.ini; else echo "...
1
vote
1answer
28 views

How do I stop title-escape-sequences from clobbering my GNU screen titles?

I don't have control over the shell prompt or preexec, and I want to keep the titles I assign to screens. Can I get screen to ignore title-escape-sequences?
1
vote
2answers
35 views

Change MAC address of network interface on lower level

I know that I can change a network interface's MAC address by bringing the interface down, using a command like ifconfig eth0 hw ether 00:11:22:33:44:55 or ip link set eth0 address 00:11:22:33:44:55 ...
0
votes
1answer
27 views

Why does SHA 256 sum change when writing image to a drive?

I've noticed that if I write an image via dd to a USB drive and then sha256sum that image; the sum changes. Why? It's never identical to that of the ISO.
0
votes
0answers
14 views

wifi bridge to existing network

I've been banging my head against this problem for a while, and I'm not sure if its just not possible, or I've got a config issue. I've just built a new ESXi server, and its got a wifi card which I'm ...
1
vote
1answer
46 views

What's the meaning of a '#' character before owner?

What does the # character preceding the owner name mean? For example: me@server /dir/sub/sub-sub $ ll v* x* -rwxrwxr-x 1 #owner group 1176 Jun 25 2009 vfc.sh -rw-r----- 1 #owner ...
1
vote
1answer
21 views

Linux eth0 is down, can't up it

I do have a vps server. It's not too good but I use it only for teamspeak. Recently I got a massage from provider that my service is suspended becuase of some sort of sync flood attack. Idk why. ...
1
vote
1answer
12 views

Chrome won't display under linux Mint 17.3

I just installed linux Mint 17.3 (running under Oracle VM VirualBox) and no version of Chrome seems to work (e.g. stable, chromium). The display is unreadable. Here's some of the command line output: ...
0
votes
0answers
6 views

How do I set Gnome as default DE if I am already using Cinnamon?

I think (let's be clear maybe I am complete wrong) I have installed Gnome by running the following command: yum groupinstall "GNOME" Now I want to get rid of Cinammon and use Gnome by default but I ...
0
votes
1answer
34 views

script set command output to variable [duplicate]

I'm writing a simple script that prompts the user for information and saves it as a variable to be passed as arguments in another command. One of the variables stores a path which may include a space. ...
0
votes
1answer
16 views

Arch linux sound doesn't work [on hold]

sorry for a vague title but the issue is very complicated. both firefox and vlc play silence through built in speakers. pavucontrol said that vlc is playing correctly through hdmi but when switched ...
1
vote
1answer
16 views

Error: Wrong architecture 'amd64' & Unable to locate package libc6-dev-i386 [Install libc6-dev-i386]

I'm trying to install the Redox-OS files via curl -sf https://raw.githubusercontent.com/redox-os/redox/master/bootstrap.sh -o bootstrap.sh && bash -e bootstrap.sh (as referenced in the Book) ...
-1
votes
0answers
17 views

Filter two file extension in if statement in perl script

How do I filter file extensions .csv and .CSV in an if statement? Below testing failed. 67 opendir ( DIR, $source ) || die "Error in opening dir $source\n"; 68 69 foreach my $fileName (readdir(...
0
votes
1answer
26 views

bash - How can I re-display selection menu after a selection is chosen and performed

I am a beginner to script. I am making a tool script for my theme with 2 functions: Check for update, reinstall theme So here is the code for selection menu: PS3='Choose an option: ' options=("Check ...
2
votes
1answer
20 views

Clarification for Bash documentation on disown builtin option -h

According to the documentation: To prevent the shell from sending the SIGHUP signal to a particular job, it should be removed from the jobs table with the disown builtin or marked to not ...
0
votes
0answers
20 views

Any caveats to using bash disown from a shell script as an alternative to screen?

I have a process which starts and outputs to a log file. The script which starts it launches it in a GNU screen and then follows the log with tail. The process will immediately begin writing to the ...
0
votes
1answer
28 views

Text file to fields (columns) every nth occurrence of a string

Had a look through the already answered questions but don't see my specific question in there. I am creating an Excel spreadsheet of Cisco fabric config and want to get the format right into fields / ...
0
votes
0answers
5 views

How to reflash my Intel Edison without wifi?

https://software.intel.com/en-us/flashing-firmware-on-your-intel-edison-board-linux Is it possible to reflash the Yocto image with just a serial connection?
0
votes
0answers
14 views

How much of the original Linux kernel design remains in the current version? [on hold]

I realize that support for new hardware is constantly being added, so I am not really interested in a numerical answer. I am more interested in how many of Linus's design decisions for how a kernel ...
-2
votes
1answer
33 views

replace lines from a file using script

I want to alter a few lines in a conf file.For example,the file will have something like: local all all md5 #host all all 127.0.0.1/32 ...
0
votes
1answer
30 views

How to determine if script is called by interactive shell or another script?

It's fairly straightforward to determine from within a script that the code being run is not running in an interactive shell, but you already know that as you write the script, so I'm not sure how it'...
0
votes
1answer
23 views

Why a website opens when I access webserver on Centos? [on hold]

I have several websites in my Centos web-server. The issue is when I enter the ip address of the web server on of my sites e.g. "abc.com" opens. Also another problem is that when I type mail.efg.com (...
0
votes
0answers
11 views

SELinux issue Full path required for exclude: net:[4026532292]

I am trying to set samba context on directory with following command and I am not sure what this error is about but I can not set the context on directory. semanage fcontext -a -t samba_share_t "/...
1
vote
1answer
18 views

extract servers' blocks from Nginx conf

I have the following conf file for nginx: user www www; ## Default: nobody ... events { worker_connections 4096; ## Default: 1024 } http { include conf/mime.types; ... server { ...

15 30 50 per page