28
votes
2answers
2k views

Why use install rather cp and mkdir?

I've seen in many places used install -d to create directories and install -c to copy a file. Why not use mkdir and cp? Is there an advantage in using install?
6
votes
2answers
875 views

what's the format spec for `ss -D `?

Background of the question: I am trying to sum up the total bandwidth, but ss -i cleverly converted numbers to more readable format like Kbps/s or Mbps/s, which is not accurate. So does ss -o with ...
0
votes
2answers
353 views

Format of SMTP headers for scanning inbox email

I am looking for a simple procedure to extract email from my inbox into a file for further processing, using e.g. awk. With "extract" I mean use e.g. regex to get emails with a particular subject. My ...
0
votes
1answer
89 views

Email Configuration in Cent OS

I have hosted my web application in VPS Cent OS. Its working well, in that application if a vendor registered or any events occurs between users and website, admin needs to send emails regarding the ...
3
votes
1answer
301 views

When update Linux Mint from 15 to 16?

I would like to know if I have to, every time the new release of Linux Mint come out, upgrade my OS? I had Ubuntu someday, and every half a year I burnt a CD and installed everything from the ...
0
votes
2answers
196 views

Opencats installation error

i am trying to install opencats. While installing i am getting following error.. What is the problem?
0
votes
1answer
770 views

bash log in windows and run cmd command using .sh script?

Ip of my Windows machine is 172.16.22.53, and it installed cygwin. I want write a bash script like that: #!/bin/bash sshpass -p 'myPassWord' ssh userNmae@172.16.22.53 #and some command to run cmd ...
2
votes
1answer
6k views

How to change SAMBA default port on centos?

I need to change the port numbers of samba. Our ISP is blocking the ports 445 and 139. So I need to run samba in a different port. Please help me to do that.
1
vote
2answers
182 views

Copying and renaming files to a single directory by a single shell script

I have multiple files with an example of how they look like shown below. -rw-r--r-- 1 my_user users 12 Dec 13 09:56 Example_30_001_20130913175000.DAT -rw-r--r-- 1 my_user ...
2
votes
2answers
225 views

What does an exclamation mark at the beginning of a value in KDE configuration files do?

In ~/.kde/share/config/kdeglobals, the value for the default web browser starts with an exclamation mark. What is the purpose of the exclamation mark? [General] ...
3
votes
1answer
305 views

Libre Coreboot payloads?

If one wishes to build an x86 server or workstation that is as de-blobbed and libre as possible, then the best one can do at this time is to use one of the fully free GNU/Linux distributions ...
9
votes
1answer
21k views

How to Allow Outgoing SMTP on iptables Debian Linux

If I choose to allow all traffic on the OUTPUT chain (iptables -P OUTPUT ACCEPT) mail sends fine. As soon as I lock down my server with these rules, outgoing mail stops working. All else works though, ...
1
vote
1answer
50 views

Reinstall software without re-downloading from software center?

Forgive me if this is an extremely noob question, I am new to Linux. I have installed FlightGear, a flight simulator. Some of the game's main files have been tampered with by a third-party app and ...
0
votes
2answers
439 views

Problem with file permissions in shared directory under /srv between OS X and Ubuntu

