10
votes
1answer
17k views

start-stop-daemon not working as expected, no pid file was written

I'm trying to control a python based program (which doesn't detach itself from console) #!/bin/bash user=nobody pid=/var/run/xx.pid name=xx prog=/xx.py case $1 in start) /sbin/start-...
0
votes
0answers
265 views

Why tracepath and chrome use different gateway

System: Archlinux latest Softerware: NetworkManager My route table Destination Gateway Genmask Flags Metric Ref Use Iface default 10.3.0.9 0.0.0.0 UG ...
1
vote
0answers
737 views

xrandr-mediated correction of VGA overscan on external computer monitor

When I employ an external monitor (Dell E207WFP) as the display device for my laptop computer, about 10 pixels are truncated from the left edge of the screen, which I believe is a consequence of a ...
1
vote
2answers
156 views

Remove pauses greater than x from pcap file

I've captured udp traffic to a pcap file. When replaying with tcpreplay-edit, I'd like to shorten all pauses (where there is no udp traffic at all) to x seconds max. tcpreplay-edit only has a global ...
2
votes
2answers
3k views

KVM and Swap space

suppose the following scenario: a host with 2 GiB runs a few guests using KVM. Each guest does usually not need much memory, they are given 256 MiB each and run services that mostly twiddle their ...
9
votes
3answers
846 views

How to combine Bash's process substitution with HERE-document?

