Followers

Powered by Blogger.
Showing posts with label Linux OS. Show all posts
Showing posts with label Linux OS. Show all posts
Friday, May 20, 2011

Tutorial Virtual Machine with Virtual box in your Windows

longtime kartolocyber wasnot update the article, some of us so busy in our study. okey, i'll write about virtual machine in Windows. Sometimes, there is a particular program that we want to run but is plagued with compatibility Operating System (OS). For example there are applications that we know first run on WinXP but now after a try again in Win7 not be opened (crash). Or even it could also have a special application we need to work, but teryata application can only run on Windows while Linux-based computer.

Of course, we can use the system to plant two Dual Booting OS in one computer. But sometimes this method is less practical because more needs to be prepared such as set partitioning, manage files, etc.. In addition, if one day we already do not need a second OS, then the uninstall process was not easy. All too often ended up reformatting, and that means set the partitions and file again.
Actually, there is one practical solution to this, that is by using VirtualBox. With VirtualBox, you can as if making a new computer ( virtual machine ) and install it with the OS you want (Guest OS). More great again, you can run both at the same time, moving from guest to host and vice versa with ease. If it does not need anymore, you just delete it (remove) the virtual machine without a complex process.

Well, in this article I will explain about how to create a virtual machine using VirtualBox. Because many things to be explained, for convenience, so I split them up into several sections, namely: Download & installl Virtual Box, Virtual Machine http://www.blogger.com/img/blank.gifSetup & Guest OS, and the last is the setting. In this example, I will install WinXP in a virtual machine that will be created. As for his own VirtualBox I run across operating systems Win7. So, the Guest OS and Host OS = WinXP = Win7. Here are the steps:
DOWNLOAD & INSTALL VirtualBox

First download the installer once its in here . Select according to the type of OS you use.



1. After that run its installer file. Click Next> when VirtualBox Setup Wizard appears.

2. Then you can choose the installation location. Click Next> to continue.

3.Choose anywhere you want a shortcut is created, then click Next>

4. Usually will appear warning that the connection to the network is disconnected while on during the installation process. Just click Next>.

5. Click Install to begin the installation process.

6. If UAC appears, click Yes.

7. Up here you've managed to install VirtualBox. Click Finish to run the VirtualBox program

VIRTUAL MACHINE SETUP

Next you need to do is make her a virtual machine. Click New on VirtualBox Manager to get started. You will be greeted by the New Virtual Machine Wizard. Click Next to continue. Here you will choose what type of OS you want to install as guest OS. In this example we will install WinXP. Click Next when done select the type of OS. You can determine how much memory (RAM) for the virtual machine later. Move the slider to the desired number, then click Next.For the first time, make sure you men-centang/contreng Boot Hard Disk and also select Create new hard disk, If so, click Next. Next you will go to the Create New Virtual Disk Wizard. Click Next to continue. You can choose whether the size of virtual hard disk later this magnitude can change or always remain. For savings should you choose a dynamically expanding storage. Click Next if you have selected. Here you can choose the location where the virtual hard disk will be created, it also determines the maximum size hard disk (hard disk maximum size). VirtualBox by default suggested size is 10 G. But you also can set smaller as long as you believe that size is sufficient for your needs later. Click Next. This is a Summary of the Create New Virtual Disk Wizard. Click Finish. It appears that you already have a virtual machine called WinXP, although it is still empty. Now the next task is to fill this virtual machine with the Guest OS. Double-click on the entry to start WinXP.
You will be greeted by First Run Wizard. Just click Next.Here you will select the media you will use as a source installation. In this example I use WinXP CD (bootable of course), which I enter into Drive E (DVD ROM). If so, click Next. This is a Summary of the First Run Wizard. It's good here you have prepared her to drive installer that you selected earlier. Click Finish to begin the installation process. Display WinXP installation will start out. Press Enter to continue. Select Format the partition using the NTFS file system, then press Enter. Please wait until the WinXP installation process is complete.
Congratulations, you now have a WinXP Guest OS on your virtual machine! Before you start "playing around" with this new virtual machine it's good to do some changes to the settings used to make you more comfortable in using it later. Some settings require the virtual machine in a non-active, some can only be done in the Guest OS Safe Mode. Thus, to present first shutdown the Guest OS you.

