A quick note how to add a key from myKey.pem file to authorized keys on Linux.
The permissions for ~/.ssh/ folder should be 700. Permissions for authorized_keys file and myKey.pem are to be 600. Continue reading
A quick note how to add a key from myKey.pem file to authorized keys on Linux.
The permissions for ~/.ssh/ folder should be 700. Permissions for authorized_keys file and myKey.pem are to be 600. Continue reading
Tomcat 7 worked fine with Java 1.7 When I updated Java to 1.8 I got Unsupported major.minor version 52.0 error in Tomcat.
Solution: edit /etc/default/tomcat7 and set JAVA_HOME to Java 8 location. My variant is
1 |
JAVA_HOME=/usr/lib/jvm/java-8-oracle |
How to redirect output both to screen and file, separate stderr and stdout etc.
Linux shell has 3 file descriptors:
How to install and configure Ganglia monitoring tool on a cluster.
Prerequisites:
Deployment plan:
Quick notes how to install Apache Tomcat 6 on Ubuntu 14.10
1 |
apt-get install tomcat7 tomcat7-admin |
1 |
dpkg-reconfigure tomcat7 |
Simple sed script to edit property value in config file:
1 |
sed -i "s/^\s*myparam\s*=\s*.*/myparam=mynewvalue/g" test.txt |
My bash scripts to clear Storm and Zookeeper cluster remotely by ssh.
Connect to every zookeeper server by ssh and stop zookeeper, then delete data folder. Then connect to every Storm node by ssh, kill Storm processes and delete data folder. Connect to zookeeper servers again, start them. Connect to Storm nodes again, start them. Continue reading
Symptoms: run Quik (stock exchange trading software) in Wine or PlayOnLinux and see unreadable symbols instead of cyrillic fonts.
Solution:
I extracted some pieces from a good tutorial from official site: http://docs.mongodb.org/manual/tutorial/ adopted for my tasks.
Import MongoDB public key:
1 |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 |
Old fashioned way to create Linux daemon script and make it auto run.
Open editor
$ sudo nano myservice
and create the following script in home folder: