0
votes
1answer
7 views

login with apache user

I'm following this tutorial step by step,for Here we clone the repo into a chmodded /var/www/[site_dir] folder. Note that we switch to the www-data user before running the git clone command. ...
1
vote
0answers
12 views

Echo the list of process not running

I have developed a script, the script refers to a file to start the required processes on that server. The script times out after 180 secs. At the end of the script I would like to display the ...
0
votes
0answers
4 views

Failover default route on primary link outage

I have 2 ISPs, and a server with two IP addresses, something like this: eth0: 161.0.0.2 eth1: 171.0.0.2 I have set www.example.com with two A records, so that I have DNS LB. App is working fine ...
0
votes
0answers
11 views

install 64 bit Debian

I have a computer that had a 32 bit os on it when I got it, I thought it was 32 bit. It now is running debian7 32bit with 64bit kernel. I am trying to upgrade to debian8 64bit, but computer is not ...
0
votes
2answers
13 views

How to insert a string between 2 consecutive ,?

I want to insert a string possibly N.A. between two consecutive , This is my string. 5 Local A2A SMS valid for 1 day , 10 A2A SMS valid for 2 days , 10 Local A2A SMS for 2 days only , Daily 5 Local ...
0
votes
1answer
2 views

How to update Mint-Y theme and icons using a script

Situation: Mint-Y is a work in progress and it will continue to change and to improve, with your feedback, after the Linux Mint 18 release. Source: https://www.linuxmint.com/...
0
votes
2answers
11 views

red hat Linux + UTC properties and hw clock

from redhat documentation The /etc/sysconfig/clock file controls the interpretation of values read from the system hardware clock. UTC= where is one of the following boolean values: true or yes — ...
0
votes
0answers
11 views

Linux USB installer does not see my internal SSD drive

Laptop Lenovo 710s. The hard drive is a Samsung internal SSD drive 250 gigabytes. 45 gigabytes unallocated space. Here is the issue I have tried EUFI install disks for Ubuntu, Debain, NixOs, and ...
0
votes
0answers
6 views

Is there a simple gui application firewall for linux?

I have tried installing Douanne firewall, but I faced problems in installing it ;there are dependency problems. I tried Peerblock but there doesn't seem to be a way to actively pop up a dialog saying ...
1
vote
1answer
15 views

moving a linux to another device

I am working on an embedded linux ip-camera. I need to have a backup of our Linux for testing and repairing cameras. I have tested multiple options like using tar and rsync , but it does not work and ...
0
votes
0answers
15 views

Should a well-behaved daemon daemonize itself?

In this answer, it is mentioned in passing that it is not appropriate for a daemon process to reparent itself to init with the double-fork-and-exit trick. The answer links to a website which is no ...
0
votes
0answers
5 views

Windows out of focus on Linux Mint 18!

All of the sudden all my windows except the clicked window were out of focus. When I click on a window it gains focus but all other windows including my notification panel and desktop lose focus. It ...
0
votes
1answer
27 views

explain recursion syntax

