[ilugd] [Commercial] Linux Open Source Jobs Site Announced

2011-06-08 Thread Swapnil Bhartiya
We are launching a section of Muktware[1] called - Linux and Open Source 
Jobs. Under this section, you can search and apply for Linux and Open 
Source Jobs. If you are an employer or looking for full time employees, 
experts for contract-based projects, freshers and trainees, you can post 
job openings and find right candidates for your firm.


If you are an engineering student looking for Jobs in the Linux and Open 
Source industry, you can search for appropriate jobs and apply with one 
click.


The service is available for free of cost.

Why to advertise your jobs with Muktware?
Muktware has a massive reach in the global market, with a strong 
presence in India. So, your advertisements will reach out to a wider 
audience. Since Muktware is an web-magazine we reach out to those who 
are not aware of regional or Linux specific job sites. Thus Muktware's 
jobs site offers you a coverage wider than any jobs only site can offer.


Its extremely easy to post jobs on Muktware. Just register with us and 
start posting jobs. Select Employer as the Account time during 
registration to be able to post jobs.


[1] http://www.muktware.com/user
[2] http://jobs.muktware.com/
[3] Register http://www.muktware.com/user

If you have any query, please write to us at editor at muktware.com

--
bSwapnil Bhartiya/bbr
Editor: Muktware.combr
Skype: No Way...its non-free. Looking for alternativesbr
Facebook: http://facebook.com/mukwtarebr
Twitter: http://twitter.com/muktware

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


Re: [ilugd] Fork Bomb and User Limit: Some Serious Concerns.

2011-06-08 Thread Raj Mathur (राज माथुर)
On Wednesday 08 Jun 2011, Ankit Chaturvedi wrote:
  Is there a way we can tweak the ulimit - user limit for all users.
  http://www.linuxforums.org/forum/security/90836-user-limits-linux.h
  tml - wasn't so helpful.
 
 Try 'setrlimit' to set RLIMIT_NPROC to some agreeable value. NPROC is
 the number of processes a user can create. Limiting them will
 atleast leave you with enough resources to start a shell and kill
 the offending process (bash in this case).
 ulimit will not work if you don't have pam_limits module for your
 kernel (it's not built by default). Try loading pam_limits module
 manuallly and see if the limits in /etc/security/limits.conf are
 honored then.
 
 There is no definite solution to preventing a fork_bomb as such, but
 patches like this http://grsecurity.net/ may help you finding which
 user started the fork bomb, though it might be an overkill for
 single user systems.

So will any of these solutions work when the user is logged in as root?

In general, how are you going to prevent root from destroying your 
system?

-- Raj
-- 
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] Fork Bomb and User Limit: Some Serious Concerns.

2011-06-08 Thread Ashish SHUKLA
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

(राज माथुर) writes:
 On Wednesday 08 Jun 2011, Ankit Chaturvedi wrote:
  Is there a way we can tweak the ulimit - user limit for all users.
  http://www.linuxforums.org/forum/security/90836-user-limits-linux.h
  tml - wasn't so helpful.
 
 Try 'setrlimit' to set RLIMIT_NPROC to some agreeable value. NPROC is
 the number of processes a user can create. Limiting them will
 atleast leave you with enough resources to start a shell and kill
 the offending process (bash in this case).
 ulimit will not work if you don't have pam_limits module for your
 kernel (it's not built by default). Try loading pam_limits module
 manuallly and see if the limits in /etc/security/limits.conf are
 honored then.
 
 There is no definite solution to preventing a fork_bomb as such, but
 patches like this http://grsecurity.net/ may help you finding which
 user started the fork bomb, though it might be an overkill for
 single user systems.

 So will any of these solutions work when the user is logged in as root?

 In general, how are you going to prevent root from destroying your 
 system?

% getent passwd root
root:x:65535:65535:root:/root:/bin/sh

Or, maybe SELinux :)

- -- 
Ashish SHUKLA

“UNIX is user-friendly, it just chooses its friends.” (Andreas Bogk)
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.17 (FreeBSD)

