Thursday, November 12, 2015

Drupal is a free and open-source content management framework (CMF) written in PHP and distributed under the GNU General Public License. Drupal provides deep capabilities and endless flexibility on the web.

# Install Nginx

sudo su

apt-get install nginx


# Start Server

/etc/init.d/nginx start

# TEST THE WEB SERVER
# WELCOME #

# Install PHP

apt-get install php5-fpm

# edit site default

nano /etc/nginx/sites-enabled/default

      # insert index.php after index

      index index.php index.html index.htm;

       # Edit Location

        location ~ \.php$ {
           fastcgi_split_path_info ^(.+\.php)(/.+)$;
           fastcgi_pass unix:/var/run/php5-fpm.sock;
           fastcgi_index index.php;
        include fastcgi.conf;
       }

# Reload nginx

/etc/init.d/nginx reload

# TEST PHP

nano /var/www/html/index.php

<?php echo phpinfo();?>


------------------- Nginx Success Installed ---------------------------------

# Configure PHP-FPM

nano /etc/php5/fpm/php.ini

cgi.fix_pathinfo=0


# Check www.conf

nano /etc/php5/fpm/pool.d/www.conf

listen = /var/run/php5-fpm.sock

# Install Drupal

apt-get install php5-mysql

apt-get install php5-gd

# Create Database
mysql -u root -p

CREATE DATABASE black_coffee;

GRANT ALL PRIVILEGES ON black_coffee.* TO root@localhost IDENTIFIED BY 'ratimint.org';


cd /var/www/html/ratimint

# CHANGE php.ini

nano /etc/php5/fpm/php.ini

session.auto_start = Off
mbstring.http_input = pass
mbstring.http_output = pass
mbstring.encoding_translation = Off


# Or modify

nano /var/www/html/ratimint/sites/default/default.settings.php

---------------- server is ready ------------

cd /tmp/

wget http://ftp.drupal.org/files/projects/drupal-7.7.tar.gz


tar xvfz drupal-7.7.tar.gz 

cd drupal-7.7

cp * /var/www/html/ratimint/ -R

chown -R www-data:www-data /var/www/html/ratimint/


nano /etc/nginx/sites-available/ratimint


server {
       listen 80;
       server_name www.ratimint.org ratimint.org;
       root /var/www/html/ratimint/;
       if ($http_host != "www.ratimint.org") {
                 rewrite ^ http://www.ratimint.org$request_uri permanent;
       }
       index index.php index.html;
       location = /favicon.ico {
                log_not_found off;
                access_log off;
       }
       location = /robots.txt {
                allow all;
                log_not_found off;
                access_log off;
       }

# Make sure files with the following extensions do not get loaded by nginx because nginx would display the source code, and these files can contain PASSWORDS!

        location ~* \.(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)$|^(\..*|Entries.*|Repository|Root|Tag|Template)$|\.php_ {
                deny all;
        }
       # Deny all attempts to access hidden files such as .htaccess, .htpasswd, .DS_Store (Mac).
       location ~ /\. {
                deny all;
                access_log off;
                log_not_found off;
       }
       location / {
                try_files $uri $uri/ /index.php?$args;
       }
       location ~*  \.(jpg|jpeg|png|gif|css|js|ico)$ {
                expires max;
                log_not_found off;
       }
       location ~ \.php$ {
                try_files $uri =404;
                include /etc/nginx/fastcgi_params;
                fastcgi_pass 127.0.0.1:9000;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
       }




cd /etc/nginx/sites-enabled/
ln -s /etc/nginx/sites-available/ratimint www.ratimint.org


/etc/init.d/nginx reload

Browser ?? http://localhost/ratimint
And Install Drupal



# On Error


1.) File: /ratimint/includes/unicode.inc

Changed Line #76 from:

'\x{D800}-\x{F8FF}\x{FB29}\x{FD3E}-\x{FD3F}\x{FDFC}-\x{FDFD}' .

To:

'\x{E800}-\x{F8FF}\x{FB29}\x{FD3E}-\x{FD3F}\x{FDFC}-\x{FDFD}' .

