All Questions
71
questions
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 ...
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 ...
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
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.
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
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 './...
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
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 "...
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 ...
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@...
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
./...
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-...
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 ...
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 ...
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 ...
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 ...
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 ] ...
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
...
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) ...
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:
/...
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. ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 /...
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, ...
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 ...
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. ...
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 ...
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 ...
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 ...
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 ...
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....
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 ...
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: /...
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 ...
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 ...
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:...
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 ...