Wednesday, August 24, 2011

Back up and restore management in ubuntu




Type of backups:
1)Back up of user data/specific folders
2)Back up of softwares installed on system
3)Back up of whole operating system as a Live disk

1)Back up of user data/specific folders

We know that in Linux, there is home folder under this there are some sub-folders like Pictures,Downloads,Documents,Music...This folders contain user data so we can back up this folders using following software in Ubuntu.

  • Deja-dup backup tool
     • Support for local or remote backup locations, including Amazon S3
     • Securely encrypts and compresses your data
     • Incrementally backs up, letting you restore from any particular backup
     • Schedules regular backups
     • Integrates well into your GNOME desktop


2)Back up of softwares in Ubuntu

Ways of installation of software in Ubuntu
  • Download and install softwares from Ubuntu software center
  • Using terminal with 'sudo apt-get install [s_name]
  • Using synaptic package manager.


Install aptoncd software from http://aptoncd.sourceforge.net/

Use terminal to install this software by running this command.
$ sudo apt-get install aptoncd

APTonCD:
This software is used to make .iso file of updates/resperonities/softwares/dependencies of ubuntu which you have downloaded from internet OR installed using terminal OR installed using synaptic package manager OR installed using Ubuntu software center via INTERNET.

2.Now,whenever you install updates/resperonities/softwares/dependencies of ubuntu ....Before you shut down your computer JUST run APTonCD from System->Administration->APTonCD...than

2.(A).click on 'Create' than you will see the list of packages which you have downloaded from internet. You can add .deb packages by click on ‘Add’..

2.(B).Now click on 'Burn' ..Then select ur medium and select destination folder where .iso file will be saved....than unmark metapackage option and do not change other option and click on 'Apply'.

2.(C)Now,.iso file will be saved and APTonCD will ask for burning this .iso file to CD/DVD
.say ‘NO/CANCLE' if you dont want waste CD/DVD for it . It means your back up will be saved locally on your pc.

6. Now,Copy all .deb files to specific folder from Package folder of Mounted .iso file.

7. Unmount that .iso file.

8. Whenever your ubuntu crashed, after reinstalling ubuntu,,,Paste that folder which contain all .deb files to Desktop.
Now....Run Terminal and type
$ cd Desktop
~/Desktop$ cd [folder name]
now...type 'sudo dpkg -i *.deb' without quoets....

Here * is wild card which runs files having .deb extension...

Complete.Your all .deb files will be installed.

CAUTION: PLEASE DO NOT INSTALL DEBS OF ANY VERSION OF UBUNTU TO OTHER ONE.IT MAY BRICK YOUR OS.

3)Back up of whole operating system as a Live disk

We are talking about backup of whole operating system at particular point including installed softwares,wallpapers,settings,preferences,etc as a Live disk.

This type of back up is very helpful when you are making any customized ubuntu distribution.
This can be done using one tool named as 'Remastersys'.

  • How to install 'Remastersys' tool in ubuntu ?
    Open Menu->System->Administration->Synaptic package manager and search for Remastersys and install it.

  • How to make a live disk of current installed system?

In order to learn how you can use remastersys, run
sudo remastersys
remastersys Syntax
sudo remastersys backup|clean|dist [cdfs|iso] [filename.iso]
remastersys Examples
1) to make a livecd/dvd backup of your system
sudo remastersys backup
2) to make a livecd/dvd backup and call the iso custom.iso
sudo remastersys backup custom.iso
3) to clean up temporary files of remastersys
sudo remastersys clean
4) to make a distributable livecd/dvd of your system
sudo remastersys dist
5) to make a distributable livecd/dvd filesystem only
sudo remastersys dist cdfs
6) to make a distributable iso named custom.iso but only if the cdfs is already present
sudo remastersys dist iso custom.iso
cdfs and iso options should only be used if you wish to modify something on the cd before the iso is created. An example of this would be to modify the isolinux portion of the livecd/dvd
Creating An ISO Image
To create an iso image of your installation, simply run
sudo remastersys dist
This will create an iso image called customdist.iso in the /home/remastersys directory. The dist option makes that your personal folder (e.g. /home/username) will not be included in the iso image. You might have to insert your Ubuntu installation CD during the process.
This is how the end of the process looks:
[...]
92.16% done, estimate finish Wed DEC 28 15:31:25 2007
93.39% done, estimate finish Wed DEC 28 15:31:25 2007
94.62% done, estimate finish Wed DEC 28 15:31:24 2007
95.85% done, estimate finish Wed DEC 28 15:31:24 2007
97.08% done, estimate finish Wed DEC 28 15:31:25 2007
98.31% done, estimate finish Wed DEC 28 15:31:25 2007
99.54% done, estimate finish Wed DEC 28 15:31:25 2007
Total translation table size: 2048
Total rockridge attributes bytes: 3950
Total directory bytes: 9094
Path table size(bytes): 54
Max brk space used 0
406890 extents written (794 MB)
/home/remastersys/customdist.iso is ready to be burned or tested in a virtual machine.
Check the size and if it is larger than 700MB you will need to burn it to a dvd
796M /home/remastersys/customdist.iso
Clean Up
After you’ve burnt the iso image onto a CD/DVD, you can run
sudo remastersys clean
to remove all temporary file created during the iso generation as well as the /home/remastersys directory.




