Monday, October 13, 2014
How To Set Up Database Replication In MySQL On Ubuntu 12.04
CONFIGURE THE MASTER DATABASE MYSQL :
The First you must login and create new user slave on Master Database Mysql
mysql -u root -p
Create user 'slave' with password='slave' on Master Server
Mysql> create database test;
mysql> GRANT REPLICATION SLAVE ON *.* TO 'slave'@'192.9.18.25' IDENTIFIED BY slave';
Friday, October 10, 2014
Cara Install Owncloud pada Ubuntu 12.04
This document describes how to install and configure ownCloud on Ubuntu 14.04. I will also connect to the ownCloud Server's data with another Ubuntu 14.04 Desktop and a Windows machine. ownCloud provides access to your data through a web interface or WebDAV while providing a platform to easily view, sync and share across devices—all under your control. ownCloud’s open architecture is extensible via a simple but powerful API for applications and plugins and works with any storage.
Artikel ini menjelaskan bagaimana menginstall dan mengkonfigurasi own cloud on ubuntu 12.04 .
Saya juga akan menyambungkan data server owncloud antara ubuntu 12.04 dengan desktop yang di inststall windows 7.
owncloud menyediakan akses ke data dengan menggunakan interface web atau webdev sehingga memudahkan platform lebih mudah untuk melihat data.
sync dan share semua alat dibawah kontrol anda.
owncloud membuka arsitekture sebuah tambahan yang sederhana tetapi bisa di andalkan API untuk aplikasi dan plugin dan bekerja dengan banyak media penyimpanan.
1 Catatan utama
tutorial ini menggunakan Ubuntu 12.04 , jadi anda dapat menginstall terlebih dahulu sebelum melanjutkan tutorial ini .
system harus memiliki static IP address. dan saya menggunakan IP 192.18.9.27 atau anda juga bisa menggunakan server name server.example.com untuk memanggil namanya. kemudian untuk windowsnya anda bisa memberikan IP 192.9.18.37.
2 Proses install ownCloud
OwnCloud adalah web application yang dapat menyimpan content dari lokasi utama,seperti Dropbox.
Pertama kita download aplikasi terbaru software Owncloud :
cd /tmp
wget http://download.opensuse.org/repositories/isv:ownCloud:community/xUbuntu_14.04/Release.key
sudo apt-key add - < Release.key
Tuesday, October 7, 2014
install file .rpm on ubuntu
install alient application from revository :
sudo apt-get install alien dpkg-dev debhelper build-essential
convert package from .rpm into .deb format :
sudo alien packagename.rpm
Install Application
sudo dpkg -i packagename.deb
good luck
Friday, September 26, 2014
Can't export more than 5000 rows to Excel?
Question :
I have a problem about export data to xls,
I can't export more then 5000 rows to excel?
Answer :
Well after doing my last testing i found the answer and was very easy.
I was using LINUX UBUNTU 64 bit and it uses OPEN OFFICE (LIBRE CALC) and this program is only showing 5000 rows.
The solution is:
Open the file using Microsoft Excel on Windows.
Thank you.
Tuesday, September 23, 2014
How to Change Date Format on JQGrid
How to Change Date Format on JQGrid
Before :
{name:'LASTUPDATE',index:'LASTUPDATE', width:90},
After :
{name:'LASTUPDATE',index:'LASTUPDATE', width:90, formatter : 'date', formatoptions: {newformat: 'd/m/Y'}},
Monday, September 15, 2014
Delete from data select in SQL Server
Delete from data select
example :
delete tm_access_det from tm_access_det
inner join tm_access_hdt a on AJD_HeaderID=AJH_ID
inner join tbmst_section on ajh_sectioncode=sec_sectioncode
inner join tbmst_employee on em_emplcode=AJD_Emplcode
where AJD_Emplcode=20285
and SEC_DEPARTMENT='QC'
inner join tm_access_hdt a on AJD_HeaderID=AJH_ID
inner join tbmst_section on ajh_sectioncode=sec_sectioncode
inner join tbmst_employee on em_emplcode=AJD_Emplcode
where AJD_Emplcode=20285
and SEC_DEPARTMENT='QC'
update from data select in sql server
update From data select
example :
update tm_access_det set AJD_Emplcode=20033
from tm_access_det
inner join tm_access_hdr a on AJD_HeaderID=AJH_ID
inner join tbmst_section on ajh_sectioncode=sec_sectioncode
inner join tbmst_employee on em_emplcode=AJD_Emplcode
where AJD_Emplcode=10043
from tm_access_det
inner join tm_access_hdr a on AJD_HeaderID=AJH_ID
inner join tbmst_section on ajh_sectioncode=sec_sectioncode
inner join tbmst_employee on em_emplcode=AJD_Emplcode
where AJD_Emplcode=10043
Sunday, September 14, 2014
How to Backup database mysql
Backup database mysql
open terminal :
mysqldump -u root -p root_password database_name > database_name.sql
open terminal :
mysqldump -u root -p root_password database_name > database_name.sql
Thursday, September 4, 2014
How to change or reset MySql root password on Linux
How to Set or change or reset the MySQL root password on Ubuntu Linux.
Enter the following lines in your terminal.
Stop the MySQL Server.
sudo /etc/init.d/mysql stop
Start the mysqld configuration.
sudo mysqld --skip-grant-tables &
Login to MySQL as root.
mysql -u root mysql
Replace YOURNEWPASSWORD with your new password!
UPDATE user SET Password=PASSWORD('YOURNEWPASSWORD') WHERE User='root'; FLUSH PRIVILEGES;
exit
Wednesday, September 3, 2014
Keunggulan Telegram dari WhatsApp
Aplikasi Telegram ini bisa berjalan pada Android ,iOS, Windows Phone, juga web version, OS X , OS Linux dan Windows desktop.
adapun beberapa keunggulan telegram dari whatsapp :
1. Telegram Lebih Cepat daripada WhatsApp
Tidak seperti WhatsApp, Telegram berbasis cloud (layanan komputasi awan) dan sangat terenkripsi. Hasilnya, Telegram menjadi lebih cepat daripada WhatsApp.
2. Telegram Lebih Aman daripada WhatsApp
Masih terkait cloud, basis data di sana membuat Telegram lebih aman.
3. Telegram Mudah Diakses dari Berbagai Perangkat
WhatsApp sebenarnya juga bisa diakses dari laptop. Namun, lagi-lagi karena faktor basis cloud, Telegram membuat Anda bisa mengakses pesan dari berbagai perangkat (termasuk PC) dan berbagi foto, video dan dokumen tanpa batas.
4. Telegram Bisa Berbagai File Hingga Ukuran GigaByte
Seperti dilansir Telegram dalam deskripsi di Google Play Store, aplikasi ini memungkinkan penggunanya berbagi file dan video hingga ukuran gigabyte.
5. Telegram Bebas Iklan
Meskipun WhatsApp dulunya juga bebas iklan, akuisisi mahal yang dilakukan Facebook atas aplikasi ini menimbulkan kekhawatiran bahwa WhatsApp akan dijejali iklan sebagaimana Facebook baik versi desktop maupun mobile. Sedangkan Telegram, developernya menjamin “100% free and no ads.”
6. Jumlah Anggota Grup Telegram Lebih Besar daripada WhatsApp
Mungkin Anda pernah merasakan betapa terbatasnya Grup WhatsApp yang membatasi anggotanya hanya 50 orang. Padahal, teman kantor atau teman alumni sekolah Anda lebih dari seratus orang. Sementara anggota grup WhatsApp terbatas 50 orang, anggota grup Telegram maksimal 200 orang. Empat kali lipan daripada WhatsApp. Ini salah satu alasan utama mengapa orang pindah ke Telegram.
Monday, September 1, 2014
install Telegram on Ubuntu
1. download application :
wget https://tdesktop.com/linux32 on a 32-bit system
or
wget https://tdesktop.com/linux on a 64-bit system
2. extact file
tar xvf linux*
3. Runing Application :
./Telegram/Telegram
Friday, July 4, 2014
Send Emali with SSMTP
install ssmtp :
sudo apt-get install ssmtp
Edit file ssmtp.conf
sudo vim /etc/ssmtp/ssmtp.conf
edit seperti dibawah ini :
# Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
#root=postmaster
root=test@gmail.com
# The place where the mail goes. The actual machine name is required no
# MX records are consulted. Commonly mailhosts are named mail.domain.com
#mailhub=mail
mailhub=smtp.gmail.com:587
AuthUser=test@gmail.com
AuthPass=xxxxxxxx
UseTLS=YES
UseSTARTTLS=YES
# Where will the mail seem to come from?
#rewriteDomain=
# The full hostname
hostname=test@gmail.com
# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address
FromLineOverride=YES
on php file :
//create fuction for send email
function sendmail ($cc,$to,$sb,$msg)
{
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= "From: aem@aem.co.id \r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'cc:'.$cc. "\r\n";
$headers .= 'Bcc:aem@aem.co.id'. "\r\n";
ini_set("SMTP","smtp.aem.co.id");
ini_set("sendmail_from",$mailfrom);
mail($to,$sb, $msg, $headers);
//return $true;
}
//send mail
$from: "xxx@xxx.com";
$mailto: "xxx@xxx.com";
$subject: "testing send email";
$message: "Test";
sendmail($from,$mailto,$subject,$message);
sudo apt-get install ssmtp
Edit file ssmtp.conf
sudo vim /etc/ssmtp/ssmtp.conf
edit seperti dibawah ini :
# Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
#root=postmaster
root=test@gmail.com
# The place where the mail goes. The actual machine name is required no
# MX records are consulted. Commonly mailhosts are named mail.domain.com
#mailhub=mail
mailhub=smtp.gmail.com:587
AuthUser=test@gmail.com
AuthPass=xxxxxxxx
UseTLS=YES
UseSTARTTLS=YES
# Where will the mail seem to come from?
#rewriteDomain=
# The full hostname
hostname=test@gmail.com
# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address
FromLineOverride=YES
on php file :
//create fuction for send email
function sendmail ($cc,$to,$sb,$msg)
{
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= "From: aem@aem.co.id \r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'cc:'.$cc. "\r\n";
$headers .= 'Bcc:aem@aem.co.id'. "\r\n";
ini_set("SMTP","smtp.aem.co.id");
ini_set("sendmail_from",$mailfrom);
mail($to,$sb, $msg, $headers);
//return $true;
}
//send mail
$from: "xxx@xxx.com";
$mailto: "xxx@xxx.com";
$subject: "testing send email";
$message: "Test";
sendmail($from,$mailto,$subject,$message);
Subscribe to:
Posts (Atom)
About Me
|


