Showing posts with label Ubuntu. Show all posts
Showing posts with label Ubuntu. Show all posts

Friday, October 5, 2012

How to create Virtual Hosts in Ubuntu

Virtual Hosting is a method for hosting multiple sites/domains in a single server. It helps to reduce the cost and can share the memory and processor cycle. In local host also we can create Virtual host and we can call original domain name(production/live domain) from our development environment(localhost). Here I am providing the steps for creating Virtual host in Linux/Ubuntu workstation.


i.  Assume your code resides at /var/www/yoursite

ii.  You can access your site using http://localhost/yoursite.

iii.  Edit vhosts file in sites-enabled. sudo gedit /etc/apache2/sites-enabled/vhosts.conf.

iv. Add below code in vhosts file

<VirtualHost *:80>
ServerName local.yoursite.com
ServerAlias www.local.yoursite.com
DocumentRoot /var/www/yoursite
</VirtualHost>
v. Open the file /etc/hosts in your editor.
vi. Add below lines of code.
127.0.0.1   local.yoursite.com
vii. Restart your apache server.
sudo /etc/init.d/apache2 restart
viii. Access http://local.yoursite.com to view your site in direct domain.
 

Thursday, October 13, 2011

Linux Bash Shell cheat sheet for beginners

Here I am sharing a Bash shell script sheet useful for Linux users who are not familiar with bash script/ Terminal commands. Script contain a list of commands and keyboard shortcuts with description, more relevant if you are an avid Ubuntu/Debian user.

Download Linux Bash Shell Cheet Sheet PDF file

Saturday, August 27, 2011

Install RabbitVCS in Ubuntu

The RabbitVCS is a set of graphical tools written to provide simple and straightforward access to the version control system(VCS). This is similar to Tortoise SVN for Windows.

It provide multiple clients and extensions to give you a uniform experience no matter what development tools you use. It provide all Subversion client functionality without touching the command line so it is very useful for developers who are not familiar with Linux commands and newbies to Linux.


It also provide an easy to use command line tool in this package.

To install RabbitVCS in Ubuntu, first we need to add the PPA

Karmic and later

sudo add-apt-repository ppa:rabbitvcs/ppa 

Hardy, Intrepid and Jaunty

Add the following line to your /etc/apt/sources.list file (signing key = 1024R/34EF4A35)

deb http://ppa.launchpad.net/rabbitvcs/ppa/ubuntu **DISTRIBUTION** main

Update your software package repositories with:

sudo apt-get update

Install :


sudo apt-get install rabbitvcs-core rabbitvcs-nautilus rabbitvcs-thunar rabbitvcs-gedit rabbitvcs-cli

From Tarball

Installing from our distributed tarball is relatively straightforward on Ubuntu. First, make sure you install all dependencies:

sudo apt-get install python-nautilus python-configobj python-gtk2 python-glade2 python-svn python-dbus python-dulwich subversion meld

Then download the tarball and from the top folder type:

sudo python setup.py install

Once that is done working, look in the clients folder and read the README file for each client/plugin to learn how they are installed.

Friday, May 6, 2011

WinSCP alternative in Ubuntu.

WinSCP is the most popular file transfer application in Windows Operating systems like filezilla. It helps to copy files from remote system to local system and wise versa. In Linux, filezilla is use for this purpose. But we can simulate WinSCP in Linux/Ubuntu by using Nautilus.


To simulate this we need to install Nautilus elementary, which is a nice addition to Nautilus to enable split view in the file browser. The steps for installing Nautilus elementary in Ubuntu are here.

Type the following in console

sudo add-apt-repository ppa:am-monkeyd/nautilus-elementary-ppa
The above line will add the repository from where you can download the Nautilus elementary

sudo apt-get update && sudo apt-get upgrade
will update the local repositories and update all the software.

nautilus -q   
Now open Nautilus and press F3. You should able to see the split windows.


Access Remote system

Access the remote system by connecting to remote system in one pane. Select the right side pane and go to File->Connect to Server

Fill up the details of the remote system and then press connect. Now the right hand panel will have the files of remote system.
The left hand panel will have the files of local system. To drag and drop the files form one pane to other for copying the files. Also you can use SSH, FTP, SFTP etc protocols to connect the remote system.

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Maintained by Web Themes