Wednesday, December 30, 2015

WHM/Cpanel update and license problems

Update your Centos, from console/terminal run:
# yum update -y
# /scripts/upcp update all
If your WHM/Cpanel asks you to activate your license, and your license not yet expired, run this command
# /usr/local/cpanel/cpkeyclt
To show WHM/Cpanel version via terminal
# cat /usr/local/cpanel/version
11.64.0.33

WHM Backup using WHM Web Console

Home »Backup »Backup Configuration

  1. Global Settings
    1. Backup Status -> Enable
    2. Backup Type -> Compressed (Compressed, Uncompressed, Incremental).
    3. Maximum destination timeout 7200 in seconds (default: 7200)
    4. Maximum restore timeout 21600 in seconds (default: 21600)
  2. Scheduling and Retention
    1. Backup Daily
    2. Backup Weekly
    3. Backup Monthly 1st of the month (default:1st of the month , 15th of the month) Retain 1 Monthly backups default:1.
  3. Files
    1. Backup Accounts select all active user (default:none) 
    2. Backup Suspended Accounts (default:Disable) 
    3. Backup Access Logs (default:Disable) 
    4. Backup Bandwidth Data (default:Enable) 
    5. Use Local DNS (default:Disable)
    6. Backup System Files (default: checked)
  4. Databases
    1. Backup SQL Databases Per Account Only  (default:Per Account Only, Entire MySQL Directory Per Account and Entire MySQL Directory)
  5. Configure Backup Directory 
    1. Default Backup Directory (default: /backup) 
    2. Retain backups in the default backup directory (default: checked) 
    3. Mount Backup Drive as Needed. (default:Disable)
  6. Additional Destinations
Save Configuration




Sunday, December 6, 2015

Blackberry Bold 9900 OS 7.0 build 1346 error 102

Blackberry 7.0 build 1346 error 102
symptoms:
  1. boot fail with error code 102
  2. boot loop
  3. can not enter safe mode using backspace or escape key (right cursor).
Download JL_Cmder from http://www.blackberryfreaks.com/JL_Cmder.html

To find out which parts causing problems, run JL_Cmder.cmd :
D:\JL_Cmder v1.9.0>JL_Cmder.cmd
follow instruction and choose "event log" (menu number 2).
save event log into notepad.

Find which corrupted parts occurred in event log, for examples:
  • guid:0x97C9F5F641D25E5F time: Thu Jan 01 07:00:00 1970 severity:0 type:2 app:System data:CMM: verifyHash1 failed for DocsToGoCommon-4(6424)
  • guid:0x97C9F5F641D25E5F time: Thu Jan 01 07:00:00 1970 severity:0 type:2 app:System data:CMM: data unlink failed for net_rim_bb_twitter-8(8699)
Remove them using JavaLoader.exe
D:\JL_Cmder v1.9.0>JavaLoader.exe -u erase -f net_rim_bb_twitter-8
RIM Wireless Handheld Java Loader
Copyright 2001-2007 Research In Motion Limited
Connected
Erasing net_rim_bb_twitter-8 Done
Disconnected

D:\JL_Cmder v1.9.0>JavaLoader.exe -u erase -f DocsToGoCommon-4
RIM Wireless Handheld Java Loader
Copyright 2001-2007 Research In Motion Limited
Connected
Erasing DocsToGoCommon-4 Done
Disconnected

D:\JL_Cmder v1.9.0>

References:
  1. http://crackberry.com/help-jvm-error-102-your-blackberry-try-solution-wiping
  2. http://www.blackberryfreaks.com/JL_Cmder.html
  3. http://www.blackberryfreaks.com/How_to_use_JL_Cmder.html

Friday, December 4, 2015

Upgrade Windows 10 Build 10240 to Build 10586 offline



Not more then 4 months, Microsoft has release Windows 10 Build 10586. This forced users to download Windows 10 Build 10586 to perform offline installation.
Offline installation may save your bandwidth!
There are 2 ways to download Windows 10 Build 10586:
  1. Using media creation tools that you can download from https://www.microsoft.com/en-us/software-download/windows10
  2. Direct download from https://www.microsoft.com/en-us/software-download/techbench (I preferred this one). 
