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

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"
  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/ 

Indonesia Debian Repository (Wheezy)

Instruction
1. copy this configuration to /etc/apt/sources.list
2. choose only one from the options, depend on your location and server availability
3. commented not used options

Configuration source
# do not change
deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main

# option 1
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/ wheezy-updates main
deb-src http://kambing.ui.ac.id/debian/ wheezy-updates main

# option 2
#deb http://kartolo.sby.datautama.net.id/debian/ wheezy main
#deb-src http://kartolo.sby.datautama.net.id/debian/ wheezy main
#deb http://kartolo.sby.datautama.net.id/debian/ wheezy-updates main
#deb-src http://kartolo.sby.datautama.net.id/debian/ wheezy-updates main

# option 3
#deb http://kebo.pens.ac.id/debian/ wheezy main
#deb-src http://kebo.pens.ac.id/debian/ wheezy main
#deb http://kebo.pens.ac.id/debian/ wheezy-updates main
#deb-src http://kebo.pens.ac.id/debian/ wheezy-updates main

# option 4
#deb http://suro.ubaya.ac.id/debian/ wheezy main
#deb-src http://suro.ubaya.ac.id/debian/ wheezy main
#deb http://suro.ubaya.ac.id/debian/ wheezy-updates main
#deb-src http://suro.ubaya.ac.id/debian/ wheezy-updates main

# option alternate 
#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

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

Installing XFCE4 on Debian Wheezy x64

The steps to install XFCE4 on Debian Wheezy x64 are:
  1. To install Xfce, do the following
    # apt-get install xfce4
  2. There are many useful utilities that come with Xfce, to install these
    # apt-get install xfce4-goodies
  3. You also can install xdm to login in start Xfce
    # apt-get install xdm

Configuring LAN in Debian 7 x64 Minimal CLI Only

For dynamic ip address (DHCP), edit file /etc/network/interfaces, add these lines:
auto eth0
iface eth0 inet dhcp
For static ip address, edit file /etc/network/interfaces, add these lines:
auto eth0
iface eth0 inet static
  address 192.168.1.11 -> change with your lan
  netmask 255.255.255.0 -> 
change with your lan
  gateway 192.168.1.1 -> 
change with your lan
  
dns-nameservers 8.8.8.8, 8.8.4.4 -> change or add with your name server
Restart your network service run:
# /etc/init.d/networking restart 

Personal linux command references (Debian command)

Note: these are command references for personal usage, you may use them as references freely with your own responsible. No warranty for any damages causing bay these references.

To show model

# dmidecode -s system-version
IdeaPad Gaming 3 15ARH7
16GB DDR5-4800 each slot manufacture tested

To show ram slot

# lshw -class memory

or

# dmidecode -t memory

Using ssh : remote to server using secure channel

$ ssh -l [user_name] [servername_or_ip]  

scp : upload to server using secure channel (secure copy) 

$ scp [file_source_to_upload] [user_name]@[servername_or_ip]:[full_path_destination_folder]

Using tar.gz 

To compress

$ tar -cvf [file_name.tar] [folder_to_archive]

To decompress from tar.gz

$ tar -xvf [file_name.tar]
$ tar -czvf BoyerMoore.tar.gz  ./BoyerMooreCopyPaste

Using p7zip

decompress

$ p7zip -d ./Kramaning.4.3.7z 

compress folder

