BREAKING NEWS
Showing posts with label howto. Show all posts
Showing posts with label howto. 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

Thursday, November 13, 2014

How To: Create a Collection Based on an Advertisement Status

How To: Create a Collection Based on an Advertisement Status

You may encounter a time when you want to target systems that reported a failure message for an advertisement, or reported a specific failure exit code. This is an example of how to create a query-based collection of all systems that reported a failure for AdvertisementID LAB20089.

SELECT sys.ResourceID,sys.ResourceType,sys.Name,sys.SMSUniqueIdentifier,sys.ResourceDomainORWorkgroup,sys.Client FROM sms_r_system as sys inner join SMS_ClientAdvertisementStatus as offer on sys.ResourceID=offer.ResourceID
WHERE AdvertisementID = 'LAB20089' and LastStateName = "Failed"
Replace the AdvertisementID = 'LAB20089' with the ID you wish to create the collection based upon.
You should be able to paste this WQL directly into a new query-based membership rule, and modify the AdvertisementID for your environment.

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

Monday, November 15, 2010

Windows 7 - Cannot delete .eml files

One one of my clients got a very  nasty virus called Win32.runouce (Avast Name) a variation of the W32/Chir. What this virus does is creates big amount of tmz****.tmp files that infected with a trojan file pp.exe. Also modifies registry keys and infect other executables files.
Even after you have the system cleaned by your anti virus and/or manually this virus leave lots of .eml files. These .eml files are generally email files but in this case are left overs from this virus.
The whole point here is that even after the system is supposedly cleaned you still cannot delete these files within Windows 7 operating system. If you search for these files the results might come out hundreds or thousands of them. You can select them but Windows Explorer will not give you the option to delete!

Thursday, November 11, 2010

Tips: Favorites & FlashFolder

One of the annoying things about Windows 7 is that it does not currently run many of my favorite utilities. Perhaps in time it will. Consequently, I still spend a lot of time using Windows XP. One of the utilities I miss when using Windows 7 is FlashFolder. FlashFolder puts a small toolbar on top of open/save dialog windows which allows me to quickly navigate to my desired folders/directories.

The FlashFolder toolbar has drop down menus which show me 1) a history of folders I went to recently in the open/save window, 2) folders that I’ve added as my favorites, and 3) folders I currently have open in Windows Explorer, i.e. the directories/folders I have open on the desktop.


The standard Favorites menu on the Windows XP Explorer menu bar is useful for storing favorite folders and files, but it is not accessible in most open/save dialog windows. Consequently, we often must navigate through a maze of folders when we need to open or save a file.

One thing about the Favorites menu that annoys me is that Internet Explorer will sometimes store its favorites/bookmarks on it, which I then have to manually remove.



Windows 7 does not have an Explorer window Favorites menu like Windows XP. Instead, it has a Favorites directory on its new Explorer window sidebar. You can simply drag and drop your favorite folders and files there, similar to how the Macintosh Finder sidebar works. In addition, Windows 7 allows you access those favorites from many (albeit not all) open/save dialog windows. There is also Recent Places item on the Win 7 Favorites sidebar directory that shows some folder history, but it doesn’t store currently open desktop windows, as FlashFolder does. I often use the current folders option of FlashFolder when I’m in an application to open files I recently found in my folders.

 
Back To Top
Copyright © 2014 Unrevealing Box .