How to Create a New VM (Virtual Machine)

Tuesday, July 19, 2011

How to Create a New VM (Virtual Machine)

there are following steps to create a new VM (virtual Machine) ..

  1. You can use any of the two links to create new VM. The links are pasted below.

http://downloads.vmware.com/d/details/server202/dCpiZCVqdGJkZWRq

http://downloads.vmware.com/d/info/desktop_downloads/vmware_workstation/7_0

  1. Select CD/DVD drive to Source to create new VM



Please Insert the Disk in your CD/DVD Drive of the Operating System you want to create for, It’s take several minutes in the process to install the required set-up. Follow the instructions…

  1. Setup All Configuration:- Fill your own Choice in your VM…..




1. select your VM RAM Size ……………


2. select your VM Processor type ……….


3. select your VM Hard disk size or partition ………….


4. select your VM CD/DVD (IDE)- Auto Detect


5. select your VM Network Adapter- NAT

6.select your VM USB Controller- Present


7. select your VM Sound Card- Auto Detect


4. After Completing all Configuration play the Virtual Machine, this time it will run for the first time. At first, the guest account of VM will be off by default. Here, you need to login in guest account. Now select the VM option at the title bar and select Install VMware tools. Follow the set-up and logoff the guest account and login in the administrator account. Here you click Mycomputer icon and D drive is already converted in VMware tools. Double click the drive and follow the set-up instructions. For installing your Vmware tools, restart your VM finishing VMware tools setup.

5. Now Your VM setup is completed, It’s ready to use !

Read more...

how to install php apache mysql on linux

how to install php, apache, mysql on linux and how to configure php, apache, mysql on linux

there are following steps to install php, apache and mysql on linux, ubuntu, centos, fedora etc operating system ..

how to install and configure PHP5 in Ubuntu System with Apache2 and MySQL.


This section assumes you have installed and configured Apache 2 Web Server and MySQL Database Server. You can refer to Apache 2 section and MySQL sections in this document to install and configure Apache 2 and MySQL respectively.
Installation

The PHP5 is available in Ubuntu Linux.

*

1. To install PHP5 you can enter the following command in the terminal prompt:

sudo apt-get install php5 libapache2-mod-php5

2. You can run PHP5 scripts from command line. To run PHP5 scripts from command line you should install php5-cli package. To install php5-cli you can enter the following command in the terminal prompt:

sudo apt-get install php5-cli

3. You can also execute PHP5 scripts without installing PHP5 Apache module. To accomplish this, you should install php5-cgi package. You can run the following command in a terminal prompt to install php5-cgi package:

sudo apt-get install php5-cgi

4. To use MySQL with PHP5 you should install php5-mysql package. To install php5-mysql you can enter the following command in the terminal prompt:

sudo apt-get install php5-mysql

5. Similarly, to use PostgreSQL with PHP5 you should install php5-pgsql package. To install php5-pgsql you can enter the following command in the terminal prompt:

sudo apt-get install php5-pgsql

Configuration of php

Once you install PHP5, you can run PHP5 scripts from your web browser. If you have installed php5-cli package, you can run PHP5 scripts from your command prompt.

By default, the Apache 2 Web server is configured to run PHP5 scripts. In other words, the PHP5 module is enabled in Apache2 Web server automatically when you install the module. Please verify if the files /etc/apache2/mods-enabled/php5.conf and /etc/apache2/mods-enabled/php5.load exist. If they do not exists, you can enable the module using a2enmod command.

Once you install PHP5 related packages and enabled PHP5 Apache 2 module, you should restart Apache2 Web server to run PHP5 scripts. You can run the following command at a terminal prompt to restart your web server:

sudo /etc/init.d/apache2 restart

Testing of php and apache configuration ..

To verify your installation, you can run following PHP5 phpinfo script:


<.?php print_r (phpinfo()); ?.>

Read more...

how to improve internet speed on ubuntu

