Rabu, 31 Oktober 2012

easy installing lamp on ubuntu 12.04 with one command

LAMP (Linux, Apache, MySQL and PHP) is an open source Web development platform that uses Linux as operating system, Apache as the Web server, MySQLas the relational database management system and PHP as the object-oriented scripting language.

My os : Backbox 3.0 base ubuntu 12.04

Open terminal and Type the command :
iyan@IBTeam:~$ sudo apt-get install tasktel

to install LAMP, type the taskel command in terminal :
iyan@IBTeam:~$ sudo tasktel



During the installation you will be asked to insert the mysql root password



Now check if php is working :
iyan@IBTeam:~$ sudo nano /var/www/info.php

and add

<?php
phpinfo();
?>

save and exit , then restart apache2,

iyan@IBTeam:~$ sudo /etc/init.d/apache2 restart
now open browser and type :
http://localhost/info.php



Php is installed.
To full manage your lamp Server database, install phpmyadmin
iyan@IBTeam:~$ sudo apt-get install phpmyadmin

To login to phpmyadmin, open browser and type :

http://localhost/phpmyadmin



source
Baca selengkapnya

Sabtu, 20 Oktober 2012

command dasar linux

command dasar linux

Intro : postingan ini cuma sekedar catatan pribadi ane, jadi jangan dicaci ya. Kalo emank berguna Alhamdulillah, kalo emank udah tw ywd gk pa2 cuma buat y belom tw aja kyk ane :D

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-

Beberapa command line yang biasa digunakan dalam terminal/konsol linux:
$ grep “license” readme.txt = mencari kata “license” dalam file readme.txt
$ du -h –max-depth=100 = estimate file usage
$ du /media/data/ –max-depth=1 -B M | sort –g = melihat penggunaan space pada folder
$ du -sh /media/data/ = melihat besaran (MB) folder
$ sudo fdisk -l = show partition table
$ free = melihat free RAM
$ cat /etc/fstab = static file system information
$ cat /proc/cpuinfo = info cpu
$ cat /proc/meminfo = info memory
$ cat /proc/partitions = info partition
$ cat /etc/rc.d/rc.s = startup
$ find / -name “namafile” = search nama file
$ find /media/data/ -name “Thumbs.db” -print0 | xargs -0 rm -vr = menghapus hasil pencarian
$ find /home/user -size +30M = mencari file dengan ukuran diatas 30M