As per the same file in Drupal 7.34, yes, really that simple, one letter changed.

NOTE: Below must be done DURING install (the configure site page when the error appears).


2.) File: /ratimint/includes/menu.inc

Changed line #3155 from:

if (!$existing_item || (array_intersect_assoc($item, $existing_item)) != $existing_item) {

To:

if (!$existing_item || (array_intersect_key($item, $existing_item) != $existing_item)) {

Method change and brackets were in the wrong places.

Below is how I solved the error specific to THIS post...

NOTE: The below must be done AFTER install, after clicking visit your site and getting the error.


3.) File: /ratimint/includes/database/query.inc

<?php
function __clone() {
    $this->changed = TRUE;
    foreach ($this->conditions as $key => $condition) {
      
            if ($condition['field'] instanceOf QueryConditionInterface) {
                $this->conditions[$key]['field'] = clone($condition['field']);
         
        }
    }
 }
?>

To:

<?php
function __clone() {
    $this->changed = TRUE;
    foreach ($this->conditions as $key => $condition) {
        if( isset($condition['field'])){     //THIS SHOULD TAKE CARE OF THE ERROR 
            if ($condition['field'] instanceOf QueryConditionInterface) {
                $this->conditions[$key]['field'] = clone($condition['field']);
            }
        }
    }
 }
?>

# You Can Try call http://localhost/ratimint

Install Drupal with Nginx on an Debian Jessie

Drupal is a free and open-source content management framework (CMF) written in PHP and distributed under the GNU General Public License. Drupal provides deep capabilities and endless flexibility on the web.

# Install Nginx

sudo su

apt-get install nginx


# Start Server

/etc/init.d/nginx start

# TEST THE WEB SERVER
# WELCOME #

# Install PHP

apt-get install php5-fpm

# edit site default

nano /etc/nginx/sites-enabled/default

      # insert index.php after index

      index index.php index.html index.htm;

       # Edit Location

        location ~ \.php$ {
           fastcgi_split_path_info ^(.+\.php)(/.+)$;
           fastcgi_pass unix:/var/run/php5-fpm.sock;
           fastcgi_index index.php;
        include fastcgi.conf;
       }

# Reload nginx

/etc/init.d/nginx reload

# TEST PHP

nano /var/www/html/index.php

<?php echo phpinfo();?>


------------------- Nginx Success Installed ---------------------------------

# Configure PHP-FPM

nano /etc/php5/fpm/php.ini

cgi.fix_pathinfo=0


# Check www.conf

nano /etc/php5/fpm/pool.d/www.conf

listen = /var/run/php5-fpm.sock

# Install Drupal

apt-get install php5-mysql

apt-get install php5-gd

# Create Database
mysql -u root -p

CREATE DATABASE black_coffee;

GRANT ALL PRIVILEGES ON black_coffee.* TO root@localhost IDENTIFIED BY 'ratimint.org';


cd /var/www/html/ratimint

# CHANGE php.ini

nano /etc/php5/fpm/php.ini

session.auto_start = Off
mbstring.http_input = pass
mbstring.http_output = pass
mbstring.encoding_translation = Off


# Or modify

nano /var/www/html/ratimint/sites/default/default.settings.php

---------------- server is ready ------------

cd /tmp/

wget http://ftp.drupal.org/files/projects/drupal-7.7.tar.gz


tar xvfz drupal-7.7.tar.gz 

cd drupal-7.7

cp * /var/www/html/ratimint/ -R

chown -R www-data:www-data /var/www/html/ratimint/


nano /etc/nginx/sites-available/ratimint


server {
       listen 80;
       server_name www.ratimint.org ratimint.org;
       root /var/www/html/ratimint/;
       if ($http_host != "www.ratimint.org") {
                 rewrite ^ http://www.ratimint.org$request_uri permanent;
       }
       index index.php index.html;
       location = /favicon.ico {
                log_not_found off;
                access_log off;
       }
       location = /robots.txt {
                allow all;
                log_not_found off;
                access_log off;
       }

# Make sure files with the following extensions do not get loaded by nginx because nginx would display the source code, and these files can contain PASSWORDS!

        location ~* \.(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)$|^(\..*|Entries.*|Repository|Root|Tag|Template)$|\.php_ {
                deny all;
        }
       # Deny all attempts to access hidden files such as .htaccess, .htpasswd, .DS_Store (Mac).
       location ~ /\. {
                deny all;
                access_log off;
                log_not_found off;
       }
       location / {
                try_files $uri $uri/ /index.php?$args;
       }
       location ~*  \.(jpg|jpeg|png|gif|css|js|ico)$ {
                expires max;
                log_not_found off;
       }
       location ~ \.php$ {
                try_files $uri =404;
                include /etc/nginx/fastcgi_params;
                fastcgi_pass 127.0.0.1:9000;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
       }




cd /etc/nginx/sites-enabled/
ln -s /etc/nginx/sites-available/ratimint www.ratimint.org


/etc/init.d/nginx reload

Browser ?? http://localhost/ratimint
And Install Drupal



# On Error


1.) File: /ratimint/includes/unicode.inc

Changed Line #76 from:

'\x{D800}-\x{F8FF}\x{FB29}\x{FD3E}-\x{FD3F}\x{FDFC}-\x{FDFD}' .

To:

'\x{E800}-\x{F8FF}\x{FB29}\x{FD3E}-\x{FD3F}\x{FDFC}-\x{FDFD}' .

As per the same file in Drupal 7.34, yes, really that simple, one letter changed.

NOTE: Below must be done DURING install (the configure site page when the error appears).


2.) File: /ratimint/includes/menu.inc

