Hello again :)

Today I'll tell you how to install grub from the ubuntu/kubuntu live-cd.

If you browse into your root folder you can see /boot directory this the place where grub is installed. In case you have a separate boot partition then that partition is mounted on /boot and then you can access grub from here.

So what we have to do is we have to boot from the live-cd, mount your root partition at any place where we can access it, in case separate boot partition we have to mount that partition over previous-mount-point/boot.

Then we'll install grub there :) simple isn't it.

Let's do it then :)

-> Boot from ubuntu live-cd

-> Choose the option try without installing.

-> You can list your partition table by
sudo fdisk -l or df

-> Now mount your system partition
sudo mount /dev/sda1 /mnt

-> If you are not sure about mounting the correct partition then you can browse into /mnt by using nautilus or by terminal and check you root partition files.

-> If you have a separate boot partition say /dev/sda3 mount it as well
sudo mount /dev/sda3 /mnt/boot

-> Now reinstall grub2
sudo grub-install --root-directory=/mnt /dev/sda
(Note: its /dev/sda and not /dev/sda1 or 2 or 3 DO NOT INCLUDE PARTITION NUMBER)

-> If you have a separate boot partition unmount it first
sudo umount /mnt/boot

-> Unmount the system partition
sudo umount /mnt

-> REBOOT :)

Done!! :)
pHello friends :)

I have been testing kubuntu natty beta versions and faced a lot of crashes. Reinstalling from live-cd is always an option but since I have very slow internet connection reinstalling all the applications normally takes whole night. That's when I started looking for ways to backup the root partition. You can use this method to backup any folder or partition or anything. I'll mention here using root partition.

so lets start :)
On googling "create backup linux" you'll find many applications and post all around the place, but there are reasons of not using them. Two most important of them are:
1. If your system crashed and you are not able to access internet then you wont be able to get that application to call for a restore.
2. And why use an application when you can do it without it ;)

Lets begin.

Creating Backup:

First for backing up root partition you need to have root access, this might not be necessary when creating backups of other folder.

sudo su

cd /

Now here is the full command for creating the backup:

tar cvpzf backup.tar.gz --exclude=/proc --exclude=/lost+found --exclude=/dev --exclude=/backup.tar.gz /

lets explain this command a bit.

tar is the tool we are using to create the backup archive.

p->preserve permissions
z->use gzip (you can replace z with j if you want to use bzip2)

Then comes the name of the archive you want, since there is no meaning of extensions in linux you can keep any name. I use extensions to remind me how to use a particular file.

Then comes the directories you want to exclude.
You can simply add --exclude= you want to exclude.

Lets pay a bit attention to this.
/proc and /dev are virtual directories, they actually don't exists but they get generated on system startup.
In case if your home folder is on some other partition you don't want to back it up. So you can include --exclude=/home
If there are other partitions on your system and lets say they are mounted in /media/mount-point and in case you don't want to back them up you can include --exclude=/mount

And finally what is to be included in the archive, here it is '/'. As we all know mount point or root folder is / in the partition so in order to back whole root partition you simply use /

Press return and sit back for a while :) this may take some time.
When it is finished you can see backup.tar.gz/backup.tar.bz2 file in root folder. You can either burn them to cd or keep them anywhere safe. :)


WARNING!!!-> PLEASE PLEASE PLEASE be careful here, if you don't know what you are doing here, you might end up overwriting stuff that is important to you.

Lets begin
Well sometimes you might want to restore simply because you want to restore ;) but here we'll consider the worst condition.

Lets say that your system crashed, grub crushed and peeled off and now you have no choice but just to boot from the live-cd :)

So what.... boot from live-cd

Start kubuntu/ubuntu/edubuntu or any distro you are using.
Let me summarise what we are about to do, if you don't understand it re-read it zillion times but don't move forward until you completely understand it.


We'll first format one partition, mount it somewhere so that we can get access to that partition and then we'll untar our backup tarball here.


For formatting use Gparted, Partition manager or anything with which you feel comfortable.
Once the drive is formatted we have to mount it somewhere.
I am mounting my /dev/sda1 to /mnt

sudo mount /dev/sda1 /mnt

mounting can be performed only by root privileges.

Open terminal browse to the location of backup tarball (if it is in some other partition which is not mounted you have to mount it too DO NOT MOUNT IT ON /mnt, mount it somewhere else. I am leaving this upon you guys :) )
Well here is the command for untarring the tarball.

tar xvpzf backup.tar.gz -C /mnt/

most of the part is explained except
if you created a bzip archvie replace z by j

Now your root partition is ready :)
Well technically since your backup included grub there is no need of installing grub in it :) but still if you created a backup few days ago and you installed few new operating systems after that you need to reinstall grub. You can refer to my other post into this blog of how to get grub from live-cd :)

Open your terminal and type this command--

$ alsamixer

After executing this command you will be able to see different bars inside your terminal..just use arrow keys to navigate between different bars and use up and down arrow keys to increase and reduce volume...

That's it!!! So easy...
There is a very nice way of handling resolution in linux OS via terminal....
First of all open your terminal and run this command--


After executing this command you will be able to see the different resolution settings.This is what i get after executing this command--

Screen 0: minimum 320 x 200, current 1280 x 800, maximum 8192 x 8192

Now, if you want to change your resolution then just type this command--

xrandr -s (size-index)

Example- xrandr -s 0 (for 1280*800)
                xrandr -s 1 (for 1024*768)

Sometimes it just become very cumbersome to look for specific command for terminal because it is not possible to keep every command in your mind so i am giving you a terminal's command wallpaper for your desktop...so if anyone wants to know any command he just have to switch on his desktop....

Here is the link--
commands wallpaper

I hope this will be helpful for you!!!

This is a quite interesting game just like angry bird which is quite popular.I have found a tutorial how to run this game on ubuntu.You can run it either offline or online.

  • Just save this script in your home folder--angryanimal.sh
  • After saving this script ,open your terminal and write this- 
        bash angryanimal.sh

  •  When downloading will be finished, you will be able to see an icon your desktop.
  • Just click on the icon and bingo!!!! 

In this tutorial I will tell you "how to install Qt in ubuntu".Qt is basically used for making gui applications.i will also show you how to run a simple “Hello World” application without any IDE.So, here are the steps of installation---

  • Now, if you want a IDE also then click on the Qt SDK after selecting your version.

  • This will start your downloading, when downloading will be finished it will ask about the installation,just install the setup.When the installation will be completed,you will be able to see an icon on your desktop. This icon is basically your Qt creator IDE icon.There are so many tutorials on youtube for making simple application on this IDE.                             
      Here are the steps for running a simple application manually—
  • Install qt4-qmake by this command--   sudo apt-get install qt4-qmake 
  • Create a .cpp file.(you can find one from here)—
  •            Make a directory in your home folder and paste this .cpp file inside this folder(it is compulsory to make a folder).
  •           Open your terminal and browse to your newly created directory with the help of a Cd command.
·                    Now, run these commands—
  1. qmake –project 
  2. qmake 
  3. make
  4. ./(your directory name because if you open a directory you will be able to see an executable file with the directory open and as we know this executable file will show the output).


© 2015 Techie's House. Designed by Bloggertheme9