Friday, June 26, 2015

Harddisk sbg RAM

free -m

dd if=/dev/zero of=~/subinsblog bs=4096 count=262144

sudo mkswap ~/subinsblog -f && sudo swapon -p 1000 ~/subinsblog

free -m

Tuesday, June 23, 2015

ZC - JUN 2015

Beberapa data yang penting.


Thursday, May 7, 2015

Install proxmox on debian

#reinstall debian minimal 64 bit

nano /etc/hosts
#tambahkan
192.168.6.177 proxmox-6-177.proxmox.com proxmox-6-177 pvelocalhost

nano /etc/apt/sources.list
#tambahkan
deb http://ftp.at.debian.org/debian wheezy main contrib
# PVE repository provided by proxmox.com, only for installation (this repo will stay on 3.1)
deb http://download.proxmox.com/debian wheezy pve
# security updates
deb http://security.debian.org/ wheezy/updates main contrib

wget -O- "http://download.proxmox.com/debian/key.asc" | apt-key add -
apt-get update && apt-get dist-upgrade -y

apt-get install -y pve-firmware pve-kernel-2.6.32-26-pve pve-headers-2.6.32-26-pve
reboot
uname -a
#Linux ...-pve

apt-get remove linux-image-amd64 linux-image-3.2.0-4-amd64 linux-base
update-grub
apt-get install -y proxmox-ve-2.6.32 ntp ssh lvm2 postfix ksm-control-daemon vzprocps open-iscsi bootlogd

==

Wednesday, May 6, 2015

Debian min ram desktop

debian min
apt-get update -y
apt-get upgrade -y
apt-get install -y xorg lxde

Thursday, April 30, 2015

Local repository Debian

copy filedvd.iso ke /home/
mount -o loop /home/dvd.iso /mnt
cd /mnt
find pool -name "*.deb" -exec cp {} /folder_deb \;

setelah selesai, unmount
exit dulu
unmount /mnt

masuk ke /folder_deb
dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz
.
.
.
dpkg-scanpackages: info: Wrote 9404 entries to output Packages file

tambahkan:

deb file:/var/www/packages/i386/ /

di /etc/apt/sources.list

cek:
apt-get install mc

Tuesday, April 7, 2015

Local repository centos

copy file-iso-centos ke /root/Desktop/file.iso

mount -o loop /root/Desktop/file.iso /mnt
cd /mnt
find Packages/ -name "*.rpm* -exec cp {} /folder_repo \;

buat file:
/etc/yum.repos.d/centosdvdiso.repo

isinya:
[centosdvdiso]
name=CentOS DVD ISO
baseurl=file:///folder_repo
enabled=1
gpgcheck=0
gpgkey=file:///mnt/RPM-GPG-KEY-CentOS-6

hapus .repo yg lain di /etc/yum.repos.d/

lakukan juga utk DVD ke 2 dst

trus:
createrepo /folder_repo
----end

Saturday, February 28, 2015

dual filter

Show stocks where close is between 40 and 70
and the average day range(5) is above 3%
and the average day range(5) 10 day ago  is above 3%
and the average day range(5) 20 day ago  is above 3%
and the average day range(5) 30 day ago  is above 3%
and average volume(100) is above 2000000
and volume 10 day ago is above 1500000
and volume 15 day ago is above 1500000
and volume 20 day ago is above 1500000
and volume 25 day ago is above 1500000
and volume 30 day ago is above 1500000
and optionable

Thursday, January 29, 2015

Disable ip6 Wheezy

root:~# echo "net.ipv6.conf.all.disable_ipv6=1" >/etc/sysctl.d/disable-ipv6.conf
root:~# sysctl -p /etc/sysctl.d/disable-ipv6.conf 
 
 
 
---
root:~# vi /etc/hosts
....
# The following lines are desirable for IPv6 capable hosts
##::1     localhost ip6-localhost ip6-loopback
##ff02::1 ip6-allnodes
##ff02::2 ip6-allrouters
 
