Advanced Search
Search Results
440 total results found
Permitting rdate access
Letting rdate work from other machines # chkconfig time-stream on Add a rule to /etc/sysconfig/iptables , probably just after the ssh rule (port 22): -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 37 -j ACCEPT
SCSI Device Names And Bus IDs
Problem (Asked on SuperUser.com) I have a CentOS 4.x server running software raid. The server has two scsi disks in hot-swap trays. mdadm reports that the raid has failed, and so I would like to replace it. I examine /proc/mdstat, which tells me my two raid de...
Updating to PHP 5
Problem I have a user who wants PHP 5 on our server. Solution This is a horrible problem. Advice on the mailing group is to rebuild apache and php from scratch and run that. Personally I'd prefer shooting the user, but since that generally frowned upon I got t...
Building Subversion 1.85
(2014-01-16) Problem I want to run Subversion v1.85, client and server, on CentOS 5 (today's victim server is 5.10). Solution You can't do that. Well you can, but it is ugly. You have several problems: Subversion wants a newer version of sqlite than is shippe...
kickstart POST nfs mount
Mounting nfs file systems in the %POST section of a CentOS 5 kickstart mount 172.20.0.1:/home /mnt/temp -o nolock,udp The nolock option seems to be a new requirement.
NFS File Creation Cache Problems
Problem If I create a file on an nfs-mounted filesystem on one machine, the file may not be immediately visible to another machine looking at the same nfs-mounted filesystem. In our case this happened with a compute farm environment, where a job was dispatched...
NVidia Multihead
Problem I am running a CentOS 5.3 x86_64 (fully updated as of today). It has a video card I cannot identify -- I run lspci and it identifies itself as: 01:00.0 VGA compatible controller: nVidia Corporation Unknown device 0615 (rev a2) The previous admin left ...
Process Accounting
(26 September 2012) Process Accounting # chkconfig psacct on; service psacct start This will create a file /var/account/pacct which will record processes. It will get rotated; by default 30 days are kept. You can look at it in a couple ways: lastcomm # ...
Remote X Display
Displaying Remote X Applications On Your Local Display ...ie, connect to a remote machine, run the X application there, but displayed on your local CentOS 5 desktop. The "correct" solution is to use tunneled X displays through ssh: $ ssh -Y user@remote remote$...
rssh
Jailing sftp/scp connections (1206.12) Short notes: this uses the rssh functionality from rpmforge. To set up a jail for $USER: # chsh -s /usr/bin/rssh $USER # cd ~$USER # ls -ld . (make note of $GROUP) # /usr/local/sbin/mkchroot.sh `pwd` $USER 2755 $GROUP (lo...
SCSI Bus Rescan
(2014-03-24) Problem You've hot-added a new disk and now want to use it without rebooting. Solution # echo "- - -" > /sys/class/scsi_host/host1/scan Change the "1" to the correct host bus number. This will detect the new disk and add it. Beware! If you add a ...
SquirrelMail: Users Can't Log In
(14 October 2012) Problem I have SquirrelMail version 1.4.8-5.el5.centos.13. When users attempt to log in, they get the message: Your session has expired, but will be resumed after logging in again. I have confirmed: the user password is correct; the user/pas...
SSL Certificate Warning
(2014-01-20) Problem Email: ################# SSL Certificate Warning ################ Certificate for hostname 'computer.domain', in file (or by nickname): /etc/pki/tls/certs/localhost.crt The certificate needs to be renewed; this can be done usi...
TCP Window Scaling
(5 November 2012) Problem: When sending mail to a particular target, we were unable to send messages above a certain size (around 500KB). The diagnostic on the relay was: MDeferred: Connection timed out with <site> Messages would go back into the queue, and a...
Unexpected CUPS dependencies
(or, isn't RPM supposed to handle this kind of crap?) Error: Filter "foomatic-rip" for printer (some printer) not available: No such file or directory Cause: cups is looking for foomatic. Solution: # yum install foomatic Error: /usr/lib/cups/filter/foomatic-r...
X Display Through SSH
(2014-03-24) Problem I ssh into a remote host and the $DISPLAY variable isn't set. Solution # yum install xorg-x11-xauth
Yum barf when updating package 'file'
Problem [dave@centos5-dave ~]$ sudo yum update file Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: netops.nexicom.net * updates: netops.nexicom.net * addons: netops.nexicom.net * extras: netops.nexicom.net Setting up Updat...
bind always returns SERVFAIL
(2013-04-16) Problem I have installed a bind instance from RPM and all it does is SERVFAIL. Debug logging shows this: 16-Apr-2013 12:08:35.875 resolver: debug 1: createfetch: google.ca A 16-Apr-2013 12:08:35.876 database: debug 1: decrement_reference: delete f...
Disable IPv6
(2014-09-16) Problem Things are slow. In our case, attempting to mount a previously-umounted filesystem would result in a five to seven second hang. Solution In /etc/sysconfig/network, add the line NETWORKING_IPV6=no See also below. Disable IPv6 everywhere. C...
Dummy Cert Expired
Problem I'm getting messages that say: ################# SSL Certificate Warning ################ Certificate for hostname 'voyager.xdroop.com', in file (or by nickname): /etc/pki/tls/certs/localhost.crt The certificate needs to be renewed; this can...