This question arises in the mind of new people who are turning to Linux administration. So what you people will suggest? Go for a good institute. Right? So how you judge one institute is good and other is bad? If I am there in your place. I will consider below points before taking a decision to join an institute.
1. Faculty(first priority)
2. Infrastructure(second priority)
3. Institute background and capabilities(Third priority)
Faculty : Some points be noted about faculty
1. A good faculty is like a motivator, he always motivates you to explore new things. He just shows the path you have to explore.
2. A good faculty always try to share knowledge irrespective of the domain. I saw some instructors will not share all the knowledge they have. They just simply go according to the syllabus. So be aware of these type of instructors.
3. A good faculty will always try to mould his way of teaching depending on grasping power of the students.
4. A good faculty always give infomation about what type questions will come in interviews and exam. So that you can concentrate more on those topics.
So how to judge a faculty is good or not with out actually attending his classes?
Ans : Just go to that institute before joining and enquire the students of that institute about the instructors and their way of teaching. And if possible take a sample session with that faculty and observe all the above mentioned points. If most of the above qualities are not observed better not to join.
Infrastructure :
Some points to be noted about infrastructure
1. As we are learning job oriented courses please don't join in institutes where students with more than 30 per class. These type of institutes are more in Hyderabad. One thing i want to mention is if a class is containing some 150 students where is the type for faculty to care of your queries?
2. Make sure that before joining the institute about the hardware provided by them. In some institute there will be only one or two systems/devices per class so where is the time for you to practice? right so consider this one too.
3. Some institutes will not provide lab facility after the class timings. So what's the fun of just taking Linux classless with out practice. I say to my friends if you want to be a good Linux admin just remember three rules/principles.
a.Practice
b.Practice
c.Practice
So what is ideal Infrastructure?
Ans : A class should not contain more then 10 to 15 students and should provide at least one system for two students with 24 hours lab facility.
Institute : Some points to be noted about Institute.
1. Check with Students of an institute about the behaviour of non teaching faculty. Some of the institute people will behave differently before and after paying amount.
2.Check with students how is the placements and campus interviews.
3. As you people will know speaking good English will play important role in getting a job, some institutes will have one faculty who will teaches spoken English, corporate culture, personality development etc.
So you guys may feel that as "I am already a Linux admin why this non technical post is here." this is for you only. As you are an experienced Linux admin, many new comers will come to you and ask which institute is best. So at that time you can express your own ideas and these points to them before they take a decision. This is the intention of this post.
Please comment your experience either its small or big about your training institute where you learnt some admin courses:-)
How To Choose A Good Linux Institute?
0 comments 4/15/2010 08:22:00 AM Posted by Meghana M BhombhoreLabels: Certifications, General
How To Create A Daemon In Linux?
0 comments 3/29/2010 07:28:00 AM Posted by Meghana M BhombhoreLabels: How-To's, Scripting
Recently we struck up with a problem. The problem is to run a script continuously in background and continuously check for a folder content changes. If any modifications are done in that folder, the script once again should start one more script. We thought of doing this by using crontab. But the problem with crontab is we have to wait at least one minute to run our script. One minute is too long for my requirement. We require a solution which runs continuously in background at every micro second, it should be similar to a normal Linux daemon such as httpd, ssh, ftp etc. I have searched in Google for creating daemons in Linux. But most of the people suggested to write a daemon in C language, which is alien to me(I have learnt C language some 9 years back but now totally forgot it :( ). Here is one such link which will describe you how to create a daemon in Linux using C programming.
http://www.netzmafia.de/skripten/unix/linux-daemon-howto.html.
I went through many documentations and other stuff but come to a conclusion to go with Shell script. Which will work same as daemon. Here is the code for the daemon which we accomplish using while loop
This while loop continuously runs because we give condition as true for this while loop and then written a if statement what to do. Once you create above script there are other points to mention, such as below once to make above script as a daemon..
So how to run the above script?
Ans : Use nohup when running the script. For those people who don't know nohup command here is the explnation.
nohup is a command to run a program thought you logout from the machine. For example here is my script with nohup.
nohup sh daemon.sh
But some times this will not work. At that time run this script from crontab once and then remove the entry from crontab.
So how to make this permanent?
Ans : Its simple. keep your script in /etc/init.d with execute permissions
cp /path/to/script/daemon.sh /etc/init.d/
chmod +x /etc/init.d/daemon.sh
Then create a link file to this script to the corresponding run-level. This is required at the time of booting.
ln -s /etc/init.d/daemon.sh /etc/rc.d/rc3.d/S43daemon.sh
ln -s /etc/init.d/daemon.sh /etc/rc.d/rc3.d/K43daemon.sh
What are those above two command will do?
Ans : The S43 will tell the system to start the script as 43 script when it boots up.
The K43 will tell the system to shutdown cleanly when you do a shut down.
Please share your thoughts if you have better idea to do it:-)
How to: Linux Group Disk Quota Implementation
0 comments 3/27/2010 11:08:00 AM Posted by Surendra Kumar AnneLabels: Disk-Mgmt, How-To's, Quota
Click here If you are looking for implementing user disk quota implementation in linux. Here in this post we are now going to discus how to implement Linux Group quota for a project?
Many people will ask why we require group quota if we have user quota?
I will explain this with an example. In companies people will be working on projects/groups where they want to share their data on a common location and accessed by any user for that group. Its some thing like group store where they will be dumping data on a single location. So its very much easy to restrict per group basis on this group store, so we can set some limit on all the users in that group on how much they can upload to that folder. We will take one example to accomplish this group quota.
group name : project1.
group members : user1, user2, user3.
group dump folder/common folder to the above mention users : /home/project1 (/dev/hda2).
group disk quota limit : 100MB soft/110MB hard limit
Now we have all the ingredients to prepare spicy food :)
Implementing Group disk quota on Linux
Step1 : Create a group
#groupadd project1
Step2 : Create all the require users with their home directory /home/project1 and group as project1
#useradd -c "Testing group quota implementation" -m -d /home/project1 -g project1 user1
#useradd -c "Testing group quota implementation" -m -d /home/project1 -g project1 user2
#useradd -c "Testing group quota implementation" -m -d /home/project1 -g project1 user3
Step3 : Select/prepare the partition for quota here my partition is /dev/hda2 so edit /etc/fstab file for with the required entries.
vi /etc/fstab /dev/hda2 /home ext3 defaults,usrquota,grpquota 0 0
save and exit the file
Step4 : Now remount the partition with rw permissions
#mount -o remount,rw /home
Step5 : Now create group quota database
#quotacheck -cug /home
check for user/group database is created or not when you give ls /home you can see
aquota. user, aquota.group files in /home directory,which contains user and group databases.
Step6 : Once the above command executed successfully, check quota is implemented or not.
#repquota -a
Step7 : Now set quota for the group project1, this can be done using edquota or setquota. Most of the people know edquota command usage when executed it will open a temporary quota file where we have to mention your desired values. But in this I am going to show you another way to set group quota.
#setquota -g project1 100 110 0 0 /dev/sda2
Explanation of above command.
-g specifies we are going to edit group quota.
The group name is project1
We are setting setting soft(100kb) and hard limit(110kb) on blocks
We disabled setting soft(0) and hard(0) limit on inodes
Last we specified on what partition we are going to set this quota(/dev/sda2)
Step8 : Don't think its completed. This is the most and main important point you have remember when implementing group quota. We have to set permission to /home/project1 with SGID so that all the members in the group can able to upload data to /home/project1 with out any issue.
#chmod 2770 /home/project1
Now all the group members of project1 can upload total of 100kb not more than that. For example user1 uploaded 75kb so members of project1 can only upload 25kb more.


