BREAKING NEWS
Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Saturday, September 05, 2015

How to mount VMware Shares on Turnkey Linux (Debian) and use it as Apache2 Document Root

Hello everyone again. After struggling to find a perfect LAMP environment for WebDev and tried so many different things I decided to give a try on the Turnkey Linux because of its small footprint and easy deployability (just invented that I word guess).

That been said and not considering myself a Linux expert at all. I was able to successful deploy TurnKey Linux LAMP 13.0 box on a VMware workstation 11. Upgrade the Webmin to the latest version at this time (v1.760). Install the latest VMware Tools available and finally mount shared folders. I will try to post later a tut on how I got everything working. But on this post I will  focus on the topic. How to mount shared folders on the guest system AND use it as Apache2 Document Root.

I will assume the following considerations;

  1. You have install VMware workstation or Player 10, 11 or 12
  2. You have already installed VMware tools and it's tested to be working
  3. and you already have configured at least one shared folder in your VM settings.
Our Goal is to share C:\www on Windows 7 host and mount it at bot time under /mnt/www on our guest Turnkey Linux.

Let's start!   We will edit the following file with nano...


...and add the following line to mount ALL shared folders under /mnt on our guest at boot time;


SAVE, EXIT and RESTART VM Tools  ->  service open-vm-tools restart
RESTART Apache -> service apache2 restart

And at this point you should be able to list the folder and files under /mnt.



You still won't be able to browse to your website yet! We will have to now do the changes to make our folder available for Apache so we can navigate to it...

Lest's copy the default contents of /var/www to our new /mnt/www;
cp -R /var/www/* /mnt/www

We need to edit the following file and change anything from /var/www to our new document root /mnt/www


Now we edit the php5.conf file and make the following changes to it;


Note: The files above can also be edited through Webmin interface as follows;


At this point you should be able to go to http:/// and you should see;

Note: Also any website under the root should work like http:///website1



That's it! From now on, every time you restart your box the shared folders will be mounted under /mnt.

Have fun! :-)

If you have any question please don't hesitate to drop a msg.






1.760

Saturday, December 18, 2010

LINUX HOWTO - Installing Skype on CentOS-5

The Linux version of skype 2.x (beta) is available. However, there is no binary RPM for CentOS. You can install the static version by follow the instructions here:

The available generic skype binaries are 32-bit, so if you're running a 64-bit system you need to make sure you have various 32-bit libraries installed: yum install glib2.i386 qt4.i386 zlib.i386 alsa-lib.i386 libX11.i386 \
libXv.i386 libXScrnSaver.i386

Friday, December 17, 2010

LINUX - HOWTO add user to sudoers list

VISUDO must be run as root!



#visudo

- Look for a line that says root    ALL=(ALL)       ALL
- Put this line below replacing the username with your username

username     ALL=(ALL)     ALL

-hit ESC
-SHIFT+:
-type wq
-hit enter

Linux Fedora 14, CentOS and Others - Install of VMware Tools

Here is how to install vmware-tools on a Fedora Linux 13, Fedora Linux 14 and CentOS 5 guest.

First, Install the Dependencies:

]$ yum update
]$ shutdown -r now
]$ yum install gcc make kernel-devel perl

Perform an update to make sure you have the latest kernel, reboot Fedora, and then install the following packages: gcc, make, kernel-devel, and perl. Make sure the kernel and kernel-devel packages are the exact same version. If you are running 32-bit Fedora, install the kernel-PAE-devel package.

Next, Prepare the vmware-tools Installer:

]$ mkdir /mnt/cdrom
]$ mount /dev/cdrom /mnt/cdrom
]$ cd /tmp
]$ tar zxpf /mnt/cdrom/VMwareTools-8.4.2-261058.tar.gz
]$ umount /dev/cdrom

In the Virtual Machine menu, select Install VMware Tools. VMware Fusion will make an image appear to Fedora. Mount the image, uncompress the installer files to the temporary directory, and then unmount the image.

Finally, Execute the Installer:

]$ cd vmware-tools-distrib
]$ ./vmware-install.pl

Change to the vmware-tools-distrib directory and execute the Perl script, and then follow the prompts. As long as the dependencies were installed correctly, and the version of the kernel headers match the currently running kernel, the installer will automatically find all the directories that it needs.
 
Back To Top
Copyright © 2014 Unrevealing Box .