4
votes
1answer
12k views

repository metadata (repomd.xml) for repository: mratwork-centalt

In My server, running Linux Redhat, I have NGINX, PHP Installed already. Now I want to install PHP-FPM, VARNISH, APC, FASTCGI as well Memcache to speed up my server for my wordpress website.. (I am ...
2
votes
2answers
85 views

What is bitwise.c~? [duplicate]

I am new to Linux Debian and I am trying to made a program to experiment bitwise operators. The name of the program is bitwise.c Before compiling the program, I decided to look at the directory just ...
0
votes
1answer
72 views

Remove given parts of a string with sed?

$ echo '<a href="mailto:NA?Subject=AB42525216 - FOOBAR bla bla - bla">NA</a>' <a href="mailto:NA?Subject=AB42525216 - FOOBAR bla bla - bla">NA</a> $ echo '<a ...
1
vote
1answer
850 views

How to change permissions/owner or delete Downloads folder (owner: root wheel)?

Something strange happened with my Downloads directory on my Mac OSX v 10.7.5. All of a sudden I wasn't permitted to save anything to the directory. The directory is in users/kelly/ and is the only ...
2
votes
3answers
1k views

How do I drop root privileges in shell scripts?

The "--up" option in OpenVPN is normally used for routing etc. And so it is processed before OpenVPN drops root privileges to run as nobody. However, I am invoking shell scripts that need to run as an ...
0
votes
1answer
393 views

What's the difference between modification date and inode's modification date?

I've just found some interesting information for me in man stat: a, m, c, B The time file was last accessed or modified, of when the inode was last changed, or the birth time of the inode. But ...
1
vote
0answers
22 views

Do duplicate udev rules in different files cause any problems?

Do exact duplicate udev rules in different files cause any problems? In my case, it's an 'ADD' rule for a custom device. The rule is apparently working and I can access the device, but I don't know ...
0
votes
1answer
1k views

how to avoid NSCD for DNS

I am using NSCD service for DNS now. But sometimes I see NSCD dying itself and DNS resolving doesn't happen properly. please tell me how can we avoid NSCD for DNS . if we bypass the NSCD what is the ...
1
vote
1answer
2k views

How to make postfix create maildir?

How do you make postfix create maildir folders automatically for all users? I have these two lines in postfix main.cf, which supposed do create maildir folder after the first mail but it is not ...
0
votes
1answer
29 views

Is there way to sync the shell yank buffer and the clipboard? [duplicate]

In a terminal I copy a line by Ctrl+a and Ctrl+k. I want to copy the text into clipboard when another window become active so that I can use the text another application, like a text editor or a ...
2
votes
1answer
977 views

How to remove emacs 23 related packages and leave installed emacs 24

I installed emacs 24 in Linux Mint 16, and want to uninstall emacs 23. I thought sudo apt-get remove emacs23 is enough, but it was not. This is my packages list relating emacs. $ sudo dpkg ...
2
votes
1answer
326 views

Is there a way to manipulate lines in logcheck rules before sending?

There are a few cases, such as netfilter logs, where it would be great if I could send the report logcheck is about to send through a filter. logcheck(8) doesn't seem to describe anything like this, ...
0
votes
2answers
251 views

Simple Script to setenv tcsh or export bash

I am having problems with simple scripting, my Box is CentOS so bash is the default shell, now I wanted to send a line via setenv (tcsh) and would like to make a script that will ask me to input a ...
5
votes
2answers
45 views

What program can I use to search the titlebars of all open windows?

I am looking for an application that allows me to search the text of the title bars of all open windows and then foreground the window that most closely matches the text I typed. An application that ...
2
votes
1answer
185 views

Understanding the structure of an Arch package repository mirror

I'm trying to figure out the structure better of a Arch Linux package repository mirror. There's several folders which are pretty easy to understand, such as community, core, extra, multilib, iso, ...
2
votes
1answer
38 views

How can I install only the basics in Debian?

I'm new on Debian, I moved from Ubuntu and I need to install a light distro on my laptop. I want to use in text mode. I just want to use gcc, nano, ghci, javac and some text browser. But when I ...
1
vote
1answer
182 views

Use a Linux directory as a USB-OTG device to an Android phone?

I have a really strange idea and I was wondering if I could do it. Many Android custom recoveries allow placing backups in both the internal storage, the external (ie: microSD) storage, and ...
7
votes
2answers
374 views

Change the order of executables started in bash

If I execute the test command in bash, test(evaluates conditional expression) built-in utility is started: $ type test test is a shell builtin $ type -a test test is a shell builtin test is ...
2
votes
1answer
1k views

Check for plugged in network cable on startup

I actually wanted to post the below as an answer to this question titled: ifup eth0 timeout during boot. But am not sure if this is right approach or it's a way of screwing up things badly. We can ...
2
votes
1answer
2k views

ifup eth0 timeout during boot

I need to start eth0 network interface during boot, but only if cable is plugged in. I have following in my /etc/network/interfaces auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp ...
5
votes
4answers
612 views

how can we use awk to get multiple words after a significant word?

I want to connect to my DB only once to do multiple SELECT queries as follows: #!/bin/bash #Begin Code query=$(echo "SELECT COUNT(*) from USER_IPTable; SELECT User from USER_IPTable; ...
2
votes
2answers
1k views

Changing user to root when connected to a linux server and copying files

My script is coded in a way that doesn't allow you to connect to a server directly by root. This code basically copies files a server to my computer and it works but I don't have access to many files ...
0
votes
3answers
4k views

Telnet on Linux Server

I want to know if it is necessary to have telnet enabled on both sides of machines to get telnet connection. Here's the issue: I am trying to telnet some public IP on port 80 from a Linux web server ...
1
vote
1answer
1k views

br0 causes to drop multicast connection after 5 minutes

I have these interfaces set up on the router (Linux machine): br0: flags=4419<UP,BROADCAST,RUNNING,PROMISC,MULTICAST> mtu 1500 inet 192.168.0.3 netmask 255.255.255.0 broadcast ...
1
vote
1answer
110 views

NetBSD: /etc/man.conf man search path does not work

I've added a new man page directory /usr/local/share/man/man1b which contains files like e.g. troff.1b In /etc/man.conf I added _subdir ...some names... man1b _default ...
2
votes
0answers
19 views

Synchronize KDE4 Hotkeys

how can I synchronize my personally defined KDE4 Hotkeys between different computers? I would like to check in a file in git, as I do it with .bashrc and other configuration files. I found ...
10
votes
2answers
440 views

Is it possible to view a package information from terminal before installing it?

I was wondering if it was possible to check information about a package before installing it without needing to open a web browser to look for it there. For example, say I type in ~$ asdf Then I ...
3
votes
2answers
1k views

How to count how many shell/terminals are running?

I´m trying to count how many shell or terminal windows are currently running. I tried ps a|grep bash; ps a|grep tty; But it can be inaccurate.
1
vote
1answer
5k views

Switch users with sudo or su in a shell script

I inherited this. Long story short I have an XML file that is calling a shell to run some commands. Everything I have tried has failed at the second su in the script. Here are some of the failure ...
2
votes
2answers
136 views

Add new packages to repository server

I'm using CentOS I've built a repository and put packages on it ,testing from another server and all things are fine. When I added new packages on repository and execute: $ createrepo -v ...
1
vote
1answer
36 views

Locate encfs rootdir

If a rootdir is mounted by encfs to a mount point, I can see the mount point by "mount" command or from the /proc/mounts. However, if I can get the mount point, but I don't know which rootdir I have ...
4
votes
1answer
74 views

POSIX usage standards for requiring at least one optional arg

So, I'm writing a CLI for an API, and I ran into a point where one of the commands support has two optional arguments, id and fields I want to know how to show that these arguments are optional, BUT, ...
1
vote
1answer
526 views

Open old Kde Wallet/KWallet

Recently I replaced the hard drive on a laptop with an SSD. I recycled the old drive as a backup drive. I have the old home folders of my setup and nothing else. I have discovered that I am missing ...
2
votes
3answers
253 views

Need help to combine 3 split lines of bash script into one single line

The following is what I found after googling: dpkg --list 'linux-image-*' \ | perl -ane 'BEGIN { $r = `uname -r` or die; chomp $r } print $F[1], "\n" if $F[0] eq "ii" && $F[1] !~ ...
1
vote
0answers
787 views

Apache server: permission and symbolic link problem

I am using CentOS(Linux 2.6.32-431.11.2.el6.x86_64). I am trying to create an Apache2.2.15 web server. Every thing configured very well. My DocumentRoot is the default location i.e. /var/www/html. I ...
0
votes
2answers
271 views

Disk full on a server with a large /home partition

I've just got this CentOS Server but I think I've set it up wrong as I can only upload a few GB then I start getting errors, It should have ~1TB. this is the results of lsblk [root@ns4005990 ~]# ...
3
votes
3answers
583 views

How can I get the first column of a 300GB txt file?

let me first explain my problem in detail. It's actually pretty simple. I have a huge .txt file, 300GB to be more preciese, and I would like to put all the distinct strings from the first column, that ...
0
votes
3answers
130 views

How do I create this symbolic link in Unix?

I want to run gmake when I run make, so I am creating a symbolic link. My gmake is inside /usr/local/dist. My make is inisde /usr/ccs/bin. Is this the correct command: ln -s /usr/local/dist/gmake ...
0
votes
1answer
1k views

How to execute grep in tcl for getting XYZ-123 type pattern

How can I execute this grep command in TCL? grep '[A-Z][A-Z][A-Z]\-[0-9][0-9][0-9]' file1 > file2
3
votes
1answer
155 views

Can renaming a network device cause race conditions?

Arch uses predictable network interface names. MATLAB licenses are linked to the MAC address of eth0, so I need to rename one of my devices eth0. In a machines with only one NIC I can just turn off ...
2
votes
1answer
747 views

dhcp: way to check the online status of the device

On Linux there is the file /var/lib/dhcpd/dhcpd.leases. I need to determine, for the devices for which information contained in this file, whether the device is online at a given moment. Is there any ...
2
votes
1answer
596 views

Changing sound chip with ALSA

I have a laptop with Intel audio card that lspci reports as 00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 04) It is responsible ...
2
votes
1answer
656 views