iQIcBAEBCgAGBQJN7yWzAAoJEMdGz6nnT6Sw1K4P/jdPtb2Gp9QspdEY85lQCGpS
yX+6V/tZnwNb/hb/FOWdeX0KDOrFh1FZl2Np21CkMlI/yWgRDpXQ6rgwo+CRWlLu
u+O8j7E65LUs3/wtRRdw7kfU+OtagcfUXmUKbWU+yhnMIaFlvaVKRVOBTOj8H5q5
cnoOkyc27PAjC2WBAHlf7RMAZ9bEhpXufr100ZsFbpVuiHnAtG3xOE5Fc4BOPPQu
ZQkwoEWk1Gb9RM8KeBPI8tfaC4StDtVEuxoKKPDbD92Rq7rd/Ce6VszfO1AOj3vh
Aw9/gUAAoyYn0LUvApABLM4hLVYpsBQInBvMKrgoySha2Oj6vHR7HytUvxNoFx/4
ZA4xkZvgeUkDsCG2lbamWuzQMasxGm9lvFIokAOqDFyXZSRvb1AtnTYDkvzAhp8s
P3G6kib9YyFNRbboG7hyrugZNMHJrRXK4DC2O4m48hhKjxrub6gAsnlBa50zufpv
EZi82izHKwHQyQUIH/zxda8aQFbfg/pONzQb/rXfIuADqyW7j8uB9iM0sVvNUWEn
XaY/AWPs0jrnMP2uL90FIjl+W6A8cIqmgrlur4NQN3Nf3l2vdSFTnuclvkCyvXST
sjjt2V21j9hFCK3R+WLBVFnl7TcqGJMHZXKEpogEv38WzS9a2sUKlqZBaonbsdu+
KupDTWphaygPtFgSOn2M
=FwOs
-END PGP SIGNATURE-

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


Re: [ilugd] Fork Bomb and User Limit: Some Serious Concerns.

2011-06-08 Thread Ankit Chaturvedi
2011/6/8 Raj Mathur (राज माथुर) r...@linux-delhi.org

 On Wednesday 08 Jun 2011, Ankit Chaturvedi wrote:
   Is there a way we can tweak the ulimit - user limit for all users.
   http://www.linuxforums.org/forum/security/90836-user-limits-linux.h
   tml - wasn't so helpful.
 
  Try 'setrlimit' to set RLIMIT_NPROC to some agreeable value. NPROC is
  the number of processes a user can create. Limiting them will
  atleast leave you with enough resources to start a shell and kill
  the offending process (bash in this case).
  ulimit will not work if you don't have pam_limits module for your
  kernel (it's not built by default). Try loading pam_limits module
  manuallly and see if the limits in /etc/security/limits.conf are
  honored then.
 
  There is no definite solution to preventing a fork_bomb as such, but
  patches like this http://grsecurity.net/ may help you finding which
  user started the fork bomb, though it might be an overkill for
  single user systems.

 So will any of these solutions work when the user is logged in as root?


Yes, RLIMITS are enforced by the kernel so are applicable to all users
including root. GrSec patches too add functionality to kernel so I assume it
should be the same.




 In general, how are you going to prevent root from destroying your
 system?


Via kernel based limits, SELinux etc. However, a root user can modify
rlimits so there is very little one can do to prevent damage. SELinux/Grsec
patches can prevent this to some extent through least privilege access
control policies. In other words, don't hand out root account or sudoer priv
to everyone. In Ubuntu, remove all regular users from sudoers and add them
to a less privileged group, keeping a few power users in admin/root group.



 -- Raj
 --
 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




-- 
-- 
Ankit Chaturvedi
GPG: 05DE FDC5 468B 7D9F 9F45 72F1 F7B9 9E16 ECA2 CC23
http://www.google.com/profiles/ankit.chaturvedi
___
Ilugd mailing list
Ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd


Re: [ilugd] Fork Bomb and User Limit: Some Serious Concerns.

2011-06-08 Thread Gora Mohanty
2011/6/8 Ashish SHUKLA ashish...@lostca.se:
[...]
 So will any of these solutions work when the user is logged in as root?

 In general, how are you going to prevent root from destroying your
 system?

 % getent passwd root
 root:x:65535:65535:root:/root:/bin/sh

I was going to suggest the L33T toor user, but had refrained.

 Or, maybe SELinux :)

Have never understood SELinux: Isn't there only one command:
   setenforce 0

