hwclock -rTo set the time and date:
date -s "2 OCT 2006 18:00:00"To set the time only:
date +%T -s "10:13:13"To set the hardware time using the system time:
hwclock -w
hwclock -rTo set the time and date:
date -s "2 OCT 2006 18:00:00"To set the time only:
date +%T -s "10:13:13"To set the hardware time using the system time:
hwclock -w
vi /etc/slurm/slurm.conf
SelectTypeParameters=CR_LLNSpread the file to all machines and run:
service slurm restart
export PS1="(\t) $PS1"
rsync -avr rsync://centos.syn.co.il/centos/6.5/updates/x86_64/ --delete --exclude=debug/ /var/www/html/centos/updates/6.5/
yum install automake autoconf gettext python cronie pygtk* libglade2-devel python-crypto python-paramiko notify-python make gcc intltool -y2. Download the source from SourceForge:
cd /tmp
wget http://downloads.diffingo.com/fwbackups/fwbackups-1.43.4.tar.bz23. Extract the archive and compile it:
tar xvf fwbackups-1.43.4.tar.bz2
cd fwbackups-1.43.4
./configure --prefix=/usr/local
make
make install4. Edit /usr/local/bin/fwbackups and add the following to line 22:
export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python2.6/site-packages/5. Start the application and start backing up stuff:
fwbackups
yum install net-tools -y
sed -i "s/quiet.*/quiet net.ifnames=0 biosdevname=0\"/" /etc/default/grub2. Recreate the new grub configuration using the following command:
grub2-mkconfig -o /boot/grub2/grub.cfg3. Reboot the computer.
mke2fs 1.41.12 (17-May-2010)
mkfs.ext4: Wrong medium type while trying to determine filesystem size
drbdadm role <resource>If you see:
Secondary/PrimaryIt means that the node you ran the command on is Secondary, to fix it run the following command on the current node(primary):
drbdadm primary <resource>
yum install ImageMagick gd texinfo texinfo-tex texlive httpd php php-xml php-pdo php-intl php-pecl-apc php-pecl-memcache2. Download the latest version of Mediawiki:
cd /var/www/html
wget http://releases.wikimedia.org/mediawiki/1.23/mediawiki-1.23.6.tar.gz3. Extract the tar file and change the ownership:
tar xvf mediawiki-1.23.6.tar.gz
mv mediawiki-1.23.6 mediawiki
chown apache:apache -R mediawiki4. Restart Apache and configure mediawiki using the installation:
service httpd restart
mkdir /var/lib/mediawiki
chown apache:apache -R /var/lib/mediawiki
http:/1.1.1.1/mediawiki (set the SQLite data directory to /var/lib/mediawiki)5. Use the new LocalSettings.php
cd /root/Downloads/
mv LocalSettings.php /var/www/html/mediawiki
yum install php php-xml -y
mkdir /tmp/ha2. Install Corosync and Pacemaker:
cd /tmp/ha
yum install pacemaker corosync -y3. Download crmsh and pssh:
yum install wget -y
wget http://download.opensuse.org/repositories/network:/ha-clustering:/Stable/CentOS_CentOS-6/src/crmsh-2.1-1.6.src.rpm
wget http://download.opensuse.org/repositories/network:/ha-clustering:/Stable/CentOS_CentOS-6/src/pssh-2.3.1-4.1.src.rpm4. Build the RPMS:
yum install python-devel python-setuptools gcc make gcc-c++ rpm-build python-lxml cluster-glue-libs-devel pacemaker-libs-devel asciidoc autoconf automake redhat-rpm-config -y
rpmbuild --rebuild crmsh-2.1-1.6.src.rpm
rpmbuild --rebuild pssh-2.3.1-4.1.src.rpm5. Install the newly created RPMS:
yum install /root/rpmbuild/RPMS/x86_64/*