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/*
yum install http://www.elrepo.org/elrepo-release-6-6.el6.elrepo.noarch.rpm -y
yum install *8192ce* -y
/etc/man.configAnd edit the following:
MANPATH /usr/local/ha/share/manTo update the database immediately:
makewhatis -v /usr/local/ha/share/man
crmFatal error:No module named crmshNo module named modules
Failed to start the crm shell! This is likely due toa broken installation or a missing dependency.
If you are using a packaged version of the crm shell,please try reinstalling the package. Also check yourPYTHONPATH and make sure that the crmsh module isreachable.Please make sure that:
/usr/local/ha/lib64/python2.6/site-packages/
/usr/lib64/python2.6/site-packages/
ln -s /usr/local/ha/lib64/python2.6/site-packages/* /usr/lib64/python2.6/site-packages/2. Make sure to install the following dependencies:
yum install *lxml* *PyYAML* -y
yum eraseThe dependencies aren't removed automatically and stay in the system even if they are not being used, to fix it add the following to /etc/yum.conf:
clean_requirements_on_remove = 1
ip6addrctl_enable="NO"
ip6addrctl_policy="ipv4_prefer"
ipv6_activate_all_interfaces="NO"
freebsd-update fetch2. Install Xorg and OpenBox:
freebsd-update install
pkg install xorg openbox tint23. Create the following directory inside your home directory:
mkdir ~/.configmkdir ~/.config/openbox
mkdir ~/.config/tint22. Copy OpenBox provided configuration files to the directory:
cp /usr/local/etc/xdg/openbox/menu.xml ~/.config/openbox/menu.xmlcp /usr/local/etc/xdg/openbox/rc.xml ~/.config/openbox/rc.xml
cp /usr/local/share/examples/tint2/tint2rc ~/.config/tint24. Create the following file and give it executable permissions:
touch ~/.config/openbox/autostart.shchmod +x ~/.config/openbox/autostart.sh5. Echo the following content inside the file:
echo "#!/bin/sh" >> ~/.config/openbox/autostart.sh6. Configure hal and dbus to start on boot:
echo 'hald_enable="YES"' >> /etc/rc.conf7. Instruct X to load OpenBox:
echo "exec openbox-session" >> ~/.xinitrc8. Reboot the computer:
reboot9. Launch OpenBox and edit Tint2:
startxtint2conf
tar xvf parallel_studio_xe_2015.tgz3. Install 32Bit libraries:
yum install libstdc*i686 -y4. Change directory the extracted archive:
cd parallel_studio_xe_20155. Launch the GUI installer:
./install_GUI.sh6. Nothing special to choose from, just the evaluation check box when asked about a serial number(or enter a serial number if you have one).
vi /etc/profile.d/intel.sh
#!/bin/bashsource /opt/intel/composerxe/bin/compilervars.sh intel64source /opt/intel/impi/5.0.1.035/bin64/mpivars.sh8. Copy the file and make a c shell version:
cp /etc/profile.d/intel.sh /etc/profile.d/intel.csh9. Edit it:
vi /etc/profile.d/intel.csh
#!/bin/cshsource /opt/intel/composerxe/bin/compilervars.csh intel64source /opt/intel/impi/5.0.1.035/bin64/mpivars.csh10. Make both file executable:
chmod +x /etc/profile.d/intel*11. Test it using icc -v mpicc -v