0
votes
1answer
6 views

-bash: iwconfig: command not found

I am using this tutorial to try to set up wireless on a new CentOS 7 installation that is not connected to the internet. However, when I type iwconfig into the terminal, it replies with -bash: ...
1
vote
0answers
7 views

LVM partition not mounting

There was a drive failure on a disk in a RAID1 configuration. I removed the bad disk and reconfigured the RAID1 to only use the good disk. When I reboot the machine there are missing LVM partitions. ...
1
vote
0answers
6 views

Use netconsole to debug with kernel crash

Recently I use netconsole to debug with kernel crash. However the log prints too fast, it seems that netconsole cannot transfer all the log in real-time, since ehternet allows maximum payload of each ...
0
votes
2answers
12 views

What is different between Mint Linux and Ubuntu other than the interfaces?

I was wondering what is the difference between mint linux and ubuntu in regards to something other than the interface. When I look this up on google everything seems to be about Unity vs Cinnamon. ...
1
vote
1answer
9 views

Mint - Can't login “your home directory…” error

I've recently installed Mint Linux, and when I try to login in the GUI it gives the following error message your home directory is listed as /home/username but does not appear to exist Then ...
1
vote
0answers
16 views

Get only files modified within last 30 minutes using sftp get

Within a .sh script, I'm using expect to automatically sftp to another computer in order to get files. My script will be set to run every 30 minutes, at which point I want to get only files that were ...
0
votes
1answer
25 views

Which Desktop Environment do I have?

I have been given a computer with Arch linux (I am used to Ubuntu). I want to know which desktop environment is installed (if any). I cannot tell based on the firefox window I am looking at. My ...
0
votes
0answers
4 views

“mount error(126): Required key not available” with CIFS & Kerberos

I set up a Kerberos client on a CentOS 6 machine and am getting Required key not available when attempting to mount using Kerberos security mode under CIFS. I added a keytab using: ...
0
votes
0answers
10 views

Error in findmnt

I'm writing a backup script prompting the user to insert (mount) a given backup USB stick if it is not mounted. For this I use findmnt --source UUID="my uuid" --poll=mount --first-only. It works fine ...
0
votes
0answers
25 views

unix file split resultant files suffix should start with 1 instead of zero

I want split a file based on record count but the resultant split file name suffix should start with "1" instead of "0". Is there a simple way I can achieve this?
2
votes
0answers
11 views

Error on DSL Connection

I tried to DSL connection on my laptop. I use Debian mint. I used username and password too. But when I click on the icon it shows "Unable to connect DSL with error "(1) Creating object for path ...
3
votes
0answers
19 views

Why can't a UID 0 process hardlink to SUID files in a user namespace?

Consider the following transcript of a user-namespaced shell running with root privileges (UID 0 within the namespace, unprivileged outside): # cat /proc/$$/status | grep CapEff CapEff: ...
0
votes
0answers
6 views

SSL/Secure MySQL access with Postfix/Dovecot Mail Server

I have two MySQL servers setup, one in each data center in the US. The east coast db is the master and replicates to the west coast slave db over SSL. When I try to connect my mail server to the ...
0
votes
0answers
23 views

Wanted: nonassociative array in AWK