$ alias lihat=’ls -l’ = memberikan alias perintah
$ cal 2010 = show calender
$ clear = clear the terminal screen
$ sudo shutdown -h now = menshutdown pc sekarang
$ sudo shutdown -h +2 = menshutdown pc
$ init 0 = halt
$ init 6 = reboot
$ init 2 =
$ top -d 2 = melihat proses shift+?
$ who = Show who is logged on
$ w = Show who is logged on and what they are doing
$ dmesg = print message system
$ cfdisk = tool tabel manipulator for linux
$ killall sshd = mengkill proses ssh
$ arp -ne = cek arp tabel
$ pstree = melihat proses secara pohon kebutuhan
$ lspci -v = cek hardware via konsole
$ lshw -C processor = cek hardware processor
$ sudo pmi action sleep = menjalankan fungsi sleep
$ sudo pmi action suspend = menjalankan fungsi suspend
$ dig 192.168.1.1 = dns lookup utility
$ cat /proc/net/arp = cek arp
$ sudo gedit /etc/fstab = file konfigurasi mount hardisk
$ scp test.log oniichan@192.168.1.12:~ = transfer file via jaringan kedalam home direktori
$ iwlist eth1 scanning = scanning access point
$ sudo ifconfig eth1 hw ether 0013022e91c7 = mengganti mac address
$ sudo apt-get -d source avant-window-navigator-bzr = download paket only, not install
$ sudo dpkg-reconfigure xserver-xorg = reconfigure ulang xserver
$ sudo /etc/init.d/gdm stop = mematikan service gdm stop
$ sudo iwconfig eth1 essid “pptik01″ = mendaftarkan name access point
$ sudo dhclient = auto dhcp
$ chown oniichan:oniichan /media/data = mengubah owner folder
$ sudo adduser nama_user nama_group = menambah user
$ usermod -G namagroup namauser = memasukkan user ke group
$ cat /etc/group = cek group user
$ smbclient -U% -L localhost = cek samba di local
$ cat /proc/version = cek version linux header
$ mtr http://www.hacker-newbie.org = gabungan ping dan traceroute
$ ls var/cache/apt/archives/ = data paket apt
$ ls /etc/rc2.d/ = list service
$ sudo update-rc.d -f rsync remove = meremove service rsync
$ sudo update-rc.d rsync defaults = mengadd service menjadi default service
$ ls -h = list human readeable
$ sudo apt-get install -f = fix dependency broken
$ cat /proc/acpi/acer/wireless = melihat penggunaan button
$ sudo tail -f /var/log/cups/error_log = melihat error pada service cups
$ lshal = melihat hal daemon usb
$ sudo hald = mengaktifkan hald daemon
$ sudo /etc/init.d/dbus start = service dbus daemon
$ nmap -sP 192.168.1.10-30 = checking ip up or not
$ watch lsusb = execute a program periodically
$ speaker-test 1.0.12 = test sound
$ wget http://cdn.x.indowebster.com/download/60…15054b.mp3 -O a.mp3 = download dan me-rename file
$ wget -c -t inf http://www3.indowebster.com/591803763.avi = download dengan opsi continous, try infinite jika gagal
$ wget -i download.txt = download dengan opsi membaca url dari file download.txt
$ wget –limit-rate=10k = download dengan opsi bandwith hanya 10 kilobytes/s
$ displayconfig-gtk = screen and grafik configurations
$ aplay -l = playing file
$ lsb_release -a = cek ubuntu version
$ lpinfo -v = cek printer
$ id = Print user and group information for the specified USERNAME
$ ps ax | grep screenlets | awk ‘{print$1}’ | xargs kill -9 = kill spesifik berdasarkan nama proses
$ file nama_file = Determine file type of FILEs
$ for i in {1..10}; do echo $i; done = ngurut nomer
$ update-manager -d = Check if upgrading to the latest devel release is possible
$ cat /etc/passwd | grep 1000 | awk -F: ‘{ print $1 }’ = menampilkan user dengan UID 1000
$ find debian/ -iname ‘*’ -print0 | xargs -0 md5sum > md5sum = creating md5sum
$ espeak -s 80 “I love you” = text to speech
$ apt-cache policy ubuntu-desktop = print policy settings
$ sudo ip route replace default nexthop via 192.168.0.1 dev eth0 weight 3 nexthop 192.168.1.1 dev eth1 weight 2 = load balancing
$ sudo Xorg -configure :1 = print konfigurasi xorg.conf
$ for FILE in cd*.bin ; do bchunk $FILE ${FILE%.*}.cue ${FILE%.*} ; done = mengubah file bin menjadi cue
$ rm cd[1-5].@(bin|cue) = menghapus secara spesifik
$ ls -l | awk ‘{print $8}’ = print secara list index
$ split -b 200MB avatar.avi avatar.avi. = split file into separate file
$ cat avatar.avi.* > avatar.avi = merge into 1 file
$ sudo ifup eth0 = Stop a network interface
$ sudo ifdown eth0 = Start a network interface up
$ wc -ml /etc/apt/sources.list = Print byte, word, and line counts
$ history = Command History
$ netstat = Networking information
————————————————————————–
cd x atau cd /x == masuk ke direktori x
cd .. atau cd ../ atau cd/.. == pindah ke direktori satu level di bawah
x lalu [tab] [tab] == berguna untuk mengetahui perintah apa saja yang tersedia yang berawalan huruf x
————————————————————————–
adduser == untuk menambahkan user baru
ls atau dir == untuk melihat isi suatu direktori
cat == untuk melihat isi dari suatu file text
mv x y == untuk memindahkan atau merename file x ke file y
cp x y == untuk mengkopi file x ke file y
rm x == untuk menghapus file x
mkdir x == untuk membuat direktori x
rmdir x == untuk menghapus direktori x
rm -r x == untuk menghapus direktori x beserta seluruh isinya
rm p == untuk menghapus paket tertentu
df atau df x == untuk mengetahui space kosong dalam device x
top == untuk mengetahui status memori (tekan q untuk quit)
man x == untuk mengetahui keterangan manual dari suatu perintah
less x == untuk melihat isi dari suatu file text
echo x == untuk mencetak isi dari suatu file x ke screen
mc == untuk menghidupkan Norton Commander dalam Linux (sangat berguna dan memudahkan bagi newbie)
mount == untuk menghidupkan suatu device spt cdrom
halt == untuk shutdown
reboot atau [ctl + alt + del] == untuk reboot
————————————————————————–
chmod == untuk mengubah permission suatu file
ls -l x == untuk melihat isi suatu direktori secara rinci
ln -s x y == untuk membuat link dari suatu file x ke file y
find x -name y -print == untuk menemukan file y, dengan mencari mulai dari direktori x dan tampilkan hasilnya pada layar
ps == untuk melihat seluruh proses yang sedang berjalan
kill x == untuk mematikan proses x (x adalah PID di dalam ps)
[alt] + F1 – F7 == untuk berpindah dari terminal 1 – 7 (ciri khas Linux)
lilo == untuk membuat boot disk
startx == untuk menjalankan X-Windows
[ctl] + [alt] + [backspace] == untuk keluar dari X-Windows jika terjadi trouble
[ctl] + [alt] + F1 – F6 == untuk pindah dari satu terminal ke terminal lain dalam X-Windows
xf86Config == untuk mengeset X (primitif) dalam text mode
Xconfigurator == sama seperti di atas

