Re: [ilugd] Script to run at login but for non-root users only

2010-11-12 Thread Chirag Anand
You can use the local versions .profile and .bashrc in the user's $HOME
which won't affect the whole system.

On Fri, Nov 12, 2010 at 1:14 PM, Amit Sharma  wrote:

> Hi,
>
> I want to run a script as soon as a non-root users logs in.
>
> For that if I make a entry in /etc/proile then it runs for root also.
>
> I also tried it in /etc/bashrc but still it runs for root user as well.
>
> I do not want to make individual entry in all user's home directory in
> .bash_profile as the numbers of users is about 100.
>
> Please help.
>
> regards,
> Amit
>
>
>
> ___
> Ilugd mailing list
> Ilugd@lists.linux-delhi.org
> http://frodo.hserus.net/mailman/listinfo/ilugd
>



-- 
Regards
Chirag Anand

Blog :http://techfreaks4u.com/blog
anything weird is worth a try...
___
Ilugd mailing list
Ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd


[ilugd] Open Standards policy finalized--major victory for the FOSS community

2010-11-12 Thread Venkatesh Hariharan
The open standards policy has been finalized and it incorporates many of the
suggestions made by the FOSS community in India. In the previous draft dated
25/11/2009, our major objection was to section 4.1.2 of the policy which
said,

"4.1.2 The essential patent claims necessary to implement the Identified
Standard should preferably be available on a Royalty-Free (no payment and no
restrictions) basis for the life time of the standard. However, if such
Standards are not found feasible and in the wider public interest, then RF
on Fair, Reasonable and Non Discriminatory terms and conditions (FRAND) or
Reasonable and Non Discriminatory terms and conditions (RAND) could be
considered."

Our comment on this section reads:

The usage of terms like “preferably” in a section titled, “Mandatory
Characteristics”
weakens the section and could even render it meaningless. Mandatory
characteristics should be laid
out clearly and unambiguously,

The term “essential patent claims,” is meaningless because a standard cannot
be implemented
partially. Therefore, the ENTIRE standard should be royalty-free and not
just the "essential" parts of it. In other words, ALL patent claims
necessary to implement the standard should be royalty-free. Also, RF on
FRAND/RAND is self-contradictory. If a Standard is Royalty Free (RF) then it
cannot be RAND. Therefore, the wording of this section should be changed to
"ALL patent claims necessary to implement the Identified Standard should be
available on a Royalty-Free (no payment and no restrictions) basis for the
life time of the standard."

As you can see from the extract below, the points mentioned above have been
incorporated In the recently finalized policy. This section now reads:

4.1.2 The Patent claims necessary to implement the Identified Standard shall
be made available on a Royalty-Free basis for the life time of the Standard.

Overall, I'd say this is a major victory for the Indian FOSS community and
more than three years of hard work have paid off. The file can be downloaded
from:

http://egovstandards.gov.in/approved-standthe suggestions
mards/egscontent.2010-11-12.9124322046/at_download/file

or from:

http://egovstandards.gov.in(click
on the links on the top left hand side).

Venky
___
Ilugd mailing list
Ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd


Re: [ilugd] Open Standards policy finalized--major victory for the FOSS community

2010-11-12 Thread Mahesh T. Pai
Venkatesh Hariharan said on Fri, Nov 12, 2010 at 05:41:52PM +0530,:

 > The open standards policy has been finalized and it incorporates many of the
 > suggestions made by the FOSS community in India. In the previous draft dated

A big thanks to all those who made this happen. 


-- 
Mahesh T. Pai   ||  http://[paivakil|fizzard].blogspot.com
End Users are just friends who haven't submitted a patch yet.

___
Ilugd mailing list
Ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd


Re: [ilugd] Script to run at login but for non-root users only

2010-11-12 Thread Mahesh T. Pai
Amit Sharma said on Thu, Nov 11, 2010 at 11:44:10PM -0800,:

 > For that if I make a entry in /etc/proile then it runs for root also.

Files in the /etc/ directory are system wide configuration files. 

