Learn the powerful enterprise adaptable database:
Getting Started With ADABAS & Natural
Thursday, January 31, 2013
GUI Editor Redmond Path
Redmond Path provides a GUI editor for Windows user to edit the Path and Environment variable.
1) Download from https://sites.google.com/site/notawindows/home/download/RedmondPath.zip?attredirects=0&d=1
2) Unzip and run.
3) If you want to add a new entry, click + button. Browse for the target path. Click Ok.
Path and Environment variables in Windows
Question
How to set the path and environment variables in Windows.
Answer
Windows Vista and Windows 7 users
Windows 2000 and Windows XP users
Windows 2000 and Windows XP users
Windows Vista and Windows 7 users
- From the Desktop, right-click My Computer and click Properties.
- Click Advanced System Settings link in the left column.
- In the System Properties window click the Environment Variables button.
Windows 2000 and Windows XP users
The path is now managed by Windows 2000 and Windows XP and not the autoexec.bat or autoexec.nt files as was done with earlier versions of Windows. To change the system environment variables, follow the below steps.
- From the Desktop, right-click My Computer and click Properties.
- In the System Properties window, click on the Advanced tab.
- In the Advanced section, click the Environment Variables button.
- Finally, in the Environment Variables window (as shown below), highlight the Path variable in the Systems Variable section and click the Edit button. Add or modify the path lines with the paths you wish the computer to access. Each different directory is separated with a semicolon as shown below.
C:\Program Files;C:\Winnt;C:\Winnt\System32
Alternatively, you can use Redmond Path Editor.
Laravel Database Configuration
1) Open {laravel home}/application/config/database.php
2) Edit the connection setting.
3) Access MySql database via phpmyadmin. Create new database myfirstdb.
4) Click Check Privileges. Click Add user.
5) Enter new user details.
Username: myfirstuser
Host: localhost
Password: myfirstpassword
Global Privileges -> Check All.
Click Add user.
6) You can use a php script file to test your connection setting. (e.g https://sites.google.com/site/notalaravel/home/download/dbtest.php?attredirects=0&d=1)
7) Put the dbtest.php at the public folder and access it via web browser.
8) Check that the connection is successful.
Saturday, January 26, 2013
Laravel myfirst.dev Virtual Host On XAMPP
NOTE:
This post was initially written in February 2013. It contained some errors, i.e, the name mysite.dev was written as mysite.local at some places. (refer comment threads below)
I have corrected this post in July 2013.
I have also written a simpler approach to do this on another post, http://setup-steps.blogspot.com/2013/07/laravel-3-development-environment.html
Happy Coding!
-----
1) Download Laravel package fromhttp://laravel.com/download https://github.com/laravel/laravel/tree/3.0
2) Extract the Laravel package content to XAMPP htdocs folder. Rename the package folder as myfirst.dev.
3) Run XAMPP Control Panel. Start Apache and MySQL.
4) Test the url:
4a) http://localhost (the index.php file at this path will redirect to http://localhost/xampp)
4b) Type http://localhost/myfirst.dev/public (the Laravel public folder shall appear)
5) Add new domain name to Windows host file.
5a) Run Notepad as Administrator.
5b) Open c:\windows\system32\drivers\etc\hosts
5c) Edit/Add Entry to look like below (be careful to add a space in between the texts)
127.0.0.1 localhost myfirst.dev
5d) Save
6) Move myfirst.dev folder to a new location.
a) Cut the folder [XAMPP_HOME]/htdocs/myfirst.dev
b) Paste it to [XAMPP_HOME]/sites/myfirst.dev
7) We will add a Virtual Host setting so that we can point the URL http://myfirst.dev to the new location in Step 6.
7a) open [XAMPP_Home]\apache\conf\extra\httpd-vhosts
7b) look for the followings:
#
# Use name-based virtual hosting.
#
# NameVirtualHost *:80
7c) Change to the followings (the last line is not commented):
#
# Use name-based virtual hosting.
#
NameVirtualHost *:80
7d) At the end of the file, add the followings:
NameVirtualHost *
<VirtualHost *>
DocumentRoot "C:/Z/Dev/xampp/htdocs"
ServerName localhost
</VirtualHost>
<VirtualHost *>
DocumentRoot "C:/Z/Dev/xampp/sites/myfirst.dev/public"
ServerNamemylaravel.local myfirst.dev
</VirtualHost>
8) Restart Apache. You may get XAMPP new security concept. The httpd-xampp.conf has been configured to be very restrictive in terms of path/folder access.
9) You can turn-off the restriction.
9a) Open [XAMP_Home]/apache/conf/httpd-xampp.conf
9b) Look for the followings:
#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.
#
<Directory />
AllowOverride none
Require all denied
</Directory>
9c) Change the highlighted codes above into:
#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.
#
<Directory />
# "default" restriction is turned off
AllowOverride All
Order Allow,Deny
Allow from all
</Directory>
10) Restart Apache. Go to http://myfirst.dev/
Notice the URL path and Physical path.
This post was initially written in February 2013. It contained some errors, i.e, the name mysite.dev was written as mysite.local at some places. (refer comment threads below)
I have corrected this post in July 2013.
I have also written a simpler approach to do this on another post, http://setup-steps.blogspot.com/2013/07/laravel-3-development-environment.html
Happy Coding!
-----
1) Download Laravel package from
2) Extract the Laravel package content to XAMPP htdocs folder. Rename the package folder as myfirst.dev.
3) Run XAMPP Control Panel. Start Apache and MySQL.
4) Test the url:
4a) http://localhost (the index.php file at this path will redirect to http://localhost/xampp)
4b) Type http://localhost/myfirst.dev/public (the Laravel public folder shall appear)
5) Add new domain name to Windows host file.
5a) Run Notepad as Administrator.
5b) Open c:\windows\system32\drivers\etc\hosts
5c) Edit/Add Entry to look like below (be careful to add a space in between the texts)
127.0.0.1 localhost myfirst.dev
5d) Save
6) Move myfirst.dev folder to a new location.
a) Cut the folder [XAMPP_HOME]/htdocs/myfirst.dev
b) Paste it to [XAMPP_HOME]/sites/myfirst.dev
7) We will add a Virtual Host setting so that we can point the URL http://myfirst.dev to the new location in Step 6.
7a) open [XAMPP_Home]\apache\conf\extra\httpd-vhosts
7b) look for the followings:
#
# Use name-based virtual hosting.
#
# NameVirtualHost *:80
7c) Change to the followings (the last line is not commented):
#
# Use name-based virtual hosting.
#
NameVirtualHost *:80
7d) At the end of the file, add the followings:
NameVirtualHost *
<VirtualHost *>
DocumentRoot "C:/Z/Dev/xampp/htdocs"
ServerName localhost
</VirtualHost>
<VirtualHost *>
DocumentRoot "C:/Z/Dev/xampp/sites/myfirst.dev/public"
ServerName
</VirtualHost>
8) Restart Apache. You may get XAMPP new security concept. The httpd-xampp.conf has been configured to be very restrictive in terms of path/folder access.
9) You can turn-off the restriction.
9a) Open [XAMP_Home]/apache/conf/httpd-xampp.conf
9b) Look for the followings:
#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.
#
<Directory />
AllowOverride none
Require all denied
</Directory>
9c) Change the highlighted codes above into:
#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.
#
<Directory />
# "default" restriction is turned off
AllowOverride All
Order Allow,Deny
Allow from all
</Directory>
10) Restart Apache. Go to http://myfirst.dev/
Notice the URL path and Physical path.
XAMPP For Windows
1) Download XAMPP for Windows, http://www.apachefriends.org/en/xampp-windows.html.
2) Unzip to Windows Root, i.e C:\
3) Right-Hand Click xampp-control, Select Run as Administrator.
NOTE:
=====
1) If XAMPP is not installed at the root, you must run the setup_xampp.bat file in order for the XAMPP to reconfigure itself to new path.
2) Take note that PHP in this package needs the Microsoft Visual C++ 2008 Redistributable package from http://www.microsoft.com/en-us/download/details.aspx?id=5582. Please ensure that the VC++ 2008 runtime libraries are installed on your system.
3) If XAMPP is installed to a PC running VMWARE, there may be a Port 443 Conflict issue, refer http://setup-steps.blogspot.com/2013/01/xampp-and-vmware-workstation-on-windows.html for troubleshooting.
4) Run Apache if you want to run a Web Server and PHP application.
5) If you want to run Java application, run Tomcat.
6) If you need a database server, run MySQL.
XAMPP and VMWARE Workstation on Windows
copied from: http://edwardsamuel.wordpress.com/2012/06/27/port-conflict-vmware-8-workstation-vs-apache-2-xampp/
By default, when you install VMWare 8 Workstation and Apache 2 (or XAMPP), you can’t run these programs in same host. Both of them use port 443. So, when you have Apache 2 running, you can’t start VMWare 8 Workstation and vice versa. If you want to run both, you must tell one of them to not use port 443.
Apache 2 Configuration
1) Open your Apache 2 configuration directory (if you use XAMPP for Windows, the default directory C:\xampp\apache\conf)
2) Open extra folder
3) Edit httpd-ssl.conf
4) Find all 443 and replace with 4431 (or else)
5) Restart Apache
Conclusion: Apache SSL module usually use port 433. By editing the Apache configuration, you can configure port usage. And now, SSL module use port 4431 (or else).
By default, when you install VMWare 8 Workstation and Apache 2 (or XAMPP), you can’t run these programs in same host. Both of them use port 443. So, when you have Apache 2 running, you can’t start VMWare 8 Workstation and vice versa. If you want to run both, you must tell one of them to not use port 443.
Apache 2 Configuration
1) Open your Apache 2 configuration directory (if you use XAMPP for Windows, the default directory C:\xampp\apache\conf)
2) Open extra folder
3) Edit httpd-ssl.conf
4) Find all 443 and replace with 4431 (or else)
5) Restart Apache
Conclusion: Apache SSL module usually use port 433. By editing the Apache configuration, you can configure port usage. And now, SSL module use port 4431 (or else).
Friday, January 25, 2013
Android ADT Bundle on Centos 6.3
Setup steps for Android ADT Bundle on Centos 6.3
1) Go to http://developer.android.com/sdk/index.html . Scroll down to section "DOWNLOAD FOR OTHER PLATFORMS/ADT Bundle".
2) In Centos 6.3, run Terminal Window as Root.
[centos@localhost ~]$ su
Password:
3) If your Centos 6.3 doesn't have Java, install Java first.
[root@localhost centos]# yum install java
4) Download ADT bundle:
[root@localhost centos]# wget http://dl.google.com/android/adt/adt-bundle-linux-x86.zip
[root@localhost centos]# unzip adt-bundle-linux-x86.zip
5) Move the extracted folder to /opt
[root@localhost centos]# mv adt-bundle-linux-x86 /opt
6) The executable eclipse program is ready for execution
[root@localhost centos]# cd /opt/adt-bundle-linux-x86/eclipse
root@localhost centos]# ./eclipse
7) As an alternative to Step 6, we can register the path so that Centos recognize eclipse name called from any location. Follow steps 8-11.
8) Create eclipse executable binary file
[root@localhost centos]# touch /usr/bin/eclipse
9) Set permission to the file
[root@localhost centos]# chmod 755 /usr/bin/eclipse
10) Create the file using VI editor
[root@localhost centos]# vi /usr/bin/eclipse
11) Add entries to the file
export ECLIPSE_HOME="/opt/adt-bundle-linux-x86/eclipse"
$ECLIPSE_HOME/eclipse $*
12) Now you can just type eclipse in the terminal and Centos would know where to find its binary file.
The following is the ADT Splash Screen (a modified Eclipse)
Android SDK and Eclipse on Centos 6.3
1) Refer main download site for Android Software Development Kit (SDK):
http://developer.android.com/sdk/index.html
android-sdk_r21.0.1-linux.tgz
3) Run Centos Terminal. Switch to root user.
4) Download the zipped SDK
wget http://dl.google.com/android/android-sdk_r21.0.1-linux.tgz
The file will be downloaded to /home/centos directory.
5) Unzip the zipped SDK
tar -xvzf android-sdk_r21.0.1-linux.tgz
6) Move SDK file
mv android-sdk-linux /opt/android-sdk-linux
7) Change Directory Access Mode
chmod -R a+w /opt/android-sdk-linux
8) Edit Bash Profile
vi $HOME/.bash_profile
9) Add the following code before the last line.
PATH=$PATH:/opt/android-sdk-linux/tools:/opt/android-sdk-linux/platform-tools
10) Run Eclipse.
11) Go to Help/Install New Software.
Type "https://dl-ssl.google.com/android/eclipse/" at text box labeled "Work with"
Click Add.
Click Select All.
Click Next.
11) Review items to be installed. Click Next.
The Details section says:
Cannot complete the install because one or more required items could not be found. Software being installed: Android Development Tools 21.0.1.v201212060256-543035 (com.android.ide.eclipse.adt.feature.group 21.0.1.v201212060256-543035) Missing requirement: Android Development Tools 21.0.1.v201212060256-543035 (com.android.ide.eclipse.adt.feature.group 21.0.1.v201212060256-543035) requires 'org.eclipse.wst.sse.core 0.0.0' but it could not be found
13) Alternatively, you may try installing a complete ADT. Follow this, http://setup-steps.blogspot.com/2013/01/android-adt-bundle-on-centos-63.html .
Install Eclipse Classic 4.2.1 in RHEL/CentOS 6.3/5.6, Fedora 17-12
copied from: http://www.tecmint.com/install-eclipse-classic-in-rhel-centos-fedora/
cached image
cached image
Install Eclipse Classic 4.2.1 in RHEL/CentOS 6.3/5.6, Fedora 17-12
Written By Ravi Saive in: CentOS, Fedora, Linux Distros, Open Source, RedHat
Eclipse is an open source and free multi-language and multi-platform software development program that used to build JAVA based web applications. It is written in Java program and can be used to develop Java based applications and other various plugins, including languages like C,C++, PHP, Perl, Python, Ruby and Rails framework.
It provides common UI (User Interface) navigation model for working with tools and it was developed to run on multiple OS (Operating Systems) by providing robust integration with each OS. Eclipse was one of the first IDE’s (Integrated Development Environment) program to run under GNU operating system.
This guide shows you how to install latest version of Eclipse Classic 4.2.1 on RHEL 6.3/6.2/6.1/6/5.8/5.6, CentOS 6.3/6.2/6.1/6/5.8/5.6 and Fedora 17,16,15,14,13,12using Eclipse source files.
This guide shows you how to install latest version of Eclipse Classic 4.2.1 on RHEL 6.3/6.2/6.1/6/5.8/5.6, CentOS 6.3/6.2/6.1/6/5.8/5.6 and Fedora 17,16,15,14,13,12using Eclipse source files.
Install Eclipse Classic 4.2.1 in RHEL, CentOS and Fedora
Install Java SDK 6
First, you need to install Java SDK 6 package using the following YUM command.
# yum install java
Download Eclipse Classic 4.2.1
Download Eclipse Classic 4.2.1 for system OS bit, by choosing following link with Wgetcommand or you can also download it from http://www.eclipse.org/downloads/?osType=linux.
For RHEL/CentOS/Fedora 32-bit OS
# wget http://ftp.jaist.ac.jp/pub/eclipse/eclipse/downloads/drops4/R-4.2.1-201209141800/eclipse-SDK-4.2.1-linux-gtk.tar.gz
For RHEL/CentOS/Fedora 64-bit OS
# wget http://ftp.jaist.ac.jp/pub/eclipse/eclipse/downloads/drops4/R-4.2.1-201209141800/eclipse-SDK-4.2.1-linux-gtk-x86_64.tar.gzTHE FILE WILL BE DOWNLOADED TO /HOME/CENTOS DIRECTORY
Extracting Eclipse Classic 4.2.1
Unpack it under /opt directory with the help of Tar command with -C switch. For more examples of tar command visit THIS PAGE.
## For 32-Bit OS ## # tar -xvzf eclipse-SDK-4.2.1-linux-gtk.tar.gz -C /opt ## For 64-Bit OS ## # tar -xvzf eclipse-SDK-4.2.1-linux-gtk-x86_64.tar.gz -C /opt
Setting Execute Permissions to Eclipse files
Set executable permission on all files under eclipse directory.
# chmod -R +r /opt/eclipse
Creating Eclipse executable Binary file
Create eclipse executable binary file and set permission to it as shown below.
# touch /usr/bin/eclipse # chmod 755 /usr/bin/eclipse
Create the following file with VI editor.
# vi /usr/bin/eclipse
Add the following lines to it save and close the file.
export ECLIPSE_HOME="/opt/eclipse" $ECLIPSE_HOME/eclipse $*
Creating GNOME Desktop Launcher
Create the GNOME desktop launcher file for eclipse with VI editor.
# vi /usr/share/applications/eclipse.desktop
Add the following lines of code it, save and close the file.
[Desktop Entry] Encoding=UTF-8 Name=Eclipse Comment=Eclipse SDK 4.2.1 Exec=eclipse Icon=/opt/eclipse/icon.xpm Terminal=false Type=Application Categories=GNOME;Application;Development; StartupNotify=true
Starting Eclipse Launcher
From Desktop terminal run the following command to launch Eclipse.
# eclipse
Eclipse Screenshots
Check out running Eclipse screenshots under my CentOS 6.3 system.
Eclipse Startup Screen
Eclipse Create WorkPlace
Eclipse Welcome Screen
CentOS 6.3 Step by Step Installation Guide with Screenshots
copied from: http://www.tecmint.com/centos-6-3-step-by-step-installation-guide-with-screenshots/
view cached page.
view cached page.
CentOS 6.3 Step by Step Installation Guide with Screenshots
Written By Narad Shrestha in: CentOS, Linux Distros
This post will guide you a step-by-step installation of Community ENTerprise Operating System 6.3 (CentOS) with screenshots. Less than three weeks after the release of Red Hat Enterprise Linux (RHEL) 6.3. The CentOS Project has released its clone of RHEL 6.3distribution on 09 July 2012.
CentOS 6.3 Features
CentOS Linux Distribution contains some new exciting features like.
- OpenOffice 3.2 has been replaced by LibreOffice 3.4, if you update from previous version of CentOS 6 using ‘yum update’ and have openoffice installed, the update will automatically remove openoffice and install libreoffice.
- Many drivers have been updated and improved in virtulisation.
- Upstream has deprecated the Matahari API for operating system management has been deprecated, and there’s new tools for moving physical and virtual machines into Virtual KVM machine instances. These new tools from Red Hat are virt-p2v and virt-v2v for physical-to-virtual and virtual-to-virtual migration, respectively.
Download CentOS 6.3 DVD ISO
- Download CentOS 6.3 32-bit DVD ISO – (3.6 GB)
- Download CentOS 6.3 64-bit DVD ISO – (4.0 GB)
- Download both 32-bit and 64-bit DVD ISO.
CentOS 6.3 Step by Step Graphical Installation Guide
Boot Computer with CentOS 6.3 OS Installation CD/DVD.
1. Select Install or Upgrade existing system options.
2. Choose skip media test as it may take long time to check media.
3. CentOS 6.3 Welcome Screen press Next.
4. Language Selection.
5. Select appropriate Keyboard.
6. Select Basic Storage Device if your hard drive is attached locally.
7. You may get Storage Device warning, you can click Yes, discard any data button toContinue.
8. Give a Hostname to the server and click on Configure Network button if you want to configure network while installation.
9. Click Wired tab and click on Add button.
10. Select Connect Automatically, go to ipv4 settings tab and select Method and selectManual in drop down. Click on Add tab to fill address box with IP Address, Netmask,Gateway and DNS Server. Here I’m using IP Address 192.168.1.6 and DNS Server is 4.2.2.2 for demo. This IP Address may vary in your environment.
11. Select Time Zone.
12. Give a root password.
13. Select appropriate partitioning as per your requirement.
14. Verify filesystem. Here, you can edit filesystem If you want.
15. Disk Format Warning, click on Format.
16. Select Write Changes to disk.
17. Hard Drive is Formatting.
18. Here, you can give Boot loader Password for better security.
19. Select the applications you want to install, you can choose Customize now and click Next.
20. Select the applications you want to install and click Next.
21. Installation started, this may take several minutes as per selection of packages.
22. Installation completed, Please remove CD/DVD and reboot system.
23. Welcome to CentOS 6.3 Login Screen.
24. CentOS 6.3 Desktop Screen.
Liked the article? Sharing is the best way to say thank you!
Subscribe to:
Posts (Atom)