Here are some mapping upgrading from previous Windows to Windows 10 Build 10586 
  1. Windows 7 stater edition -> Windows 10 Build 10240 32bit -> Windows 10 Build 10586 32bit.
  2. Windows 7 professional x64 -> Windows 10 Pro Build 10240 x64 -> Windows 10 Build 10586 x64.
  3. Windows 81 SL x64  -> Windows 10 SL Build 10240 x64 -> Windows 10 SL Build 10586 x64.
  4. Windows 81 Bing x64  -> Windows 10 SL Build 10240 x64 -> -> Windows 10 SL Build 10586 x64.
You can find complete list Windows upgrade from this page http://windows.microsoft.com/en-us/windows-10/upgrade-to-windows-10-faq.
Mount your iso files using Virtual CloneDrive and run setup.exe, if autorun not enable (I always set this off to prevent malicious script run)
For CPU N455 and Ram 2G, upgrading from windows 7 stater, took 2.5 hours for each step.
View in Linkedin Post

Tuesday, September 15, 2015

Windows 10 upgrade stop at 24%

It's so painful to upgrade windows 7/8.1 to Windows 10 when it stuck upgrading process at 24% during copying files. The upgrade was establishing using iso media.
After dozens of try without luck, I solved the problem by running setup.exe in iso media with opsions  /auto:upgrade /noauto exit /performED.

> Setup /auto:upgrade /noauto exit /performED

Unfortunelty, you have to perform this upgrade online.
Detail problems can be read from:
  1. https://forums.lenovo.com/t5/Lenovo-B-and-G-Series-Notebooks/Lenovo-G40-45-APU-6310-Windows-8-1-with-Bing-failed-to-upgrade/td-p/2162900
  2. http://answers.microsoft.com/en-us/windows/forum/windows_10-windows_install/windows-10-upgrade-error-80240054-80240020/4be7b9b9-d5c9-4019-9aa1-64a26b755b0f?auth=1
publish link:

Wednesday, August 19, 2015

How to fix Windows 10 Package KB3081438 failed to be changed to the Staged state. Status: 0x800f0816.

If you got error during Windows 10 (process download was stuck in something percentage), in Event Viewer (Win+X) > Windows Logs > Setup, you got
Package KB3081438 failed to be changed to the Staged state. Status: 0x800f0816, you need to restart Windows Update Service.
To fix that: Win+R and type services.msc, right click on Windows Update select restart.
You may check your update will continue, Windows button > Settings > Update & Security.

Tuesday, August 18, 2015

How to upgrade Debian 7 to Debian 8

ref: https://www.debian.org/releases/stable/i386/release-notes/ch-upgrading

checking system status:
1. make it full update
# apt-get update
# apt-get upgrade
2. disabling apt pinning /etc/apt/preferences.d or /etc/apt/preferences to allow new stable
3. check package status
# dpkg --audit
for aptitude
# aptitude search "~ahold"
for apt
# dpkg --get-selections | grep 'hold$'

remove unofficial source and add jessie repository in /etc/apt/sources.list

-------------------------
#

# deb cdrom:[Debian GNU/Linux 7.1.0 _Wheezy_ - Official amd64 CD Binary-1 20130615-23:06]/ wheezy main

#deb cdrom:[Debian GNU/Linux 7.1.0 _Wheezy_ - Official amd64 CD Binary-1 20130615-23:06]/ wheezy main

#deb http://security.debian.org/ wheezy/updates main
#deb-src http://security.debian.org/ wheezy/updates main
deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main

#deb http://kambing.ui.ac.id/debian/ wheezy main
#deb-src http://kambing.ui.ac.id/debian/ wheezy main
deb http://kambing.ui.ac.id/debian/ jessie main
deb-src http://kambing.ui.ac.id/debian/ jessie main