$ 7z a kramaning.7z ./Kramaning/*

Restart lightdm xfce desktop server

# systemctl start lightdm
# systemctl status lightdm

User management

To Add user

# adduser user_id --home /home/user_id

To delete user and home directory

# deluser --remove-home user_id

To delete user and all related files and folders

# deluser --remove-all-files user_id

Disk Management

To show disk using lsblk

# lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
nvme0n1     259:0    0 476.9G  0 disk
├─nvme0n1p1 259:1    0   260M  0 part /boot/efi
├─nvme0n1p2 259:2    0    16M  0 part
├─nvme0n1p3 259:3    0 162.2G  0 part
├─nvme0n1p4 259:4    0   166G  0 part
├─nvme0n1p5 259:5    0   9.8G  0 part
├─nvme0n1p6 259:6    0   7.5G  0 part [SWAP]
├─nvme0n1p7 259:7    0 129.3G  0 part /
└─nvme0n1p8 259:8    0     2G  0 part 

To show disk using idblk

# blkid
/dev/nvme0n1p7: UUID="df7ae6ac-f4ff-429e-9fb4-1a5f45e34f5e" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="94d61bfb-c413-4068-a231-89f12c26c343"
/dev/nvme0n1p5: LABEL="DATASHARE" UUID="A2FF-3F28" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="Basic data partition" PARTUUID="8be24844-0267-48c4-9c9c-0eb07b682984"
/dev/nvme0n1p3: LABEL="Windows-SSD" BLOCK_SIZE="512" UUID="9CB05AC3B05AA414" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="8996591a-1889-4be3-b932-11621d47ce94"
/dev/nvme0n1p1: LABEL_FATBOOT="SYSTEM_DRV" LABEL="SYSTEM_DRV" UUID="885A-5545" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="2ca7a85e-49bc-4ff5-8e2a-bf8d82f26ed9"
/dev/nvme0n1p8: LABEL="WINRE_DRV" BLOCK_SIZE="512" UUID="B0825B60825B29DC" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="0df86072-3532-4140-a733-79093411909c"
/dev/nvme0n1p6: UUID="7fef573b-5f9a-4c4e-a440-5c6cf459b965" TYPE="swap" PARTUUID="20da031c-ccd4-46d1-bc74-8c8f4dba0903"
/dev/nvme0n1p4: LABEL="mydata" BLOCK_SIZE="512" UUID="2698F69298F65FAB" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="13ee1824-6ae9-4982-ad57-68c55d6586b9"
/dev/nvme0n1p2: PARTLABEL="Microsoft reserved partition" PARTUUID="274d0d21-cb88-4b51-8a27-3290a4bee067"

To show disk using fdisk

# fdisk -l
Disk /dev/nvme0n1: 476.94 GiB, 512110190592 bytes, 1000215216 sectors
Disk model: Micron MTFDKCD512QFM-1BD1AABLA          
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 8CA19B9D-CFAB-4CC5-917E-96F2BD8BC30B

Device             Start        End   Sectors   Size Type
/dev/nvme0n1p1      2048     534527    532480   260M EFI System
/dev/nvme0n1p2    534528     567295     32768    16M Microsoft reserved
/dev/nvme0n1p3    567296  340758527 340191232 162.2G Microsoft basic data
/dev/nvme0n1p4 340758528  688916479 348157952   166G Microsoft basic data
/dev/nvme0n1p5 688916480  709396479  20480000   9.8G Microsoft basic data
/dev/nvme0n1p6 709398528  725022719  15624192   7.5G Linux swap
/dev/nvme0n1p7 725022720  996118527 271095808 129.3G Linux filesystem
/dev/nvme0n1p8 996118528 1000214527   4096000     2G Windows recovery environment

To show disk using parted

# parted -l
Model: Micron MTFDKCD512QFM-1BD1AABLA (nvme)
Disk /dev/nvme0n1: 512GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End    Size    File system     Name                          Flags
 1      1049kB  274MB  273MB   fat32           EFI system partition          boot, esp
 2      274MB   290MB  16.8MB                  Microsoft reserved partition  msftres
 3      290MB   174GB  174GB   ntfs            Basic data partition          msftdata
 4      174GB   353GB  178GB   ntfs            Basic data partition          msftdata
 5      353GB   363GB  10.5GB  fat32           Basic data partition          msftdata
 6      363GB   371GB  8000MB  linux-swap(v1)                                swap
 7      371GB   510GB  139GB   ext4
 8      510GB   512GB  2097MB  ntfs            Basic data partition          hidden, diag, no_automount

To Switch from Desktop to shell: ctrl + alt + f1

To Switch from shell to Desktop: ctrl + alt + f7



 


Install apt-cacher-ng

Server configuration and test
Install apt-cacher-ng
 # apt-get install apt-cacher-ng
Check your server using browser and enter URL 
http://localhost:3142/apt-cacher

Client configuration
Configure apt by creating a new file 01proxy at directory /etc/apt/apt.conf.d/ and add a line Acquire::http::Proxy "http://<IP address or hostname of the apt-cacher server>:3142";
For example, file /etc/apt/apt.conf.d/01proxy contain:
Acquire::http { Proxy "http://192.168.1.10:3142"; };

Installing Epson Inkjet L Series and M Series on Debian Wheezy

Download your printer driver from http://www.epson.co.id/sites/epson_indonesia/support/support.page and select suitable Distro.
Before you install the driver, install its dependency by running this:
# apt-get install lsb
After its completed, you can install your printer driver by running this:
# dpkg -i epson-inkjet-printer-201207w_1.0.0-1lsb3.2_amd64.deb 
For my case, I install L110 driver on Debian Wheezy.
Configure your Printer from your browser or from Applications -> System Tools -> Preferences -> System Settings -> Printers.
NOTE: Driver L100/L200 not compatible with Driver L110/L210 
For L100 use Epson Stylus NX115 (CUPS + Gutenprint v5.2.9) or
For L100/L200 use this driverhttp://download.ebz.epson.net/dsc/du/02/DriverDownloadInfo.do?LG2=PL&CN2=&DSCMI=24156&DSCCHK=95e99b2956fbf8c93b44cbd7a37f94836967528c

Debian 7.1 x64 installing firmware

Debian need firmware installed to make hardware can operated perfectly. During boot time, it informs the user that the system may required particular firmware installed. Here is the steps to install particular firmware:
  1. add this line into /etc/apt/sources.list
    # non free
    deb http://ftp.de.debian.org/debian wheezy main non-free
  2. run update by issuing
    # apt-get update
  3. list available firmware
    # aptitude search firmware
  4. install your firmware
    # apt-get install firmware-realtek  firmware-atheros

Installing Openerp 6.1 on Debian 7.1 x64 (old)

Follow these simple step to install and configure Openerp on Debian
1. update your debian
# apt-get update
# apt-get upgrade

2. install gedit
# apt-get install gedit
3. install postgresql 23.9M (version 9.1.9-1)
# apt-get install postgresql

optional install pgadmin3 if use desktop
# apt-get install pgadmin3
4. configure openerp user
# sudo su postgres
$ createuser openerp
as superuser n
create database y
create new roles y
$ psql -l
$ psql template1
# alter role openerp with password 'openerp';
quit from psql and back to root user (\q enter)
5. install python library
apt-get install python-dateutil python-feedparser python-gdata python-ldap \
    python-libxslt1 python-lxml python-mako python-openid python-psycopg2 \
    python-pybabel python-pychart python-pydot python-pyparsing python-reportlab \
    python-simplejson python-tz python-vatnumber python-vobject python-webdav \
    python-werkzeug python-xlwt python-yaml python-zsi


6. download packaged deb and install by issuing this
# dpkg -i openerp_6.1-latest-1_all.deb
it may take sometimes to install pyhton library required by openerp, wait until it finish.

7. edit file /etc/openerp/openerp-server.conf (password in stap 4)
db_password = openerp

8. run openerp service by issuing
# service openerp start

# service openerp restart

9. run openerp client using browser http://localhost:8069

Note:
Default Installation located at
  • /usr/lib/pymodules/python2.7/openerp/
  • /usr/share/pyshared/openerp

  • /usr/lib/pymodules/python2.7/openerp/addons
  • /usr/share/pyshared/openerp/html_view

Installing LAMP on Debian 7.1 (Wheezy)

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-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl
8. Restart your apache2 using step 5, and test your installation using browser with URL http://localhost

Repairing GRUB UEFI Dual Boot Debian 7.1 x64 and Windows 8 x64

Accidentally I failed to install AMD Catalyst 13.6 beta on my Debian 7.1 x64, and I lost my GNOME. For short, I can't recover my GNOME and I reinstall my Debian 7.1 without EFI mood  (my mistake). The Installer can not detect EFI and the only option to install bootstrap loader is MBR.
I can not start both my Debian and Windows. From Bios, I start boot via EFI DVD to start Debian CD Installer. I choose Advanced Option to fix bootstrap location from MBR to EFI Partition (System Reserved), and follow these step:

  1. Update your Debian and run
    # apt-get install grub-efi-amd64
    This command will remove grub package, and choose yes
  2. Configure your GRUB using this command
    # modprobe dm-mod
    # grub-install
  3. Apply your new grub into EFI Partition
    # update-grub
  4. This procedure only fix boot into Debian. To create boot option to load Windows 8 boot manager you need UUID for EFI partition by running
    # blkid
    write down UUID for EFI Partition (it may be label as "System Reserved") with size about 100M-130M.
    for my case UUID is 4842-E4F1
  5. edit file /etc/grub.d/40_custom and at the end of file add
         menuentry "Microsoft Windows 8" {
           insmod part_gpt
           insmod fat
           insmod search_fs_uuid
           insmod chain
           search --fs-uuid --no-floppy --set=root 4842-E4F1
           chainloader (${root})/EFI/Microsoft/Boot/bootmgfw.efi
         }
    the file becomes like this:
         #!/bin/sh
         exec tail -n +3 $0
         # This file provides an easy way to add custom menu entries.  Simply type the
         # menu entries you want to add after this comment.  Be careful not to change
         # the 'exec tail' line above.
         menuentry "Microsoft Windows 8" {
           insmod part_gpt
           insmod fat
           insmod search_fs_uuid
           insmod chain
           search --fs-uuid --no-floppy --set=root 4842-E4F1
           chainloader (${root})/EFI/Microsoft/Boot/bootmgfw.efi
         }
  6. reinstall and reconfigure your grub by issuing :
    # grub-install
    # update-grub
Done, now I have GRUB to my Debian and option to load Windows 8 Boot Manager

Installing Webmin on Debian 7.1 (Wheezy)

Step to install Webmin on Debian 7.1:
1. Download Webmin installer for Debian from www.webmin.com
2. run as root (superuser)
3. install dependency packages
# apt-get install libnet-ssleay-perl libauthen-pam-perl libio-pty-perl apt-show-versions
4. install webmin
# dpkg -i ./webmin_1.630_all.deb
5. tes your installation using your browser https://localhost:10000
 Note: Don't forget to create webmin admin group and its user :)

How to create a WHM user without an associated domain

To create a user account in WHM that is not associated with a domain:

  1. Log in to the server as the root user via SSH.
  2. Create a user with the system utility with the following command:
    # adduser [username]
  3. Set a password for the user with the following command:
    # passwd [username]
  4. Create an entry in the resellers file with minimal permissions with the following command:
    # echo "[username]:all" >> /var/cpanel/resellers
  5. Log in to WHM as the root user.
  6. Navigate to Home >> Resellers >> Edit Reseller Nameservers and Privileges.
  7. Select username from the list, Click Submit.
  8. Apply the desired permissions to the user, Click Save.

 Note: replace [username] with Linux user id / login
Src: http://docs.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/CreateAccountwithoutdomain
CLOSE INFO

Tomcat 6.x User Roles

file name [tomcat 6 folder]//conf/tomcat-users.xml
Available Rules
  • <role rolename="manager-gui"/>
  • <role rolename="manager-script"/>
  • <role rolename="manager-jmx"/>
  • <role rolename="manager-status"/>
WARNING: users with the manager-gui role should not be granted either the manager-script or manager-jmx roles
Example configuration
<tomcat-users>
  <role rolename="manager-gui"/>
  <role rolename="manager-script"/>
  <role rolename="manager-jmx"/>
  <role rolename="manager-status"/>
  <user username="example" password="example" roles="manager-gui"/>
</tomcat-users>