Home » Posts tagged 'vm player'
Tag Archives: vm player
Moving data between Windows and Ubuntu VMWare partition
I use Windows 7 on my laptop (it came pre-installed) and Ubuntu using the VMWare Player. What are the advantages of using VM Player instead of creating a dual-boot system? Well I can quickly shift from Ubuntu to Windows and bakc again without restarting my computer everytime. Using this approach allows me to utilize software that run only on Windows and run software like Rattle, the R data mining GUI, that are much easier installed on Linux.
However if your statistical software is on your Virtual Disk , and your data is on your Windows disk, you need a way to move data from Windows to Ubuntu.
The solution to this as per Ubuntu forums is -http://communities.vmware.com/thread/55242
Open My Computer, browse to the folder you want to share. Right-click on the folder, select Properties. Sharing tab. Select the radio button to “Share this Folder”. Change the default generated name if you wish; add a description if you wish. Click the Permissions button to modify the security settings of what users can read/write to the share.
On the Linux side, it depends on the distro, the shell, and the window manager.
Well Ubuntu makes it really easy to configure the Linux steps to move data within Windows and Linux partitions.
NEW UPDATE-
VMmare makes it easy to share between your Windows (host) and Linux (guest) OS
Step 1
and step 2
Do this
and
Start the Wizard
when you finish the wizard and share a drive or folder- hey where do I see my shared ones-
see this folder in Linux- /mnt/hgfs (bingo!)
Hacker HW – Make this folder //mnt/hgfs a shortcut in Places your Ubuntu startup
Hacker Hw 2-
Upload using an anon email your VM dark data to Ubuntu one
Delete VM
Purge using software XX
Reinstall VM and bring back backup
Note time to do this
-General Sharing in Windows
Just open the Network tab in Ubuntu- see screenshots below-
Windows will now ask your Ubuntu user for login-
Once Logged in Windows from within Ubuntu Vmware, this is what happens
You see a tab called “users on “windows username”- pc appear on your Ubuntu Desktop (see top right of the screenshot)
If you double click it- you see your windows path
You can now just click and drag data between your windows and linux partitions , just the way you do it in Windows .
So based on this- if you want to build decision trees, artifical neural networks, regression models, and even time series models for zero capital expenditure- you can use both Ubuntu/R without compromising on your IT policy of Windows only in your organization (there is a shortage of Ubuntu trained IT administrators in the enterprise world)
Revised Installation Procedure for utilizing both Ubuntu /R/Rattle data mining on your Windows PC.
Using VMWare to build a free data mining system in R, as well as isolate your analytics system (thus using both Linux and Windows without overburdening your machine)
First Time
- http://downloads.vmware.com/d/info/desktop_end_user_computing/vmware_player/4_0Download and Install
- http://www.ubuntu.com/download/ubuntu/downloadDownload Only
- Create New Virtual Image in VM Ware Player
- Applications—–Terminal——sudo apt get-install R (to download and install)
- sudo R (to open R)
- Once R is opened type this —-install.packages(rattle)—– This will install rattle
- library(rattle) will load Rattle—–
- rattle() will open the GUI—-
Getting Data from Host to Guest VMNext Time
- Go to VM Player
- Open the VM
- sudo R in terminal to bring up R
- library(rattle) within R
- rattle()
At this point even if you dont know any Linux and dont know any R, you can create data mining models using the Rattle GUI (and time series model using E pack in the R Commander GUI) – What can Rattle do in data mining? See this slideshow-http://www.decisionstats.com/data-mining-with-r-gui-rattle-rstats/If Google Docs is banned as per your enterprise organizational IT policy of having Windows Explorer only- well you can see these screenshots http://rattle.togaware.com/rattle-screenshots.html
Running a R GUI,and parallel programming on Amazon EC2
Ok here is an update to the post on running R on an Amazon EC2.
http://decisionstats.wordpress.com/2010/09/25/running-r-on-amazon-ec2/
1) Login to Amazon Console using instructions in earlier post
2) Select AMI-Platform Ubuntu-i-5575773f
Basically select the latest 64 bit instance from Ubuntu
3) Proceed as in post before to launch AMI and instance- here I chose large with 4cores
3.1) Before connecting to your session
search Synaptic Package Manager for x11-
I installed the X11 VNC server package -
and now interactive sessions will work (read GUIs)
3.2) Modify the line
ssh -i decisionstats2.pem root@ec2-75-101-182-203.compute-1.amazonaws.com
To
ssh -i decisionstats2.pem -X ubuntu@ec2-75-101-182-203.compute-1.amazonaws.com
This will connect you.
4) INSTALL R – Cran R is a standard Ubuntu Package
using
sudo apt-get install r-base
then type R
and install.packages(“Rcmdr”)
Note – you should be able to see the grey colored Tcl/Tpk script showing cran locations
in a seperate window if X11 is working
5) doSNOW package works on the Ubuntu 64- The results are below for
check <-function(n) {check <-function(n) {
+ for(i in 1:1000)
+ {
+ sme <- matrix(rnorm(100), 10,10)
+ solve(sme)
+ }
+ }
>
> times <- 100
user system elapsed
0.150 0.080 7.303
> system.time(for(j in 1:times ) x <- check(j))
user system elapsed
27.460 2.300 29.757
The time of 7.3 is almost 5.5 times faster than running it locally on a dual core, and still 3 times faster than running foreach locally. Note I used 4 cores this time in snow.
5) The Tcl/Tk interface of R Cmdr takes a long time to load on EC2 than locally. It may be due to the fact I was running Ubuntu using a VM Player (http://www.vmware.com/go/downloadplayer/ ). However there seems to be a general slowing down when viewing graphics.
or simply
sudo apt-get install r-cran-rcmdr
Running R on Amazon EC2
On my second day of bludering about high technology, I came across http://rgrossman.com/2009/05/17/running-r-on-amazons-ec2/ which describes how to run R on Amazon EC2.
I tried it out and have subsequently added some screenshots to this tutorial so as to help you run R. My intention of course was to run a R GUI preferable Revolution Enterprise on the Amazon EC 2- and crunch uhm a lot of data.
Now go through the steps as follows-
0) Logging onto Amazon Console
Note you need your Amazon Id (even the same id which you use for buying books).
Note we are into Amazon EC2 as shown by the upper tab. Click upper tab to get into the Amazon EC2
2) Choosing the right AMI-
On the left margin, you can click AMI -Images.
Now you can search for the image-
I chose Ubuntu images (linux images are cheaper) and opendata in the search as belows- I get two images.
You can choose whether you want 32 bit or 64 bit image. Thumb rule- 64 bit images are preferable for data intensive tasks.
Click on launch instance in the upper tab ( near the search feature)
2) A pop up comes up, which shows the 5 step process to launch your computing.
Choose the right compute instance- As the screenshot shows- there are various compute instances and they all are at different multiples of prices or compute units.
After choosing the compute instance of your choice (extra large is highlighted)- click on continue-
3) Instance Details-
I did not choose cloudburst monitoring as it has a extra charge- and I am just trying out things.So I simply clicked continue.
4) Add Tag Details- If you are running a lot of instances you need to create your own tags to help you manage them. Advisable if you are running many instances.
Since I am going to run just one- I clicked continue with adding just two things OS and Stats Package.
5) Create a key pair- A key pair is an added layer of encryption. Click on create new pair and name it (note the name will be handy in coming steps)