# wheezy-updates, previously known as 'volatile'
#deb http://kambing.ui.ac.id/debian/ wheezy-updates main
#deb-src http://kambing.ui.ac.id/debian/ wheezy-updates main

#deb http://http.debian.net/debian wheezy main
#deb-src http://http.debian.net/debian wheezy main

#deb http://http.debian.net/debian wheezy-updates main
#deb-src http://http.debian.net/debian wheezy-updates main

# Debian 7 (flash player adobe)
#deb http://ftp.de.debian.org/debian wheezy main contrib
#deb http://ftp.de.debian.org/debian wheezy main # duplicate

# Non Free Repository
#deb http://ftp.de.debian.org/debian wheezy main non-free
deb http://ftp.de.debian.org/debian jessie main non-free
-------------------------

add cd/dvd
1. verify cd/dvd
# mount /media/cdrom # this will mount the CD to the mount point
# ls -alF /media/cdrom # this should show the CD's root directory
# umount /media/cdrom # this will unmount the CD
2. add cd/dvd into apt
# apt-cdrom add

!MAKE SURE YOUR /etc/apt/sources.list refer either to “jessie”, no more wheezy

Start your upgrade
1. run
# apt-get update
if error appear "E: You don't have enough free space in /var/cache/apt/archives/."
# apt-get clean
# apt-get autoremove
2. minimal system upgrade
# apt-get upgrade
Must upgrade libc6 glibc
3. upgrade system
# apt-get dist-upgrade
4. use Package Updater to fix application update
5. add 3rd party repository

to fix and resume upgrade
# apt-get -f install

final repository /etc/apt/sources.list
#deb cdrom:[Debian GNU/Linux 8.0.0 _Jessie_ - Official amd64 CD Binary-1 2015042
5-12:54]/ jessie main

deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main

deb http://kambing.ui.ac.id/debian/ jessie main
deb-src http://kambing.ui.ac.id/debian/ jessie main

# Non Free Repository
deb http://ftp.de.debian.org/debian jessie main non-free

deb http://ftp.de.debian.org/debian jessie-backports main

How to fix grub-efi Debian 8 after windows 10 upgrade

After and during upgrading your Windows (with EFI/GPT) into Windows 10, grub-efi will broken.
----------------------------
Symtom:
----------------------------
error: no such partition
Entering rescue mode...
grub rescue>

1. Find linux
grub rescue> ls
(hd0) (hd0,gpt7) (hd0,gpt6) (hd0,gpt5) (hd0,gpt4) (hd0,gpt3) (hd0,gpt2) (hd0,gpt1) (hd1)
grub rescue> ls (hd0,gpt6)
(hd0,gpt6): Filesystem is unknown.
grub rescue> ls (hd0,gpt7)
(hd0,gpt7): Filesystem is ext2.
2. It is mark as (hd0,gpt7) as ext2. We search boot directory
grub rescue> ls (hd0,gpt7)/boot
./ ../ ...... /grub ......
3. It is contains folder boot. Good! We set root and prefix for normal boot
grub rescue> set root=(hd0,gpt7)
grub rescue> set prefix=(hd0,gpt7)/boot/grub
grub rescue> insmod normal
grub rescue> normal
4. Finish your Windows installation or upgrade. You may need to repeat step no. 3, everytime Windows ask you to restart your computer.
5. Using step no. 3, we enter Debian OS to repair grub. We reinstall grub-efi-amd64, or run apt-get install without --reinstall to install grub-efi-amd64
apt-get install --reinstall grub-efi-amd64
6. Create directory /boot/efi
# mkdir /boot/efi
7. Search partition for EFI
# fdisk -l
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 2248606F-393A-467A-9527-D0649049F9E3
Device         Start       End   Sectors   Size Type
/dev/sda1       2048    616447    614400   300M Windows recovery environment
/dev/sda2     616448    821247    204800   100M EFI System
/dev/sda3     821248   1083391    262144   128M Microsoft reserved
/dev/sda4    1083392 244840447 243757056 116.2G Microsoft basic data
/dev/sda5  245762048 567171071 321409024 153.3G Microsoft basic data
/dev/sda6  567171072 582795263  15624192   7.5G Linux swap
/dev/sda7  582795264 976771071 393975808 187.9G Microsoft basic data
8. We found EFI partition at /dev/sda2. Mount partition EFI into /boot/efi
# mount /dev/sda2 /boot/efi/
9. We install grub into EFI partition
# grub-install /dev/sda
Installing for x86_64-efi platform.
Installation finished. No error reported.
10. Done, you may restart your Debian.