I'm setting up some folders where any user in the users group can collaborate on files, on a Ubuntu 12.04 LTS server. It seems that users on my machine have no problems editing each other's files (I ...
1
vote
2answers
1k views

Is a bad NFS mount preventing a clean boot?

I'm on Ubuntu server 11.10 (x86) and I basically ran into this problem as this: http://serverfault.com/questions/56588/unmount-a-nfs-mount-where-the-nfs-server-has-disappeared The umount command ...
4
votes
1answer
565 views

Is there a way to embed a GPG public key in a script without adding it to the keyring?

I have a script that basically needs to do the following: #!/bin/bash GPG_PUBLIC_KEY=<<EOF -----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v1.4.12 (GNU/Linux) ... -----END PGP PUBLIC KEY ...
3
votes
1answer
70 views

Where are all the posibilities of storing a log file

I'm writing a program, and would like it to store a log file. Problem is, the program really shouldn't be ran as root. So if I wanted to uphold to the traditions of where files are placed, where ...
4
votes
2answers
1k views

Does OpenBSD have a limit to the number of file descriptors?

What's the maximum number of file descriptors that a process can get on OpenBSD successfully? For example, there is an openfiles limit in login.conf(5) in OpenBSD. If I want to have as many file ...
2
votes
1answer
1k views

Need help installing NVIDIA graphics driver for Optimus configuration

I have followed the following steps to get Optimus/Bumblebee configuration running on Fedora 20 (fresh basic installation) on my brand new laptop (based on msi barebone MS-16GC). I have listed all ...
1
vote
1answer
817 views

How to forward one port to another (on the same machine)?

A machine (M) is behind a NAT. Port X is forwarded through, and available to the internet. My application wants to connect to port Y. How to I configure M to forward incoming data on port X to port ...
3
votes
2answers
1k views

Reconfiguring GNOME keyring daemon

I have a really strange problem when using GNOME keyring daemon. I had an old SSH key which I've now retired and started using a new, stronger keyfile. However, every time I attempt to SSH into one ...
2
votes
2answers
984 views

How to get rid of “Alarm clock” message in perl timeout?

[user@notebook ~] time perl -e 'alarm shift @ARGV; exec @ARGV' 1 sleep 2 Alarm clock real 0m1.004s user 0m0.004s sys 0m0.000s [user@notebook ~] My question: how can I get rid of that "Alarm ...
1
vote
1answer
427 views

How do you Configure Package Management System (YUM) for MongoDB

On the site (mongodb) it lists ... Create a /etc/yum.repos.d/mongodb.repo file to hold the following configuration information for the MongoDB repository: then... [mongodb] name=MongoDB ...
6
votes
0answers
610 views

Why does `xvfb-run glxgears` fail with an swrast error?

xvfb is supposed to let me run X programs in a headless environment. But when I run xvfb-run glxgears, I get: libGL error: failed to load driver: swrast libGL error: Try again with ...
3
votes
4answers
312 views

How do I remove directories that begin with a dot after my server was infected? [duplicate]

My server had been infected and the attacker spread a bunch of .5randomletters folders around my file system, with malicious code inside of them. I want to search for all the folders that begin with a ...
1
vote
2answers
3k views

getent passwd when nsswitch passwd setting is: files ldap

If /etc/nsswitch.conf has: passwd: files ldap this line in it, and I do getent passwd will it first run down the /etc/passwd list and then go through every user in LDAP? That seems to be ...
37
votes
9answers
7k views

How to find out which file is currently opened in vim?

This may sound trivial but, on more than one occasion, I have found myself having forgotten which file in vim I have open (e.g. when I am looking through different log files and such) and the only way ...
0
votes
2answers
414 views

How do I install swell-foop-3.11.1.tar.gz in Linux Mint Petra?

How do I install swell-foop-3.11.1.tar.gz in Linux Mint Petra? I tried to install it with software manager but the game does not seem to work, so I downloaded swell-foop-3.11.1.tar.gz and extracted ...
2
votes
1answer
957 views

My ~/.Xresources is disabling gtk antialiasing

When booting into my window manage (xmonad), gtk fonts are anti-aliased, but for some reason urxvt has problems with variable names in my ~/.Xdefaults (it fails to parse the variable names as colors ...
8
votes
2answers
4k views

Removing non printable characters from expect logs?

How can I either strip the following character sequences from my files? ^[[64;8H, ^[[?25h, ^[[1;64r etc or avoid having expect add them in the first place? Background: I'm using a collection of ...
2
votes
1answer
428 views

wpa_supplicant: connect to WLAN in the background (during boot)

I am using manual configuration to connect to my WLAN. In my wpa_supplicant.conf, I have something like this: network={ ssid="mywifi" key_management=WPA-EAP ... } and then, in my ...
2
votes
1answer
80 views

Restrict emails to system users in postfix?

I am running postfix, and it seems it is willing to accept emails for system users, such as man, sshd, daemon, www-data, ... Is desirable (probably not)? and what I can do to disable this?
23
votes
3answers
70k views

remove particular characters from a variable using bash

I want to parse a variable (in my case it's development kit version) to make it dot(.) free. If version='2.3.3', desired output is 233. I tried as below, but it requires . to be replaced with another ...
1
vote
3answers
303 views

Free or non-free, what is the question? [closed]

I often read that some distributions contain non-free components while some other are "free". As an end-user, I don't understand very well the difference between free and non-free distributions. ...
4
votes
2answers
579 views

How can I prevent iptables from counting bytes and packets on empty chains?

Background I occasionally have firewall rules that I need to use for maintenance windows, but don't want active (and therefore consuming CPU cycles or slowing the network interface) the rest of the ...
1
vote
3answers
2k views

What are the commands to apply changes made to /etc/ssh/sshd_config?

I have made some changes to /etc/ssh/sshd file and wanted these effects should take place. I know I can run below command for the effects to take place. /etc/init.d/sshd reload But on my box I ...
8
votes
2answers
574 views

How can I create a hard to kill process

I want to create a program that will be difficult to stop (even for the administrator) once it is started (with root privileges). Once started the process should continue to start itself at startup ...
2
votes
4answers
544 views

ssh ncat keeps ncat process running after disconnect; how do I prevent that?

If I run the command $ ssh othermachine ncat localhost 10000 that opens an ssh session to "othermachine" and pipes it into an ncat process. (There's something else listening on "othermachine" port ...
-9
votes
4answers
300 views

How many ways can we install applications in Linux? [closed]

Can anyone explain me in how many ways can we install the applications in Linux os. And which is the better way to install ?
1
vote
2answers
448 views

Does DM-Crypt partition look like random noise?

If I format partition with dm-crypt does its entry in partition table suggest somehow that this partition is encrypted or for someone from outside it looks like regular partition with random noise ...
1
vote
2answers
571 views

How to include directory tree for back-up using cpio?

I am backing up files including directories from 1 partition to other using cpio. cpio works perfect for backing but I am unable to backup directory tree. I am in a partition mounted on the directory ...
6
votes
4answers
5k views

Intersection of two arrays in BASH

I have two arrays like this: A=(vol-175a3b54 vol-382c477b vol-8c027acf vol-93d6fed0 vol-71600106 vol-79f7970e vol-e3d6a894 vol-d9d6a8ae vol-8dbbc2fa vol-98c2bbef vol-ae7ed9e3 vol-5540e618 ...
4
votes
2answers
1k views

How does udev get device numbers for the devices it creates?

Spun off from a small exchange in chat. One of the primary advantages of udev is that you don't have to worry about major and minor device number exhaustion anymore. But the devices created by udev ...
2
votes
2answers
5k views

How to log Serial data with time stamp?

I have an Arduino sending serial data to the computer. I'm able to view the data using a Serial console. But, I want to be able to log it with time stamp. I want a ready made script or program that ...
3
votes
2answers
9k views

Block specific application with iptables [duplicate]

I have to harden a Linux desktop as an assignment in my college. But I got stuck at a specific problem: I have to control the outgoing traffic with iptables. It should be possible to prevent a ...
53
votes
5answers
169k views

How to stop a background process?

I have started a wget on remote machine in background using &. Suddenly it stops downloading. I want to stop its process, then start it again. How can I stop it? I haven't close its shell window. ...
1
vote
2answers
90 views

How to run bash on CYGWIN

I have created following file with name test.sh #!/bin/bash name = "Elvin John Paul" echo $name echo ${name#* } echo ${name##* } echo ${name% *} echo ${name%% *} and I am getting some error as ...
1
vote
1answer
598 views

VSFTP local user works, but PAM users Permission Denied

I am attempting to configure vsftp to use PAM to authenticate virtual users on my Arch server. It seems so straight forward, I must be missing something simple. Configuration local user virtualftp ...
9
votes
1answer
2k views

Thunar keyboard shortcut to change tab

Currently in Thunar, to shift to the next tab, Ctrl+Alt+PageDown is to be used. I want to change it to either Ctrl+Tab or Ctrl+PageDown. Now, ~/.config/Thunar/accels.scm is where all the shortcuts ...
2
votes
0answers
155 views

Limit CPU cycles inside of Xen

I'd like to run some minimum-expectation benchmarks on EC2, but I'm having an issue of high variability in my output data. Specifically, they keep giving me more CPU than I'm minimally entitled to, ...

15 30 50 per page