Howto: Configure Linux Warnquota for Fedora / Ubuntu / RHEL / CentOS

Hello,

In Linux, Most of the People Implement User Quota and Group Quota on Linux and The Might want to send e-mail warnings to the User by e-mail.

It Becomes very Important when the Mail Server is Running and You have implemented Disk Quota / User Quota / Group Quota for Users, So Its the First Basic requirement that We have to inform Users on Their Quota Usage at the Limit which we have configured.

So I am writing this article for Those Who have implemented a Quota and Do not know How to configure quota warning by e-mail.

quota

 

 

1. quota / quota-warnquota package must be Installed.

To Confirm :-

On RHEL / CentOS :- [root@tejas-barot-linux-support ~]# rpm -qa | grep quota # Output should not be empty

On Ubuntu :- root@tejas-barot-linux-support:~# dpkg –list | grep quota # Output should not be empty

2. Partition / Device must be mounted with usrquota

On RHEL / CentOS / Ubuntu :- [root@tejas-barot-linux-support ~]#mount | grep quota # Output should not be empty

3. Quota Must be Enabled on Partition.

4. If Above command is giving you proper output then you are good to go for Further Configuration.

5. Now Open /etc/warnquota.conf and Modify Following values as per your requirement.

Enjoy Disk Quotas :) Enjoy WarnQuota :) Enjoy Linux :) Enjoy Open Source :)

   MAIL_CMD        = "/usr/sbin/sendmail -t"
   FROM            = "linuxsupport@tejasbarot.com"
   SUBJECT         = NOTE: Your mailbox has exceeded allocatted disk space limits
   CC_TO           = "ahmedabad@tejasbarot.com"
   SUPPORT         = "linuxblog@tejasbarot.com"
   PHONE           = "000 111-2222"
   MESSAGE         = Your mailbox has exceeded the allotted limit\
    on this server|Please delete any unnecessary email in your mailbox on:|
   SIGNATURE       = This message is automatically generated by the mail system.

Once you are done with Configuring this Parameters Save and Exit from File

Description of above Configurations :-

MAIL_CMD = Command which used to send an e-mail.

FROM = Which E-Mail ID it will display to Recipient.

SUBJECT = Subject line which you want to Mention for Warning e-mail.

CC_TO = On Which ID it will Send Carbon Copy of the Mail.

SUPPORT =  Email ID which you have to mentioned as Support or anybody else where it should inform too.

PHONE = Of-course It will be a Number which you want to display as your Contact Number.

MESSAGE = Detailed Message OR Instructions Which you want to Send to the User. In Short, Body of the Mail.

SIGNATURE = Text which you have to set as your Signature.

6. Once It is configured properly, then To Send E-mail to all those users who exceeded quota then Execute Following command :-

Execute Command To Send E-Mail to All Those Users / Groups who exceeded quota or Grace Limit :-

[root@tejas-barot-linux-support ~]# warnquota

Execute Command To Send E-Mail to Particular User who exceeded quota or Grace Limit :-

[root@tejas-barot-linux-support ~]# warnquota -u <user-name>

Execute Command To Send E-Mail to Particular Group who exceeded quota or Grace Limit :-

[root@tejas-barot-linux-support ~]# warnquota -g <user-name>

7. That’s IT. Warning for Quota is configured.

Hope this will helps you all, If you face any issue regarding the same or its not working for your some how then please raise your questions / issues then comment down below.

If you like this then Please Click Google +1 Button and Show Your Support. Your Support will encourage me to write more articles.

All Linux User’s Blog Mobile Applications :- http://www.tejasbarot.com/download-mobile-apps/

Please Keep in Touch with Social Networking :- 

Facebook Page :- https://www.facebook.com/AllLinuxUsersBlog

Enjoy Disk Quotas :) Enjoy WarnQuota :) Enjoy Linux :) Enjoy Open Source :)

How To: Upgrade Ubuntu 12.04 to Ubuntu 12.10 | Precise Pangolin to Quantal Quetzal

Hello,

Tested Ubuntu 12.10 and After few updates i can say that it is going good. Now it looks very nice and very smooth.

In this How To, I will show you steps to Upgrade Ubuntu 12.04 Precise Pangolin to Ubuntu 12.10 Quantal Quetzal.

Here you will see a Upgrade Process from GUI, Follow Just few steps and Your upgrade will start immediately.

Follow the below steps to Upgrade from Ubuntu 12.04 to Ubuntu 12.10 :-

##> Things to consider

=> Internect Connection Needed Until it finishes Upgradation.

=> Make sure you have taken backup of all critical Data.

=> Try at your own risk.

1. Open Terminal and Execute Following command to open Update Manager, You need to be root or sudo privilege user :-

linux-forums@tejas-barot-linux-ahmedabad :~$ sudo update-manager

Update Manager Using Terminal
Update Manager Using Terminal

2. Now Click on “Settings”, Look at the Attached screenshot Below :-

Click on Settings
Click on Settings

3. In Selection of “Notify me of a new Ubuntu version:” select “For Any Version”, Below is the screenshot for the same :-

Select Notification of Version
Select Notification of Version

4. Make sure you settings look like below ScreenShot :-

Setting Verification
Setting Verification

5. Now click on “Check” to Refresh Update Window, Wait for a While until it finishes Update Procedure :-

Click on Check
Click on Check

6. Once Update Procedure Finish you will get a Notification for New Available Version and Then click on “Upgrade”, Please have a look at below screen shot :-

Click on Upgrade
Click on Upgrade

7. Once you click on Upgrade You will be prompted to Release notes and Again you have to click on Upgrade at that Screen too, below Screen shot will explain you :-

Final Upgrade
Final Upgrade