Sunday, August 2, 2015

Android Development Tools: Which Packages to Install


As a minimum when setting up the Android SDK, you should download the latest tools and Android platform:
  1. Open the Tools directory and select:
    • Android SDK Tools
    • Android SDK Platform-tools
    • Android SDK Build-tools (highest version)
  2. Open the first Android X.X folder (the latest version) and select:
    • SDK Platform
    • A system image for the emulator, such as
      ARM EABI v7a System Image

The Android Support Library provides an extended set of APIs that are compatible with most versions of Android.
Open the Extras directory and select:
  • Android Support Repository
  • Android Support Library

To develop with Google APIs, you need the Google Play services package:
Open the Extras directory and select:
  • Google Repository
  • Google Play services
Note: Google Play services APIs are not available on all Android-powered devices, but are available on all devices with Google Play Store. To use these APIs in the Android emulator, you must also install the the Google APIs system image from the latest Android X.X directory in the SDK Manager.


Source: http://developer.android.com/sdk/installing/adding-packages.html

Saturday, July 18, 2015

How to use id.pool.ntp.org in Windows 7/8/8.1/10

Open your regedit.exe, and edit this values
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\DateTime\Servers
HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\DateTime\Servers
1 REG_SZ 0.id.pool.ntp.org
2 REG_SZ 1.id.pool.ntp.org
3 REG_SZ 2.id.pool.ntp.org
4 REG_SZ 3.id.pool.ntp.org

http://www.pool.ntp.org/zone/id

Wednesday, July 8, 2015

This site contains backup from my domain www.garasiku.web.id/igam

Installing Amazon SDK (old)

This is what I have done to install Amazon SDK in Android SDK Manager.
  1. Android SDK Manager -> Tools -> Manage Add-on Sites -> User Defined Sites -> New (or Edit if you already has one.)
  2. Enter URL https://s3.amazonaws.com/android-sdk-manager/redist/addon.xml
  3. Amazon device (optional)
    • Amazon Fire Phone addon in Android 4.2.2 Level 17
    • Amazon Fire Tablet add on in Android 4.4.2 level 19
  4. Extra (optional)
    • Amazon Kindle Fire USB Driver
    • Phone Build Tools: If you are developing for Fire Phone

Play Video (mp4,3gp,etc) From Resource (old)

  1. put your mp4 file into folder res/raw (you need to create folder raw under folder res)
    For example d:\workspace\Test\res\raw
    Application Name: Test
    mp4 file name: gayatrimantra.mp4
    full path filename: d:\workspace\Test\res\raw\gayatrimantra.mp4
  2. to start your Video, write this code
        public void ClickDeh(View view)
        {
            VideoView videoview = (VideoView) findViewById(R.id.videoView1);
          
            Uri uri = Uri.parse("android.resource://"+getPackageName()+"/"+R.raw.gayatrimantra);
                  
            videoview.setVideoURI(uri);
            videoview.start();      
        }

Note: File name must be unique
Source: http://www.androidsnippets.com/play-video-file-from-resources

Samsung I5700/Spica/Portal (old)

