Kamis, 26 Juni 2008

BackTrack 3 USB install and Intel 3945 packet injection

BackTrack 3 USB install and Intel 3945 packet injection
Posted March 9th, 2008 by williamw

I am late announcing this as the official beta has been out since December, however my circumstances recently have changed such that I now have a USB drive. I have been messing around with Backtrack for almost a year and a half now — mostly with the wireless tools — and have been impressed with the powerful arsenal this little bad boy gives you. The best part is that it is FREE!! If you aren’t sure what BackTrack is, I suggest you click here for more information. This will knock your socks off!


For the rest of us who know what it is, I will give you the break down of what you need to do to install BT3 on a USB drive. If you are like me then you are frustrated that your nice laptop comes with such a non-hacker friendly wireless card, the Intel 3945abg. I mean it is a fantastic card for ‘normal’ wireless use–however if one wants to get a little more aggressive with it, than it is near to impossible to allow this card to go into promiscuous mode or to actively inject packets wirelessly. Not to fear though, I will guide you through the steps needed to accomplish both these things.

**The author recognizes there are a variety of methods to go about doing this, however the document procedure below is the one that works best for the author. To follow these EXACT instructions you will need:

1- Computer with Linux

2- Computer with Windows

Step #1

We need to prepare the usb drive for the installation — the usb drive that I used was 8 gig in size, so I wanted to have the majority of the drive available to me as a portable storage space as well as allowing the drive to remain bootable–so my exact process might be a little different than your process. I will try to accommodate for both scenarios.

Ok first off we are going to assume that you don’t have anything on the usb drive (if you do please temporarily move it to another location). Now we need to remove any existing partitions from the USB drive and essentially start from scratch. Insert the USB device into the computer running linux; after the device is recognized and mounted we need to unmount the device from the system so that we can manipulate the partitions. To do this open a terminal window and enter the following command:

umount /dev/sdb [where sdb is the name of the usb drive]

**To find what the drive name is, type: ‘dmesg | tail’ immediately after plugging in the device.

After unmounting the device we want to now use the program called fdisk. From the terminal window type;

sudo fdisk /dev/sdb

[your prompt should change to look like this]

The number of cylinders for this disk is set to 14593.

There is nothing wrong with that, but this is larger than 1024,

and could in certain setups cause problems with:

1) software that runs at boot time (e.g., old versions of LILO)

2) booting and partitioning software from other OSs

(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help):

press ‘p’ to show all the current partitions on the device — I am assuming that there is only one partition on the device, if there are more than one listed then you will need to duplicate the following steps until there are no more partitions showing on the disk.

d [to delete partition]

w [to write changes to disk]

After writing the changes to disk you can press ‘p’ again to confirm that there are no more partitions available on the disk. Now that the device is 100% unallocated space we need to repartition the disk so that we can have a partition for BackTrack 3 to be installed to and another partition to save any changes made to BackTrack and then the third partition is going to be used as the “storage space” that will act as a normal USB drive. Although fdisk is capable of creating new partitions on the device I am going to introduce another program that has a GUI front end that does a good job at creating and formatting the new partitions in one swoop. The program that we will be using is Gparted. If you are using Ubuntu you can install this program from the terminal window by typing:

sudo apt-get install gparted

After installing Gparted we need to start it so in the terminal type:

sudo gparted

This should know open a small rectangle window that displays your current drives partition information. In the upper right hand corner there should be a drop down menu that will allow you to change your device to the USB drive (/dev/sdb) that we just wiped out. After choosing that device you will see that there is no partitions available on the drive and that all space is counted as unallocated. Select the unallocated space and then choose “New”. We need to create a minimum of two partitions, or three if you want some space left on the disk to use as a normal USB drive. Below are the partition sizes and filesystem types I used.

sdb1 — size 6.5 gig — FAT32 [Normal USB storage space]

sdb2 — size 1 gig — FAT32 [BackTrack3 source files]

sdb3 — size 512 MB — EXT2 [BackTrack3 ‘changes’]

**Note you must create a FAT32 parition for the BackTrack3 files to exist on or else the boot script will not run properly

After getting the partitions into the correct order make sure you tell gparted to ‘Write’ the changes to disk. If all goes well gparted will inform you of a success, if not start over at wiping the disk.

