mikrokontroler

robot segala medan

mikrokontroler

robot segala medan

network

cross with tester

network

topologi jaringan

lighting

lighting

Wednesday, March 27, 2013

cara download dari docstoc tanpa bayar (gratis)


Cara download dari docstoc gratis
1. Buka dokumen yang hendak Anda download di docstoc
2. Di tab baru silahkan copy-kan URL ini:
http://viewer.docstoc.com/?doc_id=14077761&mem_id=8552018&revision=127290719&showrelated=0&showotherdocs=0
3. Nah kembali ke halaman tempat dimana Anda sedang membuka dokumen yang ingin Anda download. Copy kode dokumen tersebut, misalnya:http://www.docstoc.com/docs/148305233/Democracy-in-Indonesia, angka yang dicetak tebal (148305233) merupakan kode dokumen yang ingin Anda download. Copy-kan kode tersebut.
4. Setelah itu ganti kode yang dicetak tebal pada:http://viewer.docstoc.com/?doc_id=14077761&mem_id=8552018&revision=127290719&showrelated=0&showotherdocs=0 dengan kode yang Anda copy tadi. (Ganti 14077761 menjadi 148305233). Tekan enter untuk membukanya.
5. Setelah itu dokumen yang ingin Anda download akan terbuka dengan tampilan Full Screen. Tunggu sampai semua lembaran dokumen tersebut terbuka. Setelah semuanya terbuka, klik kanan dan pilih Print Document.
6. Pilihannya akan terbuka seperti gambar di bawah:
capture
Pastikan semua pilihan yang tertera Anda cocokkan seperti gambar tersebut. Atau jika misalnya Anda ingin mendownload beberapa halaman tertentu, ubah Pilihan Laman menjadi nomor halaman yang ingin dimulai dari halaman berapa sampai berapa. Misalnya dari total 10 halaman Anda ingin mendownload dari halaman 2 sampai halaman 7 maka isi kotak tersebut dengan 2-7.

untuk mendownload klik di bawah ini


sumber : http://artofthinking2.blogdetik.com/

Saturday, March 23, 2013

tutorial membuat vpn server dengan ubuntu server

tutorial membuat vpn server dengan ubuntu server
berikut video nya


klik di bawah ini untuk mendownload config nya



berikut perintah-perintah nya
Sudo su
Ifconfig (catat ip nya)
Apt-get update
Apt-get install ssh
Apt-get install openvpn openssl
root@ubuntu:/home/dedak# cd /etc/openvpn/

root@ubuntu:/etc/openvpn# cp -r /usr/share/doc/openvpn/examples/easy-rsa/2.0 ./easy-rsa

root@ubuntu:/etc/openvpn# apt-get install nano

root@ubuntu:/etc/openvpn# nano easy-rsa/vars

# easy-rsa parameter settings

# NOTE: If you installed from an RPM,
# don't edit this file in place in
# /usr/share/openvpn/easy-rsa --
# instead, you should copy the whole
# easy-rsa directory to another location
# (such as /etc/openvpn) so that your
# edits will not be wiped out by a future
# OpenVPN package upgrade.

# This variable should point to
# the top level of the easy-rsa
# tree.
export EASY_RSA="/etc/openvpn/easy-rsa"
                                     (ganti di bagian ini)

#
# This variable should point to
# the requested executables
#
export OPENSSL="openssl"
export PKCS11TOOL="pkcs11-tool"
export GREP="grep"


# This variable should point to
# the openssl.cnf file included
# with easy-rsa.
export KEY_CONFIG=`$EASY_RSA/whichopensslcnf $EASY_RSA`

# Edit this variable to point to
# your soon-to-be-created key
# directory.
#
# WARNING: clean-all will do
# a rm -rf on this directory
# so make sure you define
# it correctly!
export KEY_DIR="$EASY_RSA/keys"