sumber >>

Baca selengkapnya

Jumat, 12 Oktober 2012

yumex on centos 6

yumex on centos 6

step installing yumex on centos 6

Step 1
Create the repository config file /etc/yum.repos.d/slce.repo:
[slce]
name=Scientific Linux Cyrillic Edition
baseurl=http://downloads.naulinux.ru/pub/SLCE/6x/$basearch/CyrEd/RPMS/
enabled=0
gpgcheck=1
gpgkey=http://downloads.naulinux.ru/pub/SLCE/RPM-GPG-KEY-linux-ink


Step 2 
Install yumex rpm package:
# yum --enablerepo=slce install yumex


now you can open yumex B)

download slce.repo
 
source >> 

Baca selengkapnya

Sabtu, 06 Oktober 2012

firewall dengan gufw

ketemu lagi sama ane facebooker galau ^^
setelah sekian lama tidak berkunjung ke blog ini akhirnya ane siap meneruskan blog ini, meskipun cuma catatan pribadi ane xixixixixi, oke langsung saja .
ane ingin mengenalkan salah satu tool firewall sederhana ubuntu yaitu Gufw. Tapi sebelumnya ane jelaskan dulu apa itu firewall

"Firewall merupakan suatu cara/sistem/mekanisme yang diterapkan baik terhadap hardware , software ataupun sistem itu sendiri dengan tujuan untuk melindungi, baik dengan menyaring, membatasi atau bahkan menolak suatu atau semua hubungan/kegiatan suatu segmen pada jaringan pribadi dengan jaringan luar yang bukan merupakan ruang lingkupnya. Segmen tersebut dapat merupakan sebuah workstation, server, router, atau local area network (LAN) anda."

Gufw adalah GUI dari ufw dimana ufw sendiri adalah The default firewall configuration tool for Ubuntu is ufw. Developed to easeiptables firewall configuration, ufw provides a user friendly way to create an IPv4 or IPv6 host-based firewall. By default UFW is disabled. Yang artinya: artiin sendiri ya. krn bahasa inggris ane agak minus :( HaHaHa

oke berikut cara menginstall Gufw di linux ubuntu kita

root@IBTeam |Aceh:~# apt-get install gufw

 catatan ane gk menggunakan sudo karena ane udah root O_O

terus kalo udah tinggal buka aja gufw di menu>>system>>prefference>>administration>>Firewall configurations

berikut ssnya :D


untuk mengaktifkan Gufw tinggal klik enable terus tekan tombol add di sudut kanan bawah
kemudian add rule
contoh disini saya berikan akses
|| deny || in || service || ftp ||

keterangan gufw akan men deny  , jaringan in (masuk) pada service ftp atau port 21
berikut ss nya

penampakan setingan gufw di laptop ane :)

berikut ss iptables dari console ane 
root@IBTeam |Aceh:~# iptables -L

silahkan dicoba suruh teman anda untuk melakukan serangan ke laptop anda, di laptop ane ini berhasil. bisa menangkal MITM. Meskipun tidak ada system yang aman, minimal ini salah satu cara bertahan.
tambahan dari ane menangkal mitm dari sysctl.conf
root@IBTeam |Aceh:~# nano /etc/sysctl.conf
cari mitm dengan perintah ctrl+w
kemudian rubah baris ini
# Do not accept ICMP redirects (prevent MITM attacks)
#net.ipv4.conf.all.accept_redirects = 0
#net.ipv6.conf.all.accept_redirects = 0
menjadi
# Do not accept ICMP redirects (prevent MITM attacks)
net.ipv4.conf.all.accept_redirects = 0
net.ipv6.conf.all.accept_redirects = 0
 kemudian ctrl+o dan save terus exit
kemudian aktifkan
root@IBTeam |Aceh:~# sysctl -p
net.ipv4.conf.all.accept_redirects = 0
net.ipv6.conf.all.accept_redirects = 0
Berikut ss

sekian dulu ya, mudah2an bisa cepet2 nyusul update info baru lagi :D
makasih buat
*my forum
*my region
*t193r Community
*Street-Cyber
*InfoLinux/03/2011
Baca selengkapnya