Ok so now we have our partitions and file systems it is time to get install BackTrack! First you need to download the installation files specific to a USB installation, click here to get the files. Make sure you get the USB Version. After downloading the the file, extract the files onto the second partition (in my case sdb2). So in the root of the drive I should have two folders “boot and BT3″. After extracting the files we need to run a installation script that will make the first partition bootable. Go into the boot folder and you should see a file called “bootinst.sh” (if you are going to run the script from windows look for the file called “bootinst.bat”). Now we need to run that script file. From the terminal type the following

sudo ./bootinst.sh

Follow the prompts and that should now enable the first partition to be bootable drive. Now we need to configure BackTrack to allow us to save any changes that we make to disk. Once again go into the ‘boot’ folder and then into the ’syslinux’ folder. Inside of that directory there is a file called ’syslinux.cfg’. Open that file up with your favorite text editor. We need to find the section that says “LABEL pc change”, in that section there is a line that says

APPEND vga=0×317 initrd=/boot/initrd.gz ….

And we need to change that line so that it now reads

APPEND vga=0×317 changes=/dev/sdb3 initrd=/boot/initrd.gz

be careful of any extra commas or white spaces, they will disrupt the syntax of the command

(**Note this file displays the different ways that BT3 can be started, because I want to start BT3 in “persistent change” mode (aka it will always save any changes made) I actually moved the entire ‘pc change’ section to the top of the file so that by default BT3 starts in “persistent change” mode. )

After saving the syslinux.cfg file we need to do one last thing — on the third partition that we made (/dev/sdb3) that contains the .EXT2 filesystem we need to create a folder called ‘changes’ in the root level of that partition. Linux is case sensitive so make sure that the folder is called EXACTLY ‘changes’. If your partition numbers are different than what is listed here you need to make the corresponding changes in the syslinux.cfg file to reflect the actual partition number where the ‘changes’ folder is stored. You also need to make sure that your ‘changes’ folder has the proper permissions configured for it; the author has his configured for 777, however this potentially leaves a security problem with respect to this drive. Only configure 755 permissions if you are doing this for testing purposes only. From the terminal window, inside of the /sdb3 root directory issue the following command:

chmod -R 755 changes

ls -l (to confirm that there is total ‘w r x’ permissions on the folder)

Phew well now that is taken care of we need to now enable our intel 3945 wireless card to support monitor mode and packet injection. To do this execute the following commands from the terminal.

1. Download the drivers

mkdir intel-drivers && cd intel-drivers

wget http://homepages.tu-darmstadt.de/~p_larbig/wlan/ipwraw-ng-2.0.0-10072007...

2. Extract the drivers

tar -xjf ipwraw-ng-2.0.0-10072007.tar.bz2

cd ipwraw-ng

3. Compile & Install & Blacklist from startup

make && make install

make install_ucode

echo “blacklist ipwraw” | sudo tee /etc/modprobe.d/ipwraw

depmod -ae

4. Load new modules and put intel 3945 into monitor mode

modprobe -r iwl3945

modprobe ipwraw

5. Test packet injection

aireplay-ng –test wifi0

6. Resort to normal mode

modprobe -r ipwraw

modprobe iwl3945

Well now you have the ultimate setup — BackTrack 3 on a stick and an internal wireless card that supports packet injection, what more could you want? Well ok, maybe there are just a few things . . . Stay tuned and I will keep you updated on new programs and tools I find using BT3.

dikutip dari https://island.byu.edu/blog/34/backtrack-3-usb-install-and-intel-3945-packet-injection
BackTrack 3 USB install and Intel 3945 packet injection
BackTrack 3 USB install and Intel 3945 packet injection
Posted March 9th, 2008 by williamw

I am late announcing this as the official beta has been out since December, however my circumstances recently have changed such that I now have a USB drive. I have been messing around with Backtrack for almost a year and a half now — mostly with the wireless tools — and have been impressed with the powerful arsenal this little bad boy gives you. The best part is that it is FREE!! If you aren’t sure what BackTrack is, I suggest you click here for more information. This will knock your socks off!


For the rest of us who know what it is, I will give you the break down of what you need to do to install BT3 on a USB drive. If you are like me then you are frustrated that your nice laptop comes with such a non-hacker friendly wireless card, the Intel 3945abg. I mean it is a fantastic card for ‘normal’ wireless use–however if one wants to get a little more aggressive with it, than it is near to impossible to allow this card to go into promiscuous mode or to actively inject packets wirelessly. Not to fear though, I will guide you through the steps needed to accomplish both these things.