I'm new to shell, and UNIX / GNU/Linux. I'm trying to understand this syntax that is part of a recursion function: [ $i -le 2 ] && echo $i || { f=$(( i - 1)); f=$(factorial $f); f=$(( f * i ...
0
votes
0answers
10 views

Sharing a linux x-session desktop using X11RDP

I want to share an x-server session over a remote connection. I have an application that runs under x using just open box. I would like the user to be able to push a button and have them connect to ...
1
vote
0answers
20 views

How to extract a web page text onthe basis of <p> tag

The Punjabi Dictionary (year-1895) web page is available in Creative Commons license. How can i extract the text (words) in between the html <p> </p> tag. This video describes. But i am ...
1
vote
0answers
28 views

Random URL's in access.log

My server recently started getting a massive increase in the number of random URL requests. 124.173.67.77 - - [23/Jul/2016:21:21:04 -0400] "GET http://www.059boss.com/index.php HTTP/1.1" 200 12040 "...
1
vote
1answer
12 views

How do I set tmux's window size in a session started by cron?

In my crontab, I reference a shell script, print-size, that contains the following lines. #!/bin/sh tmux new-session -t check-size -d tmux send-keys -t check-size 'echo $COLUMNS $LINES' C-m When ...
2
votes
3answers
26 views

Ensure less clears screen

Is there a way to ensure less clears screen on exit? The opposite of less -X. The screen is not being cleared when I exit a man page in iTerm2, however the screen is cleared when using the default ...
0
votes
1answer
20 views

Restore system file permissions

While I was setting up an Ubuntu server (EC2), I accidentally run the following: sudo chown -R www-data.www-data /* very dumb and noob move on my end. Anyway, is there an easy way to restore all ...
0
votes
3answers
31 views

How to automatically append a command to a file when called in a shell?

I'd like to keep track of all the programs I'm installing, so every time a command contains pacman -S (important space after -S) I'd like bash to append the command string to a file. Currently I'm ...
0
votes
0answers
12 views

can't get wifi link

I just put a fresh install of CentOs 7 on my laptop. I wanted to set up the wifi using the terminal so I was following these instructions: http://linuxcommando.blogspot.com.br/2013/10/how-to-connect-...
1
vote
1answer
19 views

How to search for a package with pacman? [duplicate]

I just installed Archlinux and want to install netstat. However using the command pacman -Ss netstat outputs irrelevant package names. A search on internet revealed that netstat is owned by net-tools. ...
0
votes
0answers
13 views

Missing icons and error message when running gnome-terminator (built from sources)

I just installed terminator from sources that I got here. It appears there is a dev version that works better but I just could not find it (launchpad is so messy). When I launched a terminal I'm ...
0
votes
0answers
29 views

Manipulate Windows Program Through Wine in Bash Script?

There's a Windows program called Visipics. It finds similar images, not merely duplicates. I find it superior to findimagedupes and competing Windows programs, and it works well with Wine. I use ...
0
votes
1answer
33 views

How to grep and treat meta character as normal character?

I am trying to recursively find some pattern which contains meta character. Pattern that I searching for is template <int N> I have tried : grep -F -lir "template <int N>" * # ...
1
vote
1answer
51 views

Remove all files, except for two

I would like to delete everything in one folder, with the exception of two files: exec.js .git I found this: rm !(exec.js|.git) Which works in the CL, but when I try to store in a sh file, and ...
0
votes
1answer
15 views

Upgrading to Fedora 24 without updating the font

Fedora 24 includes an update of its default font Cantarell but I prefer the old version: How can I upgrade from Fedora 23 to 24 and keep the old font (or at least configure font rendering such that ...
7
votes
1answer
111 views

How to extract the string between two \n in a file

I have a file with pattern <span class="WebRupee">Rs.</span>\n29\n<br/><font style="font-size:smaller;font-weight:normal">\n3 days\n</font></td>, <td class=...
0
votes
1answer
18 views

How to share a connection between two interfaces

Okay so either I am dummer then I look or there is a real problem here. Fedora 23 Interface 1: enp9s0 192.168.1.137 255.255.255.0 Wired (Internet connection) Interface 2: wlp0s20u14 192.168.10.1 255....
0
votes
0answers
12 views

Hook serial port interrupt in FreeBSD

I need to write a program to react to the modem control lines changing in the serial port on my FreeBSD 10.3 machine. I don't want to read any data from it (there won't be any). I'm aware I can ...
-1
votes
0answers
11 views

Implement a blocked or synchronous method of message passing using signal interrupts? [on hold]

using message queue IPC mechanism. please provide the source code for this. thanks in advance.
4
votes
4answers
341 views

Does ssh send the password over the network?

Basically the entire question is in the headline: Does ssh send the password over the network? Presuming of course that login via username and password is used. I'm asking because if ssh doesn't send ...
0
votes
0answers
14 views

Import/Export running GUI applications between localhost and SSH client running x11 forwarding?

I am running a Centos Linux server which I connect to using Putty/SSH with x11 forwarding enabled and an X11 server (Xming) running on the client machine... I am able to open GUI applications from my ...
4
votes
2answers
33 views

How can I stop vim from editing directories?

Sometimes I accidentally tell vim to edit a directory instead of a file in it vim directory-name # what I typed vim directory-name/blah.txt # what I meant to type Instead of immediately ...
1
vote
1answer
11 views

How do I remove the black translucent overlay over the background when I scale my windows in Linux Mint via editing the codes? Pics included

I know it's caused by themes as some themes has it and some don't. But I really like to keep my mint-Y-Dark theme as it looks awesome. And thus, this question arisen, I know there are some codes to it ...
0
votes
0answers
24 views

Why I can not open port on redhat?

I want to host sinopia (https://www.npmjs.com/package/sinopia) on the server. My problem is I can not open port for it. Default port for sinopia is 4873. OK. Lets start sinopia and then try to ...
1
vote
1answer
35 views

what is the right syntax for watch command

I want to follow the word BLOCK in ufw.log file every two seconds I try this command: sudo watch BLOCK /var/log/ufw.log but I getting: sh: 1: BLOCK: not found what is the right command? Thank ...
3
votes
1answer
22 views

Why do I keep getting a “cannot connect to X server error”?

I am using the FLIR camera with my Raspberry Pi and running it on a Raspbian destro of linux. I've followed the instructions on the Github page perfectly when trying to setup the raspberrypi_video ...
0
votes
0answers
10 views

Turning off screen when lid is closed

How to disable auto suspend when I close laptop lid? explains how to disable suspension on lid close, but this method leaves the screen on, which is useless. How can one make the screen sleep while ...
1
vote
2answers
30 views

How to get last folder (sorted alphabetically in descending order and matching a pattern) using ls/find/etc?

So I have these filesystem structure /my.parent -> my.folder1 -> my-file1.txt -> my.folder2 -> my-file2.txt -> another-folder-here -> another-file.txt Using ...
0
votes
0answers
22 views

unknown filesystem grub rescue

I had Windows 10 installed in my laptop dual booted with Kali Linux 2016.1 rolling. When I did an update.. apt-get update && upgrade -y .. it started installing the packages but it got ...
2
votes
1answer
24 views

Starting Ettercap is giving me an error

I have been stuck finding this problem online for the past 5 days, and I couldn't find an answer, everytime I start ettercap and choose my interface as wlan0 it gives me an error, like this one ERROR:...
0
votes
0answers
14 views

Gentoo on Samsung 850 evo

I want to use my Samsung 850 evo for Gentoo linux. I have read some posts about problems of evo 850 on linux, but they were about 2 years ago. Are there any problems with this SSD on linux, now? I ...
0
votes
0answers
1 view

Is there a OS-wide sound normalisation software compatible with Linux mint 18?

Well VLC have sound normalisation and that's cool but I like to have an OS-wide implementation of it, it is mostly for web browser videos but still... Or is there sound normalisation add-on for ...
-1
votes
0answers
9 views

Problem with Mint 18 and VMwareTools

just installed Mint 18 as a virtual machine using vmware12, the problem is i can't install vmware-tools, at first i tried to install open-vm-tools as it's recommended by Mint, but it didn't work, so i ...
0
votes
1answer
17 views

Functions in ~/.bash_profile not found in an interactive shell

I thought that whatever lies in .bash_profile(or .profile) which is sourced in a login-shell, is available in an interactive shell. My goal is to have available a list of functions, either in a login ...
0
votes
0answers
6 views

Album Shaper replacement suggestions [migrated]

When I shoot photos they are usually not in order. Back in the days I used Album Shaper to arrange photos (drag and drop) in a correct sequence, then export those photos to a new directory. Album ...
5
votes
2answers
58 views

How to set an alias across all tty shells?

I set an alias in shell tt2 but it won't work in other tty shells, any idea how to make a system wide alias ?
1
vote
1answer
7 views

Missing active graphics card indicator

Situation: I have upgraded two Nvidia Optimus laptops from Linux Mint 17.3 to version 18. Problem: After upgrade, and a fix for Nvidia drivers, I miss the applet in system tray indicating, which ...
2
votes
3answers
71 views

How complex can a program be written in pure bash? [on hold]

So after a very quick research, it seems bash/shell (whatever it is called) is a Turing-complete language : https://en.wikibooks.org/wiki/Bash_Shell_Scripting#What_is_Bash.3F I wonder, why is the ...

15 30 50 per page