----
root:~# vi /etc/network/interfaces
....
#iface eth0 inet6 static
#  address 2001:4ba0:92f3:3:46::
#  netmask 80
#  up ip -6 route add 2001:4ba0:92f3:3::1 dev eth0
#  down ip -6 route del 2001:4ba0:92f3:3::1 dev eth0
#  up ip -6 route add default via 2001:4ba0:92f3:3::1 dev eth0
#  down ip -6 route del default via 2001:4ba0:92f3:3::1 dev eth0

root:~# service networking restart
 
----
root:~# netstat -tulpen | egrep 'tcp6|udp6'
tcp6       0      0 :::22                   :::*                    LISTEN      0          7961        -               
udp6       0      0 :::123                  :::*                                0          13790       -
 
---
root:~# vi /etc/ssh/sshd_config
....
AddressFamily inet
#ListenAddress ::
ListenAddress 0.0.0.0

root:~# service ssh restart
 
---
root:~# vi /etc/default/ntp
NTPD_OPTS='-4 -g'

root:~# service ntp restart 
 
---
root:~# netstat -tulpen | egrep 'tcp6|udp6'
 
 
kosong 

Wednesday, January 21, 2015

Wheezy aja

install deb6 minimal

apt-get update -y && apt-get upgrade -y

--upgrade ke 7
echo "
deb http://mirrors.kernel.org/debian/ wheezy main
deb-src http://mirrors.kernel.org/debian/ wheezy main

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

# wheezy-updates, previously known as 'volatile'
deb http://mirrors.kernel.org/debian/ wheezy-updates main
deb-src http://mirrors.kernel.org/debian/ wheezy-updates main
" > /etc/apt/sources.list

To update the package list, enter:
apt-get update -y && apt-get upgrade -y && apt-get dist-upgrade -y

reboot

apt-get install mc -y

apt-get -y --force-yes -f install apache2
apt-get -y --force-yes -f install php5 mysql-client mysql-server
apt-get install -y php5-common php5-curl php5-gd php5-mysql php-apc 
mysql_secure_installation
 
 
--matikan inno db
--stop dulu MySQL nya = /etc/init.d/mysql stop 
# cat > /etc/mysql/conf.d/lowendbox.cnf
[mysqld]
key_buffer = 16K
max_allowed_packet = 1M
table_cache = 4
sort_buffer_size = 64K
read_buffer_size = 256K
read_rnd_buffer_size = 256K
net_buffer_length = 2K
thread_stack = 64K
ignore_builtin_innodb
default_storage-engine=MyISAM
(tekan ^D)


---
adduser afei
cd /etc/ssh
edit sshd_config
PermitRootLogin no

install bind dns : apt-get -y --force-yes -f install bind9

---install mail
Install Exim and mailutils:
# apt-get -y install exim4 
Run configurator:
# dpkg-reconfigure exim4-config
Select the following options:
  • General type of mail configuration: internet site; mail is sent and received directly using SMTP
  • System mail name: playground
  • IP-addresses to listen on for incoming SMTP connections: 127.0.0.1 ; ::1
  • Other destinations for which mail is accepted: playground; localhost
  • The "Domains to relay mail for:" option is empty.
  • The "Machines to relay mail for:" option is empty.
  • Keep number of DNS-queries minimal (Dial-on-Demand)? no
  • Delivery method for local mail: Maildir format in home directory
  • Split configuration into small files? no
Test Exim:
# echo "Testing Exim" | mail -s Test  
 
 
 
 
 
 
--install lxde = utk vnc
 apt-get install -y lxde

 
 
--install vnc4server
 apt-get install -y vnc4server nano


# We need to start then stop the server to generate a configuration file

vncserver :1; vncserver -kill :1

# After we've generated the configuration file, we must edit it so that LXDE is loaded when we connect

nano ~/.vnc/xstartup

# Edit the file or replace its contents so that they look like the code below and save

