Please note that if your location address contains spaces it's better you insert it within single quotes as I've done in the above example to avoid error in the terminal.

Finally if successful you should get result as below:

Click on image to enlarge

Now you will need to resize/expand your VHD partition using a Partition Software or Windows Default Partition Manager. I have used a free software called MiniTool Partition Wizard which you can download here: http://www.partitionwizard.com/download.html

Follow the instructions in the image below to finally expand your partition:

Search for icedtea and select icedtea-7-plugin for installation. This may select some Java 7 dependencies.

Now search for openjdk and deselect openjdk-6 as well as openjdk-6-jre. This may deselect some further packages.

If you had openjdk-6-jdk installed, make sure it is now selected for removal and openjdk-7-jdk is selected for installation. (You can skip this step if openjdk-6-jdk is not selected, meaning it was never installed.)

Click Apply and review your package selections:

default-jre packages are metapackages which are safe to remove in this process.

icedtea-7-jre-cacao is a dummy package, therefore it it OK to remove icaedtea-6-cacao without installing a replacement.

For any other Java/IcedTea 6 package that is removed, you should be installing the Java 7 equivalent.

Packets to be selected for removal should include the following:

default-jre

default-jre-headless

icedtea-6-jre-cacao

icedtea-6-jre-jamvm

openjdk-6-jre openjdk-6-jre-headless

openjdk-6-jre-lib

Instead, the following should be installed:

icedtea-7-jre-jamvm

icedtea-7-plugin

openjdk-7-jre

openjdk-7-headless

openjdk-7-lib

If any packages are missing, go back and select them manually. When everything is OK, install.

From a console, run java -version. If you have JDK installed, also run javac -version. Both should now report version 1.7.0.

First make sure you have some unallocated space on the left or right of the main partition where your Ubuntu is installed as the figure above.

Now lets evaluate the formula for creating the appropriate swap file. Below is a good explanation:

"I would say a good rule of thumb is indeed just as was mentioned above. 2 times the physical memory. Something to consider here, while it is possible to use a smaller swap partition, and it will suffice under most normal circumstances, if you want this system to be rock solid stable, I would indeed follow the 8 GB recommendation. In fact I recommend 2 * RAM + 1 MB so that there is absolutely room to swap out 2 entire copies of memory. This avoids the "shell game" scenario which can have negative performance repercussions. What this will do for you is guarantee a level of resiliency should you encounter an extraordinary event with your system.I've seen scenarios where applications behave badly in unattended environments and before you know it, your system starts slowing down to a crawl.Depending on what you are doing, you might even be able to dispense with the swap file entirely. The extra space for the OS is handy when running many applications at once. However if you only intend to run a few processes, do not intend to interact with the GUI disabling the swap file might be appropriate.But if you are going to have a swap file I always use the sizing formula below.

Once you have decided on the swap space it's time to create it.
Right click on the unallocated space on your hard drive and click on New. A dialog box as the image below will appear. Make selection as in the image.

Then click on the 'green check icon' - which says 'Apply all operations' and wait.

Once the linux-swap partition is created - once again - Right Click on the 'linux-swap' partition and select Swapon.

But the problem here is this 'swap' turns off after restarting.

So to permanently activate the 'swappartition' follow the steps below:

Activating the swap partition

(If your swap is on your primary hard drive, you don't need to do anything here.) Now you need to find what partition your swap is on and what its UUID is. UUID?! you say? Well that's the Universally Unique IDentifier for the partition so you can reference it even if it's on a different mount point from boot-to-boot due to adding disks, etc.

Pull up a terminal and run

gksu gparted

& and enter your root password. The & lets this process run while still giving you access to the command line.

br />

Right-click on your swap partition and choose *Information*. You should see the **Path** and **UUID** listed there. Keep this open for further reference.

Run

gksu gedit /etc/fstab

& and look for the line that has *swap* in it. It should be the third column, separated by spaces or tabs. You can either use the path or the UUID to tell Linux where to find your swap partition. I recommend UUID because it'll stay constant even if you move the partition around or the disk somehow becomes sdb instead of sda or something like that. Make the appropriate edits and save the file. Your line should look something like this if you used UUID (with your UUID instead, of course):

Wednesday, December 10, 2014

Use the -R option to apply the rights for all files inside of a directory too.

Note that both these commands just work for directories too. The -R option makes them also change the permissions for all files and directories inside of the directory.

For example

sudo chown -R username:group directory

will change ownership (both user and group) of all files and directories inside of directory and directory itself.

sudo chown username:group directory

will only change the permission of the folder directory but will leave the files and folders inside the directory alone.

You need to use sudo to change the ownership from root to yourself.

Edit:

Note that if you use

chown user: file

(Note the left-out group), it will use the default group for that user.

If you prefer, this can be done with a GUI as well. You will need to open Nautilus as root to do so. Press Alt+F2 to access the "Run Applications" dialog and enter

gksu nautilus

Next, browse to and right click on the folder you would like to modify. Then, select "Properties" from the context menu. You can now select the user or group that you would like to be the "Owner" of the folder as well as the permissions you would like to grant them. Finally, press "Apply Permissions to Enclosed Files" to apply the changes recursively.

Though it seems this does not always work for some operations in a deep folder tree. If it does not work use the appropriate terminal command.

Tuesday, December 9, 2014

I had a hard time trying to figure out as to how to resize my partitions using Gpart. I am currently using Ubuntu 12.04 LTS aka Precise Pangolin.

First it's better you use Gpart from a Live CD/USB. You can do this by using your Ubuntu Installation CD/USB.

So the main thing you will have to note while resizing your partition is there should be unallocated space either at the immediate left or right of your partition. Only then will you be able to expand your partition.

If you don't have Gparted Partition Editor you can install one from the terminal using the following command:

sudo apt-get install gparted

- To Extend just select an inactive partition (active partitions are locked).
- Then right click and select Resize/Move.
- Then you can move the arrows on the left and the right to resize/expand.
- Free Space preceding is the free space/unallocated space to the left of your selected partition.
- Free Space following is the free space/unallocated space to the right of your selected partition.
- Then click on Resize/Move.
- Then finally click Apply (The Green Check Icon).

Depending on the size of your partition the operation might execute shortly or take some time.

Email Subscription:

Support/Donate:

Drupal Association Member

eV@gabond - The Meaning

" I want to be an educated vagabond, not a vagabond out of weakness. I don't want to do anything in my life out of weakness - because I could not be anything else, that's why I am a Vagabond - that is not my way. First I want to prove to the world that I can be anything that I want to be, but still I choose to be a vagabond - out of strength. Then there is respectability even if you are a Vagabond, because respectability has nothing to do with your vocation, your profession; respectability has something to do with acting our of strength, clarity, intelligence. "