Regards,
Gora

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


Re: [ilugd] [OffTopic] Preview of the new website

2011-06-08 Thread Shamail

On 08/06/11 9:34 AM, Anupam Jain wrote:
On Tue, Jun 7, 2011 at 2:25 PM, Shamail sham...@inbox.com 
mailto:sham...@inbox.com wrote:


On 07/06/11 1:47 PM, Raj Mathur (राज माथुर) wrote:

On Tuesday 07 Jun 2011, Shamail wrote:

I've been working on a project from some time,
http://tunesdiary.com

Its now open for preview, please have a look at it and
tell me the
goods and the bads.
Hope you like my work.

Does this have anything to do with FOSS, even tangentially?

Might be, site uses Django, python, jquery and more OSS libraries,
runs on ubuntu server... (atleast powered by OSS)
My apologies if you thought it was for marketing reasons.. Its not
yet released even.


How about making this atleast marginally FOSS related by telling us 
something about the technical details of the implementation, so that 
it will help others using FOSS for web development. What are the FOSS 
components you are using and why? Where is the site hosted, what are 
the memory / processor requirements, and would you recommend that 
host? How many people in your team? How much development time? What's 
the business model here? Anything else you might think is relevant :)


-- Anupam


Hi,

  Yes sure.. So this one is basically built completely upon free 
software. I being a fan of OSS opted for choosing things that minimize 
the cost.


It uses Django with a lot of third-party supporting libraries (like 
boto, twitter, oauth, eyeD3, titlecase, pyquery, mad, PIL to name a 
few), primarily for all the controllers that you see..

