Search This Blog

Subscribe to this blog

Follow by Email

Ubuntu 14.04 Trusty Tahr installation along side with Windows 7

It was when I needed to work on OpenFOAM, the open source CFD package, I thought about installing Ubuntu. Though it is possible to get OpenFOAM installed on Windows, we will have a better control when it's in Ubuntu. One thing I got to tell you when I am using Ubuntu, you will fall in love with it soon. You will feel it is yours. As a prerequisite, I emptied one of my partition (not logical drive) other than the partition of Windows. All the files and folders were moved safely and made a backup. I decided to boot from USB for installing ubuntu. With the help of Power Iso, I made the USB drive a bootable disk. The destination is an ASUS X53S, Intel core i5,with 6GB of ram. But when I was trying to set the boot priority in bios to the USB, it was not seen there. But I discovered that, at the time of booting when the ASUS logo is displayed, keep pressing the ESC (escape) key. It will then ask to choose the boot location, including the USB drive. Upon choosing to boot from USB, it will start installing. Just follow the on screen instructions. At one stage it will prompt to set the disk space for ubuntu. A movable central bar will be there to adjust the disk space allocation. In the left it is for ubuntu and in the right it will be retained by Windows. The total space we see in there is the emptied partition. You are done. The installation will proceed. Most probably next time when you boot, you will be prompted to choose the OS. If it didn't you need to do a small job. Boot from the USB once again. Open the terminal and type in the following commands. If there was no error while installing then you can re-install your GRUB as follows:First, boot from a live CDSecond, open your terminal and write sudo fdisk -l to see all your partitions and exact name of your linux one (sdxy) where x means the hard number (a,b,c,...) and y the number of partition (1,2,3,4,...)Third, after that you should write these following instructions:sudo mkdir /media/rootsudo mount /dev/sdxy /media/rootsudo grub-install --root-directory=/media/root /dev/sdx (without y number!)sudo update-grub

You are done. Next time you will be prompted to choose the OS. That's all. Enjoy Ubuntu. Foot note : To make the USB back to a normal USB, using the Power Iso, write in some normal iso files (in the same way you created the bootable USB). Now you can format like the normal procedure. Because sometimes a normal formating process will not take it back to the normal functioning.

Comments

Post a comment

Popular Posts

Hi guys..!! This time, I would like to share with you some basic concepts regarding “Strength of a structure “. Actually, I’m working in a ship designing firm for the last 4 years as a structural engineer. And now, I got some idea about the design of structures. Though the examples mentioned may be oriented to ships, the a principles are same and generally applicable. These are the general steps in the design procedure (hand calculation) for any structure. Step1:Selection of material that suits your environment, type of loading, availability... etc. Step2: Find out the loads acting on the structure. Step3: Based on the boundary condition, load acting on the structure and the geometry, find out the stresses acting on each point of structure. Step4: Check the stresses in every point of structures are within the limits of material or not. For better understanding, it will be good to explain each steps in the design mentioned above. So, we can start with material selection.

Sometimes it will be required to invoke batch files from within the Python script file. We can easily achieve this by following these simple steps. 1. Import the module "OS" import os 2. Use the command os.system("batch_file") . Replace the word batch_file with the required file name. In fact it will work with all the dos commands. Please note that the command is in quotes. This is required as the particular command accepts input of data type string. For a batch file to get invoked, it must be in the current working folder of the Python script. Else the working folder must be changed. DOS searches first in the current directory for the requested batch file. If not found, it will look for the file in any of the locations listed in the "PATH" system environment variable.

I wanted to retrieve the yahoo finance data. I installed pandas_datareader and I encountered this ImmediateDeprecationError. Here is how I handled the error.I installed pandas_datareader version 0.5.0 bypip install pandas_datareader==0.5.0

Then I installedpip install fix_yahoo_finance

Here is a sample code then I used for the purpose.

import datetime as dtimport pandas as pdimport pandas_datareader.data as pdrimport fix_yahoo_finance as yfyf.pdr_override()