0
votes
0answers
2 views

Save SSH key passphrase using keychain with --noask option

I want to use keychain to manage passprase prompt for SSH keys, but it should 1) ask it only when I'm actually using key and 2) save it for some period of time after that. Currently I've 2 options: $...
0
votes
2answers
11 views

Blocking only a certain subpage of a website

Is it possible to blocking only a certain subpage of a website instead of all domain by modifying /etc/hosts file? For example I want to block http://example.com/whatever.html instead of all domain ...
1
vote
0answers
9 views

Linux Mint install (in dual boot mode) doesn't boot in Windows 10 anymore

I just installed Linux Mint 18 on a laptop that previously had Windows 10 booting in UEFI mode. The laptop is a Lenovo g40-80. Before, with Mint 17.3, I couldn't install Mint (it would install but ...
1
vote
0answers
15 views

Can not connect to the host itself

Well, the problem is simple. I have the site based on apache and trying to execute cron job at this site from the same server. Let's say my site http://example.com and cronjob is /usr/bin/curl http:/...
0
votes
0answers
8 views

Can’t see files on an USB stick attached to a Raspberry PI 2

I have formated an USB stick from my Raspberry in VFAT and use it with Syncthing which works fine (dropping files from Windows 10, store them on the stick and access them on an Android Tablet). But ...
1
vote
2answers
51 views

Renaming from terminal

I want the following files to be renamed removing the sequence numbers. 01 X.mp3 to X.mp3 02 Add Me In.mp3 to Add Me In.mp3 I am trying with the below rename command. rename -v -n 's/^\d+\s*([a-z]+...
3
votes
1answer
21 views

Screen brightness from the command line

I'm trying to set custom screen bindings in i3WM and looking for a way to decrease/increase the brightness on button press. I've tried using the following: xbacklight -dec10 xbacklight -set 70 ...
0
votes
2answers
27 views

Find the default application using xdg-open

Given xdg-open and an extension, is there a way to get the application which xdg-open is set to for that particular extension? For example given xdg-open and .jpg the result is eog.
0
votes
0answers
6 views

mount external drive on Open solaris

When I try to mount a Lacie Minimus hdd on Open Solaris, I get the error "mount point not determined". I have tried several variations for mounting and all fail. Any suggestions?
0
votes
0answers
20 views

grub rescue no such partition

Single HDD, one partition with Win10, second with Debian (installed with dedicated /boot, main and swap) and a large shared NTFS partition. Windows required refresh, so I booted into the Windows ...
0
votes
0answers
9 views

Force authentication to use sssd not nslcd

my os is: CentOS 7 What I did was: vim /etc/sysconfig/authconfig USESSSDAUTH=yes USESSSD=yes FORCELEGACY=no Then: authconfig --enablesssd --enablesssdauth --...
0
votes
1answer
14 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
2answers
27 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
15 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
2answers
31 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. So installed debian-7 32 bit. I latter upgraded the kernel to pae, and then to 64bit. It is now a 64bit kernel, and ...
0
votes
2answers
29 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
6 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
20 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 — ...
1
vote
1answer
18 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. Model: NVMe Samsung MZVLV256 45 gigabytes unallocated space. Intel ChipSet Sata Raid Here is the issue I have ...
0
votes
1answer
13 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
21 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 ...
1
vote
1answer
30 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
6 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
2answers
33 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
13 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
24 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
29 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
13 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
29 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
24 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
40 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
14 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
20 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
14 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
33 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
36 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
53 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
21 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
115 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
20 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
1answer
16 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
12 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
453 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
17 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
36 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
12 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
25 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
36 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
23 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
12 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 ...

15 30 50 per page