The solution is already mentioned, 


-- 
Mahesh T. Pai   ||  http://[paivakil|fizzard].blogspot.com
That men do not learn much from the lessons of history is the most
important of all the lessons that history has to teach us.
--Aldous Huxley

___
Ilugd mailing list
Ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd


Re: [ilugd] Open Standards policy finalized--major victory for the FOSS community

2010-11-12 Thread Gaurav Mishra
On Fri, Nov 12, 2010 at 7:32 PM, Mahesh T. Pai  wrote:

> Venkatesh Hariharan said on Fri, Nov 12, 2010 at 05:41:52PM +0530,:
>
>  > The open standards policy has been finalized and it incorporates many of
> the
>  > suggestions made by the FOSS community in India. In the previous draft
> dated
>
> A big thanks to all those who made this happen.
>
>

Very true, it's a appreciative effort. Kudos.


Regards,
Gaurav Mishra

# Blog: http://www.gmishra.com
# Twitter: http://www.twitter.com/gmishra
# LinkedIn:http://www.linkedin.com/in/gauravmishra7
___
Ilugd mailing list
Ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd


Re: [ilugd] Script to run at login but for non-root users only

2010-11-12 Thread Raj Mathur (राज माथुर)
On Friday 12 Nov 2010, Amit Sharma wrote:
> I want to run a script as soon as a non-root users logs in.

If your script is named "/usr/local/bin/foo.sh", try this in 
/etc/profile:

# Only run foo.sh for non-root users
[ `id -u` -ne 0 ] && /usr/local/bin/foo.sh

Regards,

-- Raju
-- 
Raj Mathurr...@kandalaya.org  http://kandalaya.org/
   GPG: 78D4 FC67 367F 40E2 0DD5  0FEF C968 D0EF CC68 D17F
PsyTrance & Chill: http://schizoid.in/   ||   It is the mind that moves

___
Ilugd mailing list
Ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd


Re: [ilugd] Open Standards policy finalized--major victory for the FOSS community

2010-11-12 Thread Sudhanwa Jogalekar
+1

On Fri, Nov 12, 2010 at 7:02 PM, Mahesh T. Pai  wrote:
> Venkatesh Hariharan said on Fri, Nov 12, 2010 at 05:41:52PM +0530,:
>
>  > The open standards policy has been finalized and it incorporates many of 
> the
>  > suggestions made by the FOSS community in India. In the previous draft 
> dated
>
> A big thanks to all those who made this happen.
>
>
> --
> Mahesh T. Pai   ||  http://[paivakil|fizzard].blogspot.com
> End Users are just friends who haven't submitted a patch yet.
>
> ___
> Ilugd mailing list
> Ilugd@lists.linux-delhi.org
> http://frodo.hserus.net/mailman/listinfo/ilugd
>



-- 

~!~!~!~!~!~!~!~!~!~!~!~!~!~!~!~!~!~!~!~!~!~!
www.projects4students.com

___
Ilugd mailing list
Ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd


Re: [ilugd] Script to run at login but for non-root users only

2010-11-12 Thread Aman Thakur
I think raju gave the exact answer you needed.:) and even the vivek's
answer was quite reasonable.Even i am gonna try this scripts.thanks
guys:)
___
Ilugd mailing list
Ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd


Re: [ilugd] LVM and ext3 size relationship

2010-11-12 Thread Sirtaj Singh Kang


On 08-Nov-10, at 4:16 PM, Sirtaj Singh Kang wrote:
[snip]



I'd like some assistance in understanding the relationship between  
the size of an LVM2 logical volume and ext3.





While nobody appears to have an answer to my question (if a good  
answer exists), I did some more hunting. For those who are interested,  
this blog post is worth a look:


http://www.lisnichenko.com/articles/ext3-file-system-overhead-disclosed-part-2.html

Unfortunately it doesn't address my specific situation, ie it doesn't  
explain what happens during resize, but it's still a useful summary.


-Taj.

___
Ilugd mailing list
Ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd


Re: [ilugd] Need Linux People Resumes

