All Questions
71
questions
62
votes
9
answers
205k
views
How to stop kernel messages from flooding my console?
I'm using Centos 6, rsyslog logging. Console is flooded with kernel messages.
Klogd is not running (I'm using rsyslog)
Rsyslog config does not direct anything to the console
Even tried stopping ...
46
votes
7
answers
137k
views
How to automatically run commands on SSH login?
Whenever I login to my Linux server I'd like to have several commands run automatically (set some variables, change location, etc.)
This needs to be done on user login, not on system start.
How can ...
16
votes
5
answers
55k
views
Can't kill a sleeping process
I don't seem to be able to kill -9 a process which is in an interruptible sleep (S) state:
[root@jupiter ~]# ps -elf | grep yum
4 S root 16790 1 0 75 0 - 73779 - Jan15 ? 00:00:...
0
votes
1
answer
2k
views
Unable to access localhost & Internet using one adapter in CentOs
I have the below dev. environment.
Hardware:- Windows 7, 32bit, HP Laptop.
Software:- CentOs 6.5 running on VirtualBox 4.3.10.
In a nutshell The problem is that I can't access the internet and ...
3
votes
1
answer
12k
views
CentOS 7 Linux resize filesystem after partition resize
I am running CentOS 7 on a HyperV virtual server. I recently increased the size of the hard disk from 32GB to 64GB and used GParted Live to extend the partition, which seems to have worked as shown ...
36
votes
6
answers
174k
views
How to disable ipv6 on a specific interface in Linux?
Could someone tell me how to disable ipv6 auto-config on a specific network interface in CentOS?
The current situation is:
A PC has two network adapters eth0 and eth1 that are connecting to the same ...
21
votes
2
answers
87k
views
How to chown directory for multiple users?
Specs:
Running Centos 6
64 Bit
I am trying to chown a directory for all users on the VPS, aswell as for apache. But for some reason I can only have either apache, or just the users.
I tried doing ...
11
votes
2
answers
23k
views
Getting 2 IP addresses on one network card, using DHCP
Given: A computer running Linux (CentOS 5.x), one network card connected to LAN switch, a second one to cable modem via crossover cable. This computer acts as a router/firewall/traffic shaper for the ...
106
votes
4
answers
479k
views
Checking what PHP version I'm running on Linux?
I'm running Centos 5 and I need to know what version of PHP I'm running, is there a command for this which I can run?
46
votes
13
answers
188k
views
what causes “systemd: Failed at step USER spawning /usr/sbin/opendkim: No such process”
How can I remove following error:
systemd: Failed at step USER spawning /usr/sbin/opendkim: No such process
It occurs when I try to start opendkim service on Centos.
42
votes
4
answers
221k
views
Where Linux places the messages of boot?
I want to find place to where Linux writes all boot messages. You know:
facility one [STARTED]
facility two [STARTED]
facility three [FAILED]
I searched with
find . -print0 | xargs -0 grep -...
36
votes
6
answers
79k
views
To use ssh-id-copy do you need both id_rsa.pub and id_rsa?
I am trying to setup a second access ssh key for a friend. He sent me his id_rsa.pub.
ssh-copy-id -i id_rsa.pub [email protected]
/usr/local/bin/ssh-copy-id: ERROR: failed to open ID file './...
26
votes
4
answers
38k
views
How to find which package certain command belongs to on CentOS?
For example I can easily find locate command belongs to mlocate.i386 package.
yum search locate
mlocate.i386 : An utility for finding files by name
[mirror@home /]$ rpm -qa | grep locate
mlocate-0.15-...
21
votes
5
answers
25k
views
Execute a command if Linux is idle for 5 minutes
I would like to execute a command such as
notify-send 'a'
if my Linux machine has been idle for 5 minutes.
By idle, I mean the same thing a screen saver that gets activated would use to define "...
15
votes
3
answers
97k
views
how can i install CentOS 6 without the gui?
i just downloaded the centos 6 live cd and i tried installing it on virtually and i am never prompted to install centos with/without gui and its all automated. what happends is after i am booted into ...