6)
After clicking and downloading the key pair- you come into security groups. Security groups is just a set of instructions to help keep your data transfer secure. So I created a new security group.

And I added some ways in security group to connect (like SSH using Port 22)

7) Last step- Review Details and Click Launch
8) On the Left margin click on instances ( you were in Images.>AMI earlier)
It will take some 3-5 minutes to launch an instance. You can see status as pending till then.

9) Pending instance as shown by yellow light-

10) Once the instance is running -it is shown by a green light.

Click on the check box, and on upper tab go to instance actions. Click on connect-

you see a popup with instructions like these-
chmod to make sure your key file isn’t publicly viewable, ssh won’t work otherwise:chmod 400 decisionstats.pemExample
IMPORTANT-
If you are choosing Ubuntu Terminal to connect- you need to change the word root from above to Ubuntu above.
12) To launch R, just type R at the terminal
If all goes well you should be able to see this-

choose to install any custom packages (like
install.packages(‘doSNOW’)
work on R using command line
13) IMPORTANT- After doing your R work, please CLOSE your instance (
Go to LEFT Margin-Instances-Check the check box of instance you are running- on upper tab- Instance Actions- Click Terminate.

Amazon EC2 Ubuntu 8.10 intrepid AMI built by Eric Hammond; Eduardo Leoni added R, many R packages, JAGS, mysql-client and subversion.
| Submitted By: | Eduardo L Leoni |
|---|---|
| US East AMI ID: | ami-1b9b7c72 |
| AMI Manifest: | PolMethImages/imageR64.manifest.xml |
| License: | Public |
| Operating System: | Linux/Uni
|
| AMI ID: ami-8ba347e2 | ||
| Name:- | ||
| Description:- | ||
| Source:redhat-cloud/RHEL-5-Server/5.2/x86_64/Beta-2.6.18-92.1.1/RHEL5.2-Server-x86_64-Beta-2.6.18-92.1.1.manifest.xml | ||
| Owner:432018295444 | Visibility:Public | Product Code:54DBF944 |
| State:available | Kernel ID:aki-89a347e0 | RAM Disk ID:ari-88a347e1 |
| Image Type:machine | Architecture:x86_64 | Platform:Red Hat |
| Root Device Type:instance-store | Root Device:- | Image Size:0 bytes |
| Block Devices:N/A – Instance Store | ||
| Virtualization:paravirtual | ||
Using VM Player and Chromium OS on a PC
Here is a short presentation tutorial including screenshots I made of using VM Player and playing with Chromium OS. Note- Its like a Machine (light weight linux) with a Chrome Browser. The real computing is when you use Chrome Extensions and/if you have a underpowered legacy PC.
or you can see the file here if the above does not work 15 Clicks to a Cloud OS
