2010-11-12 Thread Aman Thakur
Any scope for the freshers with good knowledge? I am working on the platform
for the last 3-4 years at and college.
___
Ilugd mailing list
Ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd


Re: [ilugd] LVM and ext3 size relationship

2010-11-12 Thread Rakesh Kumar
On Sat, Nov 13, 2010 at 2:07 AM, Sirtaj Singh Kang wrote:

>
> On 08-Nov-10, at 4:16 PM, Sirtaj Singh Kang wrote:
> [snip]
>
>
>>
>> I'd like some assistance in understanding the relationship between the
>> size of an LVM2 logical volume and ext3.
>>
>>
>
> While nobody appears to have an answer to my question (if a good answer
> exists)

I think nobody is here to teach you, but as far as it is concerned to solve
any problem, i have already answered you.

> , I did some more hunting. For those who are interested, this blog post is
> worth a look:
>
>
> http://www.lisnichenko.com/articles/ext3-file-system-overhead-disclosed-part-2.html
>
Very good article. Again i would say there is nothing special in this
article. If you know little bit mathematics basics of file system you can
perform it. For more detail on this topic i would prefer you to take a look
at book "Operating System Concept by Galvin". You would definitely like it
and probably you would find the remedy.

> Unfortunately it doesn't address my specific situation, ie it doesn't
> explain what happens during resize, but it's still a useful summary.
>
> Look there is nothing special in this. Operating Systems has a very special
algorithm to handle resizing of file systems which take care of files
written in the it.
Think of it once that how do we access any file on the disk?
Every file system has a link associated with the file to access it, more
likely the info about the files in a file system is stored in a table.
Nowadays dynamic file systems are also in use(/proc directory in Unix and
Linux), but we should talk on general scenarios here.
A file system is devided in smaller unit called block, particularly ext3 has
the block size of 4kb.
When we perform resizing OS first look in the file system table and then
perform the resizing operation. It does not gurantees for the protection of
data, however.
It was a brief of file system resizing, but it has a lot more to think and
discuss upon. I would suggest you to read that book.
And yes don't get confuse between LVM and et3 these are two different things
and are controlled by each other.

>
> -Taj.
>
> ___
> Ilugd mailing list
> Ilugd@lists.linux-delhi.org
> http://frodo.hserus.net/mailman/listinfo/ilugd
>



-- 
Regards
RAKESH
"Allow Your Own Inner Light to Guide You"
___
Ilugd mailing list
Ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd


Re: [ilugd] LVM and ext3 size relationship

2010-11-12 Thread Raj Mathur (राज माथुर)
On Saturday 13 Nov 2010, Rakesh Kumar wrote:
> I think nobody is here to teach you, but as far as it is concerned to
> solve any problem, i have already answered you.

With all due respect, you haven't.  Taj asked a very specific question:

> If I want to grow an ext3 fs by size X in mb, how do I calculate the
> size Y by which I have to first resize the LVM volume on which it
> resides? Most sources I've read online say something like "make it a
> little bigger just to be safe" but I'm hoping there is a better and
> more accurate formula than that.

I haven't seen an answer on this list so far.  And if Taj, with his 
gazillions of years of experience, can't come up with an answer, I doubt 
if there are too many people on this list with the necessary technical 
qualifications who can.  I know I certainly can't.  I was hoping one of 
the deep-dive and/or broad implementation experience types like Ashish 
or Karanbir would have an idea, but given their lack of response, I 
assume they're as clueless as the rest of us on this matter.

Please note that "read up on OS theory" and "read up on LVM 
fundamentals", while useful in themselves, are no use in closing the 
issue that was raised.  He wanted a formula.  He has not got a formula.  
End of story.

Regards,

-- Raju
-- 
Raj Mathurr...@kandalaya.org  http://kandalaya.org/
   GPG: 78D4 FC67 367F 40E2 0DD5  0FEF C968 D0EF CC68 D17F
PsyTrance & Chill: http://schizoid.in/   ||   It is the mind that moves

___
Ilugd mailing list
Ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd