0
votes
0answers
2 views

How do I find where the Java Development Kit is installed?

I installed the JDK on Scientific Linux 7. How can I find the location of the JDK where it was installed?
0
votes
1answer
7 views

How to grep man pages for a word?

Recently I wanted to get info of struct timespec a field of lstat structure, but I couldn't get any. I tried $ man timespec $ man -k timespec timespec: nothing appropriate. After some time I went ...
0
votes
0answers
5 views

Preserve colours when piping to tee

I have made a little program where I update homebrew with brew update, then I send the output to a log file, but I also want to keep it on the terminal so I use tee. The problem is, it doesn't show ...
0
votes
0answers
5 views

Debian 8 UEFI support

i am trying to install Debian Jessie in my new laptop. I downloaded the amd64 Live CD, but the UEFI doesn't recognize my Debian DVD ROM. I disabled the secure UEFI option, but didn't work. I ...
0
votes
0answers
4 views

How to create a module on a CentOS cluster

I would like to create a module on a CentOS 6 cluster (e.g. module load gcc-4.7.2). Are there any good tutorials illustrating this or could someone provide a "Hello World" type tutorial? I have ...
0
votes
1answer
21 views

Pushing to a Git repo from shell script

I'm trying to commit/push changes to a remote Git server with the below sample code: #!/bin/sh USER='username' REPO='/home/'${USER}'/Sites/git/bitbucket/kb' COMMIT_TIMESTAMP=`date +'%Y-%m-%d ...
0
votes
0answers
12 views

replacing windows 8.1 with CentOS 7

A new computer came pre-installed with Windows 8.1. It is an Acer Aspire T desktop. I would like to completely erase windows 8.1 forever from the machine, and replace it with CentOS 7. How can I ...
-1
votes
0answers
11 views

How do I override a FILES rule?

There is a directive that denies access to all index.html (file name used for example only). <files index.html> errordocument 403 http://mydomains.com/no-access.html order deny,allow deny from ...
0
votes
0answers
21 views

Deleted home directory files, how to change bash prompt

I was playing around on Scientific Linux 7 and deleted all the files from my home directory. Now the bash prompt is bash-4.2$. How can I change the prompt and save it. I edited the /etc/bashrc but ...
0
votes
0answers
21 views

shell script in doing operation for 2 folder tree

I have a directory looks like: dhcp-18-189-47-44:CE-06-new-stuctures_backup wenxuanhuang$ ls DFT-00001 DFT-00004 DFT-00007 DFT-00010 DFT-00013 DFT-00016 DFT-00019 DFT-00022 DFT-00025 DFT-00028 ...
0
votes
1answer
24 views

Using Sed to put a string at the end of a line

I am trying to place a specific sting at the end of a line using sed. In my file, 64 position is where I am trying to put the string. I've used echo since I've struggle in how to insert a data value ...
0
votes
1answer
4 views

How to integrate daemon scripts with sensu?

I have some daemon scripts that run in an infinite loop that do some action if a detected node has failed. For example; in AWS to move an Elastic IP. How can I integrate this script that runs in an ...
0
votes
0answers
6 views

Linux macvlan add MAC to VLAN

Is there any way Linux behave as a switch Layer 2? I have the idea of making the MAC will automatically be ditched a client to a particular VLAN. Likewise the switches are working. Examples. ...
0
votes
3answers
28 views

Read cells in csv file

I have this table of numbers saved in csv file format as follow: 5, 6, 9, 5, 2, 8, 1, 1, 1, 2, 3, 6, . . . . . . . . . . . . . . . . . . . . Every row in this table describe a ...
0
votes
0answers
5 views

Enabling FIPS on a luks encrypted CentOS system breaks boot password

For one of my apps I need to enable FIPS for OpenSSL, while simultaneously using software disk encryption. VM #1 I launched a CentOS VM instance which was software encrypted during install. The ...
0
votes
0answers
36 views

How to read/interpret a hexdump file?

I have a file which has an extention of .tax2014, it's a turbo tax file. When I go to open it in a text editor like sublime text I see a hexideciaml dump of data. Example: 9540 4525 6051 095c 5402 ...
0
votes
0answers
7 views

Color profile change seems to have no effect