# Issue rm -rf warning
echo NOTE: If you run ./clean-all, I will be doing a rm -rf on $KEY_DIR

# PKCS11 fixes
export PKCS11_MODULE_PATH="dummy"
export PKCS11_PIN="dummy"

# Increase this to 2048 if you
# are paranoid.  This will slow
# down TLS negotiation performance
# as well as the one-time DH parms
# generation process.
export KEY_SIZE=1024

# In how many days should the root CA key expire?
export CA_EXPIRE=3650

# In how many days should certificates expire?
export KEY_EXPIRE=3650

# These are the default values for fields
# which will be placed in the certificate.
# Don't leave any of these fields blank.
export KEY_COUNTRY="US"
export KEY_PROVINCE="CA"
export KEY_CITY="SanFrancisco"
export KEY_ORG="Fort-Funston"
export KEY_EMAIL="me@myhost.mydomain"
export KEY_EMAIL=mail@host.domain
export KEY_CN=changeme
export KEY_NAME=changeme
export KEY_OU=changeme
export PKCS11_MODULE_PATH=changeme
export PKCS11_PIN=1234

ctrl + x  [enter]
y  [enter]
root@ubuntu:/etc/openvpn# . ./easy-rsa/vars
root@ubuntu:/etc/openvpn# ./easy-rsa/clean-all
root@ubuntu:/etc/openvpn# cd easy-rsa/
root@ubuntu:/etc/openvpn/easy-rsa# ln -s openssl-1.0.0.cnf openssl.cnf
root@ubuntu:/etc/openvpn/easy-rsa# ls
root@ubuntu:/etc/openvpn/easy-rsa# cd ..
root@ubuntu:/etc/openvpn# ./easy-rsa/build-ca OpenVPN