Samsung released its latest Android operating system for I5700/Spica/Portal i.e Android 2.1 Update 1, and has no more plan to support this device for higher operating system. I'll show you how to update from operating system Android version 1.x to official operating system Android 2.1 Update 1.
For preparation, you need to download & install New PC Studio 2.0 or latest.
To make your software connecting to your device, you to change your device setting, here is what you should change:
1. If your device is on version 1.5 (cupcake):
Go to Main Menu >> Settings >> About Phone >> Additional Settings. 
Make sure "Mass storage only" is unchecked. Make it unchecked if it is not.
2. If your device is on version 2.1 (eclair):
Go to... Main Menu >> Settings >> Applications >> Development.
Make sure "USB debugging" is checked. Make it checked if it is not.
Follow these following steps:
  1. remove your SIM Card & Micro SD-CARD from your device
  2. connect your mobile to PC using USB
  3. click update firmware, it will download your firmware (2.1) into your phone
  4. follow instruction.
  5. after firmware installation finish, your may shutdown your device
  6. reinsert your SIM/Micro SDCARD
  7. start your device normally
Note: You need to full charged on your mobile before proceed this procedure

Upgrading your BBM to version 7 or above complete with your contacts (old)

You have to follow these steps to make sure you won't miss any contact after upgrading your BBM or upgrading your mobile phone:
  1. You need to create BB ID. To create an ID, you need a valid email for indentificate abour your self.
  2. Before updating your BBM you need to backup your contats localy to Micro SD Card.
  3. Update/upgrade your Blackberry ID application (required reboot).
  4. Update/upgrade your Blackberry Application World (required reboot).
  5. You may update/upgrade your BBM to version 7 (required reboot).
  6. After a new BBM version 7, it will restore your contacts and make your contacts backup into Blackberry cloud. 
 Note:
BBM version 7 does not have backup function, your backup stored in Blackberry cloud using Blackberry ID.
After replacing your Blackberry Device with a new one, you just need to configure your Blackberry ID using your Blackberry ID i.e your email address. 
Note:
You need to upgrade your BBM to version 7 to avoid lossing contacts, or (if your device does not support version 7) make a backup to Micro SD Card, then try to restore your contacts before updating BBM to version 7.

Joomla 3.1.x: ini_set() has been disabled for security reasons (old)

When I open my web using Joomla version 3.1x, I found annoying messages "ini_set() has been disabled for security reasons". Unfortunately, this warning prevent me to login into Joomla administration.
There are 2 way to fix it. You can choose one of these way:
1. You can edit [your root Joomla]/configuration..php
and add
error_reporting(0);
@ini_set(‘display_errors’, 0);
between <?php and class JConfig
it's become like this
<?php
error_reporting(0);
@ini_set(‘display_errors’, 0);

class JConfig {
2. or you can edit file [your root Joomla]/libraries/joomla/session/session.php and add @ in every ini_set command.
For Example in line 120 (line number may deferent for each Joomla version) it becomes like this.
@ini_set('session.use_trans_sid', '0');
done.... :)

Debian 8 Jessie Repository

Here are repository for Indonsia mirror:
# Indonesia
deb http://kambing.ui.ac.id/debian/ jessie main
deb-src http://kambing.ui.ac.id/debian/ jessie main
# Security
deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main

# NON FREE
deb http://ftp.de.debian.org/debian jessie main non-free

# BACKPORT
# deb http://httpredir.debian.org/debian jessie-backports main contrib non-free
deb http://httpredir.debian.org/debian jessie-backports main

Installing JDK 8 on Debian Wheezy

By default, Debian Wheezy repository does not provide JDK-8 and JRE-8. You can download it from http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html. If you install JDK-8 using remove SSH, you can follow these steps:
  1. Download JDK-8 from URL above
    # wget --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u45-b14/jdk-8u45-linux-x64.tar.gz
  2. Extract it
    # tar xvzf jdk-8u45-linux-x64.tar.gz
  3. Create directory /usr/lib/JVM, if it does not exist. By default JDK will install on these folder
    # mkdir /usr/lib/jvm/
  4. Move JDK-8 folder to /usr/lib/JVM
    # mv jdk1.8.0_45 /usr/lib/jvm/
  5. Update alternative Java
    # update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.8.0_45/bin/java 100
    update-alternatives: using /usr/lib/jvm/jdk1.8.0_45/bin/java to provide /usr/bin/java (java) in auto mode
    # update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.8.0_45/bin/javac 100
    update-alternatives: using /usr/lib/jvm/jdk1.8.0_45/bin/javac to provide /usr/bin/javac (javac) in auto mode