I am looking at speeding up some code in AWK by serially processing an internal string representation instead of serially processing an array representation. (For Examples 1 and 2 below assume ...
0
votes
2answers
20 views

Open new graphic terminal via ssh

I would like to log in from machine A to machine B -- and regardless or whether anyone is logged in on B* open a new graphical terminal on :1**. To further clarify: This is a lab situation with one ...
1
vote
1answer
6 views

Force enigmail to sign with a specific subkey

I have a GPG key with multiple signing subkeys and I want to force enigmail to sign email with a specified subkey. GPG can be forced to sign with a specific subkey by appending the characted "!" after ...
1
vote
2answers
24 views

ext4 reported as clean by fsck after hard reset: Is that normal?

My root-partition is formatted as ext4-filesystem. I notice that, whenever my machine crashes and I have to hard-reset it, when booting up again and the root filesystem is checked this step takes a ...
-2
votes
0answers
15 views

ghost vulnerability exploit code [PoC]

I was reading about ghost vulnerability and trying to find exploit example code which i can run and check what happen and how dangerous it is, but i didn't find any sample C code which i can run and ...
0
votes
0answers
14 views

connect two networks though common computer using route table

i have two computers. computer A network devices: dev address ------------- wlan0 192.168.1.2 eth0 10.42.0.1 computer A routing table: Destination Gateway Genmask Flags ...
-1
votes
0answers
6 views

Ubuntu 14.4.3 wont install getting ACPI error message unable to load system description tables [on hold]

I am trying to install ubuntu onto my laptop. I just purchased the laptop on MON and does have an Intel Core i3-5015U Processor 2.1GHz(5th gen) As soon as I put my bootable media I can see it loading, ...
1
vote
2answers
27 views

Parse XML file to copy the content into another file at a particular spot in the file?

I have an xml file (client_23.xml) in which I need to add few lines at a particular section basis on what is there in other xml file (abc_lop.xml). Here is my abc_lop.xml file in which you see I have ...
-1
votes
0answers
17 views

Upgrading Firefox on Debian [on hold]

I'm currently new to Linux and Open Source in general. My current role has me using an instance of Debian on a linode server, working with Selenium and Python to create front-end tests. I've found ...
0
votes
0answers
21 views

GRUB> unknown filesystem…

unknown filesystem grub> set boot=(hd0,msdos6) Prefix ... insmod normal doesn't work = unknown filesystem normal doesn't work = unknown command sudo doesn't work = unknown command I had ...
1
vote
2answers
39 views

Two hard linked files share inode

I'm working on an assignment for my college course, and one of the questions asks for the command used to create a hard link from one file to another so that they point to the same inode. We were ...
0
votes
2answers
28 views

variable inside a variable in a loop

I have a question regarding how a variable can be called with another variable name inside a loop. The following script does not work. #!/bin/bash # Comparing test1.txt with test2.txt, test1.ini with ...
4
votes
1answer
80 views

Why does bash link to ncurses?

I think I've noticed this before but never thought about it much; now I'm curious. > ldd /bin/bash linux-vdso.so.1 => (0x00007fff2f781000) libtinfo.so.5 => ...
1
vote
0answers
7 views

Use-spare-network-capacity wrapper (network nice)

I would like to use my 100/100 Mbps connection for Tor. I want to give it all my spare capacity, but I do not want to have my connection slowed down by Tor the 1% of the time when I actually need the ...
1
vote
1answer
7 views

Routing traffic to network printer via a specific interface

I have a Linux machine with eth0 for my router-modem and I want to add a second interface eth1 to connect to my Apple LaserWriter printer. Everything is on 192.168.1.x: My address IP is ...
0
votes
0answers
6 views

Can't boot in Ubuntu (Dual boot with Windows 10)

I've had Ubuntu on my computer about 2 years ago and I have installed it as a second OS with Windows 8. After upgrading to Win 8.1 the boot menu has disappeared though all the allocated disk space is ...
1
vote
1answer
49 views

Script to run at shutdown

I'm trying to create the equivalent to rc.local that runs last during startup, but to run first during shutdown. I basically copy/pasted /etc/init.d/rc.local as the base template, and updated the ...
0
votes
0answers
33 views

Sometimes some values are not getting in output of command in shell script

Here's the simple code ss -ip | grep "tcp\|rtt" | grep -v "ipproto" | while read line1; do read line2 echo $line2 | grep "rtt" done When i ran the above code, sometimes I'm not getting some output. ...
1
vote
1answer
5 views

How to disable touch scroll sound on Microsoft Arc Touch mouse in Linux?

The touch-to-scroll area on Microsoft Arc Touch Mouse makes an artificial scroll-wheel sound by default, which I find annoying. Disabling it seems problematic for Linux users as it requires ...
1
vote
0answers
5 views

cluster-ssh: specify terminal font

In my cssh config file, I have: terminal_font=6x13 this default font is too small for me. man cssh says, I can specify other font size with the -f argument, while using "standard X font ...
2
votes
0answers
41 views

Could not resolve host: mirrorlist.centos.org

I did a fresh install of CentOS 7 on an Acer Inspire T. It is a terminal-only installation (no GUI). I connected the CentOS 7 box to a cable modem via an ethernet cable, and the cable modem is ...
1
vote
3answers
27 views

parse credentials from PHP configuration file

I'd like to write bash script to parse data from a configuration file. I searched for this but without finding something I could modify to suit my needs. Joomla! config file: public $access = ...
0
votes
3answers
55 views

Differences between /home, /root and /usr

I've found out this topic : What is the difference between /opt and /usr/local? And this link : http://www.pathname.com/fhs/pub/fhs-2.3.html To help me understand the usages between /home, /root, ...
0
votes
1answer
5 views

How do I download log4j on ec2 instance?

The link to download log4j is here. However I have logged into the my EC2 instance. Whats the command line to download this log4j ?
4
votes
1answer
32 views

bash shellcheck issue with variables in brace expansion

I'm trying to create an array of file names, based on two variable and using brace expansion, like this: #!/bin/bash altdir=/usr arg=abc tries=({.,$altdir}/{$arg,$arg/main}.{tex,ltx,drv,dtx}) for i ...
5
votes
2answers
70 views

Send the password through stdin in `ssh-copy-id`

I need to automate some identity deployments, ideally using ssh-copy-id. I'm trying to provide the password through stdin, which is possible on ssh by using the -S flag. I'm aware that I can send ...
3
votes
1answer
43 views

How to append data to buffer in shell script?

I'd like to do following using shell script: (for simplicity, I use same data for INPUT. In real case, the data changes with loop label jj) #!/bin/sh for jj in seq 100; do cat INPUT.file >> ...
3
votes
4answers
124 views

Delete several lines from a file using grep

I have a file with multiple lines which looks like that : brand,model,inches,price dell xps 13 9000 macbook pro 13 13000 asus zenbook 13 10500 I want to ...
1
vote
0answers
10 views

Trouble linking to gtk/gtk.h even though it's installed

I am trying to build CEF (chromiumembedded) on debian jessie ########## Linking CXX static library libcef_dll_wrapper.a [ 81%] Built target libcef_dll_wrapper [ 81%] Building CXX object ...
0
votes
2answers
21 views

Resolution too high

I have kali linux running on my Macbook Pro 13" Running cmd xrandr returns screen 0: minimum 2560 x 1600, current 2560 x 1600, maximum 2560 x 1600 ... How can I get a different Resolution? 2560 x ...
2
votes
1answer
13 views

Merge content of one file into another file by replace a function

I am working on a shell script which is getting data from another program and I am using that variable value to read the content from file keep appending to different files after some modification to ...
1
vote
0answers
7 views

UDEV-rule:Open new gnome-terminal window on usb-plugin AND activate it for stdin/stdout/stderr?

My attempt is this: If a certain USB-device is plugged in, I want to open a gnome-terminal window in my desktop-environment. This newly opened window must be able to be interactive, this means, the ...
3
votes
0answers
43 views

Bash: redirect command completion [duplicate]

When you have written in the shell $ somecmd and double tab, you get all the suggestions that apply for that command. How can you redirect this output? I am aware of compgen, it seems to be able to ...
1
vote
2answers
28 views

Cut every 100th column from csv

I have a data file of numbers seperated by tabs, like this 1 2 3 4 2 4 6 8 My real file is 50000 columns wide and I only need every 100th column (column 100, 200, 300, 400, ...). Now I would like ...
0
votes
0answers
1 view

full hard drive need to move files centos

I need to download a directory from one server and place it into it's successor. The trouble is, the server is 97% full. So taring the files isn't an option. I need a method to transfer about 60 gigs ...
4
votes
1answer
20 views

How to list all targets in make?

Let's say you have a project structure with lots of Makefiles and there is a top level Makefile that includes all the other. How can you list all the possible targets? I know writing make and ...
-1
votes
1answer
29 views

How to get last quarter in Bash Script

I have a script that gets the proper quarter but I need to get the (quarter - 1) quarter=$(($(($((10#$(date -d $year$month$day +%m))) - 1)) / 3 + 1)) Currently this returns 3, I need it to return ...

15 30 50 per page