how to improve internet speed on ubuntu and linux OS

there are following steps to improve your internet speed on ubuntu operating system ..

1. Open a Terminal via Applications->Accessories->Terminal and type the following

>sudo vim /etc/sysctl.conf (press i for edit mode)

2. Then Paste the Following at the end of the file:
## increase TCP max buffer size setable using setsockopt()
net.core.rmem_max = 16777216
net.core.wmem_max = 16777216
## increase Linux autotuning TCP buffer limits
## min, default, and max number of bytes to use

## set max to at least 4MB, or higher if you use very high BDP paths
net.ipv4.tcp_rmem = 4096 87380 16777216
net.ipv4.tcp_wmem = 4096 65536 16777216
## don't cache ssthresh from previous connection

net.ipv4.tcp_no_metrics_save = 1
net.ipv4.tcp_moderate_rcvbuf = 1
## recommended to increase this for 1000 BT or higher
net.core.netdev_max_backlog = 2500
## for 10 GigE, use this, uncomment below

## net.core.netdev_max_backlog = 30000
## Turn off timestamps if you're on a gigabit or very busy network
## Having it off is one less thing the IP stack needs to work on
## net.ipv4.tcp_timestamps = 0

## disable tcp selective acknowledgements.
net.ipv4.tcp_sack = 0
##enable window scaling
net.ipv4.tcp_window_scaling = 1

3. Then type the follwing to exit and save what you have just done. Press ESC to quit the edit mode and type the following.
:wq (to save a file and quit)

4. Then type the following to apply the settings.
>sudo sysctl -p

5. You can disable all these settings by removing these lines you added via:

>sudo gedit /etc/sysctl.conf

Read more...

how to install memcached on linux

Sunday, July 17, 2011

installing memcache for mysql

there are following step to install memcached for mysql in linux ..

1. download zxvf libevent-1.3e.tar.gz
wget http://www.monkey.org/~provos/libevent-1.3e.tar.gz
2.tar zxvf libevent-1.3e.tar.gz
3.cd libevent-1.3e

4. ./configure
make
make install


5. wget http://danga.com:80/memcached/dist/memcached-1.2.5.tar.gz
6. tar zxvf memcached-1.2.5.tar.gz
7. cd memcached-1.2.5

8. ./configure
make
make install

9. start memcahed server

check memcached

memcached -u nobody -d -m 30 -l 127.0.0.1 -p 11211
(start the server to use 30 megs of ram (-m 30), listen on ip 127.0.0.1 (-l 127.0.0.1) and run on port 11211 (-p 11211) as user ‘nobody’ (-u nobody))

if above command give following error

memcached: error while loading shared libraries: libevent-1.3e.so.1: cannot open shared object file: No such file or directory

then do following
export LD_LIBRARY_PATH=/usr/local/lib

then run the command again
memcached -u nobody -d -m 30 -l 127.0.0.1 -p 11211

*****************************************************************************************************

installing memcache php extension


wget http://pecl.php.net/get/memcache-2.1.2.tgz
tar -xvf memcache-2.1.2.tgz
cd memcache-2.1.2
phpize && ./configure –enable-memcache && make
Now you can copy memcache.so to the module directory
vi /etc/php.ini
Add - extension=memcache.so
/etc/init.d/httpd restart
phpinfo() will now show Memcache

note1 :
if phpize is not installed then install it as follow
yum -y install php-devel

note2 :
if it give error for not finding zlib then do as follows

wget http://www.zlib.net/zlib-1.2.3.tar.gz
tar xvzf zlib-1.2.3.tar.gz
cd zlib-1.2.3
./configure
make
make install


*************************************************************************************************
/etc/httpd === apache conf, logs files
/etc === php.ini
/etc/php.d === php extension setting files
/usr/lib/php/modules/ === php extension folder

Read more...

About This Blog

Lorem Ipsum

  © Copyright 2009 Linux-HelpLine.Blogspot.com

Back to TOP