#make sure NTPDd runs on reboot so the clock is synchronized
chkconfig ntpd on
#modify clock file:
vi /etc/sysconfig/clock
#and put your zone there, e.g.:
#ZONE="America/New_York"
ZONE="Asia/Jerusalem"
#UTC=True
UTC=False
#backup previous 'localtime ' file
mv /etc/localtime /etc/localtime.original
# and create a link to the zone file you've selected:
ln -s /usr/share/zoneinfo/Asia/Jerusalem /etc/localtime
# now verify that 'date' shows teh desired timezone [Israeli time (IST)]
date
Saturday, February 15, 2014
CMake Error when compiling on AWS AMI CentOs / Fedora / RedHat family
If you are getting this error
it is because RedHat decided to pre-install [a stripped down version of] OpenSSL and you do not have the developers package there.
Try this:
If you got only
Install the development package which got the headers and the extras
and then run cmake command again
CMake Error at /usr/local/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.
Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
system variable OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES
OPENSSL_INCLUDE_DIR) (Required is at least version "0.9.8")
it is because RedHat decided to pre-install [a stripped down version of] OpenSSL and you do not have the developers package there.
Try this:
rpm -qa | grep openssl
If you got only
openssl-1.0.1e-16.el6_5.4.x86_64
Install the development package which got the headers and the extras
sudo yum -y install openssl-devel
and then run cmake command again
Wednesday, February 12, 2014
SSH/SCP to a remote machine / AWS from a terminal with a security key
Both 'ssh' and 'scp' Linux/Unix commands got '-i' option which accepts a path to the key file, so the commands look this way:
ssh -i /path/to/my/key/file.pem user@111.222.333.444
scp -i /path/to/my/key/file.pem ./src_file.gz user@111.222.333.444:/tmp/destintation_file.gz
ssh -i /path/to/my/key/file.pem user@111.222.333.444
scp -i /path/to/my/key/file.pem ./src_file.gz user@111.222.333.444:/tmp/destintation_file.gz
Subscribe to:
Posts (Atom)