**The author recognizes there are a variety of methods to go about doing this, however the document procedure below is the one that works best for the author. To follow these EXACT instructions you will need:

1- Computer with Linux

2- Computer with Windows

Step #1

We need to prepare the usb drive for the installation — the usb drive that I used was 8 gig in size, so I wanted to have the majority of the drive available to me as a portable storage space as well as allowing the drive to remain bootable–so my exact process might be a little different than your process. I will try to accommodate for both scenarios.

Ok first off we are going to assume that you don’t have anything on the usb drive (if you do please temporarily move it to another location). Now we need to remove any existing partitions from the USB drive and essentially start from scratch. Insert the USB device into the computer running linux; after the device is recognized and mounted we need to unmount the device from the system so that we can manipulate the partitions. To do this open a terminal window and enter the following command:

umount /dev/sdb [where sdb is the name of the usb drive]

**To find what the drive name is, type: ‘dmesg | tail’ immediately after plugging in the device.

After unmounting the device we want to now use the program called fdisk. From the terminal window type;

sudo fdisk /dev/sdb

[your prompt should change to look like this]

The number of cylinders for this disk is set to 14593.

There is nothing wrong with that, but this is larger than 1024,

and could in certain setups cause problems with:

1) software that runs at boot time (e.g., old versions of LILO)

2) booting and partitioning software from other OSs

(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help):

press ‘p’ to show all the current partitions on the device — I am assuming that there is only one partition on the device, if there are more than one listed then you will need to duplicate the following steps until there are no more partitions showing on the disk.

d [to delete partition]

w [to write changes to disk]

After writing the changes to disk you can press ‘p’ again to confirm that there are no more partitions available on the disk. Now that the device is 100% unallocated space we need to repartition the disk so that we can have a partition for BackTrack 3 to be installed to and another partition to save any changes made to BackTrack and then the third partition is going to be used as the “storage space” that will act as a normal USB drive. Although fdisk is capable of creating new partitions on the device I am going to introduce another program that has a GUI front end that does a good job at creating and formatting the new partitions in one swoop. The program that we will be using is Gparted. If you are using Ubuntu you can install this program from the terminal window by typing:

sudo apt-get install gparted

After installing Gparted we need to start it so in the terminal type:

sudo gparted

This should know open a small rectangle window that displays your current drives partition information. In the upper right hand corner there should be a drop down menu that will allow you to change your device to the USB drive (/dev/sdb) that we just wiped out. After choosing that device you will see that there is no partitions available on the drive and that all space is counted as unallocated. Select the unallocated space and then choose “New”. We need to create a minimum of two partitions, or three if you want some space left on the disk to use as a normal USB drive. Below are the partition sizes and filesystem types I used.

sdb1 — size 6.5 gig — FAT32 [Normal USB storage space]

sdb2 — size 1 gig — FAT32 [BackTrack3 source files]

sdb3 — size 512 MB — EXT2 [BackTrack3 ‘changes’]

**Note you must create a FAT32 parition for the BackTrack3 files to exist on or else the boot script will not run properly

After getting the partitions into the correct order make sure you tell gparted to ‘Write’ the changes to disk. If all goes well gparted will inform you of a success, if not start over at wiping the disk.

Ok so now we have our partitions and file systems it is time to get install BackTrack! First you need to download the installation files specific to a USB installation, click here to get the files. Make sure you get the USB Version. After downloading the the file, extract the files onto the second partition (in my case sdb2). So in the root of the drive I should have two folders “boot and BT3″. After extracting the files we need to run a installation script that will make the first partition bootable. Go into the boot folder and you should see a file called “bootinst.sh” (if you are going to run the script from windows look for the file called “bootinst.bat”). Now we need to run that script file. From the terminal type the following

sudo ./bootinst.sh

Follow the prompts and that should now enable the first partition to be bootable drive. Now we need to configure BackTrack to allow us to save any changes that we make to disk. Once again go into the ‘boot’ folder and then into the ’syslinux’ folder. Inside of that directory there is a file called ’syslinux.cfg’. Open that file up with your favorite text editor. We need to find the section that says “LABEL pc change”, in that section there is a line that says