#!/bin/sh

# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc
lxsession -s LXDE &

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
# x-window-manager &

====end




 
 

Monday, November 17, 2014

US Stock Holiday Calendar

2014 Market Holidays and Half-Days

New York Stock Exchange

NASDAQ

SIFMA (Bond Market)*

New Year's Day -- January 1, 2014 CLOSED CLOSED REC. CLOSE
Martin Luther King Jr. Day -- January 20, 2014 CLOSED CLOSED REC. CLOSE
Washington's Birthday -- February 17, 2014 CLOSED CLOSED REC. CLOSE
Thursday -- April 17, 2014 OPEN OPEN REC. 2:00 P.M. CLOSE
Good Friday -- April 18, 2014 CLOSED CLOSED REC. CLOSE
Friday -- May 23, 2014 OPEN OPEN REC. 2:00 P.M. CLOSE
Memorial Day -- May 26, 2014 CLOSED CLOSED REC. CLOSE
Thursday -- July 3, 2014 OPEN TIL 1:00 P.M. OPEN TIL 1:00 P.M. OPEN
Independence Day -- July 4, 2014 CLOSED CLOSED REC. CLOSE
Labor Day -- September 1, 2014 CLOSED CLOSED REC. CLOSE
Columbus Day -- October 13, 2014 OPEN OPEN REC. CLOSE
Veteran's Day -- November 11, 2014 OPEN OPEN REC. CLOSE
Thanksgiving Day -- November 27, 2014 CLOSED CLOSED REC. CLOSE
Friday -- November 28, 2014 OPEN TIL 1:00 P.M. OPEN TIL 1:00 P.M. REC. 2:00 P.M. CLOSE
Christmas Eve Day -- December 24, 2014 OPEN TIL 1:00 P.M. OPEN TIL 1:00 P.M. REC. 2:00 P.M. CLOSE
Christmas Day -- December 25, 2014 CLOSED CLOSED REC. CLOSE
New Year's Eve Day -- December 31, 2014 OPEN OPEN REC. 2:00 P.M. CLOSE
New Year's Day -- January 1, 2015 CLOSED CLOSED REC. CLOSE

Thursday, September 18, 2014

Test utk jantung

Homosistein
CRP
Kolesterol total
Trigliserida
Kolesterol HDL
Kolesterol LDL
Tes Agregasi Trombosit (TAT)

Tuesday, August 5, 2014

Filter 2

Average True Range(14) has been increasing for 2 days  
and Average Day Range(10) has been increasing for 2 days
and optionable
and volume increasing for the last 2 days
and Average Volume(30) is above 1000000
and Average Volume(60) is above 1000000
and Average Volume(90) is above 1000000
and close is above 60

Wednesday, June 25, 2014

Test aja

def isVolNaik = volume[1] < volume;
def isLidiAtasLemah = (((high - close) * 100 / (close - low)) < 50);
def isMACDNaik = MACD(8, 17, 9, "EMA").diff > 0;

Wednesday, June 4, 2014

Install wine 1.4 on Debian Sqeezy (not tested)

Edit your /etc/apt/sources.list by adding the following:

deb http://main.mepis-deb.org/mepiscr/repo/ mepis85cr main
Mepis is a Linux distro based on the stable branch of Debian, but it comes with more updated binaries (wine included).

Edit your /etc/apt/preferences file (or create it if it doesn’t exist):

Package: *
Pin: release n=squeeze
Pin-Priority: 900
Package: *
Pin: release n=mepis85cr
Pin-Priority: 200
This will allow you to choose from which repository to install new packages. By default the squeeze packages will be used.

Now from a console type:

:~$ sudo apt-get update
:~$ sudo apt-get install wine/mepis85cr
The /mepis85cr next to apt-get install will choose the packages from Mepis instead of Debian.

Enjoy your updated wine version!

Thursday, May 15, 2014

Step by step VPS

