2
votes
1answer
21 views

Running a constructed command from bash script

I constructed a command like this in a bash script a="my_cmd"; a="$a --verbose"; echo $a; $a; It works and executes my command correctly. But when I add an environment variable to the mix it ...
0
votes
1answer
52 views

setting up a relay port for postfix smtp on CentOS 7

A CentOS 7 server has postfix, dovecot, and mailx installed. I am able to make an IMAP connection to the server from my remote Thunderbird client running on my local devbox. But I am not able to ...
0
votes
1answer
23 views

how to get list of all processes accessing a shared library [duplicate]

I know that ldd utility can list all libraries linked to a process but I want it the other way around. I want all processes linked to a library. I want to replace a shared library without crashing the ...
0
votes
0answers
12 views

Sign a soap message from a JKS dynamically using Python Unix

I am currently calling a webservice using Curl command from unix . I have a requirement that I have to dynamically message sign the soap request every time I make a call to the webservice using my ...
1
vote
0answers
16 views

chromium (chrome) not loading home page automatically

when I start Chromium browser, it loads www.google.com as my "Home Page". This is configured in: Settings On Startup [*] Open a specific page or set of pages However, when I open another ...
0
votes
0answers
14 views

How do I start dnsmasq?

I have installed dnsmasq but I can't start it: $ dnsmasq dnsmasq: failed to create listening socket for 10.0.1.57: Permission denied $ sudo dnsmasq dnsmasq: failed to create listening socket for ...
2
votes
2answers
19 views

Network drives in the cloud?

Is there such a service that allows Linux servers to access remote cloud storage as if it were a file on a local network? I'm running a very small server, 512 MB RAM and 20 GB hard drive space, but do ...
1
vote
1answer
49 views

Why do iptables drop / log even if the appropriate packet should be accepted?

I'm setting up a server running Debian Jessie with some applications like iptables firewall, fail2ban, openvpn, apache, ... The iptables firewall is configured in the way, that it logs every packet ...
1
vote
0answers
11 views

network.service - after executing “telinit” network interfaces doesn't start

When I start RHEL 7 everything is fine, my network functions, I can ping other PC's etc: [root@localhost]# service network status Configured devices: lo eno1 enp2s0f0Team enp2s0f1Team team0 team0.300 ...
1
vote
1answer
32 views

Puppet-enterprise-install fails basename: missing operand

I just downloaded the puppet enterprise installer for my OS version from the puppetlabs website and the installer seems to fail immediately. Couldn't find anything online so I would appreciate any ...
0
votes
0answers
11 views

use php variables for awk regex commands [duplicate]

