Pages

Wednesday, 29 July 2015

Installing Bower in Linux Mint 17.2 Rafaela Easy Way!



Hey guys today i'm gonna show you how to install bower in your linux operating system ! Bower is basically a front-end dependency manager! So, for installing bower all you need to do is just go through these commands!

First you need to install nodejs and then it's package manager i.e npm(node package manager) like this



now use the node package manager i.e npm to install bower on your system like this



and this will do the job of installing bower into your system... One last step


That's it now check the version of bower by the following command


So, that's how you can install bower in your system!

Installing postgresql 9.4 on linux mint 17.2 Rafaela, [[Easy Way]]

Hey guys, in this post i'm gonna show you how to setup postgresql(The worlds most advanced opensource database) in linux mint the easy way! So first of all i need you to download the graphical installer of postgresql so go to this link and download the graphical installer for postgresql for your linux operating system!

After downloading the graphical installer place it on the desktop and then make it executable by typing the following command in the terminal





After making it executable now time to run it like this



and you will be greeted by postgresql setup wizard, like this


now all you have to do is just hit next for the two popups for setting installation and data directory and then comes setting the password for database superuser i.e postgres, Like this


After setting password it will ask for port.. default will be 5432 if another postgresql instance is not running on your linux box at the same time. Just finish it by hitting next-next several more times and that's it ! Open the menu and there you will find a postgresql section like this which has all it's components and tools 


That's it!

Sunday, 19 July 2015

Installing Laravel on Linux OS[Easy Way]


So guys i'm very happy to post this article on installing laravel on Linux operating System. Laravel is basically a Model View Controller based framework of php. Let me tell you my own story i was quite frustated when i was working with php as it is so full of flaws and then i left php and started coding in ROR(Ruby on Rails) ... then after sometime i came across this fucking awesome framework of php[Laravel] and seriously friends i fell in love with laravel.. i can only say that laravel is the ruby on rails for php.

No more story! Now the geeky task of installing laravel on linux operating system! So there is basically two prerequisite find those article here 

1.) setting php in path !

2.) Installing super awesome dependency manager for php i.e composer

Follow both the tutorial and add php to path and install composer to the system next run this command to install laravel in your terminal


this command will basically install laravel installer into your system. You can use laravel installer by navigating into the following directory as shown in terminal


but it's a bad practice to navigate to the bin folder of composer and then run laravel installer to craft a application. So for this purpose we need to set laravel installer into our path. So for that purpose open terminal and type the following command!






This command will basically open /etc/profile in nano text editor like this 


add the following line at the end of the file to add laravel installer in your path.








Now press CTRL + O to save then CTRL + X to exit from the nano text editor.
Then reload the /etc/profile by using the following command 





and after that run the command laravel into your terminal like this!


So that's how we set up laravel installer and now we wanna craft a laravel application to start development so for that purpose run the following command in terminal as shown in the picture














So our laravel installer just crafted a laravel application named swapnil(as provided) .. So, now time has come to run this application and see it in the browser!

So i need you to locate into directory or application you just created i.e swapnil , and then run the following command to start the laravel's development server !
For this purpose we will use artisan a command line tool comes with laravel for webartisans :) 

type the following command for starting the laravel's development server!








now open the browser and hit the link shown in the terminal i.e. http://localhost:8000/

and magic see the beautifull laravel application  


That's it ! This is how you can install laravel on your system! 

Installing Composer[Dependency Manager for php] in Linux OS[Easy Way]



Hello friends, in this post i'm gonna show you how to install Composer in Linux.
So prerequisite for this tut is you must read and implement the steps provided in this article on setting up php in path!

After doing this you must have Curl(basically used to transfer data from or to a server using various supported protocols like FTP, HTTP, HTTPS etc..) installed on your machine. if that's not the case then use the following command to install curl in to your machine.


this command will do the rest of the work and install curl into your machine!

So now time to install super awesome Composer into our linux machine! 

use the following command to pull composer into your machine using curl



Now as i pulled composer from the remote server using curl now it the time to move composer.phar(phar means php archive) file to our binary folder use the following command to perform that task



Now you can restart your system and then simply type composer in terminal and magic!!! Composer is installed ! like this

 That's it! Thanks for reading!


Environment Variables, PATH in Linux Mint[Easy Way]

Hello friends, My todays post is how to set environment variables(PATH for binaries) in super awesome linux os.

So for this post i will be showing you how to setup php binary in path which comes bundled in xampp.

So, lets do it !!!

1.) First open the terminal and then type the following command !





2.) After entering you will be greeted by the interface of nano text editor which has the code inside the profile file which looks something like this


Actually for setting up the environment variables or path of a binary you must know it's actual path. In my case the path for php binary in /opt/lampp/bin as show in the following picture






So now i need to insert this path in my /etc/profile file ... okay!

so add the following code at the end of your file for adding php binary in path

Now save it by pressing CTRL + O and then CTRL + X to exit the nano text editor now you need to reload the /etc/profile file so for that purpose you can either restart or logout your machine but the most geeky way to do this is add the following lines in terminal like this






Now check to see if php is coming in path add the following line in terminal

php -v

like this








as you can see php is now in my path that's it! Thanks for reading my article!