APPEND vga=0×317 initrd=/boot/initrd.gz ….

And we need to change that line so that it now reads

APPEND vga=0×317 changes=/dev/sdb3 initrd=/boot/initrd.gz

be careful of any extra commas or white spaces, they will disrupt the syntax of the command

(**Note this file displays the different ways that BT3 can be started, because I want to start BT3 in “persistent change” mode (aka it will always save any changes made) I actually moved the entire ‘pc change’ section to the top of the file so that by default BT3 starts in “persistent change” mode. )

After saving the syslinux.cfg file we need to do one last thing — on the third partition that we made (/dev/sdb3) that contains the .EXT2 filesystem we need to create a folder called ‘changes’ in the root level of that partition. Linux is case sensitive so make sure that the folder is called EXACTLY ‘changes’. If your partition numbers are different than what is listed here you need to make the corresponding changes in the syslinux.cfg file to reflect the actual partition number where the ‘changes’ folder is stored. You also need to make sure that your ‘changes’ folder has the proper permissions configured for it; the author has his configured for 777, however this potentially leaves a security problem with respect to this drive. Only configure 755 permissions if you are doing this for testing purposes only. From the terminal window, inside of the /sdb3 root directory issue the following command:

chmod -R 755 changes

ls -l (to confirm that there is total ‘w r x’ permissions on the folder)

Phew well now that is taken care of we need to now enable our intel 3945 wireless card to support monitor mode and packet injection. To do this execute the following commands from the terminal.

1. Download the drivers

mkdir intel-drivers && cd intel-drivers

wget http://homepages.tu-darmstadt.de/~p_larbig/wlan/ipwraw-ng-2.0.0-10072007...

2. Extract the drivers

tar -xjf ipwraw-ng-2.0.0-10072007.tar.bz2

cd ipwraw-ng

3. Compile & Install & Blacklist from startup

make && make install

make install_ucode

echo “blacklist ipwraw” | sudo tee /etc/modprobe.d/ipwraw

depmod -ae

4. Load new modules and put intel 3945 into monitor mode

modprobe -r iwl3945

modprobe ipwraw

5. Test packet injection

aireplay-ng –test wifi0

6. Resort to normal mode

modprobe -r ipwraw

modprobe iwl3945

Well now you have the ultimate setup — BackTrack 3 on a stick and an internal wireless card that supports packet injection, what more could you want? Well ok, maybe there are just a few things . . . Stay tuned and I will keep you updated on new programs and tools I find using BT3.

dikutip dari https://island.byu.edu/blog/34/backtrack-3-usb-install-and-intel-3945-packet-injection

Kamis, 29 Mei 2008

Putty dan ssh

July 11, 2007 by oasisnet

SSH Tunnels bisa juga disebut Port Forwarding. Berikut langkah-langkah yang sudah saya
pelajari dan sudah saya praktekkan. Karena masih dibilang Newbie, untuk itu mohon maaf jika ada kesalahan dalam tutorial ini. Selama ini SSH Tunnels saya
gunakan untuk mIRC dan atau untuk browsing.Mungkin SSH Tunnels bisa digunakan untuk kebutuhan yang lain yang lebih penting, saya kurang tahu. Selamat mencoba…



—-Read —-

Persiapan :
* Koneksi Internet
* SSH
* Putty
* Rokok + Kopi
* Apa aja deh…
Langkah Pertama :
1. Buka Putty
2. Klik tab Tunnels
3. Pilih Dynamic
4. Isikan Port (Socks 4 atau Socks 5)
5. Add

Langkah Kedua :
1. Pilih Session
2. Isikan Host Name (IP Address)
3. Open

Langkah Ketiga :
1. Login ke SSH
2. Isikan Password
3. Biarkan SSH terbuka

Samarkan IP dengan SSH Tunnels pada mIRC
1. Buka IP localhost 127.0.0.1
2. Isikan Port yang digunakan pada SSH
3. Pilih tab Connect
4. Isi form yang ada di tab Connect
5. OK
6. Connect ke server yang diinginkan
7. Whois nick
8. Horay…!!!

