Saturday, July 18, 2015
How to use id.pool.ntp.org in Windows 7/8/8.1/10
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)
- Android SDK Manager -> Tools -> Manage Add-on Sites -> User Defined Sites -> New (or Edit if you already has one.)
- Enter URL https://s3.amazonaws.com/android-sdk-manager/redist/addon.xml
- 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
- 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)
- 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.mp4full path filename: d:\workspace\Test\res\raw\gayatrimantra.mp4 - 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();
}
Samsung I5700/Spica/Portal (old)
- remove your SIM Card & Micro SD-CARD from your device
- connect your mobile to PC using USB
- click update firmware, it will download your firmware (2.1) into your phone
- follow instruction.
- after firmware installation finish, your may shutdown your device
- reinsert your SIM/Micro SDCARD
- start your device normally
Upgrading your BBM to version 7 or above complete with your contacts (old)
- You need to create BB ID. To create an ID, you need a valid email for indentificate abour your self.
- Before updating your BBM you need to backup your contats localy to Micro SD Card.
- Update/upgrade your Blackberry ID application (required reboot).
- Update/upgrade your Blackberry Application World (required reboot).
- You may update/upgrade your BBM to version 7 (required reboot).
- After a new BBM version 7, it will restore your contacts and make your contacts backup into Blackberry cloud.
Joomla 3.1.x: ini_set() has been disabled for security reasons (old)
@ini_set(‘display_errors’, 0);
error_reporting(0);
@ini_set(‘display_errors’, 0);
class JConfig {
Debian 8 Jessie Repository
deb http://kambing.ui.ac.id/debian/ jessie main
deb-src http://kambing.ui.ac.id/debian/ jessie main
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
- 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 - Extract it
# tar xvzf jdk-8u45-linux-x64.tar.gz - Create directory /usr/lib/JVM, if it does not exist. By default JDK will install on these folder
# mkdir /usr/lib/jvm/
Move JDK-8 folder to /usr/lib/JVM - 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
# mv jdk1.8.0_45 /usr/lib/jvm/
Installing LAMP on Debian 8.0 (Jessie)
set password for root (super user)
Tuesday, July 7, 2015
Installing Debian 7 x64 ethernet card & wifi in Lenovo B490
- Download realtek r8169 firmware https://packages.debian.org/wheezy/all/firmware-realtek/download
- Install it by run this command
# dpkg -i firmware-realtek_0.36+wheezy.1_all.deb
- 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 - Install it manualy bu run this command
# dpkg -i download wireless-bcm43142-dkms_6.20.55.19-1_amd64.deb - Install network-manager by run this command
# apt-get install network-manager
Installing ODOO 8 in Debian
- 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/ ./ - Install odoo key
# wget https://nightly.odoo.com/odoo.key
# apt-key add odoo.key - update by run this command
sudo apt-get update - install ODOO 8 by run this command
sudo apt-get install odoo
Shellshock Vulnerability on Bash Shell
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)
Installing XFCE4 on Debian Wheezy x64
- To install Xfce, do the following
# apt-get install xfce4 - There are many useful utilities that come with Xfce, to install these
# apt-get install xfce4-goodies - You also can install xdm to login in start Xfce
# apt-get install xdm
Configuring LAN in Debian 7 x64 Minimal CLI Only
iface eth0 inet dhcp
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
# /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
dmidecode show maximum 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
Install apt-cacher-ng
Installing Epson Inkjet L Series and M Series on Debian Wheezy
Debian 7.1 x64 installing firmware
- add this line into /etc/apt/sources.list
# non free
deb http://ftp.de.debian.org/debian wheezy main non-free - run update by issuing
# apt-get update - list available firmware
# aptitude search firmware - install your firmware
# apt-get install firmware-realtek firmware-atheros
Installing Openerp 6.1 on Debian 7.1 x64 (old)
# apt-get update
# apt-get upgrade
2. install gedit
# apt-get install gedit
# apt-get install postgresql
optional install pgadmin3 if use desktop
# apt-get install pgadmin3
# 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)
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
- /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)
set password for root (super user)
Repairing GRUB UEFI Dual Boot Debian 7.1 x64 and Windows 8 x64
- Update your Debian and run
# apt-get install grub-efi-amd64
This command will remove grub package, and choose yes - Configure your GRUB using this command
# modprobe dm-mod
# grub-install - Apply your new grub into EFI Partition
# update-grub - 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 - 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
} - reinstall and reconfigure your grub by issuing :
# grub-install
# update-grub
Installing Webmin on Debian 7.1 (Wheezy)
How to create a WHM user without an associated domain
- Log in to the server as the root user via SSH.
- Create a user with the system utility with the following command:
# adduser [username] - Set a password for the user with the following command:
# passwd [username] - Create an entry in the resellers file with minimal permissions with the following command:
# echo "[username]:all" >> /var/cpanel/resellers - Log in to WHM as the root user.
- Navigate to Home >> Resellers >> Edit Reseller Nameservers and Privileges.
- Select username from the list, Click Submit.
- 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
- <role rolename="manager-gui"/>
- <role rolename="manager-script"/>
- <role rolename="manager-jmx"/>
- <role rolename="manager-status"/>
<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>
How to Remove REVSCI.NET Cookie from Your Computer
allyes.com, webstat.net, Sex.Cookie, activemeter.com, beatle.org.
Normally, cookies, which are small text files that certain Web sites leave on computers to store information identifying users and customize Web site content for them (such as the user’s Web site settings and preferences, a list of visited pages, computer details, and shopping card information), are harmless. However, some cookies may be used to track and transmit browsing preferences or other private information to online marketers and spammers.
- From the Tools menu, select Options
- In the upper section of the Options window, click Privacy
- In the Cookies tab, click Show Cookies or remove individual cookies link
- In the Cookies window, enter revsci.net in the Search field and run a search, or you can scroll down the list to check whether the revsci.net cookie is present there
- To delete the revsci.net cookie:
- Select it from the list
- Press Remove Cookie button
- From the Chrome menu [Google Chrome Menu Button] on the browser toolbar choose Settings
- Click Show Advanced Settings... link
- In the Privacy section, click Content settings
- Click All cookies and site data... button
- Start typing revsci.net cookie name in the Search cookies field and cookie list will be automatically filtered, or you can scroll down the list to check whether the cookie exists
- To delete the revsci.net cookie:
- Hover the mouse cursor over cookie name in the list to highlight it
- Click X button that appears on the right corner
- From the Tools menu, select Options
- In the upper section of the Options window, click Privacy
- In the History group choose Use custom settings for history item from the Firefox will field and Click on Exceptions
- For older Firefox versions in the Cookies tab, click Exceptions
- In the new Exceptions - Cookies window, enter revsci.net in the Address of Website field and click Block or Disable
- From the Chrome menu [Google Chrome Menu Button] , on the browser toolbar, choose Settings
- Click Show Advanced Settings... link
- In the Privacy section, click the Content settings
- Click Manage Exceptions... button
- Enter revsci.net in the Hostname pattern (located at the left corner)
- Choose Block from the Behavior field (on the right)