Tag Archives: linux

Send email from Linux command line

Every once a while you need to send email from a Linux command line and there you go to google try to find it… With attachment: Without attachment: Important:Postfix by default restrict attachment size to approx 10MB i.e. 10240000 bytes. You can check it using following command: To change attachment-size to say 50 MB, run… Read More »

Install Java SE Development Kit 7u40 on CentOS 6.4

Installing JDK on CentOS can be hard, so to help you I’ve made this simple tutorial. Hope it helps… Download and install: Go to http://www.oracle.com/technetwork/java/javase/downloads/index.html an select JDK Download. Install JDK: [cc lang=”bash” width=”100%”] rpm -ivh /path-to-file/jdk-7u40-linux-i586.rpm [/cc] And set it up: [cc lang=”bash” width=”100%”] alternatives –install /usr/bin/java java /usr/java/latest/jre/bin/java 20000 alternatives –install /usr/bin/javaws javaws… Read More »