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
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
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
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
3 votes
1 answer
673 views

Linux: only allow outgoing connections to specific domains

I have a CentOS server and only want to allow outgoing connections to specific domains. (allowlist) My thought was to have a DNS proxy which adds the allowed ips (only ipv4 needed) to nftable named ...
Alai's user avatar
  • 73
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
3 votes
2 answers
2k views

Resolving unix server disk space not adding up

I'm trying to evaluate where my disk space on my unix server is distributed. In order to see disk space current status I'm running: df -h But when trying to evaluate what is taking the disk space and ...
Noam's user avatar
  • 181
3 votes
1 answer
3k views

Command running as root but not with sudo

I'm currently configuring a Samba 4 DC on CentOS 7. As myself, samba-tool runs fine but when I run sudo samba-tool I get command not found. samba-tool is located in /usr/local/samba/bin. I've added ...
Oliver Benning's user avatar
3 votes
2 answers
9k views

Redirect stdout to a file when process is run in background

How can I redirect the stdout of a program to a file when it's run in the background? I have a program that generates output every second. When I run it normally and redirect to a file, the output ...
Rauffle's user avatar
  • 664
3 votes
3 answers
9k views

How to compile FFMPEG with h.265, h.264 and vp9 support on CentOS

I was using this https://trac.ffmpeg.org/wiki/CompilationGuide/Centos instructions to get through the process but ran into errors. cat /etc/centos-release CentOS Linux release 7.31611 (Core) What ...
Steffen Roller's user avatar
3 votes
1 answer
21k views

How to force `yum reinstall` to overwrite changed files in a `/var` sub-directory?

I have a software package[1] that is already being used by multiple users. Its RPM is created with Cmake. For historical reasons, the software package installs some files in a subdirectory of /...
boardrider's user avatar
  • 1,163
2 votes
1 answer
4k views

Broken sudo on amazon web services ec2 linux centOS

So I had no idea of the dangers of messing with the /etc/sudoers file, and was just trying to make a simple change in there. However, I seem to have put something with incorrect syntax in there, ...
Evan's user avatar
  • 123
2 votes
3 answers
4k views

Meaning of netstat output?

When I type "sudo netstat -an", this is part of the output I get: Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 192.99.202.17:39922 ...
Henley Wing's user avatar
2 votes
1 answer
4k views

Nano displays spaces instead of some symbols

I have a feeling that I have this bug, however I've just installed new Nano 4.7 from sources When I open files, a lot of symbols (even non-unicode) as not displayed properly, but displayed as spaces. ...
The Godfather's user avatar
2 votes
1 answer
2k views

Centos Sftp Ssh - How always create files with rwx-rwx-r-x and always owned by a certain group

I have a user myuser, which is only allowed to connect to ssh via sftp. I'd like this user to always create files with rwx-rwx-r-x and always owned by the group apache. I've tried to accomplish the ...
Jojo Coana's user avatar
2 votes
2 answers
6k views

Partition is missing in /dev

I'm having a strange problem since I moved from Centos5 to Centos6. I have three disks, first two are used as a RAID1, and third one is a stand-alone backup disk that is not listed in /etc/fstab (it ...
haimg's user avatar
  • 22.7k
2 votes
1 answer
4k views

How do I copy large datasets between two VirtualBox virtual machines?

I have two separate CentOS 7 virtual machines running in VirtualBox that is installed in a Windows 8.1 host. How do I transfer large amounts of data from one of the CentOS 7 virtual machines to the ...
CodeMed's user avatar
  • 354
2 votes
0 answers
151 views

1 chroot sftp user that is able to traverse all other chroot sftp users files/folders

I have a chroot environment that I have setup on CentOS 6. We have users for all of our trading partners and I would like to create an internal user for another department that can sftp in and only ...
camarokris's user avatar
2 votes
1 answer
3k views

Problems installing x2goserver-xsession on a fresh install of CentOS 7.1 on Amazon EC2

I have a fresh install of CentOS 7.1 on Amazon EC2. After boot I executed: yum update Then I enabled an EPEL with: rpm -Uvh https://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch....
Mariana's user avatar
  • 79
1 vote
1 answer
509 views

Is there a way to configure traceroute such that the -T or -I flags do not require root privs to perform?

I am using Centos 7. Basically I just want any user to be able to do a ICMP or TCP traceroute. Is there a way to configure traceroute such that the -T or -I flags do not require root privilegess to ...
mython paster's user avatar
1 vote
1 answer
6k views

sudo: no valid sudoers sources found, quitting

On Amazon Workspaces I ran sudo chmod -R 777 /etc in order to create a file to install Docker but now after every command with sudo I run into this error sudo: /etc/sudo.conf is world writable sudo: /...
Mike D Hovhannisyan's user avatar
1 vote
1 answer
6k views

Which flags to use on rsync to achieve full replication?

Hi since I have searched stack overflow and did not get info about this, I need to ask again with specific requirements. I have an old storage with approx. 4TB of data and I would like to sync it with ...
dovla110010101's user avatar
1 vote
0 answers
288 views

Measure ram speed for application/ current speed utilization

Is there a way to measure the current ram speed? I have an application which needs a lot of ram and I'm tuning performance and it looks like I have hit the limit of ram speed, but I have to measure it ...
Jan's user avatar
  • 191
1 vote
0 answers
204 views

Does a VirtualBox/CentOs need two adapters to work properly ?

I have a Windows 7, 32bit, HP Laptop. I have CentOs 6.5 running on VirtualBox 4.3.10. Here is my eth0 config. Code: #vi /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 HWADDR=08:00:27:81:0F:...
Bimlik's user avatar
  • 87
1 vote
1 answer
2k views

How to connect HDMI camera to Linux?

In fedora or centos linux is it possible to connect HDMI camera to HDMI capture device ( http://www.blackmagic-design.com/products/intensity/ ). And get the video for playback from Linux? Or still ...
YumYumYum's user avatar
  • 1,685

15 30 50 per page