Generating a 1024 bit RSA private key
.....................................++++++
.......................++++++
writing new private key to 'ca.key'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [US]:id
State or Province Name (full name) [CA]:sumsel
Locality Name (eg, city) [SanFrancisco]:layo
Organization Name (eg, company) [Fort-Funston]:lingua
Organizational Unit Name (eg, section) [changeme]:prima
Common Name (eg, your name or your server's hostname) [changeme]:smkserver
Name [changeme]:smkserver1
Email Address [mail@host.domain]:q_hendra2ymail.com
root@ubuntu:/etc/openvpn# ./easy-rsa/build-key-server server
Generating a 1024 bit RSA private key
..............................................................++++++
.......++++++
writing new private key to 'server.key'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [US]:id
State or Province Name (full name) [CA]:sumsel
Locality Name (eg, city) [SanFrancisco]:layo
Organization Name (eg, company) [Fort-Funston]:lingua
Organizational Unit Name (eg, section) [changeme]:prima
Common Name (eg, your name or your server's hostname) [server]:smkkey
Name [changeme]:smkkey1
Email Address [mail@host.domain]:q_hendra@ymail.com

Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:123456
An optional company name []:.(langsung enter saja)
Using configuration from /etc/openvpn/easy-rsa/openssl-1.0.0.cnf
Check that the request matches the signature
Signature ok
The Subject's Distinguished Name is as follows
countryName           :PRINTABLE:'id'
stateOrProvinceName   :PRINTABLE:'sumsel'
localityName          :PRINTABLE:'layo'
organizationName      :PRINTABLE:'lingua'
organizationalUnitName:PRINTABLE:'prima'
commonName            :PRINTABLE:'smkkey'
name                  :PRINTABLE:'smkkey1'
emailAddress          :IA5STRING:'q_hendra@ymail.com'
Certificate is to be certified until Mar  5 07:57:52 2023 GMT (3650 days)
Sign the certificate? [y/n]:y


1 out of 1 certificate requests certified, commit? [y/n]y
Write out database with 1 new entries
Data Base Updated
root@ubuntu:/etc/openvpn# ./easy-rsa/build-key client1
Generating a 1024 bit RSA private key
.........................++++++
........................++++++
writing new private key to 'client1.key'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [US]:id
State or Province Name (full name) [CA]:sumsel
Locality Name (eg, city) [SanFrancisco]:layo
Organization Name (eg, company) [Fort-Funston]:lingua
Organizational Unit Name (eg, section) [changeme]:prima
Common Name (eg, your name or your server's hostname) [client1]:client1key
Name [changeme]:client1key1
Email Address [mail@host.domain]:q_hendras@yahoo.co.id

Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:123456
An optional company name []:.  (langsung enter saja)
Using configuration from /etc/openvpn/easy-rsa/openssl-1.0.0.cnf
Check that the request matches the signature
Signature ok
The Subject's Distinguished Name is as follows
countryName           :PRINTABLE:'id'
stateOrProvinceName   :PRINTABLE:'sumsel'
localityName          :PRINTABLE:'layo'
organizationName      :PRINTABLE:'lingua'
organizationalUnitName:PRINTABLE:'prima'
commonName            :PRINTABLE:'client1key'
name                  :PRINTABLE:'client1key1'
emailAddress          :IA5STRING:'q_hendras@yahoo.co.id'
Certificate is to be certified until Mar  5 08:00:14 2023 GMT (3650 days)
Sign the certificate? [y/n]:y


1 out of 1 certificate requests certified, commit? [y/n]y
Write out database with 1 new entries
Data Base Updated
root@ubuntu:/etc/openvpn# ./easy-rsa/build-dh
root@ubuntu:/etc/openvpn# nano openvpn.conf
                                         #(ketik perintah di bawah ini)
dev tun
proto udp
port 1194


ca /etc/openvpn/easy-rsa/keys/ca.crt
cert /etc/openvpn/easy-rsa/keys/server.crt
key /etc/openvpn/easy-rsa/keys/server.key
dh /etc/openvpn/easy-rsa/keys/dh1024.pem

user nobody
group nogroup
server 10.8.0.0 255.255.255.0

persist-key
persist-tun

status /var/log/openvpn-status.log
verb 3
client-to-client

push "redirect-gateway def1"
#set the dns servers
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"

log-append /var/log/openvpn
comp-lzo

root@ubuntu:/etc/openvpn# echo 1 > /proc/sys/net/ipv4/ip_forward
root@ubuntu:/etc/openvpn# iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o venet0 -j SNAT --to xxx.xxx.xxx.xxx(ip yang anda catat tadi)
root@ubuntu:/etc/openvpn# cd ..
root@ubuntu:/etc# nano sysctl.conf

net.ipv4.ip_forward=1
(kalau ada tanda # [#net.ipv4.ip_forward=1] maka hilangkan tanda # nya seperti yang di atas)

root@ubuntu:/etc# cd ..
root@ubuntu:/# /etc/init.d/openvpn start
root@ubuntu:/# chmod -R 777 /etc/openvpn/easy-rsa/keys

vpn server telah selesai di buat....

langkah selanjutnya.
membuat konfig di vpn client, dalam hal ini saya menggunakan client windows
copy file
/etc/openvpn/easy-rsa/keys
Ca.crt
Client1.crt
Client1.key
Buat file dengan notepad newvpn.ovpn
dev tun
client
proto udp
remote xxx.xxx.xxx.xxx(ip yg anda catat tadi) 1194
resolv-retry infinete
nobind
persist-key
persist-tun
ca ca.crt
cert client1.crt
key client1.key
comp-lzo
verb 3

Wednesday, March 20, 2013

perintah perintah penting di linux distro ubuntu


Solusi Error Update Paket “E: Encountered a section with no Package”

cara mengatasi nya

E: Encountered a section with no Package

Ketikan perintah berikut :
        #rm -rf /var/lib/apt/lists/*
        #apt-get update
cara uninstal aplikasi atau program di linux distro ubuntu
        #apt-get remove [nama aplikasi]
cara menghapus folder di linux distro ubuntu
        #rm -R [directory]

1. sudo su
Digunakan untuk login sebagai root/pengguna tertinggi
Sintaks sudo su
2. login
Digunakan untuk login sebagai user lain, namun harus menjadi root dulu untuk bisa menjalankan peirntah ini.
Sintaks : login namauser
Contoh : login adam
3. cd
Digunakan untuk berpindah direktori
Sintaks : cd alamat_direktori
Contoh : cd /var/www
4. pwd
Digunakan untuk memperlihatkan di direktori mana posisi kita berada sekarang.
Sintaks : pwd
5. ls
Digunakan untuk melihat isi sebuah direktori.
Sintaks : ls
6. cp
Digunakan untuk melakukan copy file.
Sintaks : cp /direktori/file_yang_ingin_dicopy /direktori tujuan
Contoh : cp /etc/file1.txt /var/www
7. mv
Digunakan untuk melakukan memindahkan, cut atau rename file.
Sintaks :
mv /direktori/file_yang_ingin_dicut /direktori tujuan (cut)
mv /direktori/file_yang_ingin_direname /nama_baru_file (rename)
Contoh:
mv /etc/file1.txt /var/www
mv /etc/file1.txt file2.txt
8. mkdir
Digunakan untuk membuat folder baru.
Sintaks : mkdir nama_folder
Contoh : mkdir folder1
9. rmdir
Digunakan untuk menghapus folder.
Sintaks : rmdir nama_folder
Contoh : rmdir folder1
10. touch
Digunakan untuk membuat file baru.
Sintaks : touch nama_file
Contoh : touch file1.txt
11. rm
Digunakan untuk menghapus file.
Sintaks : rm nama_file
Contoh : rm file1.txt
12. more
Digunakan untuk menampilkan isi sebuah file
Sintaks : more nama_fie
Contoh : more file1.txt
13. echo
Digunakan untuk menuliskan sesuatu kata atau kalimat ke sebuah file.
Sintaks : echo “isi pesan” nama_file
Contoh : echo “Hai ini adalah contoh pesan” >> file1.txt
14. adduser
Digunakan untuk menambah user baru.
Sintaks : adduser nama_user
Contoh : adduser adamkurniawan
15. addgroup
Digunakan untuk menambah group baru
Sintaks : addgroup nama_group
Contoh : addgroup grup1
16. lsusb
Digunakan untuk melihat perangkat usb yang sedang terkoneksi ke komputer
Sintaks : lsusb
17. lspci
Digunakan untuk melihat perangkat pci yang sedang terkoneksi ke komputer
Sintaks : lspci
18. lshw
Digunakan untuk melihat hardware komputer.
Sintaks : lshw
19. dmesg
Digunakan untuk melihat hardware yang sedang beraktifitas
Sintaks : dmseg
20. top
Digunakan untuk melihat proses yang sedang berjalan, seperti Task Manager pada Windows.
Sintaks : top
21. cpuinfo
Digunakan untuk melihat spesifikasi komputer.
Sintaks : more /proc/cpuinfo
22. meminfo
Digunakan untuk melihat status RAM
Sintaks : more /proc/meminfo
23. clear
Digunakan untuk membersihkan layar
Sintaks : clear
24. halt
Digunakan untuk mematikan komputer, namun harus sebagai root.
Sintaks : halt
25. reboot
Digunakan untuk merestart komputer, namun harus sebagai root.
Sintaks : reboot
26. exit
Digunakan untuk keluar dari terminal.
Sintaks : exit
27. wget
Digunakan untuk mendownload via terminal
Sintaks : wget link_download
Contoh : wget www.insightcalendar.com/Insight_Calendar_1-1_Setup.exe
28. ifconfig
Digunakan untuk melihat konfigurasi ethernet/kartu jaringan.
Sintaks : ifconfig
29. apt-get
Digunakan untuk memperoleh paket/software dari repository ubuntu secara online.
Sintax : apt-get nama_paket
Contoh :
apt-get update (untuk melakukan update repository)
apt-get update wine (untuk mendapatkan paket wine)
30. tar
Digunakan untuk melakukan extract file.
Sintaks : tar [parameter] nama_file
Contoh : tar -xzvf komodo-edit-5.2.4-4343-linux-libcpp6-x86.tar.gz
31. nautilus
Digunakan untuk membuka tampilan GUI secara langsung.
Sintaks : nautilus
Contoh : sudo nautilus (menggunakan mode GUI dengan status root)
32. df -h
melihat sisa kapasitas harddisk.
sintaks : df -h
33. who     
digunakan untuk melihat nama login kita.
sintaks : who      
34. cat          
digunakan untuk membuka file.
sintaks : cat        
contoh: cat test.txt
35. date 
melihat tanggal
sintaks : date
36. cal
melihat kalender
sintaks : melihat tanggal
37. hostname 
Menampilkan nama komputer.
sintaks: hostname 
38. free     
Melihat Free memory.
sintaks: free     
39. History
melihat perintah apa saja yang pernah diketik
sintaks : History
40. deluser 
Menghapus user dari sistem
sintaks : deluser [nama user]

uname -r = Melihat kernel yang digunakan pada OS


uname -a = Informasi system kernel anda
cat /proc/cpuinfo = Melihat file pada /proc directori yang bukan merupakan file nyata (not real files).
cat /proc/interrupts = Melihat alamat interrupt yang dipakai.
cat /proc/version = Versi dari Linux dan informasi lainnya.
cat /proc/filesystems = Melihat filesystem yang digunakan.
cat /etc/printcap = Melihat printer yang telah disetup
finger username = Melihat informasi user, coba jalankan; fingerroot
last = Melihat user sebelumnya yang telah login di komputer.
uptime = Melihat jumlah waktu pemakaian komputer oleh seseorang, terhitung proses reboot terakhir.
ps (=print status)= Melihat proses-proses yang dijalankan oleh user
ps axu = Melihat seluruh proses yang dijalankan, walaupun tanpa terminal control, juga ditampilkan nama dari user untuk setiap proses.
top = Melihat proses yang berjalan, dengan urutan penggunaan cpu.

apropos =  Untuk mencari perintah pada sistem operasi yang mempunyai fungsi yang sama. 
chmod = Mengubah perizinan suatu direktori/file. 
wc = Menghitung jumlah kata, jumlah baris dan jumlah karakter dalam suatu file . 
man = Singkatan dari manual yaitu untuk menampilkan halaman manual untuk semua perintah UNIX.
grep = Mencari isi suatu file di sembarang directori. 
pwd = Menampilkan nama direktori dimana Anda saat itu sedang berada.
ps = Digunakan untuk memonitor informasi tentang proses yang aktif dalam sistem UNIX. 
kill =  Digunakan untuk menghentikan proses yang sedang berjalan. 
bc = Perintah bc dapat digunakan sebagai calculator. 
wall = Pengiriman pesan oleh super user. 
:w di gunakan u/ menyimpan file or sama dengan (save).
:q digunakan u/ keluar dari editor tandan mentimpan file.
:wq digunakan u/ keluar dari editor sekaligus menyimpan file. 

tail = Menampilkan 10 baris terakhir dari suatu file.
ls –l = Melihat semua file lengkap
ls -a = Menampilkan semua file atau direktori yang tersembunyi
ls -f = Menampilkan semua file atau direktori tanpa proses shorting
grep root /etc/passwd =  Mencari kata atau kalimat dalam file




 sumber: http://raytkj.blogspot.com/2012/03/perintah-perintah-dasar-di-linux-ubuntu.html

Tuesday, March 19, 2013

tutorial install appserv dan php coder


terima kasih sudah berkunjung