A little into for newbies in Django:
Dango is an MTV(Model, Template, Viewer) framework that lets you 
separate your business logic with HTML/CSS as well as the data models. 
Having said that, it follows DRY (Don't repeat yourself) principles. As 
a result, the complete python code for this site is under 2000 lines. 
For those familiar with rails, its pretty much like rails. (Check out: 
http://www.youtube.com/watch?v=PLUS00QrYWw )


My initial thoughts to cook this up were 2 only, rails or django. As I 
am quite much comfortable in python, the choice became obvious. Rails 
demanded one month before I can start the project on, though I was very 
curious to learn it.. (might be next time). They say, rails have a very 
vibrant community, but now I can very well say, Django is equally good. 
http://groups.google.com/group/django-users supported me a lot.


Further I am using MySQL for the DB layer. I earlier planned MongoDB for 
this, but then I thought it'll fall under the category of premature 
optimization so dropped the plan.

MySQL everyone know, for MongoDB (http://www.mongodb.org/):
MongoDB is a no-sql database which offers features like 
auto-shrading, map/reduce, gridFS. Its very fast, supports replication, 
and good thing is, its free! If you want to use it with Django, you 
might want to consult pymongo (python driver for MongoDB) and 
mongoengine. A Django like ORM for Mongo. Definitely if you are looking 
forward to a good scalable solution right from the start, give a shot to 
Mongo, There might be something good waiting out there for you. I am 
using this in another project and very happy with it.
Apart from this, other good nosql DB that you might want to try is 
Apache Cassendra which is Java based. But APIs are available for almost 
all the languages.


For playing music and multimedia related stuff, the site uses a 1x1px 
FLEX applet hidden in the page.
Flex is an open source SDK for building flash movies and better 
suited for development rather designing.



I am running this currently on Joyent cloud (reason: they give you 10TB 
free bandwidth each month), because this is bandwidth hungry, I couldn't 
afford Amazon ($0.10 per GB).


The system has 256MB of RAM, a processor giving me a performance of 
1.5GHz single core kinda. So its very short in resources. So for this, I 
opted out of apache, switched to lighttpd, using Django over fastcgi 
running in multithreaded mode instead of prefork mode. The server uses 
Ubuntu 10.10 server (reason: I was most familiar with this, although 
they say, CentOS is a wiser choice for server, but ubuntu never let me 
down.)


Guess what, its working for me and I am still expecting some real good 
traffic on this very server in $16.


For those unaware: Lighttpd is a light-weight web server with very low 
memory footprint. It can serve almost all the frameworks under the hood, 
via FastCGI (Have found this good with Django, Rails and PHP)


So for a server like above, you might want to try a benchmark with 
Lighty. One good thing about Lighty is that, its configuration file's 
grammar is very cool.


Afa recommending a host is concerned, yes Joyent is giving me good 
performance. Choosing joyent was the matter of:

* Cost, $16.
* They accepted my Indian Bank master debit card for this :) - god knows 
how! Although, lately I got to know, 

Re: [ilugd] Fork Bomb and User Limit: Some Serious Concerns.

2011-06-08 Thread Amar Akshat
Raj, Your approach is what I had in mind to distribute VMs to the interns.
However they are supposed to take care of deploys on Lower Environment, and
hence they some how obtain the root privilege. I guess I ll have to drive a
sanity check for this once !


2011/6/8 Gora Mohanty g...@mimirtech.com

 2011/6/8 Ashish SHUKLA ashish...@lostca.se:
 [...]
  So will any of these solutions work when the user is logged in as root?
 
  In general, how are you going to prevent root from destroying your
  system?

In general I dont want to tweak any of the root privileges,  I still want
root to do anything under the Sun.

However Ankit's point is quite valid, fork bomb cam be prevented by setting
a limit on number of processes by any user! I think I am gonna try that
approach.

Our other systems using BoKS successfully are able to limit users from
executing certain commands. For example if I (as amarakshat) become root and
want to change other user's password (eg, rajmathur), it wont allow. However
In my department we do not have such software !



  % getent passwd root
  root:x:65535:65535:root:/root:/bin/sh

 I was going to suggest the L33T toor user, but had refrained.

  Or, maybe SELinux :)

 Have never understood SELinux: Isn't there only one command:
   setenforce 0

 Regards,
 Gora

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




-- 
Amar Akshat
Wells Fargo

Real Programmers always confuse Christmas and Halloween because Oct31 ==
Dec25.
___
Ilugd mailing list
Ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd


Re: [ilugd] [Ilugc] [Commercial] Linux Open Source Jobs Site Announced

2011-06-08 Thread Narendra Sisodiya
On Wed, Jun 8, 2011 at 12:25 PM, Swapnil Bhartiya 
swapnil.bhart...@gmail.com wrote:

 We are launching a section of Muktware[1] called - Linux and Open Source
 Jobs. Under this section, you can search and apply for Linux and Open
 Source Jobs. If you are an employer or looking for full time employees,
 experts for contract-based projects, freshers and trainees, you can post
 job openings and find right candidates for your firm.

 If you are an engineering student looking for Jobs in the Linux and Open
 Source industry, you can search for appropriate jobs and apply with one
 click.

 The service is available for free of cost.


You can also redirect to fossjobs.in  !!
___
Ilugd mailing list
Ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd


[ilugd] Trying to install webcam

2011-06-08 Thread Kapil Gupta
Distro: Fedora 14  -- 2.6.35.13-91.fc14.i686
Webcam : Quantum 14 MP Night Vision

To install on linux, the CD has source code
on the first step, it asks to
*run* *make*
*
*
the output is like:

[root@kapil uvcvideo_cur]# make
Building USB Video Class driver...
make[1]: Entering directory `/usr/src/kernels/2.6.35.13-91.fc14.i686'
make[1]: *** No rule to make target `driver/uvcvideo_cur'.  Stop.
make[1]: Leaving directory `/usr/src/kernels/2.6.35.13-91.fc14.i686'
make: *** [uvcvideo] Error 2

Any what to do?



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


Re: [ilugd] Trying to install webcam

2011-06-08 Thread Shiv

From: Kapil Gupta navka...@gmail.com
To: ilugd@lists.linux-delhi.org
Sent: Thursday, 9 June 2011 8:18 AM
Subject: [ilugd] Trying to install webcam

Any what to do?


Check if you've done the following :-
a) Copy the source tree from CD to your home directory (or some similar place;)
b) run the configure script (./configure typically should setup the development 
environment for the compiler/linker etc)
c) if no errors, type `make` else install dependencies that configure 
complained about
d) if no errors, type `make install`
e) if you get errors now, then you need to contact the developer(s)/dive 
deeper/trawl the support forum for the solution

With Warm Regards, 
Shivkumar 
twitter: shiv_jags
linkedin: shivjags
blog: outbackwifi.blogspot.com 

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