Changed line #3155 from:

if (!$existing_item || (array_intersect_assoc($item, $existing_item)) != $existing_item) {

To:

if (!$existing_item || (array_intersect_key($item, $existing_item) != $existing_item)) {

Method change and brackets were in the wrong places.

Below is how I solved the error specific to THIS post...

NOTE: The below must be done AFTER install, after clicking visit your site and getting the error.


3.) File: /ratimint/includes/database/query.inc

<?php
function __clone() {
    $this->changed = TRUE;
    foreach ($this->conditions as $key => $condition) {
      
            if ($condition['field'] instanceOf QueryConditionInterface) {
                $this->conditions[$key]['field'] = clone($condition['field']);
         
        }
    }
 }
?>

To:

<?php
function __clone() {
    $this->changed = TRUE;
    foreach ($this->conditions as $key => $condition) {
        if( isset($condition['field'])){     //THIS SHOULD TAKE CARE OF THE ERROR 
            if ($condition['field'] instanceOf QueryConditionInterface) {
                $this->conditions[$key]['field'] = clone($condition['field']);
            }
        }
    }
 }
?>

# You Can Try call http://localhost/ratimint

Sunday, January 25, 2015

kloxo mr is alternative free web hosting control panel that can be solution for you who don’t want to manually install webserver, mysql/mariadb and php. why Kloxo? because it has features that are on offer include, support operating system redhat/centos 5 or 6 with 32/64bit, billing software AWBS, WHMCS, HostBill, TheHostingTool, AccountLab Plus and Blesta. with webserver Nginx, Nginx-Proxy and Lighttpd-proxy beside Httpd and Lighttpd and dual php as primary with php 5.3/5.4. for database with mysql and mariadb and many more, can see on here

how to install

Login your server as root and run

# yum update -y
and install some necessary packages
# yum install yum-utils yum-priorities vim-minimal subversion curl zip unzip telnet wget -y
disabled selinux
# echo 'SELINUX=disabled' > /etc/selinux/config
and check with
# setenforce 0

add repo kloxo-mr
# cd /tmp

# rm -f mratwork*

# wget https://github.com/mustafaramadhan/kloxo/raw/rpms/release/neutral/noarch$

# rpm -ivh mratwork-release-0.0.1-1.noarch.rpm
back to / dir, update repo and install

# cd /

# yum clean all

# yum update mratwork-* -y

# yum install kloxomr7 -y

and last command
# sh /script/upcp

Now you can acces kloxo-mr with web browser  on

https://1ip-address:7777 – secure ssl connection, or..
http://1ip-address:7778 – normal one.

INSTALL KLOXO-MR ON CENTOS

kloxo mr is alternative free web hosting control panel that can be solution for you who don’t want to manually install webserver, mysql/mariadb and php. why Kloxo? because it has features that are on offer include, support operating system redhat/centos 5 or 6 with 32/64bit, billing software AWBS, WHMCS, HostBill, TheHostingTool, AccountLab Plus and Blesta. with webserver Nginx, Nginx-Proxy and Lighttpd-proxy beside Httpd and Lighttpd and dual php as primary with php 5.3/5.4. for database with mysql and mariadb and many more, can see on here

how to install

Login your server as root and run

# yum update -y
and install some necessary packages
# yum install yum-utils yum-priorities vim-minimal subversion curl zip unzip telnet wget -y
disabled selinux
# echo 'SELINUX=disabled' > /etc/selinux/config
and check with
# setenforce 0

add repo kloxo-mr
# cd /tmp

# rm -f mratwork*

# wget https://github.com/mustafaramadhan/kloxo/raw/rpms/release/neutral/noarch$

# rpm -ivh mratwork-release-0.0.1-1.noarch.rpm
back to / dir, update repo and install

# cd /

# yum clean all

# yum update mratwork-* -y

# yum install kloxomr7 -y

and last command
# sh /script/upcp

Now you can acces kloxo-mr with web browser  on

https://1ip-address:7777 – secure ssl connection, or..
http://1ip-address:7778 – normal one.
by default XAMPP won’t start the apache and mysql, to create a launch that runs at system startup
open terminal and run command

$ cd /Library/LaunchDaemons
$ sudo nano apachefriends.xampp.apache.start.plist

and insert

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs$
<plist version="1.0">
<dict>
<key>EnableTransactions</key>
<true/>
<key>Label</key>
<string>apachefriends.xampp.apache.start</string>
<key>ProgramArguments</key>
<array>
<string>/Applications/XAMPP/xamppfiles/xampp</string>
<string>startapache</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>WorkingDirectory</key>
<string>/Applications/XAMPP/xamppfiles</string>
<key>KeepAlive</key>
<false/>
<key>AbandonProcessGroup</key>
<true/>
</dict>
</plist>

save with ctrl + o and exit with ctrl + x

and now run command on terminal
$ sudo nano apachefriends.xampp.mysql.start.plist 

and paste this
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs$
<plist version="1.0">
<dict>
<key>EnableTransactions</key>
<true/>
<key>Label</key>
<string>apachefriends.xampp.mysql.start</string>
<key>ProgramArguments</key>
<array>
<string>/Applications/XAMPP/xamppfiles/xampp</string>
<string>startmysql</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>WorkingDirectory</key>
<string>/Applications/XAMPP/xamppfiles</string>
<key>KeepAlive</key>
<false/>
<key>AbandonProcessGroup</key>
<true/>
</dict>
</plist>

save with ctrl + o and exit with ctrl + x

and reboot your osx apache and mysql service on your xampp will start automatically.

Launch XAMPP OSX on Startup

by default XAMPP won’t start the apache and mysql, to create a launch that runs at system startup
open terminal and run command

$ cd /Library/LaunchDaemons
$ sudo nano apachefriends.xampp.apache.start.plist

and insert

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs$
<plist version="1.0">
<dict>
<key>EnableTransactions</key>
<true/>
<key>Label</key>
<string>apachefriends.xampp.apache.start</string>
<key>ProgramArguments</key>
<array>
<string>/Applications/XAMPP/xamppfiles/xampp</string>
<string>startapache</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>WorkingDirectory</key>
<string>/Applications/XAMPP/xamppfiles</string>
<key>KeepAlive</key>
<false/>
<key>AbandonProcessGroup</key>
<true/>
</dict>
</plist>

save with ctrl + o and exit with ctrl + x

and now run command on terminal
$ sudo nano apachefriends.xampp.mysql.start.plist 

and paste this
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs$
<plist version="1.0">
<dict>
<key>EnableTransactions</key>
<true/>
<key>Label</key>
<string>apachefriends.xampp.mysql.start</string>
<key>ProgramArguments</key>
<array>
<string>/Applications/XAMPP/xamppfiles/xampp</string>
<string>startmysql</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>WorkingDirectory</key>
<string>/Applications/XAMPP/xamppfiles</string>
<key>KeepAlive</key>
<false/>
<key>AbandonProcessGroup</key>
<true/>
</dict>
</plist>

save with ctrl + o and exit with ctrl + x

and reboot your osx apache and mysql service on your xampp will start automatically.

Saturday, January 24, 2015

to solve the problem of  Adobe Flash Player OSX" Process not Elevated "workaround when installing adobe flash player open a terminal and run

sudo /Volumes/Adobe\ Flash\ Player\ Installer/Install\ Adobe\ Flash\ Player.app/Contents/MacOS/Install\ Adobe\ Flash\ Player

Adobe Flash Player OSX "Process not Elevated" workaround

to solve the problem of  Adobe Flash Player OSX" Process not Elevated "workaround when installing adobe flash player open a terminal and run

sudo /Volumes/Adobe\ Flash\ Player\ Installer/Install\ Adobe\ Flash\ Player.app/Contents/MacOS/Install\ Adobe\ Flash\ Player

Wednesday, December 10, 2014

TITAN2D is a free software application developed by the Geophysical Mass Flow Group at the State University of New York (SUNY) at Buffalo. TITAN2D was developed for the purpose of simulating granular flows (primarily geological mass flows such as debris avalanches and landslides) over digital elevation models (DEM)s of natural terrain. The code is designed to help scientists and civil protection authorities assess the risk of, and mitigate, hazards due to dry debris flows and avalanches. TITAN2D combines numerical simulations of a flow with digital elevation data of natural terrain supported through a Geographical Information System (GIS) interface such as GRASS.

TITAN2D is capable of multiprocessor runs. A Message Passing Interface (MPI) Application Programming Interface (API) allows for parallel computing on multiple processors, which effectively increases computational power, decreases computing time, and allows for the use of large data sets.

Adaptive gridding allows for the concentration of computing power on regions of special interest. Mesh refinement captures the complex flow features that occur at the leading edge of a flow, as well as locations where rapid changes in topography induce large mass and momentum fluxes. Mesh unrefinement is applied where solution values are relatively constant or small to further improve computational efficiency.

TITAN2D requires an initial volume and shape estimate for the starting material, a basal friction angle, and an internal friction angle for the simulated granular flow. The direct outputs of the program are dynamic representations of a flow's depth and momentum. Secondary or derived outputs include flow velocity, and such field-observable quantities as run-up height, deposit thickness, and inundation area.



HOW TO INSTALL
---------------------------------------------------------------------------
fedora 20 install titan-2d
---------------------------------------------------------------------------

1 Preliminary Note
install fresh fedora 20


2 Installing

yum groupinstall 'Development Tools'

yum install tkinter gcc gcc-c++ zlib-devel gfortran compat-gcc-34-g77 ImageMagick gdal

cd /tmp

http://rpm.pbone.net/index.php3/stat/4/idpl/25105069/dir/fedora_20/com/GMT-devel-4.5.11-1.fc20.i686.rpm.html

yum install GMT-4.5.11-1.fc20.i686.rpm


3 Installing Grass53

yum install grass

yum install mpich2


cd /

vi .bashrc

export PATH=/usr/lib/mpich2/bin:$PATH
export LD_LIBRARY_PATH=/usr/lib/mpich2/bin:${LD_LIBRARY_PATH}




DOWNGRADE grass 5.3.0
--------------------------------------------------------------------

cd /tmp/
wget http://grass.osgeo.org/grass53/source/grass-5.3.0.tar.gz


cp /tmp/grass-5.3.0.tar.gz /usr/bin/
cd /usr/bin/
tar zxvf grass-5.3.0.tar.gz

cp /tmp/grass-5.3.0.tar.gz /usr/local/
cd /usr/local/
tar zxvf grass-5.3.0.tar.gz


cd /tmp/
wget ftp://rpmfind.net/linux/fedora/linux/releases/19/Everything/i386/os/Packages/m/mpich2-devel-1.5-3.fc19.i686.rpm

yum install mpich2-devel-1.5-3.fc19.i686.rpm



wget http://www.open-mpi.org/software/ompi/v1.6/downloads/openmpi-1.6.3.tar.gz


tar xzvf openmpi-1.6.3.tar.gz

cd openmpi-1.6.3
./configure --prefix=/usr/local
make
make install


wget http://softlayer-sng.dl.sourceforge.net/project/titan2d/titan2d/titan-2.0.0/titan-2.0.0.tar.gz

tar xzvf titan-2.0.0.tar.gz
cd titan-2.0.0
./configure --with-grass=/usr/lib/grass-6.4.3 --without-hdf5 --with-mpi=/usr/lib/mpich2 


make     


make install

How to install TITAN2D fedora 20

TITAN2D is a free software application developed by the Geophysical Mass Flow Group at the State University of New York (SUNY) at Buffalo. TITAN2D was developed for the purpose of simulating granular flows (primarily geological mass flows such as debris avalanches and landslides) over digital elevation models (DEM)s of natural terrain. The code is designed to help scientists and civil protection authorities assess the risk of, and mitigate, hazards due to dry debris flows and avalanches. TITAN2D combines numerical simulations of a flow with digital elevation data of natural terrain supported through a Geographical Information System (GIS) interface such as GRASS.

TITAN2D is capable of multiprocessor runs. A Message Passing Interface (MPI) Application Programming Interface (API) allows for parallel computing on multiple processors, which effectively increases computational power, decreases computing time, and allows for the use of large data sets.

Adaptive gridding allows for the concentration of computing power on regions of special interest. Mesh refinement captures the complex flow features that occur at the leading edge of a flow, as well as locations where rapid changes in topography induce large mass and momentum fluxes. Mesh unrefinement is applied where solution values are relatively constant or small to further improve computational efficiency.

TITAN2D requires an initial volume and shape estimate for the starting material, a basal friction angle, and an internal friction angle for the simulated granular flow. The direct outputs of the program are dynamic representations of a flow's depth and momentum. Secondary or derived outputs include flow velocity, and such field-observable quantities as run-up height, deposit thickness, and inundation area.



HOW TO INSTALL
---------------------------------------------------------------------------
fedora 20 install titan-2d
---------------------------------------------------------------------------

1 Preliminary Note
install fresh fedora 20


2 Installing

yum groupinstall 'Development Tools'

yum install tkinter gcc gcc-c++ zlib-devel gfortran compat-gcc-34-g77 ImageMagick gdal

cd /tmp

http://rpm.pbone.net/index.php3/stat/4/idpl/25105069/dir/fedora_20/com/GMT-devel-4.5.11-1.fc20.i686.rpm.html

yum install GMT-4.5.11-1.fc20.i686.rpm


3 Installing Grass53

yum install grass

yum install mpich2


cd /

vi .bashrc

export PATH=/usr/lib/mpich2/bin:$PATH
export LD_LIBRARY_PATH=/usr/lib/mpich2/bin:${LD_LIBRARY_PATH}




DOWNGRADE grass 5.3.0
--------------------------------------------------------------------

cd /tmp/
wget http://grass.osgeo.org/grass53/source/grass-5.3.0.tar.gz


cp /tmp/grass-5.3.0.tar.gz /usr/bin/
cd /usr/bin/
tar zxvf grass-5.3.0.tar.gz

cp /tmp/grass-5.3.0.tar.gz /usr/local/
cd /usr/local/
tar zxvf grass-5.3.0.tar.gz


cd /tmp/
wget ftp://rpmfind.net/linux/fedora/linux/releases/19/Everything/i386/os/Packages/m/mpich2-devel-1.5-3.fc19.i686.rpm

yum install mpich2-devel-1.5-3.fc19.i686.rpm



wget http://www.open-mpi.org/software/ompi/v1.6/downloads/openmpi-1.6.3.tar.gz


tar xzvf openmpi-1.6.3.tar.gz

cd openmpi-1.6.3
./configure --prefix=/usr/local
make
make install


wget http://softlayer-sng.dl.sourceforge.net/project/titan2d/titan2d/titan-2.0.0/titan-2.0.0.tar.gz

tar xzvf titan-2.0.0.tar.gz
cd titan-2.0.0
./configure --with-grass=/usr/lib/grass-6.4.3 --without-hdf5 --with-mpi=/usr/lib/mpich2 


make     


make install

Tuesday, December 9, 2014

Gammu is used to control the phone that made the C language. You can play a lot of things and a very easy way to manipulation.
While gammu-smsd is a daemon that runs continuously behind the scenes program.

In this manual before installation, you need to run centos minimal install, you can use a USB or CD media to install it.

mysql

install completeness compilation needs.

yum groupinstall 'Development Tools'

check whether the compiler is complete according to the need, if not add and fill compiler.

yum install gcc gcc-c++ ncurses-devel


Install cmake
-------------
cd /tmp/

wget http://www.cmake.org/files/v3.0/cmake-3.0.0.tar.gz

tar -zxvf cmake-3.0.0.tar.gz

cd cmake-3.0.0

.bootstrap
gmake
gmake install


check cmake installed

cmake -version

Install gammu 64 bit
-------------

http://software.opensuse.org/package/gammu

wget http://download.opensuse.org/repositories/home:/Nijel/CentOS_CentOS-6/x86_64/gammu-1.33.0-2.2.x86_64.rpm

yum install gammu-1.33.0-2.2.x86_64.rpm -y



check modem are used

dmesg


gammu --identify

gammu-config



Create mysql database:

mysql -uroot -p

create database dbsms;

\q

import data tab:

mysql -uroot -p dbsms < /root/gammu-1.33.0/docs/sql/mysql.sql




vi /etc/gammu-smsdrc


[gammu]
device = /dev/ttyACM0
model = E173 (E173)
connection = at115200

[smsd]
service = sql
driver = native_mysql
PIN = 1234
logfile = /var/log/gammu/smsdlog
debuglevel = 1
#runonreceive = /some/script
commtimeout = 30
sendtimeout = 30
user =
password =
pc = localhost
database = dbsms


esc:wq

simple use:

gammu-smsd --daemon

ps aux | grep gammu-smsd

tail -f /var/log/gammu/smsdlog

How to Install Gammu Centos 7

Gammu is used to control the phone that made the C language. You can play a lot of things and a very easy way to manipulation.
While gammu-smsd is a daemon that runs continuously behind the scenes program.

In this manual before installation, you need to run centos minimal install, you can use a USB or CD media to install it.

mysql

install completeness compilation needs.

yum groupinstall 'Development Tools'

check whether the compiler is complete according to the need, if not add and fill compiler.

yum install gcc gcc-c++ ncurses-devel


Install cmake
-------------
cd /tmp/

wget http://www.cmake.org/files/v3.0/cmake-3.0.0.tar.gz

tar -zxvf cmake-3.0.0.tar.gz

cd cmake-3.0.0

.bootstrap
gmake
gmake install


check cmake installed

cmake -version

Install gammu 64 bit
-------------

http://software.opensuse.org/package/gammu

wget http://download.opensuse.org/repositories/home:/Nijel/CentOS_CentOS-6/x86_64/gammu-1.33.0-2.2.x86_64.rpm

yum install gammu-1.33.0-2.2.x86_64.rpm -y



check modem are used

dmesg


gammu --identify

gammu-config



Create mysql database:

mysql -uroot -p

create database dbsms;

\q

import data tab:

mysql -uroot -p dbsms < /root/gammu-1.33.0/docs/sql/mysql.sql




vi /etc/gammu-smsdrc


[gammu]
device = /dev/ttyACM0
model = E173 (E173)
connection = at115200

[smsd]
service = sql
driver = native_mysql
PIN = 1234
logfile = /var/log/gammu/smsdlog
debuglevel = 1
#runonreceive = /some/script
commtimeout = 30
sendtimeout = 30
user =
password =
pc = localhost
database = dbsms


esc:wq

simple use:

gammu-smsd --daemon

ps aux | grep gammu-smsd

tail -f /var/log/gammu/smsdlog