Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
63 votes
9 answers
206k 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 ...
haimg's user avatar
  • 22.7k
46 votes
7 answers
138k 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 ...
Alasdair's user avatar
  • 867
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:...
del's user avatar
  • 542
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 ...
Bimlik's user avatar
  • 87
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 ...
Pandy Legend's user avatar
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 ...
Yves Messi's user avatar
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 ...
Travis's user avatar
  • 383
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 ...
haimg's user avatar
  • 22.7k
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?
Elitmiar's user avatar
  • 3,204
46 votes
13 answers
189k 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.
Syed's user avatar
  • 561
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 -...
Rodnower's user avatar
  • 2,209
36 votes
6 answers
80k 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 './...
user avatar
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-...
hugemeow's user avatar
  • 2,299
21 votes
5 answers
26k 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 "...
user avatar
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 ...
Exploit's user avatar
  • 639
14 votes
4 answers
100k views

vnc viewer error: unable connect to socket: Connection refused (111)

I installed tigervnc-server package in server. [root@localhost ~]# rpm -qa tigervnc-server tigervnc-server-1.1.0-5.el6.i686 Created a vnc user and created vncpasswd also for that user. [root@...
max's user avatar
  • 4,073
12 votes
3 answers
15k views

Attempting to install tmux on CentOS 6.x fails with error: ‘EVBUFFER_EOL_LF’ undeclared

I tried compiling tmux using the following steps: yum -y install ncurses-devel libevent-devel wget http://downloads.sourceforge.net/tmux/tmux-1.9a.tar.gz tar -xvzf tmux-1.9a.tar.gz cd tmux-1.9a ./...
Susam Pal's user avatar
  • 1,445
12 votes
2 answers
27k views

Convert file to PDF using LibreOffice under user apache (i.e. when using PHP)

I installed libreoffice-headless and can convert documents when logged on into the shell as a normal user. [root@desktop ~]# yum install libreoffice-headless [root@desktop ~]# yum install libreoffice-...
user1032531's user avatar
  • 1,691
8 votes
5 answers
17k views

Writing a CPU/RAM usage log over a period of time to file on CentOS

I'm looking for an application or line of code that would let me observe a process, save the info in a number of variables, then put the gathered info on a file. I've been trying with variations of ...
keponk's user avatar
  • 218
8 votes
2 answers
12k views

How do you boot linux with networking disabled?

Is there some way to disable networking by passing a kernel option through grub? Prefereably I could only disable 2 interfaces, but disabling all networking would be okay also. My use case is that I ...
Jason Axelson's user avatar
7 votes
5 answers
24k views

How do I remotely view a Linux desktop from Windows XP?

I'm using Windows XP and need to remotely connect to a CentOS-5.X server. I'm looking to visually, securely and with as small a footprint as possible manage a remote Linux system via an GUI. It's not ...
blunders's user avatar
  • 887
6 votes
1 answer
5k views

How to setup password-less ssh between two vagrant machines?

I have set up a enviroment of two machines in vagrant where I used the following CentOS image: http://developer.nrel.gov/downloads/vagrant-boxes/CentOS-6.4-x86_64-v20130427.box Lets call the two ...
Leonard Saers's user avatar
6 votes
4 answers
5k views

Why does Dropbox use so much memory on Linux?

pmap shows that Dropbox uses nearly 200MB of memory (on Linux). When I run Dropbox on Windows, it only uses about 30MB of memory. What is the reason for that? Also, why are there so many [ anon ] ...
hugemeow's user avatar
  • 2,299
5 votes
1 answer
13k views

What's the difference between "uname -r" and "uname -v"?

I am using CentOS 6.2. In the man page of uname (i.e., man uname), it says: -r, --kernel-release print the kernel release -v, --kernel-version print the kernel version ...
max's user avatar
  • 4,073
5 votes
3 answers
25k views

Source Based Policy Routing & NAT (DNAT/SNAT) aka Multi WANs on CentOS 5

Originally posted at Unix and Linux but nobody was able to answer it, so m migrating the question here: My question is regarding Source Based Policy Routing on CentOS 5 with 2 WANs plus a LAN (NAT) ...
CentOS_noob's user avatar
4 votes
3 answers
22k views

Google Chrome on a fresh CentOS 7.1 not starting up

I am having a bad time trying to run Chrome on my CentOS 7.1 server. I know, it does not have a screen, it's a server. But I installed GNOME anyway and using VNC I can see the screen on a remote ...
Mariana's user avatar
  • 79
4 votes
2 answers
437 views

Connecting a MIDI Controller to CentOS5

Edit: I'm trying a different tack at the problem, by using /dev/midi with C. Hello all! I recently got a Akai MPD24 MIDI controller, as part of a piece of software I'm writing. I'm looking to use the ...
user1607's user avatar
  • 181
4 votes
4 answers
29k views

How to make my default gateway permanent in CentOS? So that after a reboot it does not get lost

I have a CentOS running. It is important to have my CentOS available when I am remotely connected to a VPN router. I tried to add a default gateway to the VPN router, but after reboot it goes away. ...
YumYumYum's user avatar
  • 1,685
4 votes
1 answer
1k views

Not the same output format from `df` in different Linux distributions

In Ubuntu the output of this command df --exclude={tmpfs,devtmpfs,squashfs,overlay} | sed -e /^Filesystem/d | awk '{print $6 " " $1 " " $3 " " $4 " " $5}' is: /...
Piduna's user avatar
  • 153
3 votes
1 answer
3k views

systemd-udevd.service ignoring 60-net.rules

I've tried my hardest to get this to work without asking for help. I can't figure it out. I have a machine that has 6 ethernet ports. I want them to be consistently named eth0 through eth5 just as we ...
dutsnekcirf's user avatar

15 30 50 per page