SETTING UP PROCCESS

This time will discuss about some important settings of your order the more comfortable in using your virtual machine. Make sure your virtual machine is turned off (powered off), then double-click to turn on and be prepared to press F8 as we will go into Safe Mode.

Choose Safe Mode, then Enter twice.
After entering Safe Mode, click Yes to close the window notification.
In the VirtualBox menu, select Devices -> Install Guest Additions.
It would appear the Windows Explorer . Double-click VBoxWindowsAdditions.
You will be greeted by the VirtualBox Guest Additions Setup Wizard. Click Next> to continue.
Select the installation location and click Next>.
If you plan to run an application in the Guest OS that require Direct3D (games for example), then make sure the Direct3D Support selected. If you already click Install.
Guest Additions installation process was completed. Click OK.
Click Finish to restart and get into WinXP as normal.
Next we'll create a Shared Folders. Usefulness is as a place to exchange (transfer) files between Guest and Host. The trick is to select Devices -> Shared Folders.
Click the Add button on the right side of the window.
In the Folder Path, select Other.
Specify the folder where you want shared.
Then select Auto-mount that folder directly at-shared automatically at startup.
Rekapnya be seen here. You also can create more than one Shared Folders if you wish. Click OK to finish.
Shared Folders will only begin to be used if you have to restart. But for now the Guest OS shutdown before you because we will make changes in the last settings via VirtualBox Manager.
Click Settings on the menu VirtualBox Manager.
Select the System tab on the left. Well here you can make settings memory (RAM) and also the Boot Order. In order for fast booting, select Hard Disk as the Boot Order first priority.
Select the Display tab and you can change the amount of Video Memory (VGA Card) and also activate the Enable 3D Acceleration feature. Click OK if it is.
Next run the virtual machine again. After entering Windows, try running Explorer. It appears that the Shared Folders now can be accessed.
Applications that can not be opened in Win7 are now able to run.

an explanation of the technical steps to create a virtual machine and its installation with the Guest OS using VirtualBox. In this way, we seemed to have a "new computer" is ready to run. In the world of IT, many benefits to be gained by using this VirtualBox. A Java programmer who want to create a multi-platform applications, can use VirtualBox to test programs in various OS (Windows, Mac, Linux, FreeBSD, etc.).

Or someone who is studying to be a hacker, usually also will create a virtual machine to test the efficacy of scripts or artificial virus, without having to worry about major OS that is being used also infected. You can also experiment with VirtualBox it suits your needs.
Wednesday, October 13, 2010

Membuat sendiri sistem kuota ala Speedy

paket kuota speedy imagesAnda pernah merasa jengkel, karena kapasitas internet anda terbatas? mungkin hal itu serign dialami oleh para pengguna telkom speedy, terutama yang menggunakan kuota 50 jam atau kuota pemakaian. Kali ini kartolo mencoba untuk menjelaskan cara membuat dan setting kuota internet ala speedy, dengan pembatasan berdasarkan waktu dan kapasitas pemakaian tentunya.

Bagi anda yang awam tentang kuota internet, sebagai contoh : user A di berikan batas waktu pemakaian 8 jam, dan 50 MB perharinya. Walaupun sebelum 8 jam kapasitasnya sudah full maka pengguna terpaksa menunggu hari berikutnya untuk bisa kembali bermain. Untuk setting kuota internet ini, kita tidak perlu khawatir, karena anda bisa mengikuti dan menyesuaikan dengan setting yang telah saya gunakan.

System quota ini menggunakan sebuah paket aplikasi tambahan, Squish. Yang penulis gunakan adalah squish versi 0.0.18. Cara ini kita praktikkan menggunakan linux, tepatnya distro fedora core 4, yang didalamnya telah terinstall paket squid. Berikut adalah peralatan yang kita butuhkan nantinya :

