Tuesday, 3 January 2012

How to Schedule Torrents in Ubuntu

Hi friends, I have already given a tutorial on Scheduling Torrents in Windows but what about Linux.Here it is.


Bittorrent client (Eg:Deluge), Scheduled Tasks linux application (Get both from Synaptics Package Manager)

1) Disable the password prompts

Open Terminal and type

sudo visudo

Then find the following line

%admin ALL=(ALL) ALL

and change it to


Then press ctrl-x and save it.

2) Scheduling torrents

Open Scheduled Tasks and create 3 tasks.

a) For connecting to internet, command : sudo pon dsl-provider
b) For disconnecting, command : sudo poff dsl-provider
c) For shutdown, command : sudo shutdown -h +1

Here +1 means computer shutdowns when 1 min has passed after running the task.(You can stop the shutdown by pressing ctrl-c)

Deluge Scheduling (Optional)

Deluge comes with simple Scheduler features that you can access through the Preferences. In Deluge, go to Edit > Preferences > Plugins, then find Scheduler. Tick the box next to "Scheduler" and install plugin.Then access Scheduler from sidebar.You'll see a grid of green boxes light up. The grid runs Monday through Sunday, midnight to midnight (or 0:00 to 23:59), one box per hour. Here's how it works:

    * Dark green boxes indicate that Deluge will download and upload at full speed (or whatever you've set as its full speed).
    * Yellow green boxes indicate limited download and upload rates.
    * Red boxes indicate that Deluge will not download or upload any content.

Sunday, 1 January 2012

Recover NTFS Partition selected as Swap Partition

During installation of Ubuntu, it simply asks you to provide a partition for swap.Thats when you mark a fully loaded NTFS partition as swap.

When you check Windows, bam the drive disappeared.Don't lose your hopes now there are many ways to recover your data back.

Now here is one such method.
But you need to have enough free space in your hard disk (Much more than the capacity of the partition you are trying to recover).If not, an external hard disk would do.

1) Disable the swap partition

To disable all the swap partitions on your computer you can use the following command in the terminal.

sudo swapoff –a

2) Convert the swap partition to NTFS

a) Gain administrative privilege by typing the following in the terminal
sudo su

b) Then type cfdisk

c) Select the partition with file system type Linux Swap then select Type and press Enter.

d) Then press any key followed by typing 7 (for NTFS) and press Enter.

e) Select Write.

3) Use Recover My Files or some other recovery software to retrieve the files.

Use Recover My Files from Windows to search and save all your lost files to another drive.