In Bash version 4.2.47(1)-release when I try to catenate formatted text that comes from a HERE-dcoument like so: cat <(fmt --width=10 <<FOOBAR (I want the surrounding parentheses to be part ...
0
votes
0answers
103 views

Can't connect to WiFi

I recently installed Arch but didn't set it up yet. In particular, I can't connect to WiFi, although it's visible (in Arch). When I click on it, nothing happens. What might be the issue? $ ip addr 1: ...
2
votes
1answer
616 views

Change multiple monitors location gnome shell

I connect my laptop to my PC monitor and I use multiple screens with the laptop screen as the primary one. When I move the mouse to the right of my laptop screen, it goes to my PC monitor and when ...
1
vote
0answers
186 views

Uninstalling LDAP on Fedora

I'm attempting to maintain a legacy collection of Fedora VMs, all configured to a old LDAP server. However, it's very touchy, and whenever the VM running the LDAP server is slow or unresponsive for ...
1
vote
1answer
462 views

Load shared objects relative to executable path

I'm trying to get a C application to load shared objects from a relative directory regardless of where I call it from. So far it only works if I'm in the same directory as the executable when I call ...
1
vote
2answers
59 views

Disallow Changing of Passwords [duplicate]

I have a spare computer running as a small server doing various things, and I'd like to create another account for my cousin, so she can learn how do manage a server/run minecraft etc. I'd like to ...
11
votes
2answers
31k views

What's the easiest way to resize an ext4 partition from the command line?

What's the easiest way to resize an ext4 partition (or any type partition depending on the method) from the command line (potentially with the fewest commands, but also the easiest to understand)? ...
1
vote
0answers
17 views

create an RPM so that install will edit a config file using a shell command [duplicate]

I have a RPM spec file. How can I make it so that after the RPM installs, a random string is injected into one of the configuration files? For example: The RPM installs the binaries and config ...
1
vote
1answer
1k views

How Do I Set Up Multiple NIS Servers For CentOS 6 Clients?

What is the correct /etc/yp.conf format for indicating a NIS domain has more than one NIS server available to it? Also, how does the client decide to look for another server? I've tried this: ...
3
votes
1answer
876 views

Instantaneous Puppet Deployments with MCollective

Note: I'm not sure where this question belongs. Perhaps it would belong better on Server Fault, but as I'm primarily asking for hacking and home-networking purposes, I'm asking here. Plus it'd ...
1
vote
1answer
148 views

sudoers conditional/combo command is possible?

I want to allow sudo this way: myuser ALL=NOPASSWD:/usr/bin/pkill -fx "/usr/sbin/nethogs -v 3 -s" || /usr/sbin/nethogs -v 3 -s so I get only a single running instance of nethogs. visudo accepts it,...
0
votes
1answer
267 views

How do I cat a command file?

I have the output of the crontab -l stored in a file (crontab_file) with no extension. But whenever I try to cat it, I get errors saying command not found for multiple line of the file. Here is the ...
7
votes
2answers
3k views

fastest way to grep jar file for a particular name in it?

I am trying to find all the jars which has spring in its name. I am working with windows and using cygwin to run the linux commands. Does my below command looks right? find . -name "*.jar" -exec jar ...
3
votes
2answers
960 views

Replacement to CUPS Browse Protocol

The CUPS "browsing" protocol was marked as deprecated being removed at v1.6 of CUPS, due to problems with broadcast and managed networks/WiFi. It's an UDP protocol to broadcast information about ...
0
votes
0answers
392 views

CentOS: FTP (vsftpd) Error 530

I struggled my way into setting up FTP on this VPS and I can not get the accounts to work. I did adduser passwd but I get this error in filezilla Response: 220 (vsFTPd 2.0.5) Command: USER Main ...
2
votes
1answer
720 views

Linux “ip route” changes source address of TCP but not UDP

When sending packets from an application that binds to a local address TCP uses a different source address than UDP. For example, bind to 10.10.0.51 (alias IP), the src addr for UDP is 10.10.0.51 but ...
1
vote
1answer
55 views

How do I switch user without any references to the old one?

A while back, when playing with unprivileged LXC, I discovered that the command to create a container failed if I used su to switch to the user, but it worked if I used ssh user@localhost to login. ...
2
votes
1answer
393 views

SSH Command behaves differently in Expect Script

I'm using this command on Server1 ~# ssh root@Server2 /root/.ssh/id_rsa.pub >> /root/.ssh/authorized_keys to append the contents of Server2's id_rsa.pub to the authorized_keys of Server1. It ...
2
votes
3answers
496 views

Advantages to uploading files to /tmp before moving off to permanent storage?

It seems the common trend in programming when building functionality for handling file uploads is to have the file first uploaded to a temporary directory/folder (e.g. /tmp on Linux). Once the file ...
6
votes
5answers
13k views

mount.cifs can't use the same credential file that smbclient uses

I'm trying to mount a NetApp CIFS share to one of our servers and I keep getting "Permission Denied" printed to stderr and NT_STATUS_WRONG_PASSWORD printed to the running dmesg. root@xxxehpvld05 ~ $ ...
2
votes
2answers
2k views

Killing subprocesses after the script has finished or is killed

Say I have a script like the following #!/usr/bin/env zsh ./subscript.sh & # do stuff ... # do more stuff I would like the process running subscript.sh (and any processes initiated by it) to be ...
1
vote
1answer
189 views

What priority should I give to a script running on startup?

I 'm running Angstrom distribution on an embedded device. I want to make use of its GPIO expansion ports, that are set to be high on start-up. Below, is the code segment, that releases an expansion ...
2
votes
0answers
128 views

mutt once prompted password, used for both imap and smtp

My password for imap and smtp are the same and mutt version is using integrated smtp settings. I do not want to store my password in any script nor encrypt it with pgp/openssl nor using wallet ...
3
votes
1answer
2k views

scp does not transfer files correctly

I am using scp to transfer some large files (> 1 GB) from my laptop (Ubuntu 12.04) to my desktop (Ubuntu 14.04). The laptop has a wireless connection to my router and the desktop has a cable ...
9
votes
2answers
8k views

How to open Fedora without a user password?

How do I open Fedora 19 without a user password? My user name is mz2, and I want to login without a password.
1
vote
1answer
4k views

Broken GLX error when using Bumblebee 3.2.1 on openSUSE 13.1

Update I started all over again. This time instead of the one-click button for the drivers I installed nvidia-bumblebee. This works slightly better because now I have my desktop effects back again. ...
3
votes
2answers
2k views

Gzip large amount of symlinked files

I have a folder containing a large amount of symlinked files. These files are each on the order of 10-11GB (fastq files to be specific). They come from a variety of source folders, but I made sure ...
3
votes
1answer
263 views

Are there any Linux distributions that focus on binary backward compatibility?

If you build an executable that works on a current version of Windows, that executable will probably work for many years on newer versions of Windows. Microsoft works very hard to ensure this. With ...
1
vote
2answers
1k views

Wrong amount of free disk space seen after using Gparted

I am running Ubuntu 12.04 in a VM. I have recently resized the hard drive of this VM doubling its size with Gparted. However, when I run df -h, Ubuntu still sees the old hard drive space, while ...
3
votes
0answers
2k views

How to compile AMD Legacy driver on 64-bit kernel, Linux Mint 17 [closed]

I'm trying to get the legacy driver for my HD 2400 GPU but I had an error while it was building. I looked at this answer, and have the same result, in the driver manager is empty: http://unix....
3
votes
1answer
802 views

Make tmux block until program completes

I am impressed by tmux's remote control features: tmux new-window -t p12346 'echo foo;sleep 10' This creates a new window in the session named p12346 and does not print anything on the screen. ...
1
vote
1answer
2k views

TFTP server not listening on port defined

I started a tftp server with atftpd -v --port 69 --bind-address 10.10.10.2 --daemon /srv/tftp/ command, but for some reason I do not see TFTP server listening on port 69 in ss/netstat output. However, ...
6
votes
1answer
3k views

How to exclude from a “Match Group” in SSHD?

There is a Match group in the SSHD config: cat /etc/ssh/sshd_config ... Match Group FOOGROUP ForceCommand /bin/customshell ... There are many users on the machine that are in the "FOOGROUP"...
7
votes
5answers
2k views

Renaming files with its path name

I have a .bdf file inside subfolders. All the .bdf have the same name: Loads.bdf Example: /home/user/folderxx/folderxxx/Load.bdf /home/user/folderxx/folderxxx/Load.bdf I need to find (and copy to ...
1
vote
5answers
204 views

Is there a way to find out the number of lines from a command output?

I am trying to compare command outputs between two servers. I want to find out the number of lines from the output of commands such as ls -l. Is there a way to do so? So far I have not found anything.
13
votes
5answers
753 views

non-line-oriented tool for string replacement?

I recently asked a question about how to remove the newline character if it occurs after another specific character. Unix text-processing tools are very powerful, but almost all of them deal with ...
2
votes
3answers
76 views

Where should I place my websites files with multiple vhosts?

If vhosts are enabled, where should I place my website files? /home/aunser/www /var/www/site1, /var/www/site2 /usr/local/website/site1, /usr/local/website/site2 the systems is CentOS 6.x/RHEL 6.x,...
2
votes
3answers
3k views

Linux freezing guess: keyboard & mouse (Archlinux and Ubuntu)

Linux on my PC is freezing a few seconds after startup. I am unable to use the mouse / keyboard. Neither Ubuntu nor Arch do anything after a few seconds. Windows has been running fine for years now. ...
-2
votes
1answer
81 views

CentOS, Apache Vhosts enabled,but DOCUMENT_ROOT cant towards /home/auser/website/www1 [closed]

environment CentOS 6.5 x86_64 Apache2.4.9 (locate=/usr/local/apache2) PHP 5.5.13 (locate=/usr/local/php5) Apache vhosts enabled. site1 domain=localhost path=/usr/local/...
3
votes
1answer
692 views

History in the Almquist shell in the NetBSD

In NetBSD /bin/sh is a modified version of the Almquist shell. With the command fc -l it is possible to view the last 16 commands typed in the prompt in the current session and not the older ones. ...
14
votes
8answers
8k views

Replace string containing newline in huge file

Anyone know of a non-line-based tool to "binary" search/replace strings in a somewhat memory-efficient way? See this question too. I have a +2GB text file that I would like to process similar to what ...
4
votes
3answers
816 views

Find files in directory with paired names

I'm running tests of a variable-size-and-contents test set. Data files are added and removed frequently. I'm looking for an automated way of gathering a file list. All files are in subdirectories of ...
4
votes
1answer
461 views

RAID6 scrubbing mismatch repair?

You can initiate a scrub of a mdadm array with echo 'check' > /sys/block/mdX/md/sync_action, and if a bad sector is found, it'll rewrite it automatically (from a mirror or from parity information ...
3
votes
2answers
513 views

Set up svn for an existing project

I have an existing project “abc” with the path /home/abc. I want to set up a subversion repository in Ubuntu for this project. I have already installed subversion with the help the article “Setting Up ...
1
vote
2answers
203 views

Allocation of Swap in 64 bit UBUNTU 13.04

I have 256GB ssd drive, 32GB DDR RAM, and 1TB HDD. What is the maximum limit of Swap memory that can be set in SSD?

15 30 50 per page