- gd-2.0.33-2.i386.rpm
- perl-GD-2.35-1.fc4.i386.rpm
- squish-0.0.18.tar.gz


Download dulu paket-paket di atas dengan ketik:

# wget http://h1.ripway.com/ilmuwebsite2/gd-2.0.33-2.i386.rpm
# wget http://h1.ripway.com/ilmuwebsite2/perl-GD-2.35-1.fc4.i386.rpm
# wget http://h1.ripway.com/ilmuwebsite2/squish-0.0.18.tar.gz

Kemudian Install paket gd-2.0.33-2.i386.rpm, dan perl-GD-2.35-1.fc4.i386.rpm

# rpm –ivh gd-2.0.33-2.i386.rpm
# rpm –ivh perl-GD-2.35-1.fc4.i386.rpm

Setelah itu ekstrak file squish-0.0.18.tar.gz :
# tar –xzvf squish-0.0.18.tar.gz

Terdapat sebuah direktori baru disana, squish-0.0.18, kemudian masuk kedalamnya, kemudian install :
# cd squish-0.0.18
# make install

Pindah ke direktori di mana squish berada :
# cd /usr/local/squish/

Kemudian jalankan option run pada file squish.pl, ini dilakukan untuk membuat sebuah tampilan awal dari pemakaian bandwith :

# ./squish.pl –install

Dengan fasilitas crontab tambahkan sebuah perintah baru untuk daemon crond :

# crontab -e
5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/local/squish/squish.cron.sh

Kemudian tekan ESC :x !

Jalankan perintah baru tersebut untuk pertama kalinya :


# /usr/local/squish/squish.cron.sh

Kemudian kita tambahkan authentikasi ncsa_auth pada file konfigurasi squid.conf yang terletak di /etc/squid/squid.conf :

# nano /etc/squid/squid.conf
# baris ini ditambahkan di area authentikasi

auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/passwd
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours

# yang ini ditambahkan pada area acl
acl ncsa proxy_auth REQUIRED

# kemudian simpan
Setelah itu edit di bagian bawah baris kalimat ini

### added by squish (begin)

Menjadi seperti ini :

# acl’s for squish – autodetected, sometimes
acl SQUISHLOC dst ns.multimedia.com
acl SQUISHED1 proxy_auth -i “/etc/squid/squished”

#acl SQUISHED2 ident “/etc/squid/squished”
acl SQUISHED3 src “/etc/squid/squished”
acl password proxy_auth REQUIRED

# Error info that says you’re squished
deny_info http://ns.multimedia.com/squish/?squished& SQUISHED1

# deny_info http://ns.multimedia.com/squish/?squished& SQUISHED2
deny_info http://nd.multimedia.com/squish/?squished& SQUISHED3

# HTTP access controls for squish

http_access allow SQUISHLOC
http_access allow password !SQUISHED1
http_access deny SQUISHED1

# http_access deny SQUISHED2

http_access deny SQUISHED3

### added by squish (end )

http_access allow ncsa


Kemudian, edit file konfigurasi httpd :

# nano /etc/httpd/conf/httpd.conf
# tambahkan baris berikut di paling bawah dari file konfigurasi tersebut :

include /usr/local/squish/apache-squish.conf

Kemudian edit file apache-squish.conf :
# nano /usr/local/squish/apache-squish.conf

Edit file tersebut menjadi seperti ini :
Alias /squish “/usr/local/squish/”


Options +ExecCGI
AddHandler cgi-script .cgi
DirectoryIndex squish.cgi
AllowOverride None
Order allow,deny
Allow from all


Di bagian terakhir, anda cukup membuat user yang diperbolehkan untuk mengakses internet, dengan membuat sebuah file yang berisi user yang diperbolehkan login :

# htpasswd /etc/squid/passwd mamang

Berikan permission r untuk user lain agar file /etc/squid/passwd dapat dibaca oleh apache.

# chmod o+r /etc/squid/passwd

Kemudian restart service squid dan httpd :

# service squid restart
# service httpd restart