References:

  • All Screen shots are taken using Shutter tool on ubuntu 11.04 for Deja-dup back up tool.
  • All software describe in this report are Open source and free.

Sunday, August 21, 2011

Windows XP tricks


Creating Shutdown Icon or One Click Shutdown:

Navigate to your desktop. On the desktop, right-click and go to New, then to Shortcut (in other words, create a new shortcut). You should now see a pop-up window instructing you to enter a command line path.
Use this path in "Type Location of the Item"
SHUTDOWN -s -t 01
If the C: drive is not your local hard drive, then replace "C" with the correct letter of the hard drive. Click the "Next" button. Name the shortcut and click the "Finish" button. Now whenever you want to shut down, just click on this shortcut and you're done.

Making Google the Default Search Engine in Internet Explorer

Open registry editor by going to Start then Run and entering regedit and navigate to following three keys separately and change it as shown below:

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
"Search Page"=" http://www.google.com"
"Search Bar"=" http://www.google.com/ie"
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchURL]
""=" http://www.google.com/keyword/%s"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Search]
"SearchAssistant"=" http://www.google.com/ie" .

Presentation On Ubuntu

I had a presentation on ubuntu. If you want to refer this presentation then you can download from this link,
DOWNLOAD PPT

Linux softwares


Description of the program, executed taskWindowsLinux
1) Networking.
Web browserInternet Explorer, Netscape / Mozilla, Opera [Prop], Firefox, ...1) Firefox.
2) Galeon.
3) Konqueror.
4) Opera. [Prop]
5) Google Chrome.
6) Nautilus.
7) Epiphany.
8) Links. (with "-g" key).
9) Dillo.
10) Encompass.
Console web browser1) Links
2) Lynx
3) Xemacs + w3.
1) Links.
2) ELinks.
3) Lynx.
4) w3m.
5) Xemacs + w3.
Email clientOutlook Express, Netscape / Mozilla, Thunderbird, The Bat, Eudora, Becky, Datula, Sylpheed / Claws Mail, Opera1) Evolution.
2) Netscape / Mozilla/Thunderbird messenger.
3) Sylpheed / Claws Mail.
4) Kmail.
5) Gnus.
6) Balsa.
7) Bynari Insight GroupWare Suite. [Prop]
8) Arrow.
9) Gnumail.
10) Althea.
11) Liamail.
12) Aethera.
13) MailWarrior.
14) Opera.
Email client / PIM in MS Outlook styleOutlook1) Evolution.
2) Bynari Insight GroupWare Suite. [Prop]
3) Aethera.
4) Sylpheed.
5) Claws Mail
Email client in The Bat styleThe Bat1) Sylpheed.
2) Claws Mail
3) Kmail.
4) Gnus.
5) Balsa.
Console email clientMutt [de], Pine, Pegasus, Emacs1) Pine. [NF]
2) Mutt.
3) Gnus.
4) Elm.
5) Emacs.
News reader1) Agent [Prop]
2) Free Agent
3) Xnews
4) Outlook
5) Netscape / Mozilla
6) Opera [Prop]
7) Sylpheed / Claws Mail
8) Dialog
9) Gravity
10) BNR2
1) Knode.
2) Pan. 
3) NewsReader.
4) Netscape / Mozilla Thunderbird.
5) Opera [Prop]
6) Sylpheed / Claws Mail.
Console:
7) Pine. [NF]
8) Mutt.
9) Gnus.
10) tin.
11) slrn.
12) Xemacs.
13) BNR2.
Address bookOutlook1) Rubrica
Files downloadingFlashget, Go!zilla, Reget, Getright, DAP, WgetWackGetMass Downloader, ...

Tips & Tricks on Ubuntu

1. Get lightning fast and clever at the command line
You can use keyboard shortcuts and other command line tricks to make entering commands easier and faster. You might already know about the ‘tab’ key which completes partial commands and even file and directory names.

Here are some other keyboard shortcuts you can use within terminal:

