Friday, 17 May 2013

Automating tasks in UBUNTU 13.04 with the help of Gnome Schedule

Manually running the same tasks over and over again with your computer can be tiring and sometimes boring. That’s why some programs and tools were created by system administrators to automate repetitive tasks. For example, remembering to shutdown your computer every night at 10 PM should be automated. Windows and Mac OS X users may have similar tools that work to execute defined tasks at a pre-defined time or after an event occurs.
Linux systems do have Cron by default, but it’s not very user-friendly and wasn’t intended for beginners. In fact, some advanced users still don’t completely understand how to use and manage Cron in Linux systems.

There are single-purpose tools that allow you schedule tasks for only a particular event or command, like shutting down your computer. These single-purpose tools are not very useful and don’t last long.
Cron on the other hand lets you schedule basically any task or events, but it isn’t user friendly. It can be managed from the command line using crontab editor.
So, back to the question. Is there a better task scheduler in Ubuntu? Here’s that I want to say. If you need a simple yet power tasks scheduler in Ubuntu, you may want to install Gnome-Schedule. Gnome Schedule is a graphical user interface (GUI) tool that leverages the power of Cron. It brings together the power of Cron with the ease of use of the GUI. Instead of scheduling tasks using the command line, you can use Gnome Schedule to accomplish the same goal.
Below, I will show you how to install and use Gnome-Schedule in Ubuntu 13.04 to automate tasks easily.
To get started with install Gnome Schedule, run the commands below.
sudo apt-get install gnome-schedule

After installing it, open it as root or administrator. Do to that, run the commands below to start Gnome Schedule as admin.
sudo gnome-schedule

Opening Gnome Schedule as root or administrator lets you schedule system-wide tasks that require admin rights. If you scheduled a system task from Gnome schedule launched as your account and the task  requires administrative rights, it will fail.
To schedule a recurrent task, click ‘Next – > Recurrent task.

gnome_schedule_ubuntu1304

Next, type the description of the task and the command as shown below. Most Linux commands are in these locations:
/sbin/   /usr/bin  /usr/local/bin

gnome_schedule_ubuntu1304_1

Another thing to watch for is the time and date settings. Make sure to use the military time format from 0 to 24 hour style. So 10 PM is going to be 22:00 hours. Also, the * in the Day, Month and Weekday field represents all. Or every Day, Month, and Weekday. The * tells Cron to run continually these selected fields.
When you’re done, click ‘Add’

gnome_schedule_ubuntu1304_2

Now the task is scheduled and ready to be executed.

That’ it! So, the next time you’re looking for a simple task scheduler in Ubuntu, check out Gnome-Schedule. It can be use the schedule any tasks, not just shutting down your computer. Also, remember to look in /sbin/   /usr/bin/   /usr/local/bin for commands.  For example, to launch Firefox at 1PM daily, type this command in the command field.
/usr/bin/firefox

Enjoy!
For further queries,mail me :- sagar.dagdu@gmail.com
How useful was this blog to you?
Please leave comments below..

Delete Junk, Improve Performance And Increase Privacy With BleachBit In Ubuntu 13.04 Raring Ringtail

Image
Here’s one feature Windows users probably already know about – using Disk Cleanup, Windows user can reduce the number of unnecessary files on their hard drive to free up disk space and improve performance. This feature has been there since Windows XP and it’s great to have if one needs to reclaim some disk space.
Now here’s a question for Linux user. Is there a similar tool for Linux users, including Ubuntu? The short answer is yes. There’s a similar tool for Linux systems called BleachBit. This tool lets you free up disk space, reduce the number of unnecessary files, improve system performance and help you maintain your privacy by removing temporary internet files.
Ever heard of CCleaner? No, Yes. Maybe? Well, BleachBit is more like CCleaner in that it’s not a built-in Windows tool but a software that cleans and optimizes Windows. If CCleaner is the number tool for cleaning your Windows PC, then BleachBit might just be the number tool for cleaning Linux systems.
So, if you’re from the Windows’ world and looking for similar tool to help remove temporary internet files and junk for your Linux machine, look no further than BleachBit. It supports both Windows and Linux machine, and this brief tutorial is going to show you how to install and use it in Ubuntu 13.04 and previous.
To get started with BleachBit, go to the Download Page and select a version for your system. Ubuntu machines will need the .deb package. http://bleachbit.sourceforge.net/download/linux
After downloading, you may use Ubuntu Software Center to install it or run the commands below.
wget http://katana.oooninja.com/bleachbit/sf/bleachbit_0.9.5_all_ubuntu1210.deb
Next, run the commands below to install it
sudo dpkg -i bleachbit*.deb; sudo apt-get -f install
After installing, go to Unity Dash and launch BleachBit. Launching BleachBit from Dash opens it with regular user rights. For better results, launch BleachBit as root by running the commands below.
sudo bleachbit
When it opens, select the boxes of the field you wish to clean and hit the click button.
bleachbit_clearn_ubuntu
If you wish to preview before cleaning, use the preview button.
bleachbit_clearn_ubuntu_1
That’s it! I hope this helps getting rid of junk from your machine.
Enjoy!
For further queries,mail me : sagar.dagdu@gmail.com
How useful was this blog to you?
Please comment your opinions.
Thanks!

Easy steps for installing LAMP (Linux, Apache, MySQL and PHP) in Ubuntu 13.04

Want LAMP (Linux, Apache, MySQL and PHP) in Ubuntu 13.04?
Here’s the quickest way to get LAMP (Linux, Apache, MySQL and PHP) installed and verified in Ubuntu 13.04 Raring Ringtail. LAMP stands for Linux, Apache, MySQL, and PHP. It is a combination of these four that power more than half of the websites online.
The L in LAMP stands for Linux and it’s the Linux operating system that runs the other packages. The A is for Apache and it is a website package. Webservers serve webpages when they’re requested by the web clients or browsers.
For example, if you type http://sagardagdu.wordpress.com in your web browser and press enter, the pages you see on your screen were served by the webserver which is most likely Apache. There’s a whole lot more that goes in the background but at least you get the picture.
The M in LAMP is for MySQL database server. It is the package or server that stores and organizes references to the information the webserver needs. There’s a lot more to that, but you get the picture.
The last is P is the package that makes it possible for all these different parts to work together. It is like the glue that glue them all together. I hope you get the picture. This brief tutorial is going to show you how to easily install these packages and verify they are working in Ubuntu 13.04 Raring Ringtail.
To get started, press Ctrl – Alt – T on your keyboard to open the terminal. When it opens, run the commands below to install them all with a single command.
sudo apt-get install lamp-server^
Image
To verify if Apache is working, just type localhost in your web browser and if you get something like what on the image below, then Apache Webserver is working.

To test if PHP is working, run the commands below to create a test page at the root of the webserver directory.
sudo gedit /var/www/test.php
Then copy and paste the line below into the file and save it.
<?php phpinfo();?>

Now, type the link into your web browser, and if you see the something like the image below, then PHP is functioning.
http://localhost/test.php

Finally, to verify if MySQL is functioning, run the commands below. You must type the password you created for MySQL during the installation to sign in. If you’re able to sign in, then MySQL is functioning ok.
mysql -u root -p
Of course you know Linux is working or else you wouldn’t be able to do any of the things above.
Enjoy!
For further queries,mail me : sagar.dagdu@gmail.com
How useful was this blog to you?
Please comment your opinions.
Thanks!