trying to implement autosuggest using php. autosuggest list generated using awk $input= $_GET["term"]; $suggest=array(); exec('awk \'BEGIN{FS=","}/.$input./{print $2,"-cost-",$1}\' ...
0
votes
0answers
12 views

Do I need systemd-logind service on server?

I'm setting up debian 8 lxc container on debian 8. And I see a lot of: [FAILED] Failed to start Login Service. See 'systemctl status systemd-logind.service' for details. when the container starts. ...
1
vote
0answers
27 views

How does the Linux kernel initialize console graphics?

Observation: I switch on a Linux box Boot loader displays its output on screen Boot starts with first output messages Screen goes blank, and never comes back on. Note: this is about the console, ...
0
votes
0answers
8 views

Xen ERROR Couldn't find xen kernel for Ubuntu tree

xen-4.2 running on server with multiple CentOS running guest, But when i am trying to install Ubuntu i got following error. How do i install Ubuntu on CentOS Xen Server? [root@example ~]# ...
0
votes
0answers
15 views

Disabling sslv3 on samba4

How can I disable sslv3 on samba4 ldaps and just have tlsv1 enabled? I have not been able to find any documentation or guides on disabling this feature. This is in regards to the poodle ...
0
votes
0answers
13 views

can't launch applet as root: “could not grab your mouse”

I'm programming a cinnamon applet..It requires root access.. so I've managed to launch gksu when the user click on the applet.. but I get "could not grab your mouse" error I've googled this problem ...
1
vote
3answers
69 views

Calibre don't convert from epub to mobi

Calibre did not convert my Epub Books to Mobi. It aborts with this Error: TypeError: QPixmap(): argument 1 has unexpected type 'ImageView' This is the full Error Message: calibre 2.20 isfrozen: ...
-2
votes
1answer
22 views

uninstall nginx and back to apache [on hold]

After trying to view my website by entering my hostname in my web browser, I saw this message: Welcome to Nginx I am not familiar with nginx and I am unsure as to how it was installed on my ...
4
votes
3answers
477 views

Why does the specific sequence of options matter for tar command?

I was trying out tar command to make archive with .tar extension. please have a look at the following series of commands I tried: $ ls abc.jpg hello.jpg xjf.jpg $ tar -cfv test.tar *.jpg tar: ...
0
votes
1answer
30 views

xpdf configure WARNING - Couldn't find Motif / X

My environment is mint17 3.13.0-24-generic x86_64 I try to compile xpdf from source code: sudo apt-get install libfreetype6-dev libmotif-dev wget ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.04.tar.gz ...
1
vote
1answer
12 views

Recognizing GPT partition table created with different logical sector size

I have a 3TB drive which I have partitioned using GPT: $ sudo sgdisk -p /dev/sdg Disk /dev/sdg: 5860533168 sectors, 2.7 TiB Logical sector size: 512 bytes Disk identifier (GUID): ...
2
votes
3answers
89 views

Find the number FN with awk

I have one document, and this document has several columns, like this: ,Flag2,,Flag4,Flag5,,,,,Flag10,Flag11,Flag12,Flag13 If I use awk to know the total number of fields, knowing the separator ...
4
votes
6answers
277 views

How do I grep recursively through .gz files?

I am using a script to regularly download my gmail messages that compresses the raw .eml into .gz files. The script creates a folder for each day, and then compresses every message into its own file. ...
2
votes
1answer
38 views

Invoke subshell command with loaded rcfile

I have some Python code that does: (this is a simplified version) shell = os.environ['SHELL'] os.environ['PATH'] = ... # some new PATH value if call(shell, '-c', ...
1
vote
1answer
13 views

How can I plot disk io per process over time

I would like to analyze and visualize the disk through put of certain processes over time to see how much data is written to disk and to see at which times a process does not utilize the whole disk ...
1
vote
0answers
13 views

Replay pcap on local machine only

RHEL 6.5. I have a capture of UDP packets, generated this way: tcpdump -nnXs 0 -i eth1 udp port 26477 and dst 233.86.230.111 -w ITCH.pcap I've moved this file over to a dev VM, and want to replay ...
2
votes
2answers
45 views

How do daemons like apache or bind open ports below 1024?

I know that ports below 1024 are protected and can't be opened by a user without sufficient permission. However, I'm wondering how daemons such as bind or apache can do so, though they aren't running ...
6
votes
3answers
193 views

Sed alternative for search and replace on very long lines

I have files that were generated by a program that did not put newlines at the end of records. I want to put newlines between the records, and I can do so with a simple sed script: sed -e ...
1
vote
0answers
54 views

Source code of the patches for Shellshock

I have a project for my grad level OS class, and I have decided to choose the Shellshock vulnerability bugs as my topic. There is a lot of great information out there, but I was curious if it is ...
0
votes
2answers
26 views

provide password for script begin called inside another script [duplicate]

I have written a shell script which in turn calls another script, but the second one prompts for password. I want to supply the password and pass the prompt without user begin notified. Here is my ...
0
votes
3answers
30 views

Renaming multiple Files, Bash Script, preferably with an Addition

Hello you wonderful people, I have a little problem creating a Bash Script. I have 7000 image files (dicoms). These files belong together and should be in order in ONE directory. However, the program ...
0
votes
0answers
15 views

Xrandr debian black screen when changing resolution

Impossible to change the resolution on wheezy to 1920x1080 I'm stuck and I'd down a bit as 1360x768. At the beginning in nvidia-settings i only had the choice to 1920x1080, after adding: Option ...
1
vote
3answers
49 views

Do I have multiple python on my computer? and how to uninstall one of them?

I encountered the problem that pip install - U numpy did not update the numpy version in python, which is similar to ...
0
votes
0answers
10 views

Add custom resolution

I want to add a customer resultion to my Fedora 21. The problem is that my Dell has a QHD display and I cannot select my favourtie solution of 1920x1080. That is why I tried to add a custom one: ...
0
votes
1answer
14 views

Error while making movie from png's with avconv or ffmpeg

I want to create a movie from a bunch of png's by using the command: avconv -i pics/*.png out.mp4 or ffmpeg -r 1/1 -start_number 1 -i pics/*.png -c:v libx264 -r 30 -pix_fmt yuv420p out.mp4 ...
0
votes
1answer
22 views

ssh-copy-id different port

i am trying execute ssh-copy-id in one port different than 22 (default). I researched and found the command below $ssh-copy-id -i ~/.ssh/id_rsa.pub "user@192.168.0.1 -p 22001" but, when execute the ...
0
votes
0answers
10 views

changing partition on dual boot (Mint + OSX)

I have a MacBook Air where I have setup a dual boot partition between Mac OSX and Linux Mint. I originally did this as a way to get my feet wet with Linux Mint. I am now loving using Linux and only ...
2
votes
1answer
29 views

How to disable mouse support in terminal?

I'm asking this question while using xfce4-terminal, but I'm interested in a general solution: is there a way to stop a terminal emulator announcing mouse support in consoles? I need mouse-select and ...
0
votes
1answer
19 views

Unable to extract to specific directory

I am trying to extract to file to specific directory but it doesn't produce result Operating system : SunOS Command: zcat /export/home/tceng/Desktop/temp/3.tar.Z | tar -xf - -C ...
2
votes
1answer
30 views

Windowless xterm? (Faking a terminal for a process)

I'm fighting with a rather odd problem with Matlab. The startup script is located in /opt/matlab_2013b/bin and is called matlab. When I run it in terminal, it works fine. But I want to make a ...
0
votes
3answers
52 views

How to use password in shell scripting

I am writing a script which greps for for multiple files from 3 log files. One of the log file is created as superuser and every time it executes it prompts for password. How do I put it the same ...
9
votes
6answers
2k views

Is it possible to reverse a command in the bash shell?

I was wondering if there is a (simple) possibility to redo/reverse a command that was executed in the bash shell? (to make it undone) Is there something similar to the ctrl+z combination to redo any ...
1
vote
3answers
41 views

What is the preferred way of using low port numbers in linux?

Long story short: I want Glassfish to listen to port 80 so that you don't have to specify port when typing in the url, but linux doesn't permit using low port numbers without root and running ...
0
votes
1answer
30 views

Restore sudo privileges

Trying to install tor-browser, I screwed up my sudo privileges when I tried to take ownership of a directory. Now I get a message: sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit ...
1
vote
1answer
11 views

Tmux stops responding to key bindings after xclip usage

I use Tmux version 1.9. To push tmux's clipboard to my X clipboard I have such a string in tmux.conf: bind C-c run "tmux save-buffer - | xclip -i -sel clipboard" The problem is that after pressing ...
1
vote
0answers
6 views

ufw firewall - how to only “allow” when I am going through a proxy

I am using a proxy to navigate on internet, and I am trying to setup a firewall that will only let me connect to internet via this proxy: if I forgot to turn on the proxy, that I should not be able ...
0
votes
1answer
12 views

How to modify recipient when bouncing email in Mutt?

I would like to send several times the same email to different recipients. I cannot put all recipients in CC or BCC because 1. one recipient should not see emails of the others (so not CC) and 2. I ...
3
votes
3answers
424 views

Why do we have to pass the file name twice in exec functions?

I read Advanced Programming in the UNIX Environment by Stevens, 8th chapter. I read and understand all the six of exec functions. One thing I notice is, in all the exec functions: first argument is ...
1
vote
0answers
32 views

delete non important characters from command output

the version command in my Linux machines display the following output version Red.Hat.OS. release..........5.5 APP.Release.............4.2.0.0-02 how to remove the middle "." dot character ...
2
votes
2answers
29 views

How do I insert new columns into a .csv file?

Example Data: "Monday","12345","Friday" In the above file, I want to add a new column in between 12345 and Friday. How can I do that ?

15 30 50 per page