How to add existing normal partition into LVM in Linux?

I'm having a partition in Linux with some data, I want to add this partition into LVM, which is already running in the same system. What will be the step to do so?
1
vote
2answers
41 views

List of files accessed by application

I want to install propertiary AMD driver but I would also like to know which files were created/changed by installer. Is there some application which can observe (probably by inotify) which files were ...
2
votes
1answer
63 views

Running a command without ./

I am trying to understand something that might be very simple for a lot of you but is quite puzzling from me as a daily Windows user. I am following the docker installation on Mac OS X. One of the ...
2
votes
0answers
434 views

Internal microphone not working.. again (Fedora 20, KDE, HP 8460p)

Unfortunately I have yet another "adventure" with my internal microphone. Everything is un-muted in alsamixer, as well as in pavucontrol. It is not the first time it stopped working, but now - for ...
2
votes
0answers
264 views

Problems uploading a file via WebDAV?

I've configured on my Linux server (SLES11) with IHS Webserver with WebDAV enabled. A file upload via curl is successful using a URL like this: $ curl --insecure --upload-file testfile.txt \ ...
1
vote
0answers
165 views

Changed to Nvidia xorg driver - now I have less temperature sensors?

I've just installed Debian Wheezy 7.5 on a Toshiba Satellite P100 laptop. By default, X was using the nouveau graphics driver. While this was still installed, I was getting 6 different temperature ...
1
vote
1answer
306 views

Slow sudo because of socket connections

Some time ago sudo started to behave very slow on our server. Some times we have to wait even a few minutes until it executes. I've checked all hostname and dns causes that forums all full of, but ...
1
vote
4answers
94 views

Getting data under or above a line

This is my file: print energy 1 end Local net energy (PE 0) = 1.635393034217E+05 kJ/mol Global net ELEC energy = 1.635393034217E+05 kJ/mol print energy 2 end Local net energy (PE 0) = ...

15 30 50 per page