Installing LAMP on Debian 8.0 (Jessie)

Here are steps to install LAMP on Debian 7.1 Wheezy:
1. Open your terminal as a root (Super User)
2. Installing MySQL
# apt-get install mysql-server mysql-client
set password for root (super user)
3. Installing Apache
# apt-get install apache2
4. Install PHP
# apt-get install php5 libapache2-mod-php5
5. Restart your apache2
# /etc/init.d/apache2 restart
6. Search module
# apt-cache search php5
7. Install other modules
# apt-get install php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-pspell php5-recode php5-snmp php5-tidy php5-sqlite php5-xmlrpc
8. Restart your apache2 using step 5, and test your installation using browser with URL http://localhost

Tuesday, July 7, 2015

Installing Debian 7 x64 ethernet card & wifi in Lenovo B490

Last week, I got problem for enabling ethernet card & wifi in Lenovo B490 after installing Debian 7.1 x64. I need to install it offline for at least enabling ethernet card or wifi to make it online. After googling, i decided to enable ethernet card first to make it online (easier).
To install ethernet card in lenovo B490, it uses chipset realtek r8169 and it needs to install its firmware manualy from debian.org. follow these step to install it:
  1. Download realtek r8169 firmware https://packages.debian.org/wheezy/all/firmware-realtek/download
  2. Install it by run this command
    # dpkg -i firmware-realtek_0.36+wheezy.1_all.deb
After that, make it online, and add repository required to update your system. Wifi in lenovo B490 uses chipset bcm43142 that does not exist in debian repository. I follow this guide http://forums.debian.net/viewtopic.php?f=30&t=109498 to install its wifi. Here are steps to do:
  1. Download the driver from https://mega.co.nz/#!qIUySZYJ!PgfNRVCcXO-enbDuhziUqVCriMcDhbU-houaQ97c0yM
    or the link was broken just search in google "download wireless-bcm43142-dkms_6.20.55.19-1_amd64.deb" or from this server
  2. Install it manualy bu run this command
    # dpkg -i download wireless-bcm43142-dkms_6.20.55.19-1_amd64.deb
  3. Install network-manager by run this command
    # apt-get install network-manager
References are provided in content.

Installing ODOO 8 in Debian

Odoo was formerly known as OpenERP until May 2014. It was rebranded because version 8 of the software included apps including website builder, e-commerce, point of sale and business intelligence. The software conforms to standard expectations of ERP systems, while providing additional modules beyond the coverage of traditional ERP systems.
These are steps to install ODOO/OpenERP version 8 (latest release) in Debian (in my case):
  1. Add this into your /etc/apt/sources.list
    deb http://nightly.odoo.com/8.0/nightly/deb/ ./
    or
    deb http://nightly.odoo.com/master/nightly/deb/ ./
  2. Install odoo key
    # wget https://nightly.odoo.com/odoo.key
    # apt-key add odoo.key
  3. update by run this command
    sudo apt-get update
  4. install ODOO 8 by run this command
    sudo apt-get install odoo
Source: http://nightly.odoo.com/

Shellshock Vulnerability on Bash Shell

This is how you test your bash shell whether its vulnerable or not for 'shellsock' bug.
Run this on your linux shell (you don't need super user account for this):
 $ env x='() { :;}; echo vulnerable' bash -c "echo this is a test" 
if the result like this:
   vulnerable
   this is a test
then, you need to upgrade your bash version.

Just run (as superuser or sudo)
 # apt-get update
 # apt-get upgrade

It will show bash upgrade like this:
 Get:1 http://security.debian.org/ wheezy/updates/main bash amd64 4.2+dfsg-0.1+deb7u3 [1,501 kB]

After I upgrade my bash, the result becames like this:
   this is a test

I use bash version : GNU bash, version 4.2.37(1)-release (x86_64-pc-linux-gnu)

Reference: http://www.debiantutorials.com/how-to-detect-if-your-server-is-vulnerable-to-the-shellshock-bug-and-fix-it/