Ctrl-aMove to the start of the line.Ctrl-eMove to the end of the line.Alt-] xMoves the cursor forward to the next occurrence of x.Alt-Ctrl-] xMoves the cursor backwards to the previous occurrence of x.Ctrl-uDelete from the cursor to the beginning of the line.Ctrl-kDelete from the cursor to the end of the line.Ctrl-wDelete from the cursor to the start of the word.Ctrl-yPastes text from the clipboard.Ctrl-lClear the screen leaving the current line at the top of the screen.Ctrl-x Ctrl-uUndo the last changes. Ctrl-_Alt-rUndo all changes to the line.Alt-Ctrl-eExpand command line.Ctrl-rIncremental reverse search of history.Alt-pNon-incremental reverse search of history.!!Execute last command in history!abcExecute last command in history beginning with abc!nExecute nth command in history^abc^xyzReplace first occurrence of abc with xyz in last command and execute itAlso don’t forget to check out 4 websites where you can learn cool command line tricks

2. Launch Ubuntu Linux Applications with keyboard
There are two ways you can achieve this:

  • Use applications like Launchy or Gnome-Do that make it easier to launch applications by typing a few characters of the application’s name.
  • Or you can summon gconf editor (Alt+F2 then type gconf-editor and hit enter), and navigate to apps > metacity > global_keybindings, double click on any of the run_command_N and type in the keyboard shortcut you want to assign to an application then make a mental note of the number N. Then go to apps > metacity > keybinding_commands and double click on command_N (N being the number you used above) and type in the command you want to run. As an example if you wanted to run Firefox you would type in firefox.

Also check out these Ubuntu keyboard shortcuts you might not know about.

3. Start from wherever you left off

You can make Ubuntu remember the applications you had open when you last logged out, so that when you log back in again you’ll find all those applications running and you can resume right from where you left off.

To achieve this go to System > Preferences > Startup Applications, then go to the options tab and check "Automatically remember running applications when logging out"

4. Create a Separate Ubuntu Linux Home Partition

New versions of Ubuntu arrive every 6 months. Although you can upgrade to the latest version via the update manager, sometimes the upgrade doesn’t work as expected so some users like to do a fresh clean install.

The disadvantage with that of course is that you lose data you had in your home directory. To overcome this you can create a separate Home partition when you are installing Ubuntu, size it according to your requirements and then when you decide to install Ubuntu the next time, simply specify this partition as the Home partition (by choosing /home as the mount point).

All your files and data on the Home partition will be preserved even after a fresh install.

Thursday, August 18, 2011

Advance Ethernet(Web 2.0)

My friend,Bhavin and I had presentation on Advance ethernet which is a physical part of internet or networking.You can refer our presentation from Slideshare.net(Presentation on Advance Ethernet )

What is clockwork mod in Android and How to install CWM in Samsung galaxy sl i9003?

Clockwork mod means you replace original android boot loader with other customized boot loader which is called as Clockwork mod.

Benifits of Clockwork Mod:

  1. You can backup and restore your whole system using it like you are making ghost of that system.
  2. You can install custom ROM on your android device.
  3. You can mount system and other parts like sdcard etc.
  4. You can wipe cache and format sdcard.


CWM Recovery for GT-I9003:


One thing to know is that in this version External SD is called SDCard. This because SDCard is used by CWM as backup support. For the same reason also the USB Storage mounted under "Mount and Storage" menĂ¹ is related to external SD.

How to install:
Download Odin from samfirmware.com
And connect you mobile in USB debuging mode
Select CMW file in PDA
Start flashing ....Reboot....Competed
LINK:

http://www.megaupload.com/?d=0BFPGS12 GT-I9003_PDA-DDKB2.tar
http://www.megaupload.com/?d=5VB0U4IR GT-I9003_PDA-DXKB2.tar
http://www.megaupload.com/?d=8SUXXIYA GT-I9003_PDA-LUBKB1.tar
http://www.megaupload.com/?d=A9Y5Y9FB GT-I9003_PDA-XXKB1.tar
http://www.megaupload.com/?d=BQ2P35CY GT-I9003_PDA-ZHKC1.tar
http://www.megaupload.com/?d=J45I2CH1 GT-I9003_PDA-XXKC1.tar
http://www.megaupload.com/?d=JRJXED7S GT-I9003_PDA-ZCKC1.tar
http://www.megaupload.com/?d=OY7ZTA8L GT-I9003_PDA-XXKB3.tar
http://www.megaupload.com/?d=SNSPPHTW GT-I9003_PDA-JPKE1.tar
http://www.megaupload.com/?d=SUK5ROFE GT-I9003_PDA-DXKE1.tar
http://www.megaupload.com/?d=VKCIF6A0 GT-I9003_PDA-XWKB1.tar
http://www.megaupload.com/?d=Q62RT5Q0 GT-I9003_PDA-DDKF1.TAR
http://www.megaupload.com/?d=R8OC916M GT-I9003_PDA-XXKPE.tar

BETA:

http://www.megaupload.com/?d=ZIF7XUOB GT-I9003_PDA-XXKPH.tar ---> to root use THIS