Installation
Download The Free AVG Advisor from this link to your Desktop.
cd~/Desktop
sudo dpkg -i avg75fld-r45-a0973.i386.deb
Launcher
Making a launcher to start AVG-
sudo rm -r /usr/share/applications/avggui.desktop
sudo nano /usr/share/applications/avg.desktop
add:
Code:
[Desktop Entry]
Name=AVG Antivirus
Comment=Antivirus
Exec=gksudo avggui &
Icon=/opt/grisoft/avggui/prog/pixmaps/avgico_big.png
Terminal=false
Type=Application
Categories=Application;System;
save and exit.
You can now start AVG by going to Applications tab ---> System Tools.
Friday, July 15, 2011
Monday, July 11, 2011
HOW TO SEE THE EXECUTION TIME OF YOUR PROGRAMME
This is a simple trick for the programmers.The main advantage of knowing your programmes's execution time is the optimization..once you have got the idea about the execution time, after that you can work on reducing it so that you can make your code much more efficient....
HOW TO DO THAT??
After saving your code, go to your terminal--
$gcc
$time ./a.out
*real is your execution time...
Real is wall clock time - time from start to finish of the call. This is all elapsed time including time slices used by other processes and time the process spends blocked (for example if it is waiting for I/O to complete).
User is the amount of CPU time spent in user-mode code (outside the kernel) within the process. This is only actual CPU time used in executing the process. Other processes and time the process spends blocked do not count towards this figure.
Sys is the amount of CPU time spent in the kernel within the process. This means executing CPU time spent in system calls within the kernel, as opposed to library code, which is still running in user-space. Like 'user', this is only CPU time used by the process.
HOW TO DO THAT??
After saving your code, go to your terminal--
$gcc
$time ./a.out
*real is your execution time...
Real is wall clock time - time from start to finish of the call. This is all elapsed time including time slices used by other processes and time the process spends blocked (for example if it is waiting for I/O to complete).
User is the amount of CPU time spent in user-mode code (outside the kernel) within the process. This is only actual CPU time used in executing the process. Other processes and time the process spends blocked do not count towards this figure.
Sys is the amount of CPU time spent in the kernel within the process. This means executing CPU time spent in system calls within the kernel, as opposed to library code, which is still running in user-space. Like 'user', this is only CPU time used by the process.
| Reactions: |
Monday, July 4, 2011
HOW TO RUN JAVA PROGRAMMES IN UBUNTU
I am going to tell you very basic steps of executing a java programme in ubuntu operating system.Well, this is mainly for the newbies.
HOW TO PROCEED??
$ java your_programme_name
Update:-
It may have happened that you guys will not able to find jdk in ubuntu repositories in that case follow this post- HOW TO INSTALL SUN JAVA IN UBUNTU
HOW TO PROCEED??
- Go to your synaptic package manager and write 'jdk' in your search box.
- Mark 'sun-jdk6' for the installation and press 'Apply' button.
- Now, open your editor (GEdit in my case) and write your java code.
- Save your code.
- Now,open your terminal and write-
- *Before executing this command, you have to be in directory where you have stored your java programme.
$ java your_programme_name
- You will be able to see your output in terminal.
Update:-
It may have happened that you guys will not able to find jdk in ubuntu repositories in that case follow this post- HOW TO INSTALL SUN JAVA IN UBUNTU
| Reactions: |
WHAT ARE THE REPOSITORIES IN UBUNTU??
Here, i am going to tell you about the different repositories of the Ubuntu operating system.If you are installing some software, it means you are accessing repository.
So, first question in your mind will be --
WHAT IS REPOSITORY??
There are literally thousands of Ubuntu programs available to meet the needs of Ubuntu users.
Many of these programs are stored in software archives commonly referred to as repositories.
Repositories make it very easy to install new software onto Ubuntu using an Internet connection, while also providing a high level of security, as each program available in the repositories is thoroughly tested and built specifically for each version of Ubuntu.
ORGANIZATION OF REPOSITORY-
So, first question in your mind will be --
WHAT IS REPOSITORY??
There are literally thousands of Ubuntu programs available to meet the needs of Ubuntu users.
Many of these programs are stored in software archives commonly referred to as repositories.
Repositories make it very easy to install new software onto Ubuntu using an Internet connection, while also providing a high level of security, as each program available in the repositories is thoroughly tested and built specifically for each version of Ubuntu.
ORGANIZATION OF REPOSITORY-
- Main - Officially supported software.
- Restricted - Supported software that is not available under a completely free license.
- Universe - Community maintained software, i.e. not officially supported software.
- Multiverse - Software that is not free.
* The Ubuntu Install CDs contain software from the "Main" and "Restricted" components of the repositories
| Reactions: |
Subscribe to:
Posts (Atom)