I'm using a machine with both, Windows (10) and Linux Mint + Unity installed. Colors on Linux look quite strange and poorly calibrated, but everything looks fine on Windows. I was assuming that my ...
0
votes
3answers
26 views

Backing up files

I would like to backup all files older than 90 days and greater plus gzip them. I could execute: find /path/to/files -type f -mtime 90 -exec gzip "{}" \; Problem with this command is it includes ...
1
vote
1answer
12 views

Prevent “Screen” session weird characters

Logged into a screen session, when I press Backspace, Del, Down, Left, or Right while there is nothing for those keys to do, then a weird character appears that does not affect the input. The ...
0
votes
1answer
13 views

Cached Memory but swap is being used

I've got a VM with 16gb of memory and recently it's been using some of the swap space. At first I thought this was because it was using all the memory but then I read some articles about the Cached ...
0
votes
1answer
22 views

ssh/mosh to a remote interactive shell and run specific function

I have the following alias on my local machine: alias gom='mosh -- user@host "/path/to/specific/zsh"' I use it to connect to a remote machine with an interactive shell. I would like to modify this ...
0
votes
1answer
19 views

extract subfolders outside and rename if necessary

I have a directory looks like: dhcp-18-189-47-44:CE-06-new-stuctures_backup wenxuanhuang$ ls DFT-00001 DFT-00004 DFT-00007 DFT-00010 DFT-00013 DFT-00016 DFT-00019 DFT-00022 DFT-00025 DFT-00028 ...
2
votes
1answer
20 views

SSH: Provide additional “pipe” fds in addition to stdin, stdout, stderr

When connecting to a host with SSH, usually three "pipes" are provided between host and guest, for stdin, stdout, and stderr. Is there a command-line option to create forwards for additional file ...
0
votes
0answers
8 views

rmmod/modprobe -r of nmi_watchdog but the module/device is still working

I have a theory that the mni_watchdog device is still operating on a system despite the given module being removed with modprobe -r. Is it possible, and under what conditions, that a module would ...
0
votes
3answers
24 views

How to make a symlink from /A to /B, from running in /C

If I'm currently in location C, can you make a symlink from /A to /B, from running in /C? Seems like I need to be in the dir I am creating the ln -s
0
votes
1answer
16 views

How to connect from one VM Guest instance to another to another VM Guest instance

I have Windows 7 as my Host OS and I have a VM guest instance of CentOs 6, now I have created a more Instance guest Centos 6 via Vagrant. All are working fine and I am able to do a ssh/ping from ...
1
vote
0answers
15 views

Giving a user access to the webcam

I have a user that I use to run untrusted programs (more specifically, Skype). I would like to give that user access to the webcam. I am using Debian, where the standard way to do this is to put ...
0
votes
0answers
22 views

ctrl+c followed by up arrow to edit previous command line results in corrupted text in gnome-terminal

When I'm running a program I am used to killing it with ctrl-c, then pressing the up arrow in order to recover a previous command line, and then editing the text and running again. In Ubuntu 14.04 ...
0
votes
1answer
35 views

Can't redirect cut output

When I try to redirect the output of cut it always seems to be empty. If don't redirect it, the output shows in terminal as expected. This is true for OS X 10.10 and Linux 4.1.6. This works: ...
0
votes
0answers
9 views

Debian Sid / GCC5 transition : is running apt-get upgrade safe ?

I know apt-get dist-upgrade is expected to break things during the GCC5 transition, but is apt-get upgrade safe to execute ?
0
votes
1answer
9 views

Ccache hits only once during kernel build

I installed and set up ccache and built the kernel with it. Here are the stats: cache directory /home/marcin/.ccache cache hit (direct) 1 cache hit ...
0
votes
1answer
17 views

Installing Octave Dependencies on CentOS 6 using yum

I am trying to install Octave 4.0.0 (from source) locally in my home directory on a CentOS 6 cluster. This is a rather extensive install (see list of dependencies). I have several issues : From ...
0
votes
0answers
20 views

Disable VGA port via GRUB in Linux

I want to disable VGA port of my hardware by making changes in the GRUB. How can I do this? I am using Red Hat.
0
votes
1answer
20 views

sum over floating points of the form 3.016e-06 using awk

I want to sum over floats of the form: 3.016e-06 The floats are saved in a files called S_3x3.txt S_4x4.txt ... S_8x8.txt My code sums only the first integer. Instead of 3.016e-06 + 4.022e-06 it ...
0
votes
1answer
19 views

logrotate not compressing files as expected

With the logrotate config. below I was expecting the program to start compressing log files after creating the first backup file. Instead I am seeing this: [root@host ~]# ll /var/log total 1.2M ...
0
votes
0answers
13 views

sudo: unable to change to runas uid

I've installed PostgreSQL using MacPorts and it all went fine (see also these instructions). The server is running now. > ps -axf | grep postgres ...
0
votes
1answer
26 views

Folder permissions with cp --parents doesn't allow to copy another file

Scenario: with a script run by a normal user I want to copy several files, and replicate the dir structure. For example: cp --parents /lib/libacl.so /tmp/my_root/ cp --parents /lib/libc.so.6 ...
1
vote
1answer
16 views

Nautilus context menu option to create new file

I use Nautilus 3.10.1 on Trisquel 7.0 GNU/Linux. In context menu, there is no such option like create new file/document. So, I want to add such an option (which may work like that of existing option: ...
2
votes
2answers
49 views

Allow SSH access but restrict root's access to a given set of IPs

I want to allow SSH for all users as normal except that I want to restrict root's access based on a set of IP addresses. So, users peter, paul, lary can login from anywhere, but root may login only ...
0
votes
1answer
11 views

WLAN & Debian based Linux distros: Soft-enable WLan by default

It seems Debian based Linux's have wlan soft-blocked by default. I verify it on my Linux Mint laptop: even if you rfkill unblock all interfaces (in rc.local or in a service...): 2 seconds after boot ...
3
votes
2answers
200 views

How to change all strings in python file from snake_case to camelCase in sed

I've tried some sed patterns like this from commandlinefu sed -r "s/('[a-z]+)_([a-z])([a-z]+)/\1\U\2\L\3/" But somehow it's not working. For one thing they forgot the digits, which I can fix, but ...
0
votes
0answers
22 views

Partition resize in CentOS 7

I have a RAID 6 array set up under CentOS 7 which originally had four 1TB drives assigned, resulting in a total capacity of 2TB. After much fussing about as described here, I was able to add a fifth ...
0
votes
0answers
7 views

How to determine what event is disabling Sticky Keys?

I have an ongoing problem with Kubuntu 14.10, when using the computer I find that Sticky Keys is suddenly disabled. I reenable the feature, but in after some time (measured as three minutes to days) ...
0
votes
0answers
13 views

How to switch between GPUs on Mint 17.2 ASUS laptop?

I'm new at working with laptops and Linux as system for everything. I have small problem, I don't know how to check, and change if somethings is wrong, which gpu is used in games. I have NVIDIA ...
1
vote
0answers
12 views

Where can I find a modern version of the “rock” (or “t”) console typeface?

Back in the Slackware and RedHat-pre-Fedora days, there was a console font called, at times, "rock", or "t". I've searched for this many times, but can't find any reference to it. I thought it would ...
0
votes
0answers
11 views

Maintain 32 and 64 bits version of rpm

let me explain this a little bit, I am in charge of update part of our company product from 32 to 64 bits. At the end, we should have a 64bits kernel + 32bits applications + some 64bits ...
0
votes
0answers
15 views

External monitor script has become unreliable

I have been using the following udev rule and bash script to automatically configure my external monitor for some time now, however recently the script has become unreliable, usually doing the ...
3
votes
0answers
15 views

forward all mysql traffic to a ssh tunnel

I have a local application that needs to connect to a remote mysql server at 40.40.40.40:3306 The main firewall blocks all connections but ssh, I can set up a ssh tunnel and connect to the server ...
0
votes
0answers
8 views

Network Booting : How to boot an RHEL or Linux Machine through network [on hold]

I want to know how to boot a Linux driver through network, what are the pre-requisites needed for me to use network booting. I have the Mac address of Machine.
0
votes
0answers
18 views

How to get the VPN icon in Kali 2.0 (gnome)?

I have trouble getting the VPN status icon into the top bar for Kali 2.0 (gnome). Installation I recently installed latest kali 2.0 (in a VirtualBox from kali-linux-2.0-amd64.iso). I checked the ...

15 30 50 per page