Samarkan IP dengan SSH Tunnels pada Internet Explorer
1. Buka Internet Explorer
2. Pilih tab Connection
3. Pilih tab LAN Setting
4. Centang Option pada Proxy Server
5. Pilih Advance
6. Isikan pada kolom Socks
7. Isikan IP localhost 127.0.0.1 dengan port yang digunakan pada SSH
8. OK
9. Check IP ( showip.com )
10. Horay…!!!
http://ndost.wong-mbatu.or.id/2006/09/Browsing via SSH Tunneling Posted on
2007-02-03 19:22:58. 471 views. 11 comment(s).
Berhubung sudah dibahas oleh matriphe untuk client under Windows, sekarang
mari kita bahas penggunaannya untuk client dengan sistem operasi berbasis UNIX,
misalnya Mac OS X, FreeBSD, atau Linux. Dan tentu saja kali ini saya memakai
Mac OS X.

Mari kita lihat contoh skenario dari gambar di atas. Sebuah jaringan lokal
terhubung ke internet melalui sebuah PC router yang berfungsi sebagai NAT,
singkatnya, PC router terhubung dengan internet dan membagi koneksi ini ke
jaringan lokal. Dan PC router ini menggunakan sistem operasi FreeBSD. Lalu ada
sebuah server lagi yang bertindak sebagai proxy server, dalam kasus ini server
tersebut menggunakan sistem operasi Linux dengan aplikasi Squid sebagai proxy
servernya. Serta sebuah host client bandel yang menggunakan sistem operasi Mac
OS X.

OK. Secara default, segala akses ke internet melalui PC router selain dari
proxy server adalah terblokir (digambarkan dengan tanda panah hitam nomor 4).
Sehingga, untuk berhubungan dengan internet, client mesti melewati proxy
server. Seperti gambar di atas, tanda panah hitam nomor 1 menunjukkan hubungan
client dengan proxy server. Tanda panah hitam nomor 2, menunjukkan bahwa
request dari client diteruskan ke internet melalui PC router. Dan tanda panah
hitam nomor 3, menunjukkan bahwa request dari proxy server diteruskan ke
internet, juga terjadi proses translasi alamat privat ke alamat publik oleh NAT.

Biasanya pemilik jaringan memaksa client agar melewati proxy server selain
untuk menghemat bandwidth juga untuk manajemen accounting. Misalnya membatasi
quota volume tiap user, membatasi kecepatan download user, ataupun membatasi
ukuran file yang boleh di-download oleh user, serta memblokir alamat-alamat
yang mengandung kata-kata tertentu. Namun dasar client bandel, selalu mencoba
untuk mengakali limitasi yang diberikan oleh proxy server. Hehehehe…

Untuk membuat koneksi SSH, tentu saja baik klien dan server mesti memiliki
aplikasi untuk ssh. Karena servernya menggunakan FreeBSD yang berbasis UNIX,
tentu saja sudah memiliki aplikasi sshd sebagai SSH server. Dan aplikasi ini
harus aktif agar dapat diakses dari host lain. Biasanya aplikasi sshd ini
diaktifkan oleh admin untuk remote console, sehingga sang admin tidak perlu
mengakses servernya secara fisik. Sementara untuk kliennya, biasanya sistem
operasi berbasis UNIX memiliki aplikasi ssh. Untuk klien yang menggunakan
sistem operasi Windows, dapat menggunakan aplikasi PuTTY seperti yang telah
dijelaskan oleh matriphe di blognya.

Kita misalkan alamat IP PC router tersebut di sisi LAN adalah 10.14.0.1. Maka
kita harus login ke komputer tersebut dengan menggunakan perintah ssh. Kita
mulai saja. Pada OSX, jalankan aplikasi Terminal.app, lalu login ke komputer
korban dengan sintax sebagai berikut. Namun tetap saja Anda membutuhkan
password dan username yang valid untuk digunakan. Hehehehe…

$ ssh -D 4567 [EMAIL PROTECTED]

Parameter -D 4567 adalah untuk mengaktifkan port-forwarding dinamis di
komputer lokal dengan port 4567. Nomor portnya sendiri adalah bebas, Anda dapat
menggunakan port berapa saja yang tidak terpakai. Gunakanlah port dengan nomor
di atas 1000. [EMAIL PROTECTED] berarti kita akan login sebagai root di
komputer dengan alamat IP 10.14.0.1. Anda tidak harus login sebagai root,
sebagai user lain juga bisa.