8. That’s It. Don’t Disconnect Internet Connection and Just Wait for Up-gradation to Finish and You are done. and You will be Upgraded to Ubuntu 12.10 Quantal Quetzal.

If this works for your then Please Click Google +1 Button and Show Your Support. Your Support will encourage me to write more articles.

Upgrade to Ubuntu 12.10 Quantal Quetzal and Enjoy Ubuntu 🙂 Enjoy Linux 🙂 Enjoy Open Source 🙂

[bug] grep -r [with / without piping ] Ubuntu 12.10 Quantal Quetzal

Hello Guyz,

Started Using Ubuntu 12.10 Quantal Quetzal and not much impressive with that atleast as of now. Think for Bugs before Using Ubuntu 12.10 Version.

It is bit slow and there are few bugs also I have faced, But Bug which is i am going to mentioned is from very widely used package and that Package name is “grep“.

I was just doing my regular activity on Ubuntu 12.10 Linux and Suddenly i was getting some unexpected result using grep command. and Specially it was totally wrong result when i was trying to get output using “grep” with pipe “|”.

So I thought to submit this bug to Ubuntu ( Lauchpad Just Before few minutes) and also thought to write for the same so user will get informed by the same bug.

Please find following Expected and Unexpected Behaviours of command :-

> Expected Behaviour of “grep -r” command

=> grep -r <grep-text> should not give any output if i do not specify path of file, and also cat tejasbarot.txt | grep -r “tejasbarot”
should not give any output if there is no matching text in tejas.txt

> Unexpected Behaviour of “grep -r” command

If I execute grep -r “tejasbarot123” without specifying file’s path it is searching in Current Working Directory and if i am search in this way cat tejasbarot.txt | grep -r “tejasbarot123” even if its not matching the text it is trying to search in all files of current working directory.

You can see complete bug status at this link :- https://bugs.launchpad.net/ubuntu/+source/grep/+bug/1071447

I hope this is informative to you.

If you like this then Please Click Google +1 Button and Show Your Support. Your Support will encourage me to write more articles.

All Linux User’s Blog Mobile Applications :- http://www.tejasbarot.com/download-mobile-apps/

Enjoy Linux 🙂 Enjoy Open Source 🙂

Howto: Installing Sticky Notes on Linux | Fedora | Ubuntu

Hello,

Now a days, Making Notes or Task List Is most important part in our life, We are used to Write Notes and Remembering task by Some Small Task Applications.

In Windows 7, Sticky Notes application is very famous and If you want similar kind of thing on Linux then XPad is your friend, I don’t say its complete alternative but its good one. My Experience is very nice with XPAD.

In Linux there are many task/notes applications, But I feel Only Two Applications are Fantastic for Task Related things.

1. Tomboy

2. XPAD

In This article I will explain that How to Install XPAD in Linux for Ubuntu and Fedora Both. Its very easy to Install Applications on Linux.

To Install XPAD (Sticky Notes ) on Linux | Fedora | Ubuntu then Please look at Following steps :-

1. Become root  to Install Xpad on Ubuntu or Fedora.

2. Execute Following command to install on Fedora :-
[root@tejas-barot-linux-ahmedabad ~]# yum install xpad

3. Execute Following command to Install on Ubuntu :-
root@tejas-barot-linux-ahmedabad:~# apt-get update
root@tejas-barot-linux-ahmedabad:~# apt-get install xpad

4.That’s It.

By Performing Above steps it will Install XPAD ( Sticky Notes ) On Linux.

Let me know if it works for you or not.

Please Click on Google +1 button and Add your ratings if this works for you and you like it.

Please let me know if this not working for you, Please Comment with Errors or you can send me mail with errors from About US Page

Enjoy Sticky Notes on Linux 🙂 Enjoy Linux 🙂 Enjoy Open Source 🙂 Enjoy XPAD 🙂

Howto: Installing TeamViewer 7 on Linux | Ubuntu 11.04 | Ubuntu 11.10

Hello,

Today I am sharing one of the common things which is very easy for Experience Linux Users.

This post is totally Targets those who is totally fresh or beginner in Linux And Ubuntu World.

I am writing this article to Install TeamViewer 7. Latest TeamViewer on Ubuntu 11.04 and 11.10 Linux.

For Those who using Fedora i will post for them too but after few days, As After Fedora 15 i switched to Ubuntu so it will take some time for me to Install, Test and Write Article for the same.

Perform on Your OWN RISK.

TO Install TeamViewer 7 on Ubuntu Linux, Please Perform Following Steps :-

1. Be Root User to Perform this step.
tejas@tejas-barot-linux-ahmedabad ~$ su –

2. Now Execute Following command to Download TeamViewer 7 :-
root@tejas-barot-linux-ahmedabad ~# wget -c http://www.teamviewer.com/download/teamviewer_linux.deb

Browser Users Can Click and Download from this link :- http://www.teamviewer.com/download/teamviewer_linux.deb

3. Once Download Completes Please Execute Following Command to Install TeamViewer 7:-
root@tejas-barot-linux-ahmedabad ~# dpkg -i teamviewer_linux.rpm

4. Now You will find TeamViewer 7 into :-

Applications -> Internet -> TeamViewer 7

5. Ubuntu Users with Unity can Search for TeamViewer.

6. That’s It.

7. To Run TeamViewer as root Follow howto from this link :- http://www.tejasbarot.com/2011/01/01/how-to-running-teamviewer-5-6-as-root-on-linux-fedora-ubuntu-rhel-cento/

Let me have feedback for the Same.

Please let me know if this not working for you, Please Comment with Errors or you can send me mail with errors from About US Page.

Please Click on Google +1 button and Add your ratings if this works for you and you like it.

Enjoy Linux 🙂 Enjoy TeamViewer on Linux 🙂 Enjoy Ubuntu 🙂