Sunday, November 4, 2012

How To Clone And Backup Your Hard Disks/USB Drives/CDs & DVDs In Ubuntu 12.10/12.04/Linux Mint 13


In this tutorial, we will see how to clone hard disks, USB keys, CDs/DVDs, etc. in a system running Ubuntu/Linux Mint. There are many tools for copying data under Ubuntu, but in this article we will see only two.

1. Mondo Rescue

Mondo Rescue is a command line utility that allows users to backup/restore from/to hard disk partitions, usb flash drives, CD-R/RW disks, DVD disks, etc. To install Mondo Rescue in Ubuntu 12.10/12.04 or Linux Mint 13, open the terminal and run these commands:


wget ftp://ftp.mondorescue.org/ubuntu/`lsb_release -r|awk '{print $2}'`/mondorescue.sources.list
sudo sh -c "cat mondorescue.sources.list >> /etc/apt/sources.list" 
sudo apt-get update 
sudo apt-get install mondo

To start it, run this command:

sudo mondoarchive

Select now the media where you want to store your data:


Then follow backup instructions.

2. Clone Disks with the DD Command

You can also use the dd command line utility to backup your disks. Here are some examples:

- To clone a partition to another parition, use this command:

dd if=/dev/sda1 of=/dev/sda2 bs=4096 conv=noerror

- To copy a whole disk to another disk, use this command:

dd if=/dev/sda1 of=/dev/sda3 bs=1M conv=noerror

- If you want to copy your partition to an image file, use this command:

dd if=/dev/sda2 of=/path/to/backup-file.iso bs=4096 conv=noerror

- To copy a CD, run this command:

dd if=/dev/cdrom of=/path/to/backup-file.iso

- To copy a DVD, use this command:

dd if=/dev/dvd of=/path/to/backup-file.iso

Friday, November 2, 2012

Copy files on Linux shell that have been modified or added within the last X minutes



Here is a short script that helped me to copy files that have ben modified within the last 60 minutes to a new directory. The script uses a combination of the find and cp commands, it has to be run inside the directory that contains the new files.  In this example, I will copy all files that have been modified within the last 60 minutes from /var/www to the directory /var/newfiles, you can replace the timespan or target directory in the script to match your reqzĂșirements.
First, enter the /var/www directory which contains the files:
cd /var/www
Then execute this command to find the latest files and copy them to /var/newfiles:
find ./ -type f -mmin -60  -exec cp -pf {} /var/newfiles/ \;

Tiny Core Linux 4.7


Robert Shingledecker has released version 4.7 of Tiny Core Linux, a minimalist but extensible graphical Linux distribution for desktop computers. From the release announcement: "I am pleased to announce the release of Core 4.7. Change log: updated ondemand to support scm extensions and icons from both tcz and scm; updated wbar - to support scm ondemand icons; updated scmapps GUI for new ondemand maintenance and download option; updated scm-load - new option -wo ondemand download; updated tc-functions - added new support functions; updated scm to interface to updated scmaps GUI; new scm-run to support scriptable load and launch scm style extensions; updated filetool - new GUI access to filetool.lst, .xfiletool.lst, and backup options; updated filetool.sh to interface to updated filetool GUI; updated apps GUI - New Check Onboot Unneeded and changes required by ondemand scm support...." Download links: TinyCore-4.7.iso (12.0MB, MD5), CorePlus-4.7.iso (66.0MB, MD5).

Thunar Dropbox: Enable Dropbox Context Menu on Thunar File Manager



I have written about step-by-step post on how to get Dropbox "Copy Public Link" works on Thunar File Manager. I have found easier way to do that by installing Thunar Dropbox. Thunar Dropbox is a plugin for Thunar file manager which adds Dropbox context-menu.



Unfortunately, the plugin doesn't come with Dropbox itself and there is no PPA or any repository yet. So you have to download and compile it manually to get things done. So, please follow this guide to install Thunar Dropbox on your system. I assume that you have installed and configured Dropbox properly. Grab the ZIP archive of Thunar Dropbox here. Once downloaded, extract the file and open Terminal.

Installing dependencies
  • sudo apt-get install libthunarx-2-dev

Now, it's time to compile Thunar Dropbox:
  • ./waf configure --prefix=/usr
  • ./waf build
  • sudo ./waf install
Thunar Dropbox uses Python 2 as its interpreter. So, please make sure to use Python 2 when compiling.

Once installed, login and log out back in order to change to takes effect.

This plugin has been tested on Xubuntu 12.10 Quantal Quetzal and everything looks well :)

Thursday, November 1, 2012

Install Google Earth 7 In Ubuntu 12.10/12.04/Linux Mint 13

 
In this tutorial we will help you install Google Earth 7 in Ubuntu/Linux Mint. This latest version includes more exciting new features such as 3D imagery and tour guide. These features allow the user to view some cities in 3D which will be amazing for owners of HDTV and widescreen monitors. For more information about this latest release, click here.

The installation will be for the following Linux distributions:


  • Ubuntu 12.10/12.04/11.10
  • Linux Mint 13/12
  • Debian 6.0 Squeeze
Google Earth 7 Installation

In a 32-bit system, issue these commands from the terminal:

sudo apt-get install lsb-core 
cd /tmp 
wget -c http://goo.gl/YEqTf -O google-earth-stable_i386.deb 
sudo dpkg -i google-earth-stable_i386.deb
For 64-bit systems, run these commands:

sudo apt-get install lsb-core 
cd /tmp 
wget -c http://goo.gl/t6E3i -O google-earth-stable_amd64.deb 
sudo dpkg -i google-earth-stable_amd64.deb

You can also download Google Earth from its website here.

Install G-Xiria 3.0 Icon Theme From PPA In Ubuntu 12.10/12.04/Linux Mint 13



G-Xiria 3.0 is an amazing icon theme for Gnome Shell and Unity. In this tutorial we will help you install it under Ubuntu/Linux Mint from PPA. Here are some screenshots of G-Xiria 3.0 icons under Ubuntu Unity:




The PPA is supported by these distributions:

  • Ubuntu 12.10/12.04/11.10
  • Linux Mint 13
G-Xiria 3.0 Installation

Open the terminal and run these commands:

sudo add-apt-repository ppa:upubuntu-com/icons 
sudo apt-get update 
sudo apt-get install gxiria-icons

To enable it, use Gnome Tweak Tool or run this command:

gsettings set org.gnome.desktop.interface icon-theme 'G-Xiria'

Credits for this icon theme go here.