Setelah koneksi SSH dengan korban tercipta, mari kita setting browser kita. Di
sini saya mencontohkan dengan browser Firefox. Masuk ke preferences, lalu cari
bagian network connections. Pilih “Manual Proxy Configurations”, kosongkan
semua field, lalu isi field “SOCKS Host” dengan alamat loopback, yakni
127.0.0.1, lalu isi port-nya sesuai dengan port yang Anda gunakan. Sebagai
contoh, saya sertakan gambar contoh di bawah.

Lalu mari kita lihat hasilnya.

Dengan SSH Tunneling ini, request akan langsung dikirimkan ke PC router tanpa
melewati proxy server (digambarkan dengan garis putus-putus biru nomor 5)
melalui jalur tunnel ssh yang telah dibuat sebelumnya. Lalu request ini
langsung di kirimkan ke internet, seolah-olah request ini dikirimkan dari PC
router langsung (digambarkan dengan garis putus-putus biru nomor 6). Jadi Anda
berinternet seolah-olah berada di komputer PC router tersebut. Untuk bandwith,
tentu sudah jaminan mutu tanpa ada limitasi proxy maupun dari PC router itu
sendiri.
Memahami Perintah Dasar di Linux

July 11, 2007 by oasisnet

Secara umum perintah-perintah Linux dan UNIX memiliki sintaks sbb :
perintah [option...] [argumen...]
Option merupakan pilihan yang dapat kita gunakan untuk memberikan hasil tertentu dari suatu perintah.
Argumen umumnya merupakan sesuatu yang akan diproses oleh perintah, misalnya nama file atau nama direktori.
Tanda [ ] merupakan simbol bahwa option dan argumen tidak harus selalu digunakan dalam menjalankan perintah.
Tanda titik-titik menandakan bahwa baik option dan argumen dapat lebih dari satu.
Seluruh perintah dalam Linux dan UNIX bersifat case sensitive, jadi perintah LS akan dianggap berbeda dengan ls.

Sekarang kita mulai dengan perintah-perintah dasar yang umum digunakan dalam Linux:

—- read —-
ls
Perintah ini merupakan perintah untuk menampilkan isi suatu direktori. Perintah ini mirip seperti perintah dir dalam DOS.
Ada beberapa cara untuk menggunakan perintah ini, misalnya :
# ls
# ls -l
Untuk mengetahui lebih lengkap tentang perintah ls, silakan lihat di manual dengan perintah man ls.
more
Perintah more dapat digunakan untuk melihat isi suatu file teks dengan layar per layar. untuk keluar dari tampilan more dengan menekan tombol q.
cat
Perintah ini digunakan untuk menampilkan isi file ke layar tanpa fasilitas tampilan layar per layar.
Biasanya digunakan bersamaan dengan pipeline atau redirection. Misal untuk menampilkan isi file /etc/passwd dan /etc/group, gunakan perintah :
# cat /etc/passwd /etc/group
cd
Perintah ini mirip seperti perintah cd dalam DOS yaitu digunakan untuk pindah ke direktori tertentu. Contoh perintah :
# cd /home/adje
Untuk menuju kembali ke direktori /home, maka digunakan perintah :
# cd ..
cp
Perintah ini digunakan untuk mengkopi suatu file atau direktori. misalnya :
# cp contoh1 contoh2
Perintah di atas maksudnya akan mengkopi contoh1 ke file contoh2. Untuk mengkopi seluruh direktori menggunakan perintah :
# cp -R /home/adje /home/afri
mv
Perintah ini digunakan untuk memindahkan suatu file ke lokasi lain atau dengan nama lain. Contoh :

# mv contoh1.php contoh2.php
#mv contoh1.php /home/adje/contoh2.php
rm
Perintah ini digunakan untuk menghapus direktori atau file. Perintah ini mirip dengan perintah del dalam DOS. Dalam menggunakan perintah ini agar hati-hati karena dalam Linux tidak ada perintah undelete atau unerase. Contoh penggunaan rm sbb :
#rm contoh1.php
Untuk menghapus suatu direktori gunakan perintah :
#rm /home/adje/temp
mkdir
Perintah ini digunakan untuk membuat direktori. Misalnya :
#mkdir contoh
Pipeline
Pada Linux dan UNIX, hasil keluaran suatu proses program dapat diberikan sebagai input pada proses lainnya. Contohnya :

