Learn the powerful enterprise adaptable database:

Getting Started With ADABAS & Natural

Thursday, January 24, 2013

Hosted WirelessNetwork On Windows 7



Setup steps for Hosted WirelessNetwork On Windows 7

1) Run Command Window as Administrator.
2) Type:

C:\Windows\system32>netsh wlan set hostednetwork mode=allow ssid="spiderman" key
="1234567890" keyUsage=persistent

note: change spiderman/key to any other ssid/key that you prefer.




2) Type:
netsh wlan start hostednetwork (refer above picture)\

3) Check in Network and Sharing Center Window/Change Adapter Setting. Notice the new adapter "Wireless Network Connection 2".

4) Go back to Network and Sharing Center.
a) Go to the Network Adapter that you want to share.
b) Click the adapter.
c) Click Properties.
d) Go to Sharing tab.
e) Click Allow other network users to connect through this computer.
f) Select another adapter that you want to share this adapter with.


XAMPP for Linux On Centos 6.3


Setup steps for XAMPP for Linux On Centos 6.3

Note:
a. This tutorial is based on VirtualBox Image of Centos 6.3 downloadable from http://sourceforge.net/projects/virtualboximage/files/CentOS/6.0/CentOS-6-Gnome-i386.7z/download.
b. This image uses Italian Keyboard Layout. It is recommended that you change the layout to United States. Otherwise, you may have problem such as vi commands not getting through the system.
c. The steps below were adapted from http://www.host1free.com/forum/vps-technical-support/7609-tutorial-how-install-xampp-centos-6-a.html.


1. Run Centos 6.3.
a. Log in as Centos.
b. Run Terminal.
c. Change user to root. Enter password "reverse".

[centos@localhost ~]$ su



2. Update system using yum
[root@localhost centos]# yum update


3. Get the latest version of XAMPP Linux
[root@localhost centos]# wget http://www.apachefriends.org/download.php?xampp-linux-1.8.1.tar.gz



4.  Extract it to /opt/ folder
[root@localhost centos]# tar xvfz xampp-linux-1.8.1.tar.gz -C /opt


5.after you run the xampp be sure you stop the httpd service(in case it is pre-installed)
[root@localhost centos]# service httpd stop


6.add password to the /xampp/,Phpmyadmin,mysql and FTP
[root@localhost centos]# /opt/lampp/lampp security
you will asked to add password. be sure you will remember the password. the password in mysql is not recoverable.

The Virtual Image that we are using is currently using centos/reverse and root/reverse for username/password. To make it easy, set all passwords to 'reverse'. Remember that username for XAMPP is 'lampp'.


7.Edit the httpd-xampp.conf
[root@localhost centos]# vi /opt/lampp/etc/extra/httpd-xampp.conf


8. Remove the following line(end of the file):
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
Order deny,allow
Deny from all
Allow from ::1 127.0.0.0/8 \
fc00::/7 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 \
81.196.40.94/32
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>
useful vi commands:
[alt]+i = INSERT mode
[esc] = shift from INSERT mode to COMMAND mode
dd = delete a line
zz = save
:wq = save before quit
:q = quit without save

9. Run XAMPP
[root@localhost centos]# /opt/lampp/lampp start


10. The XAMPP is now working. if you don't know the username this is the default username:
Code:
/xampp/ - lampp
PhpMyAdmin - root
MySql - root
ProFTP - nobody




11. Useful Paths:
/opt/lampp/bin/ - The XAMPP commands home. /opt/lampp/bin/mysql calls for example the MySQL monitor.
/opt/lampp/htdocs/ - The Apache DocumentRoot directory.
/opt/lampp/etc/httpd.conf - The Apache configuration file.
/opt/lampp/etc/my.cnf - The MySQL configuration file.
/opt/lampp/etc/php.ini - The PHP configuration file.
/opt/lampp/etc/proftpd.conf - The ProFTPD configuration file. (since 0.9.5)
/opt/lampp/phpmyadmin/config.inc.php - The phpMyAdmin configuration file.


Virtualbox Guest Additions On Centos 6.3


Setup steps for VirtualBox Guest Additions on Centos 6.3.

The VirtualBox Image for Centos 6.3 is available at http://virtualboxes.org/images/centos/ under the item no. 6 (http://sourceforge.net/projects/virtualboximage/files/CentOS/6.0/CentOS-6-Gnome-i386.7z/download). However, this image doesn't have the VirtualBox Guest Additions installed.


1) Download the image. Unzip and load it to VirtualBox Manager.



2) Run Centos 6.3

3) Using Terminal Window, type the command:
yum install dkms binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel

3a) In case you get additional missing component notification, type the command:
yum install kernel-devel-2.6.32-279.el6.i686

4) Install Guest Addition from VirtualBox menu.

5) Once the CD icon appears on Centos 6.3 Desktop, double-click the icon to run the file. Guest Addition should be installed successfully.


Wednesday, January 23, 2013

PHP Cartridge and Laravel on OpenShift


Setup steps for PHP Cartridge on OpenShift.

Note: this step is a part of preparatory steps for Laravel on OpenShift.

1) Go to https://openshift.redhat.com . Log in.



2) Create a new application.


3) Find PHP Web Cartridge. Select the cartridge.


4) Type a name for the application (e.g. laravel). Click Create.


5) Click on the name of the application ( e.g. the word 'laravel' in the red rectangle)


6) Take note of the ssh connection string. Copy the {GIT REPOSITORY CODE} below.


7) In Windows environment, run Command window.
Type:
git clone {GIT REPOSITORY CODE}
cd laravel/

git add .
git commit -m "My changes"

If the server return the following error message:
*** Please tell me who you are.
Run
  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address...

Then type the code to set your name and email

  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"

Next, type
git push

When server replies:
Everything up-to-date
It means everything is already up-to-dateg

8) Download laravel package. Unzip the package.

9) Select the following files and folders.



10) Paste them to the laravel folder.


11) Select the contents of laravel master/public/



12)





Interactive Setup for OpenShift's command line interface


1) In Windows environment, run Command Window.


2) Type "rhc setup". Login using your credential.


3) Server will create a key if no key is found. Type Yes to proceed.



4) Key is created.



5) Now you can create applications. Type "rhc cartridge list" to see available application cartridges.


6) Or alternatively, you may also use web interface to do same thing (refer )

OpenShift Client Tools (rhc)


Setup Steps for OpenShift Client Tools (rhc)

based on: https://openshift.redhat.com/community/developers/install-the-client-tools


1) In Windows environment, run Command Window.



2) Type "gem install rhc". Ruby will install rhc gem from www.rubygems.org/gems/rhc.



3) Installation done.


4) Type "rhc". The server will return list of available commands.


Git for Windows



This setup steps is designed as a part of preparatory steps towards running Laravel on OpenShift.

1) Go to http://msysgit.github.com/


2) Look for Git For Windows


3) Click On Google Code (http://code.google.com/p/msysgit/downloads/list?q=full+installer+official+git)



4) Select the latest executable file.





5) Run the installer.





6) Welcome to Git Setup. Click Next.




7) License Agreement. Click Next.




8) Select install location.




9) Select components.




10) Start Menu folder.




11)Important! Make sure to check the option "Run Git from the Windows Command Prompt".



12) Line Ending conversions.



13) Installation runs.



14) Setup finished.