Tuesday, 28 June 2011

access virtualbox shared folders from Ubuntu-guest

First confirm your Ubuntu-guest is not running from CD and its installed on harddisk of virtualbox.

Than you have to make sure that have install Guest Additions. From the VirtualBox's menu go to Devices → Install Guest Additions . This will Download and mount a virtual CD on your /media/cdrom. Normally this folder's window will show up. As root run the program autorun.sh. When the program completes reboot your VirtualBox.

With Guest Additions installed you may now go ahead and define the shared folder(s). From the VirtualBox's menu go to Devices → Shared Folders. A dialog will show up. In this dialog you can specify which folder from your Windows system you want to share with your Ubuntu. Press the button with the + symbol to add a new shared folder in the list. You will have to specify a Folder Name for each folder you add. Make sure you memorize that name because you will need it very soon.

When done with you shared folder(s) specification, you may now go ahead and actually mount these folders from Ubuntu. First you have to run a command to make it show up. Now, create a mount point, and then use the special mount syntax to actually "map" the folder to the shared VirtualBox folder.

sudo mkdir /media/windows-share

Of course you may choose an alternative path for your mountpoint. With your mountpoint created you can now mount the shared folder, like this:

sudo mount -t vboxsf folder-name /media/windows-share

Where folder-name will be the name you assigned for this folder when you were adding it in the shared folders list.

Monday, 27 June 2011

LAMP Ubuntu Server On VirtualBox (Vbox)



LAMP on UbuntuThis tutorial is to help you set up a LAMP (Linux Apache MySQL PHP) Ubuntu virtual machine server running on VirtualBox. VirtualBox is free for you to use, and supports Linux guest additions whereas the new version of Microsoft's Virtual PC for Windows 7 does not. Guest additions allow for better integration of desktop resolutions and mouse control. Folders can be shared between the host and guest machine allowing you to simply save the file you are working on and refresh your browser, there's no need to upload via FTP/SFTP to test your changes. Other advantages include upgrading or testing software like Drupal or Wordpress; you can test new modules or customisations before adding them to your live website.
This tutorial is based on setting up the virtual machine with your host as Windows 7, this will most likely work the same on other versions of Windows, or even other operating systems but some parts may differ slightly.

Setting up VirtualBox & Ubuntu
First of all you need to download VirtualBox. For this tutorial we will want the VirtualBox 3.2.6 for Windows hosts.
Then you will want to download the Desktop Edition of Ubuntu. For this tutorial the 32bit version is fine.
Now it's best to use the included 'Virtual Media Manager' for mounting image files like the Ubuntu setup iso. This can be accessed from the File menu in VirtualBox. You could always burn the image onto a CD or DVD and run the install that way if you prefer, it's entirely up to you.

Access Network Places

Desktop User Guide Working with Files Navigating Remote Servers If your system is configured to access places on a network, you can use the file manager to access the network places.

To access network places, open the file manager and choose Places ▸ Network Servers. A window opens that displays the network places that you can access.

Double-click on the network that you want to access. To access UNIX shares, double-click on the Unix Network (NFS) object.

 A list of the UNIX shares available to you is displayed in the file manager window. To access Windows shares, double-click on the Windows Network (SMB) object. A list of the Windows shares available to you is displayed in the file manager window.

Saturday, 25 June 2011

HOW TO FIX "The requested URL /phpMyAdmin was not found on this server."

If you get a 404 "Not Found" error when you point your browser to the location of phpMyAdmin (such as: http://localhost/phpmyadmin) this is likely caused by not checking the 'Apache 2' selection during installation. To redo the installation run the following:

sudo dpkg-reconfigure -plow phpmyadmin

Then select Apache 2 for the webserver you wish to configure.

If this does not work, then you can do the following to include the phpMyadmin-shipped Apache configuration into Apache:

sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf
sudo /etc/init.d/apache2 reload

Friday, 24 June 2011

solution “Could not reliably determine the server’s fully qualified domain name, using … for ServerName”

To fix that problem, you need to edit the httpd.conf file.
Open the terminal and type this command:

$ sudo gedit /etc/apache2/httpd.conf

httpd.conf file will be blank. Now, simply add the following line to the file.

ServerName localhost

Save the file and exit from gEdit.
Finally restart the server.

$ sudo /etc/init.d/apache2 restart