#ls -l /home/adje | more
grep
Perintah grep digunakan untuk men-filter masukan dan menampilkan dalam bentuk baris-baris yang sesuai dengan pola yang anda inginkan. Contoh :

# ps ax |grep wvdial
Redirection
Di dalam Linux atau UNIX, anda dapat membelok-belokkan standar input, output ataupun standar error menuju tujuan lain.
Misalnya anda dapat membelokkan standar output suatu program ke file atau membelokkan standar input suatu program dari suatu file.
Proses pembelokkan ini disebut redirection dan di *NIX digunakan simbol > (untuk membelokkan standar output ke file) dan simbol < (untuk membelokkan standar input dari file). Contoh :

Untuk menyimpan tampilan isi seluruh directori /etc ke sebuah file, gunakan perintah :

#ls -lR /etc > isi-etc
Untuk menambahkan isi file isi-etc dengan data lain, gunakan simbol >> (append) pada redirection, misal :

#ls -lR /home/adje >> isi-etc

Untuk membuat perintah mensortir data yang terdapat pada file contoh.txt dapat digunakan perintah :

#sort < contoh.txt
Perintah-perintah di atas adalah perintah-perintah yang sering digunakan dalam Linux atau UNIX. Bila anda masih merasa kesulitan silakan baca manual-nya terlebih dahulu. Karena membaca manual itu sangat penting bila kita sering meng-oprek Linux atau UNIX. Dari manual itu kita bisa mendapat solusi dari masalah yang kita hadapi

Reff: http://zaki-math.web.ugm.ac.id/mod.php?mod=publisher&op=viewarticle&artid=16

Dasar-Dasar Perintah Linux

July 11, 2007 by oasisnet

eBagi yg biasa make putty tentunya udah biasa dengan perintah2 linux, dibawah ini kami sajikan beberara perintah2 dasar linux khusus bagi pemula (yg udah expert gak usah baca Cool!) Peintah2 ini bersifat sangat dasar dan hanya secara garis besarnya aja, kalo mau tau detailnya bisa make perintah: man

—- read —-

Perintah2 Dasar Linux:

Perintah Contoh Keterangan
ls ls -la Tampilkan daftar file/direktori
cd cd /tmp Berpindah ke direktori tmp
cp cp olib.txt ancu.txt Mengcopy file olib.txt jadi ancu.txt
mv mv ippank.tcl mrscripe.tcl Merubah nama ippank.tcl menjadi mrscripe.tcl
mkdir mkdir galardo Membuat direktori baru bernama galardo
rm rm -rf jagiring Menghapus dir jagiring beserta sub-dir2 nya
find find / -name reza.txt
find / -perm 777 -type d
find /var -user nobody Mencari reza.txt mulai dari awal direktoriMencari semua dir yg drwxrwxrwx

Mencari semua file/dir milik nobody mulai dari dir /var
ps ps x Menampilkan semua proses dari id saat itu
kill kill -9 6693 Mematikan proses pid 6693
killall killall -9 help Mematikan semua proses yg bernama help
crontab crontab -lcrontab -r Melihat crontabMenghapus crontab
head head dhaenk.txthead -5 dhaenk.txt Menampilkan 10 baris awal pada file dhaenk.txtMenampilkan 5 baris awal pada file dhaenk.txt
tail tail joe.txttail -7 joe.txt Menampilkan 10 baris akhir pada file joe.txtMenampilkan 7 baris akhir pada file joe.txt
pwd pwd Menampilkan posisi direktori yg aktif saat itu
id id Menampilkan id user
mail mail Berkomunikasi dengan user lain
passwd passwd Mengganti password user
cal cal Menampilkan kalender
date date Menampilkan tanggal dan waktu
finger finger Menampilkan informasi user
du du /home/ichal Memeriksa total pemakaian disk pada dir /home/ichal
clear clear Membersihkan layar
whoami whoami Menampilkan id

Perintah Linux beserta kegunaannya

July 11, 2007 by oasisnet

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

—- read —-
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

Mikrotik OS Untuk Bandwidth Management

May 8, 2007 by oasisnet