Untuk melakukan pembatasan pemakaian pada user, silahkan edit file konfigurasi squish.conf

# nano /etc/squid/squish.conf

squish.conf:
# This file contains data formatted as follows:
#
# Blank lines and hashed stuff is for comments
# user amount/period
# bandwidth: 999[kmG]b / period: day, week, month
# time: 999[smh] / period: day, week, month
#
# Whitelist entries – they can have as much as they like

192\.168\.99\.44 25h/day
192\.168\.97\.43 25h/day

mamang 12h/day 120Mb/day

# Poor guy:
root 1h/day 1Mb/day 2Mb/week

# Catchall — people and IP’s not matched by the above rules
.* 4h/day 20Mb/day 20h/week 100Mb/week


Selesai, begitulah garis besarnya, dengan begitu kita dapat membagi sendiri kuota pemakaian user tanpa perlu khawatir akan kelebihan pemakaian dsb. Jika ada pertanyaan, silahkan kontak kartolo. :o


disadur dari : ilmuwebsite
Sunday, February 28, 2010

Install SSH Windows | Cygwin SSH



SSH adalah kependekan dari Secure Shell, sebuah protocol network yang memungkinkan data di pertukarkan melalui sebuah kanal yang aman antara dua komputer. Satu unsur di dalam SSH yang memberikan jaminan keamanan dan integritas data adalah enkripsi. SSH menggunakan kunci publik (public-key cryptography) untuk mengautentikasi komputer yang akan melakukan pertukaran data. Pada web hosting, SSH biasanya digunakan untuk masuk ke server hosting dan mengeksekusi perintah - perintah tertentu secara remote (jarak jauh) dari komputer pelanggan sendiri. Dengan SSH pelanggan dapat mengedit file, menghapus, membuat file baru, memindahkan lokasi file dan hal - hal lain. Selain itu SSH memungkinkan transfer data (upload / download) menggunakan protokol SFTP (Secure FTP) dan SCP (Secure Copy).

Client software yang sering digunakan untuk melakukan SSH adalah Putty SSH. Sedangkan untuk melakukan upload dengan SCP, biasanya menggunakan WinSCP. Tentunya Putty SSH adalah hal yang tidak asing lagi bagi kawan - kawan. Kali ini juga saya jelaskan tentang Cygwin SSH sebagai pembantu konfigurasi SSH windows, karena untuk linux sudah sangat umum.

Yang perlu dilakukan konfigurasi SSH windows cukup sederhana, yaitu :

1. Install linux emulator, yaitu cygwin

Download file cygwin


2. Jalankan file setup.exe
  • Saat dipilih install untuk diri sendiri atau semua user, pilih intalasi untuk semua user
  • Pilih Local Package Directory yaitu default di c:\cygwin
  • pilih lokasi download yang terdekat, kita pilih kambing.ui.edu
3. Setelah daftar komponen yang akan diinstall tampil
  • tampilkan detail komponen dengan menekan tombol Full view
  • Pilih komponen berikut yang harus ada dalam instalasi : openssh, tcp_wrappers, difutils, zlip
  • pastikan terinstall dengan cara klik link skip sehingga tombol tampil
4. Tekan tombol Next, dan proses instalasi akan dilakukan
  • Saat selesai install, iconnya yang di desktop dibuat sekalian (biar enakan)
5. Jalankan program Cygwin, pastikan jalan tidak ada error

6. Perbaiki keamanan folder
  • chmod +r /etc/passwd
  • chmod +r /etc/group
  • chmod 777 /var
7. Jalankan konfigurasi SSH server
  • ssh-host-config -y
  • jika ada konfirmasi dialog, jawab saja “yes”
8. Amankan konfigurasi file
  • tty ntsec
9. Jalankan SSH server
  • cygrunsrv -S sshd atau
  • net start sshd
10. Ujicoba dengan ssh 127.0.0.1

Gampang sekali kan install SSH Windows melalui Cygwin SSH? Hasilnya akan begini:

ssh windows cygwin image

Semoga bermanfaat,


About Me