1. reinstall deb 6.0 minimal
2. download
wget --no-check-certificate https://github.com/lowendbox/lowendscript/raw/master/setup-debian.sh
...bash setup-debian.sh system
...
bash setup-debian.sh exim4
...
wget http://nginx.org/keys/nginx_signing.key
...
apt-key add nginx_signing.key
...
apt-get install mc
...
vi /etc/apt/sources.list
deb http://nginx.org/packages/debian/ squeeze nginx
deb-src http://nginx.org/packages/debian/ squeeze nginx

apt-get update
apt-get install nginx

vi /etc/nginx/nginx.conf
ganti user menjadi www-data bila perlu

mkdir -p /var/www/domain/html
mkdir -p /var/www/domain/logs

buat html

** install php
vi /etc/apt/sources.list
deb http://packages.dotdeb.org stable all
deb-src http://packages.dotdeb.org stable all

wget http://www.dotdeb.org/dotdeb.gpg
apt-key add dotdeb.gpg

apt-get update -y
apt-get upgrade -y

apt-get install -y php5-common php5-curl php5-suhosin php5-fpm php5-gd php5-mysql php-apc

* test
phpinfo();

apt-get install -y mysql-server
 ...
3.optimal mysql / otomatis di afei-debian.sh
# cat > /etc/mysql/conf.d/lowendbox.cnf
[mysqld]
key_buffer = 16K
max_allowed_packet = 1M
table_cache = 4
sort_buffer_size = 64K
read_buffer_size = 256K
read_rnd_buffer_size = 256K
net_buffer_length = 2K
thread_stack = 64K
ignore_builtin_innodb
default_storage-engine=MyISAM
(tekan ^D)

# reboot

4.reset root password
stop mysql
# killall mysqld

#mysqld_safe --skip-grant-tables &
(enter 2x)

#mysql -u root mysql

mysql> update user set password=PASSWORD("NEW-ROOT-PASSWORD") where User='root';mysql> flush privileges;
mysql> quit

# killall mysqld
# /etc/init.d/mysql start

 ** gak bisa stop normal?
Try this:
  1. sudo cat /etc/mysql/debian.cnf and look for the password listed under both the [client]and [mysql_upgrade] sections
  2. mysql -u root -p password being the original MySQL root password
  3. GRANT ALL PRIVILEGES ON *.* TO 'debian-sys-maint'@'localhost' IDENTIFIED BY '*the password obtained from step 1*';
  4. /etc/init.d/mysql restart
=============
next : littleutil => utk processing image
utk wordpress = cukup w3total cache = cache page,html minify no inline minify,object cache, browser opt
php apc = mungkin gak perlu bila SSD ?

---that's all

Friday, April 18, 2014

qemu repo centos6

http://download.opensuse.org/repositories/home:/billcavalieri:/QEMU/CentOS_CentOS-6/


Wednesday, March 26, 2014

Check RAID

check RAID for HP server:
#cat /proc/driver/cciss/cciss*

check Disk seen by OS:
# fdisk -l


Monday, March 10, 2014

Littleutils on debian

1.download
wget http://downloads.sourceforge.net/project/littleutils/littleutils-source/1.0.27/littleutils-1.0.27.tar.bz2
 
2.install dependencies
apt-get install make gifsicle pngcrush lzip libpng12-0 libpng12-dev libjpeg-progs p7zip-full
 
3.uncompresss dg mc

lalu:

./configure --prefix=/usr
make
make install
make install-extra
 
4.selesai 

Friday, February 7, 2014

From GUI to Text

Edit /etc/default/grub with your favorite editor,
sudo nano /etc/default/grub

Find out this line:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Change it to:
GRUB_CMDLINE_LINUX_DEFAULT="text"

Update Grub:
sudo update-grub
 
 

Thursday, February 6, 2014

Install desktop on ubuntu server 12.04

xfce4:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get -y install ubuntu-desktop tightvncserver xfce4 xfce4-goodies
reboot

---------------