MikroTik RouterOS™ adalah sistem operasi dan yang dapat digunakan untuk
menjadikan komputer manjadi router network yang handal, mencakup berbagai fitur
lengkap untuk network dan wireless, salah satunya adalah bandwidth manajemen.
Saya coba mengulas cara2 paling awal untuk setting mikrotik untuk BW manajemen.—– read —–

1. Install Mikrotik OS
1. Siapkan PC, minimal Pentium II juga gak papa RAM 64,HD 500M atau pake
flash memory 64
2. Di server / PC kudu ada minimal 2 ethernet, 1 ke arah luar dan 1 lagi ke Network
local yg akan di manage BWnya

3. Burn Source CD Mikrotik OS masukan ke CDROM
4. Boot dari CDROM
5. Ikuti petunjuk yang ada, gunakan syndrom next-next dan default
6. Install paket2 utama, lebih baiknya semua packet dengan cara menandainya
(mark)
7. Setelah semua paket ditandai maka untuk menginstallnya tekan “I”
8. Lama Install normalnya ga sampe 15menit, kalo lebih berarti gagal, ulangi ke step
awal
9. Setelah diinstall beres, PC restart akan muncul tampilan login

2. Setting Dasar Mikrotik
Langkah awal dari semua langkah konfigurasi mikrotik adalah setting ip. Hal ini
bertujuan agar mikrotik bisa di remote dan dengan winbox dan memudahkan kita untuk
melakukan berbagai macam konfigurasi
1. Login sebaga admin degan default password ga usah diisi langsung enter
2. Setelah masuk ke promt ketikkan command:
[ropix@GblSdd] > ip address add address=222.124.21.26/29 interface=ether1
3. Gantilah dengan ip address anda dan interface yg akan digunakan untuk
meremote sementara
4. Lakukan ping ke dan dari komputer lain
5. Setelah konek lanjutkan ke langkah berikutnya, kalo belum ulangi langkah 2

3. Setting Lanjutan
1. Akses ip mikrotik lewat browser, maka akan muncul halaman welcome dan login
2. Klik link Download it untuk download winbox yg digunakan untuk remote
mikrotik secara GUI
3. Jalankan winbox, login sebagai admin password kosong
4. Masuklah ke menu paling atas (interface), tambahkan interface yg belum ada
dengan mengklik tanda +
5. Tambahkan pula interface “bridge” untuk memfungsikan mikrotik sebagai bridge

4. Setting Bandwidth limiter
1. Klik menu ip>firewall>magle
Buat rule (klik tanda + merah) dengan parameter sbb:
Pada tab General:
Chain=forward,
Src.address=192.168.0.2 (atau ip yg ingin di limit)
Pada tab Action :
Action = mark connection,
New connection mark=ropix-con (atau nama dari mark conection yg kita buat)
Klik Apply dan OK
Buat rule lagi dengan parameter sbb:
Pada tab General: Chain=forward,
Connection mark=ropix-con (pilih dari dropdown menu)
Pada tab Action:
Action=mark packet,
New pcket Mark=ropix (atau nama packet mark yg kita buat)
Klik Apply dan OK
2. Klik menu Queues>Queues Tree
Buat rule (klik tanda + merah) dengan parameter sbb:

Pada tab General:
Name=ropix-downstrem (misal),
Parent=ether2 (adalah interface yg arah keluar),
Paket Mark=ropix (pilih dari dropdown, sama yg kita buat pada magle),
Queue Type=default,
Priority=8,
Limit At=8k (untuk bandwidth minimum)
Max limit=64k (untuk seting bandwith brustable)
Klik aplly dan Ok
Buat rule lagi dengan parameter sbb:
Pada tab General:
Name=ropix-Upstrem (misal),
Parent=ether1 (adalah interface yg arah kedalam),
Paket Mark=ropix (pilih dari dropdown, sama yg kita buat pada magle),
Queue Type=default,
Priority=8,
Limit At=8k (untuk bandwidth minimum upstrem)
Max limit=64k (untuk seting bandwith brustable)
Klik aplly dan Ok
3. Cobalah browsing dan download dari ip yg kita limit tadi, Rate pada Queues rule tadi
harus mengcounter, kalo belum periksa lagi langkah- langkah tadi
4. Icon hijau menandakan bandwidth kurang dari batasan, Icon berubah kuning berarti
bandwidth mendekali full dan merah berarti full.